processmcdocument.doc

Upload: vijaya-kumar-p

Post on 01-Jun-2018

214 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/9/2019 ProcessMCdocument.doc

    1/63

    Process Authentication for High System Assurance

    ABSTRACT

    The project Process Authentication for High System Assurance

    is designed using Microsoft Visual Studio.Net 2003 as front end and

    Microsoft SQL Server 2000 as bac end !hich !ors in .Net fra"e!or version

    #.#. The coding language used is Visual $asic .Net.

    The project is deigned to "onitor the processes running in the s%ste"& ill

    an% un!anted process. The processed& duration the process ran& etc are the details

    that can be vie!ed.

    'n addition& an% process "a% be add(re"ove in(fro" the database and

    configured i.e.& li"ited such as ho! "an% ti"es the process !ould run in a da%& at

    a ti"e and "a)i"u" duration the process could run.

    Moreover& the application is capable of logoff& restart and shutdo!n the

    s%ste". *hen the set the ti"e in hibernation& the s%ste" hibernates and restarts

    after the given ti"e.

  • 8/9/2019 ProcessMCdocument.doc

    2/63

    TABLE OF CONTENTS

    CHAPTER NO TTLE PA!E NO

    +$ST,+-T

    #. 'NT,/-T'N

    #.# +$T T1 ,+N'4+T'N

    #.2 5,6-T /S-,'5T'N

    2. S7STM ST/7

    2.# 8+S+$'L'T7 ST/7

    2.2 9'ST'N S7STM

    2.3 5,5S/ S7STM

    3 S7STM S5-'8'-+T'N

    3.# S8T*+, ,Q',MNTS

    3.2 1+,/*+, ,Q',MNTS

    : L+N+ S5-'8'-+T'N

    :.# 8+T,S 8 V$ .NT

    :.2 8+T,S 8 SQL S,V, 2000

    ; S7STM /S'N

    ;.# 'N5T /S'N

    ;.2 T5T /S'N

    ;.3 /+T+$+S /S'N

    ;.: /+T+ 8L* /'+,+M

  • 8/9/2019 ProcessMCdocument.doc

    3/63

    < S7STM TST'N +N/ M+'NTN+N-

    -N-LS'N

    ? $'$L',+517

    +55N/'9

    S-,N S1T

    /+T+ T+$L ST,-T,

    S+M5L -/'N

  • 8/9/2019 ProcessMCdocument.doc

    4/63

    "# NTRO$%CTON

    "#& PRO'ECT $ESCRPTON

    The soft!are is divided into t!o projects fro" !hich the first one is for altering

    the options. The other !ill be added in the !indo!s schedule so that the application is

    getting auto"aticall% started !hen the user logins to the !indo!s. The bacup

    application is "ini"i@ed and running as a tas in the operating s%ste".

    The project titled APROCESS (ONTOR CONTROLB contains ; "odules.

    #. 5rocesses

    2. Ti"e settings

    3. S%ste" process

    :. 5rocess control

    ;. 5rocess vie!

    )# Process Authentication

    "# Processes*

    This "odule is "ainl% based on database. *e can add the process to database for

    bacup& and also re"ove the process fro" the database. List of the process in the

    database also can sho! b% this "odule. This "odule is "ade for database purpose.

    Time settings*

    1ere !e can set the li"it for nu"ber of process running per the da%. $% this&

    !e provide the process that running "an% ti"es per the da%. +lso can set the nu"ber

  • 8/9/2019 ProcessMCdocument.doc

    5/63

    of Cli"it theD process that running at sa"e ti"e. $% this& protect the run ti"e error.

    8ro" this "odule !e can set the ti"e li"it for process running.

    +# System ,rocess*

    'n this "odule& !e are controlling the s%ste". Set the ti"e for !hen !e !ant to

    turnoff& logoff& restart the s%ste". +lso to set the ti"e for hibernate the s%ste". $% this

    !e can restart the s%ste" auto"aticall%. 1ere !e select an% one of the above options and

    set the ti"e for that.

    -# Process contro.*

    'n this "odule !e are set the ti"e for running the process. 'n this !e can select

    the ti"e for instance& after& or set so"e ti"e. Si"ultaneousl% !e are set the ti"e for

    closing the process.

    /# Process 0ie1*

    'n this process vie! "odule !e are sho!n the current running process and all

    the process. +nd also sho!n the total nu"ber of process& nu"ber of threads& and nu"ber

    of handles.

  • 8/9/2019 ProcessMCdocument.doc

    6/63

    S2STE( ST%$2

    " FEASBLT2 ST%$2*

    The feasibilit% of the project is anal%@ed in this phase and business

    proposal is put forth !ith a ver% general plan for the project and so"e cost esti"ates.

    /uring s%ste" anal%sis the feasibilit% stud% of the proposed s%ste" is to be carried out.

    This is to ensure that the proposed s%ste" is not a burden to the co"pan%. 8or feasibilit%

    anal%sis& so"e understanding of the "ajor reEuire"ents for the s%ste" is essential.

    Three e% considerations involved in the feasibilit% anal%sis are

    -NM'-+L 8+S'$'L'T7

    T-1N'-+L 8+S'$'L'T7

    S-'+L 8+S'$'L'T7

    ECONO(CAL FEASBLT2*

    This stud% is carried out to chec the econo"ic i"pact that the s%ste" !ill

    have on the organi@ation. The a"ount of fund that the co"pan% can pour into the

    research and develop"ent of the s%ste" is li"ited. The e)penditures "ust be justified.

    Thus the developed s%ste" as !ell !ithin the budget and this !as achieved because "ost

    of the technologies used are freel% available. nl% the custo"i@ed products had to be

    purchased.

  • 8/9/2019 ProcessMCdocument.doc

    7/63

    TECHNCAL FEASBLT2*

    This stud% is carried out to chec the technical feasibilit%& that is& the

    technical reEuire"ents of the s%ste". +n% s%ste" developed "ust not have a high

    de"and on the available technical resources. This !ill lead to high de"ands on the

    available technical resources. This !ill lead to high de"ands being placed on the client.

    The developed s%ste" "ust have a "odest reEuire"ent& as onl% "ini"al or null changes

    are reEuired for i"ple"enting this s%ste".

    SOCAL FEASBLT2*

    The aspect of stud% is to chec the level of acceptance of the s%ste" b% the

    user. This includes the process of training the user to use the s%ste" efficientl%. The user

    "ust not feel threatened b% the s%ste"& instead "ust accept it as a necessit%. The level of

    acceptance b% the users solel% depends on the "ethods that are e"plo%ed to educate the

    user about the s%ste" and to "ae hi" fa"iliar !ith it. 1is level of confidence "ust be

    raised so that he is also able to "ae so"e constructive criticis"& !hich is !elco"ed& as

    he is the final user of the s%ste".

    & E3STN! S2STE(

    The tas "anager is the e)isting s%ste" that is using no! for so"e of the options

    in process "onitor control. $% this tas "anager !e canFt set the ti"e for opening or

    closing the running process. +lso canFt set the ti"e for shut do!n& restart& logoff&

    hibernate the s%ste". *e cannot able to sho!n the nu"ber of process count& nu"ber of

    threads count and nu"ber of handles.

  • 8/9/2019 ProcessMCdocument.doc

    8/63

    $ra14ac5s of e6isting system*

    #. Ti"e setting for closing or opening the process is not possible.

    2. Ti"e setting for shutdo!n& logoff& restart& G hibernate the s%ste" is not

    possible.

    3. -annot sho!n or vie! the nu"ber of process& threads& and handles.

    :. +lso& canFt set the "a)i"u" instance per da%.

    + NEE$ FOR PROPOSE$ S2STE(

    To avoid the dra!bacs in the e)isting s%ste"& the proposed s%ste" is designed.

    $% this proposed s%ste" !e can set the "a)i"u" instance per da%. To protect the s%ste"

    in run ti"e error& !e need to set the ti"e for closing the process. So in this ti"e !e need

    for proposed s%ste".

    The advantages of proposed s%ste" are

    #. Ti"e setting for closing or opening the process is possible

    2. Ti"e setting for shutdo!n& logoff& restart& G hibernate the s%ste" is possible.

    3. +ble to see or vie! the nu"ber of process& threads& and handles.

    :. +lso& can set the "a)i"u" instance per da%.

    ;. More reliabilit% than e)isting s%ste".

  • 8/9/2019 ProcessMCdocument.doc

    9/63

    +# S2STE( SPECFCATON

    +#" HAR$7ARE CONF!%RATON

    The hard!are used for the develop"ent of the project isH

    5,-SS, H 5NT'M ''' > M/ S/ ,+M

    MN'T, H #;B -L,

    1+,/ /'SI H 20 $

    8L557 /,'V H #.:: M$-//,'V H L ;29

    I7$+,/ H ST+N/+,/ #02 I7S

    MS H 3 $TTNS

    3.2 S8T*+, -N8',+T'N

    The soft!are used for the develop"ent of the project isH

    5,+T'N S7STM H *indo!s 2000 5rofessional

    NV',NMNT H Visual Studio .NT 2003

    .NT 8,+M*,I H Version #.#

    L+N+ H Visual $asic.NT

    $+-IN/ H SQL S,V, 2000

  • 8/9/2019 ProcessMCdocument.doc

    10/63

    -# LAN!A%!E SPECFCATON

    -#" FEAT%RES OF 8S%AL BASC# NET

    Visual $asic. NT& the latest version of visual basic& includes "an% ne! features.

    The Visual $asic supports interfaces but not i"ple"entation inheritance.

    Visual basic.net supports i"ple"entation inheritance& interfaces and overloading.

    'n addition& Visual $asic .NT supports "ultithreading concept.

    CO((ON LAN!%A!E SPECFCATON 9CLS:*

    Visual $asic.NT is also co"pliant !ith -LS C-o""on Language SpecificationD

    and supports structured e)ception handling. -LS is set of rules and constructs that are

    supported b% the -L, C-o""on Language ,unti"eD. -L, is the runti"e environ"ent

    provided b% the .NT 8ra"e!orJ it "anages the e)ecution of the code and also "aes

    the develop"ent process easier b% providing services.

    Visual $asic.NT is a -LSKco"pliant language. +n% objects& classes& or

    co"ponents that created in Visual $asic.NT can be used in an% other -LSKco"pliant

    language. 'n addition& !e can use objects& classes& and co"ponents created in other -LSK

    co"pliant languages in Visual $asic.NT .The use of -LS ensures co"plete

    interoperabilit% a"ong applications& regardless of the languages used to create the

    application.

    (PLE(ENTATON NHERTANCE*

    Visual $asic.NT supports i"ple"entation inheritance. This "eans that& !hile

    creating applications in Visual $asic.NT& !e can drive fro" another class& !hich is

    no! as the base class that derived class inherits all the "ethods and properties of the

  • 8/9/2019 ProcessMCdocument.doc

    11/63

    base class. 'n the derived class& !e can either use the e)isting code of the base class or

    override the e)isting code. Therefore& !ith help of the i"ple"entation inheritance& code

    can be reused.

    CONSTR%CTORS AN$ $ESTR%CTORS*

    -onstructors are used to initiali@e objects& !hereas destructors are used to

    destro% the". 'n other !ords& destructors are used to release the resources allocated to the

    object. 'n Visual $asic.NT the sub finali@e procedure is available. The sub finali@e

    procedure is used to co"plete the tass that "ust be perfor"ed !hen an object is

    destro%ed. The sub finali@e procedure is called auto"aticall% !hen an object is destro%ed.

    'n addition& the sub finali@e procedure can be called onl% fro" the class it belongs to or

    fro" derived classes.

    !ARBA!E COLLECTON*

    arbage -ollection is another ne! feature in Visual $asic.NT. The .NT

    8ra"e!or "onitors allocated resources& such as objects and variables. 'n addition&

    the .NT 8ra"e!or auto"aticall% releases "e"or% for reuse b% destro%ing objects that

    are no longer in use. 'n Visual $asic.NT& the garbage collector checs for the objects

    that are not currentl% in use b% applications. *hen the garbage collector co"es across an

    object that is "ared for garbage collection& it releases the "e"or% occupied b% the

    object.

    O8ERLOA$N!*

    verloading is another feature in Visual $asic.NT. verloading enables us to

    define "ultiple procedures !ith the sa"e na"e& !here each procedure has a different set

    of argu"ents. $esides using overloading for procedures& !e can use it for constructors

    and properties in a class.

  • 8/9/2019 ProcessMCdocument.doc

    12/63

    (%LTTHREA$N!*

    Visual $asic.NT also supports "ultithreading. +n application that supports

    "ultithreading can handle "ultiple tass si"ultaneousl%& !e can use "ultithreading to

    decrease the ti"e taen b% an application to respond to user interaction. To decrease the

    ti"e taen b% an application to respond to user interaction& !e "ust ensure that a separate

    thread in the application handles user interaction.

    STR%CT%RE$ E3CEPTON HAN$LN!*

    Visual $asic.NT supports structured handling& !hich enables us to detect and

    re"ove errors at runti"e. 'n Visual $asic.NT& !e need to use Tr%-atch8inall%

    state"ents to create e)ception handlers. sing Tr%-atch8inall% state"ents& !e can

    create robust and effective e)ception handlers to i"prove the perfor"ance of our

    application.

    THE #NET FRA(E7OR;*

    The .NT 8ra"e!or is a ne! co"puting platfor" that si"plifies application

    develop"ent in the highl% distributed environ"ent of the 'nternet.

    OB'ECT8ES OF# NET FRA(E7OR;*

    #. To provide a consistent objectKoriented progra""ing environ"ent !hether

    object codes is stored and e)ecuted locall% on 'nternetKdistributed& or e)ecuted re"otel%.

    2. To provide a codeKe)ecution environ"ent to "ini"i@es soft!are deplo%"ent

    and guarantees safe e)ecution of code.

    3. li"inates the perfor"ance proble"s.

  • 8/9/2019 ProcessMCdocument.doc

    13/63

    There are different t%pes of application& such as *indo!sKbased applications and

    *ebKbased applications.

    To "ae co""unication on distributed environ"ent to ensure that code be

    accessed b% the .NT 8ra"e!or can integrate !ith an% other code.

    8S%AL ST%$O #NET*

    Visual Studio .NT is a co"plete set of develop"ent tools for building

    +S5 *eb applications& 9ML *eb services& destop applications& and "obile applications

    'n addition to building highKperfor"ing destop applications& %ou can use Visual Studios

    po!erful co"ponentKbased develop"ent tools and other technologies to si"plif% tea"K

    based design& develop"ent& and deplo%"ent of nterprise solutions.

    Visual $asic .NT& Visual - .NT& and Visual -O .NT all use the sa"e

    integrated develop"ent environ"ent C'/D& !hich allo!s the" to share tools and

    facilitates in the creation of "i)edKlanguage solutions. 'n addition& these languages

    leverage the functionalit% of the .NT 8ra"e!or and si"plif% the develop"ent of +S5

    *eb applications and 9ML *eb services.

    Visual Studio supports the .NT 8ra"e!or& !hich provides a co""on language

    runti"e and unified progra""ing classesJ +S5.NT uses these co"ponents to create

    +S5 *eb applications and 9ML *eb services. +lso it includes MS/N Librar%& !hich

    contains all the docu"entation for these develop"ent tools.

  • 8/9/2019 ProcessMCdocument.doc

    14/63

    -#& FEAT%RES OF S

  • 8/9/2019 ProcessMCdocument.doc

    15/63

    $esign 8ie1

    To build or "odif% the structure of a table !e !or in the table design vie!.

    *e can specif% !hat ind of data !ill be hold.

    $atasheet 8ie1

    To add& edit or anal%ses the data itself !e !or in tables datasheet vie!

    "ode.

  • 8/9/2019 ProcessMCdocument.doc

    16/63

    $esign 8ie1

    To build or "odif% the structure of a for"& !e !or in for"s design vie!.

    *e can add control to the for" that are bound to fields in a table or Euer%& includes

    te)tbo)es& option buttons& graphs and pictures.

    Form 8ie1

    The for" vie! !hich displa% the !hole design of the for".

    REPORT*

    + report is used to vies and print infor"ation fro" the database. The report

    can ground records into "an% levels and co"pute totals and average b% checing values

    fro" "an% records at once. +lso the report is attractive and distinctive because !e have

    control over the si@e and appearance of it.

    (ACRO*

    + "acro is a set of actions. ach action in "acros does so"ething. Such as

    opening a for" or printing a report .*e !rite "acros to auto"ate the co""on tass the

    !or eas% and save the ti"e.

    (O$%LE*

    Modules are units of code !ritten in access basic language. *e can !rite and

    use "odule to auto"ate and custo"i@e the database in ver% sophisticated !a%s.

  • 8/9/2019 ProcessMCdocument.doc

    17/63

    /# S2STE( $ES!N

    /#" NP%T $ES!N

    'nput design is the process of converting userKoriginated inputs to a

    co"puterKbased for"at. 'nput design is one of the "ost e)pensive phases of the operation

    of co"puteri@ed s%ste" and is often the "ajor proble" of a s%ste".

    'n the project& the schedule selection page is "ade !ith several eas% to use

    options.

    A>> ,rocess*

    This screen is used to get the process na"e for add and save the process to

    database.

    Remo0e ,rocess*

    This screen is used to get the process na"e for re"ove the process fro" the

    database.

    Time settings for ,rocess*

    This screen is used to get the ti"e setting for allo! "a)i"u" instance per

    the da%& allo! "a)i"u" instance at a ti"e and instance running ti"e li"it.

    Time settings for system*

    This screen is used to get the ti"e setting for shutdo!n& logoff& restart& and

    hibernate the s%ste".

  • 8/9/2019 ProcessMCdocument.doc

    18/63

    Running ,rocess*

    This screen is used to get the ti"e setting for opening and closing the

    process in the s%ste".

    /#& O%TP%T $ES!N

    utput design generall% refers to the results and infor"ation that are generated b%

    the s%ste" for "an% endKusersJ output is the "ain reason for developing the s%ste" and

    the basis on !hich the% evaluate the usefulness of the application.

    The output is designed in such a !a% that it is attractive& convenient and

    infor"ative. 8or"s are designed in V$.NT !ith various features& !hich "ae the

    console output "ore pleasing.

    +s the outputs are the "ost i"portant sources of infor"ation to the users& better

    design should i"prove the s%ste"Fs relationships !ith us and also !ill help in decisionK

    "aing. 8or" design elaborates the !a% output is presented and the la%out available for

    capturing infor"ation.

    Process*

    This report sho!s the process path and process na"e fro" the database.

    +lso shoes the nu"ber of process running& nu"ber of threads& and nu"ber of handles.

    /#+ $ATABASE $ES!N

    'n the database design relationship bet!een the database is decided.

    /atabase is defined as collection of interrelated data stored together !ith controlled

    redundanc% to serve one or "ore application in optional fashion.

  • 8/9/2019 ProcessMCdocument.doc

    19/63

    /#- $ATA FLO7 $A!RA(

    Processes

    Settings

    System

    Processes

    Add

    Rem

    ove

    Sho

    w picture list

    Processes

    Settings

    Allow max

    instance per day

    Allow max

    instance per time

    Insurance

    running time limit

    Maxlimitat a

    time

    maxrunninglimit

    maxlimitperday

    System

    Shut down

    after

    Logoff after

    Restart after

    Hibernate

    Processes

  • 8/9/2019 ProcessMCdocument.doc

    20/63

    Run

    Run

    Run a tas after

    !lose tas after

    !lose tas at

    Run tas at

    !lose tas now

    Run tas now

  • 8/9/2019 ProcessMCdocument.doc

    21/63

    8ie1

    A4out

    "iew

    Process log

    !urrent

    running process

    #hread count

    Process

    count

    Handles

    count

    Processes

    About About

    software

  • 8/9/2019 ProcessMCdocument.doc

    22/63

    /#/ S2STE( FLO7 $A!RA(

    PR$!%SSM!

    Login

    Add process

    "I%&R'(S)S#%M#ime SettingsProcesses

    Remove pro

    Show proc

    AllowMax

    InstancePer day

    AllowMax Instance

    At a time

    Instance running

    #ime Limit

    Shutdown

    Logoff

    Restart

    Hibernate

    Run tas after

    !lose tas after

    Run tas at

    !lose tas now

    !lose tas at

    Run tas now

    Process log

    !urrent ru

    processes

    Process cou

    #hread coun

    Handles cou

  • 8/9/2019 ProcessMCdocument.doc

    23/63

    )# S2STE( TESTN! AN$ (ANTENANCE

    Testing is vital to the success of the s%ste". S%ste" testing "aes a logical

    assu"ption that if all parts of the s%ste" are correct& the goal !ill be successfull%

    achieved. 'n the testing process !e test the actual s%ste" in an organi@ation and gather

    errors fro" the ne! s%ste" operates in full efficienc% as stated. S%ste" testing is the

    stage of i"ple"entation& !hich is ai"ed to ensuring that the s%ste" !ors accuratel% and

    efficientl%.

    'n the testing process !e test the actual s%ste" in an organi@ation and gather

    errors fro" the ne! s%ste" and tae initiatives to correct the sa"e. +ll the frontKend and

    bacKend connectivit% are tested to be sure that the ne! s%ste" operates in full efficienc%

    as stated. S%ste" testing is the stage of i"ple"entation& !hich is ai"ed at ensuring that

    the s%ste" !ors accuratel% and efficientl%.

    The "ain objective of testing is to uncover errors fro" the s%ste". 8or the

    uncovering process !e have to give proper input data to the s%ste". So !e should have

    "ore conscious to give input data. 't is i"portant to give correct inputs to efficient

    testing.

    Testing is done for each "odule. +fter testing all the "odules& the "odules are

    integrated and testing of the final s%ste" is done !ith the test data& speciall% designed to

    sho! that the s%ste" !ill operate successfull% in all its aspects conditions. Thus the

    s%ste" testing is a confir"ation that all is correct and an opportunit% to sho! the user that

    the s%ste" !ors. 'nadeEuate testing or nonKtesting leads to errors that "a% appear fe!

    "onths later. This !ill create t!o proble"s

    Ti"e dela% bet!een the cause and appearance of the proble".

  • 8/9/2019 ProcessMCdocument.doc

    24/63

    The effect of the s%ste" errors on files and records !ithin the s%ste".

    The purpose of the s%ste" testing is to consider all the liel% variations to !hich

    it !ill be suggested and push the s%ste" to its li"its.

    The testing process focuses on logical intervals of the soft!are ensuring that all

    the state"ents have been tested and on the function intervals Ci.e.&D conducting tests to

    uncover errors and ensure that defined inputs !ill produce actual results that agree !ith

    the reEuired results.

    Testing has to be done using the t!o co""on steps nit testing and 'ntegration

    testing.

    'n the project s%ste" testing is "ade as follo!sH

    The procedure level testing is "ade first. $% giving i"proper inputs& the errors

    occurred are noted and eli"inated.

    This is the final step in s%ste" life c%cle. 1ere !e i"ple"ent the tested errorKfree

    s%ste" into realKlife environ"ent and "ae necessar% changes& !hich runs in an online

    fashion. 1ere s%ste" "aintenance is done ever% "onths or %ear based on co"pan%

    policies& and is checed for errors lie runti"e errors& long run errors and other

    "aintenances lie table verification and reports.

    )#"# %NT TESTN!*

    nit testing verification efforts on the s"allest unit of soft!are design&

    "odule. This is no!n as AModule TestingB. The "odules are tested separatel%. This

    testing is carried out during progra""ing stage itself. 'n these testing steps& each "odule

    is found to be !oring satisfactoril% as regard to the e)pected output fro" the "odule.

  • 8/9/2019 ProcessMCdocument.doc

    25/63

    )# NTE!RATON TESTN!*

    'ntegration testing is a s%ste"atic techniEue for constructing tests to

    uncover error associated !ithin the interface. 'n the project& all the "odules are co"bined

    and then the entire progra""er is tested as a !hole. 'n the integrationKtesting step& all the

    error uncovered is corrected for the ne)t testing steps.

    )#+# 8AL$ATON TESTN!*

    To uncover functional errors& that is& to chec !hether functional

    characteristics confir" to specification or not

    (ANTENANCE*

    The objectives of this "aintenance !or are to "ae sure that the s%ste"

    gets into !or all ti"e !ithout an% bug. 5rovision "ust be for environ"ental changes

    !hich "a% affect the co"puter or soft!are s%ste". This is called the "aintenance of the

    s%ste". No!ada%s there is the rapid change in the soft!are !orld. /ue to this rapid

    change& the s%ste" should be capable of adapting these changes. 'n our project the

    process can be added !ithout affecting other parts of the s%ste".

    Maintenance pla%s a vital role. The s%ste" liable to accept an%

    "odification after its i"ple"entation. This s%ste" has been designed to favor all ne!

    changes. /oing this !ill not affect the s%ste"Fs perfor"ance or its accurac%.

  • 8/9/2019 ProcessMCdocument.doc

    26/63

    ?# S2STE( (PLE(ENTATON

    '"ple"entation is the stage of the project !hen the theoretical design is

    turned out into a !oring s%ste". Thus it can be considered to be the "ost critical stage

    in achieving a successful ne! s%ste" and in giving the user& confidence that the ne!

    s%ste" !ill !or and be effective.

    The i"ple"entation stage involves careful planning& investigation of the

    e)isting s%ste" and itFs constraints on i"ple"entation& designing of "ethods to achieve

    changeover and evaluation of changeover "ethods.

    '"ple"entation is the process of converting a ne! s%ste" design into

    operation. 't is the phase that focuses on user training& site preparation and file conversion

    for installing a candidate s%ste". The i"portant factor that should be considered here is

    that the conversion should not disrupt the functioning of the organi@ation.

    ?#" SCOPE FOR F%T%RE ENHANCE(ENTS

    The project has covered al"ost all the reEuire"ents. 8urther

    reEuire"ents and i"prove"ents can easil% be done since the coding is "ainl% structured

    or "odular in nature. '"prove"ents can be appended b% changing the e)isting "odules

    or adding ne! "odules. ne i"portant develop"ent that can be added to the project in

    future is file level bacup& !hich is presentl% done for folder level.

  • 8/9/2019 ProcessMCdocument.doc

    27/63

    @# CONCL%SON

    't is concluded that the application !ors !ell and satisf% the needs.The

    application is tested ver% !ell and errors are properl% debugged. 't is designed to "onitor

    the processes running in the s%ste"& Iill an% un!anted process. The processed& duration

    the process ran& etc are the details that can be vie!ed.

    'n addition& an% process "a% be add(re"ove in(fro" the database and configured

    i.e.& li"ited such as ho! "an% ti"es the process !ould run in a da%& at a ti"e and

    "a)i"u" duration the process could run.

    Moreover& the application is capable of logoff& restart and shutdo!n the s%ste".

    *hen the set the ti"e in hibernation& the s%ste" hibernates and restarts after the given

    ti"e.

  • 8/9/2019 ProcessMCdocument.doc

    28/63

    # BBLO!RAPH2

    Microsoft Visual $asic.NT 5rogra""erFs -oobooH

    KM+TT1* M+-/N+L/

    CTata Mcra!K1ill ditionD

    re% $uc@e& .NT developers guide 2002& 5renticeK1all 'ndia.

    $enolt Marchal& V$.NT b% e)a"ple 2003 P TataMcra!K 1ill.

    S%ste" +nal%sis G /esign P +lenis Leon.

    +n 'ntegral approach to soft!are engineering P 5anaj 6alole.

  • 8/9/2019 ProcessMCdocument.doc

    29/63

    APPEN$3*

    SCREENS SHOTS*

  • 8/9/2019 ProcessMCdocument.doc

    30/63

  • 8/9/2019 ProcessMCdocument.doc

    31/63

  • 8/9/2019 ProcessMCdocument.doc

    32/63

  • 8/9/2019 ProcessMCdocument.doc

    33/63

  • 8/9/2019 ProcessMCdocument.doc

    34/63

  • 8/9/2019 ProcessMCdocument.doc

    35/63

  • 8/9/2019 ProcessMCdocument.doc

    36/63

  • 8/9/2019 ProcessMCdocument.doc

    37/63

  • 8/9/2019 ProcessMCdocument.doc

    38/63

  • 8/9/2019 ProcessMCdocument.doc

    39/63

  • 8/9/2019 ProcessMCdocument.doc

    40/63

  • 8/9/2019 ProcessMCdocument.doc

    41/63

  • 8/9/2019 ProcessMCdocument.doc

    42/63

  • 8/9/2019 ProcessMCdocument.doc

    43/63

  • 8/9/2019 ProcessMCdocument.doc

    44/63

  • 8/9/2019 ProcessMCdocument.doc

    45/63

  • 8/9/2019 ProcessMCdocument.doc

    46/63

  • 8/9/2019 ProcessMCdocument.doc

    47/63

    TABLE STR%CT%RE

    (a6LimitAtatime9Primary;ey*SNo:

    (a6LimitPer$ay9Primary;ey*SNo:

    (a6RunningLimit 9Primary;ey*SNo:

  • 8/9/2019 ProcessMCdocument.doc

    48/63

    Processes9Primary;ey*ProcessPathProcessName:

    ProcessLog9Primary;ey*SNo:

  • 8/9/2019 ProcessMCdocument.doc

    49/63

    SA(PLE CO$N!*

    FOR( A$$ PROCESS*

    '"portsS%ste"./+T+.SQL-L'NT5ublic-lassfr"+dd5rocess

    'nheritsS%ste".*indo!s.8or"s.8or"

    /i"con +sNe!SQL-onnection /i"c"d +sNe!SEl-o""and

    /i"da +sNe!SEl/ata+dapterCc"dD

    /i"ds +sNe!/ataSet

    O,egionR *indo!s 8or" /esigner generated code R

    5ublicSubNe!CD M%$ase.Ne!CD

    This call is reEuired b% the *indo!s 8or" /esigner. 'nitiali@e-o"ponentCD

    +dd an% initiali@ation after the 'nitiali@e-o"ponentCD call

    ndSub

    8or" overrides dispose to clean up the co"ponent list. 5rotectedverloadsverridesSub/isposeC$%Valdisposing +s$ooleanD

    'fdisposing Then

    'fNotCco"ponents 'sNothingD Then co"ponents./isposeCD

    nd'f

    nd'f

    M%$ase./isposeCdisposingD ndSub

    ,eEuired b% the *indo!s 8or" /esigner 5rivateco"ponents +sS%ste".-o"ponentModel.'-ontainer

    8riend*ithvents$utton# +sS%ste".*indo!s.8or"s.$utton

    8riend*ithventsLabel# +sS%ste".*indo!s.8or"s.Label 8riend*ithventsTe)t$o)# +s S%ste".*indo!s.8or"s.Te)t$o)

    8riend*ithvents8/ +sS%ste".*indo!s.8or"s.pen8ile/ialog

    8riend*ithventsTe)t$o)2 +s S%ste".*indo!s.8or"s.Te)t$o)

    8riend*ithvents$utton2 +sS%ste".*indo!s.8or"s.$utton

  • 8/9/2019 ProcessMCdocument.doc

    50/63

    8riend*ithventsLabel2 +sS%ste".*indo!s.8or"s.Label

    8riend*ithvents$utton3 +sS%ste".*indo!s.8or"s.$utton

    S%ste"./iagnostics./ebuggerStepThroughCD 5rivateSub'nitiali@e-o"ponentCD Me.$utton# UNe!S%ste".*indo!s.8or"s.$utton

    Me.Label# UNe!S%ste".*indo!s.8or"s.Label

    Me.Te)t$o)# UNe! S%ste".*indo!s.8or"s.Te)t$o) Me.8/ UNe!S%ste".*indo!s.8or"s.pen8ile/ialog

    Me.Te)t$o)2 UNe! S%ste".*indo!s.8or"s.Te)t$o)

    Me.$utton2 UNe!S%ste".*indo!s.8or"s.$utton Me.Label2 UNe!S%ste".*indo!s.8or"s.Label

    Me.$utton3 UNe!S%ste".*indo!s.8or"s.$utton

    Me.SuspendLa%outCD

    $utton#

    Me.$utton#.Location UNe!S%ste"./ra!ing.5ointC#>:& >0D

    Me.$utton#.Na"e U R$utton#R Me.$utton#.Tab'nde) U =

    Me.$utton#.Te)t U RGSelectR

    Label#

    Me.Label#.Location UNe!S%ste"./ra!ing.5ointC>& #

  • 8/9/2019 ProcessMCdocument.doc

    51/63

    Me.Te)t$o)2.Location UNe!S%ste"./ra!ing.5ointC>& #0:D

    Me.Te)t$o)2.Na"e U RTe)t$o)2R

    Me.Te)t$o)2.Si@e UNe!S%ste"./ra!ing.Si@eC##2& 20D Me.Te)t$o)2.Tab'nde) U >

    Me.Te)t$o)2.Te)t U RR

    $utton2

    Me.$utton2.Location UNe!S%ste"./ra!ing.5ointC##2& #=& =2D

    Me.Label2.Na"e U RLabel2R Me.Label2.Si@e UNe!S%ste"./ra!ing.Si@eC##2& 23D

    Me.Label2.Tab'nde) U #0 Me.Label2.Te)t U R5rocess Na"eR

    $utton3

    Me.$utton3.Location UNe!S%ste"./ra!ing.5ointC200& #=

  • 8/9/2019 ProcessMCdocument.doc

    52/63

    5rivateSub$utton#X-licC$%Valsender +sS%ste".bject& $%Vale +s

    S%ste".vent+rgsD 1andles$utton#.-lic 8/.Sho!/ialogCD

    Te)t$o)#.Te)t U 8/.8ileNa"e

    Te)t$o)2.Te)t U MidC8/.8ileNa"e& 8/.8ileNa"e.Last'nde)fCRYRD 2D

    ndSub

    5rivateSubfr"+dd5rocessXLoadC$%Valsender +sS%ste".bject& $%Vale +s

    S%ste".vent+rgsD 1andlesM%$ase.Load

    con.-onnectionString U -onstr c"d.-o""andTe)t U RSelect fro" 5rocessesR

    c"d.-onnection U con

    ndSub

    5rivateSub$utton2X-licC$%Valsender +sS%ste".bject& $%Vale +s

    S%ste".vent+rgsD 1andles$utton2.-lic

    con.penCD

    Tr%

    'fTe)t$o)2.Te)t.Topper.nds*ithCR.9RD Then

    Te)t$o)2.Te)t U MidCTe)t$o)2.Te)t& #& LenCTe)t$o)2.Te)tD K :D

    nd'f

    c"d.-o""andTe)t U Rinsert into processes values CR G Te)t$o)#.Te)t G R&R G

    Tri"CTe)t$o)2.Te)tD G RDR c"d.)ecuteNonQuer%CD

    Msg$o)CRSaved...R& Msg$o)St%le.'nfor"ationD

    -atche) +s)ception Msg$o)Ce).Message.ToString& Msg$o)St%le.-riticalD

    8inall%

    con.-loseCD

    ndTr%

    ndSub

    5rivateSub$utton3X-licC$%Valsender +sS%ste".bject& $%Vale +sS%ste".vent+rgsD 1andles$utton3.-lic

    Me.-loseCD

    ndSub

  • 8/9/2019 ProcessMCdocument.doc

    53/63

    5rivateSubfr"+dd5rocessX-losingC$%Valsender +sbject& $%Vale +s

    S%ste".-o"ponentModel.-ancelvent+rgsD 1andlesM%$ase.-losing

    n rror ,esu"e Ne)t con.-loseCD

    ndSub

    5rivateSubTe)t$o)#XTe)t-hangedC$%Valsender +sS%ste".bject& $%Vale +s

    S%ste".vent+rgsD 1andlesTe)t$o)#.Te)t-hanged

    ndSub

    5rivateSubTe)t$o)2XTe)t-hangedC$%Valsender +sS%ste".bject& $%Vale +s

    S%ste".vent+rgsD 1andlesTe)t$o)2.Te)t-hanged

    ndSub

    5rivateSubLabel#X-licC$%Valsender +sS%ste".bject& $%Vale +sS%ste".vent+rgsD 1andlesLabel#.-lic

    ndSub

    nd-lass

    SETTN!S*

    '"portsS%ste"./+T+.SQL-L'NT5ublic-lassfr"Ma)'nst5er/a%

    'nheritsS%ste".*indo!s.8or"s.8or"

    O,egionR *indo!s 8or" /esigner generated code R

    5ublicSubNe!CD M%$ase.Ne!CD

    This call is reEuired b% the *indo!s 8or" /esigner.

    'nitiali@e-o"ponentCD

    +dd an% initiali@ation after the 'nitiali@e-o"ponentCD call

    ndSub

    8or" overrides dispose to clean up the co"ponent list. 5rotectedverloadsverridesSub/isposeC$%Valdisposing +s$ooleanD

    'fdisposing Then

    'fNotCco"ponents 'sNothingD Then

    co"ponents./isposeCD

  • 8/9/2019 ProcessMCdocument.doc

    54/63

    nd'f

    nd'f

    M%$ase./isposeCdisposingD ndSub

    ,eEuired b% the *indo!s 8or" /esigner 5rivateco"ponents +sS%ste".-o"ponentModel.'-ontainer

    NTH The follo!ing procedure is reEuired b% the *indo!s 8or" /esigner 't can be "odified using the *indo!s 8or" /esigner.

    /o not "odif% it using the code editor.

    8riend*ithvents/ataridTableSt%le# +s

    S%ste".*indo!s.8or"s./ataridTableSt%le 8riend*ithvents/ataridTe)t$o)-olu"n# +s

    S%ste".*indo!s.8or"s./ataridTe)t$o)-olu"n

    8riend*ithvents/atarid# +sS%ste".*indo!s.8or"s./atarid

    8riend*ithvents/ataridTe)t$o)-olu"n2 +sS%ste".*indo!s.8or"s./ataridTe)t$o)-olu"n

    8riend*ithventsList$o)# +sS%ste".*indo!s.8or"s.List$o) 8riend*ithvents$utton# +sS%ste".*indo!s.8or"s.$utton

    8riend*ithventsLabel# +sS%ste".*indo!s.8or"s.Label

    8riend*ithventsTe)t$o)# +s S%ste".*indo!s.8or"s.Te)t$o) 8riend*ithvents$utton2 +sS%ste".*indo!s.8or"s.$utton

    S%ste"./iagnostics./ebuggerStepThroughCD 5rivateSub'nitiali@e-o"ponentCD

    Me./ataridTableSt%le# UNe!S%ste".*indo!s.8or"s./ataridTableSt%le

    Me./atarid# UNe!S%ste".*indo!s.8or"s./atarid Me./ataridTe)t$o)-olu"n# UNe!

    S%ste".*indo!s.8or"s./ataridTe)t$o)-olu"n

    Me./ataridTe)t$o)-olu"n2 UNe!S%ste".*indo!s.8or"s./ataridTe)t$o)-olu"n

    Me.List$o)# UNe!S%ste".*indo!s.8or"s.List$o)

    Me.$utton# UNe!S%ste".*indo!s.8or"s.$utton Me.Label# UNe!S%ste".*indo!s.8or"s.Label

    Me.Te)t$o)# UNe! S%ste".*indo!s.8or"s.Te)t$o)

    Me.$utton2 UNe!S%ste".*indo!s.8or"s.$utton

    -T%peCMe./atarid#& S%ste".-o"ponentModel.'Support'nitiali@eD.$egin'nitCD Me.SuspendLa%outCD

    /ataridTableSt%le#

    Me./ataridTableSt%le#./atarid U Me./atarid#

    Me./ataridTableSt%le#.rid-olu"nSt%les.+dd,angeCNe!S%ste".*indo!s.8or"s./atarid-olu"nSt%leCD ZMe./ataridTe)t$o)-olu"n#&

    Me./ataridTe)t$o)-olu"n2[D

    Me./ataridTableSt%le#.1eader8ore-olor U

    S%ste"./ra!ing.S%ste"-olors.-ontrolTe)t

  • 8/9/2019 ProcessMCdocument.doc

    55/63

    Me./ataridTableSt%le#.MappingNa"e U RR

    Me./ataridTableSt%le#.5referred-olu"n*idth U :00

    Me./ataridTableSt%le#.,eadnl% U True

    /atarid#

    Me./atarid#./ataMe"ber U RR

    Me./atarid#.1eader8ore-olor U S%ste"./ra!ing.S%ste"-olors.-ontrolTe)t

    Me./atarid#.Location UNe!S%ste"./ra!ing.5ointC2:0& #

  • 8/9/2019 ProcessMCdocument.doc

    56/63

    Me.Label#.Na"e U RLabel#R

    Me.Label#.Si@e UNe!S%ste"./ra!ing.Si@eC#2>& 23D

    Me.Label#.Tab'nde) U : Me.Label#.Te)t U Rnter Ma) Li"it 5er /a%R

    Te)t$o)#

    Me.Te)t$o)#.Location UNe!S%ste"./ra!ing.5ointC#

  • 8/9/2019 ProcessMCdocument.doc

    57/63

    5rivateSubfr"Ma)'nst5er/a%XLoadC$%Valsender +sS%ste".bject& $%Vale +s

    S%ste".vent+rgsD 1andlesM%$ase.Load

    Select-aseMa)T%pe -aseR5er /a%R

    Me.Te)t U RMa)i"u" Li"it 5er /a%R

    TableNa"e U RMa)Li"it5er/a%R -aseR+t a Ti"eR

    Me.Te)t U RMa)i"u" Li"it +t a Ti"eR

    Label#.Te)t U Rnter Ma) Li"it at a Ti"eR TableNa"e U RMa)Li"itataTi"eR

    -aseRTi"e Li"itR

    Me.Te)t U R,unning Ti"e Li"it 8or 5rocessR

    Label#.Te)t U Rnter Ma) Ti"e Li"it CMinutesDR TableNa"e U RMa),unningLi"itR

    ndSelect

    con.-onnectionString U -onstr c"d.-o""andTe)t U RSelect fro" 5rocessesR

    c"d.-onnection U con

    c"d.)ecuteNonQuer%CD

    8illCD 8illListCD

    ndSub

    Sub8illListCD

    c"d.-o""andTe)t U RSelect 5rocessNa"e 8ro" 5rocessesR con.penCD

    r U c"d.)ecute,eader

    List$o)#.'te"s.-learCD *hiler.,ead

    List$o)#.'te"s.+ddCrC0DD

    nd*hile r.-loseCD

    con.-loseCD

    ndSub

    Sub8illCD 'fNotds 'sNothingThends UNothing

    ds UNe!/ataSet

    ds.Tables.-learCD ds.-learCD

    c"d.-o""andTe)t U RSelect fro" 5rocessesR

    da.8illCds& R5rocessesRD /atarid#./ataSource U ds

    /atarid#./ataMe"ber U R5rocessesR

    /atarid#.,efreshCD

    ndSub

  • 8/9/2019 ProcessMCdocument.doc

    58/63

    5rivateSub$utton#X-licC$%Valsender +sS%ste".bject& $%Vale +s

    S%ste".vent+rgsD 1andles$utton#.-lic 'fList$o)#.Selected'nde) U 0 Then

    'fValCTe)t$o)#.Te)tD U 0 Then

    Msg$o)CRnter "a) 'i"itR& Msg$o)St%le.'nfor"ationD )itSub

    nd'f

    con.-onnectionString U -onstr con.penCD

    c"d.-o""andTe)t U Rselect countCD fro" Ma)Li"it !here 5rocessNa"eUR

    G List$o)#.Te)t G RR

    c"d.-onnection U con 'f c"d.)ecuteScalar 0 Then

    c"d.-o""andTe)t U R/elete fro" R G TableNa"e G R !here 5rocessNa"eUR

    G List$o)#.Te)t G RR

    c"d.-onnection U con c"d.)ecuteNonQuer%CD

    nCD d 'f Select-aseTableNa"e

    -aseRMa)Li"it5er/a%R& RMa)Li"itataTi"eR

    c"d.-o""andTe)t U R'nsert into R G TableNa"e G RC5rocessNa"e&Ma)Li"itD values CR G List$o)#.Te)t.Topper G R&R G

    ValCTe)t$o)#.Te)tD G RDR

    -aseRMa),unningLi"itR

    c"d.-o""andTe)t U R'nsert into R G TableNa"e G RC5rocessNa"e&/urationinMinutesD values CR G List$o)#.Te)t.Topper G R&R G

    ValCTe)t$o)#.Te)tD G RDR

    ndSelect c"d.)ecuteNonQuer%CD

    con.-loseCD

    Msg$o)CR5rocess +dded...R& Msg$o)St%le.'nfor"ationD lse

    Msg$o)CRSelect a 5rocessR& Msg$o)St%le.-riticalD

    nd'f

    ndSub

    5rivateSubTe)t$o)#XIe%5ressC$%Valsender +sbject& $%Vale +s

    S%ste".*indo!s.8or"s.Ie%5ressvent+rgsD 1andlesTe)t$o)#.Ie%5ress Select-ase+scCe.Ie%-harD

    -ase:> To;=& >

    -aselse e.1andled U True

    ndSelect

    ndSub

  • 8/9/2019 ProcessMCdocument.doc

    59/63

    5rivateSub$utton2X-licC$%Valsender +sS%ste".bject& $%Vale +s

    S%ste".vent+rgsD 1andles$utton2.-lic Me.-loseCD

    ndSub

    nd-lass

    R%N TAS;*

    '"portsS%ste"./iagnostics5ublic-lassfr",unTas

    'nheritsS%ste".*indo!s.8or"s.8or"

    O,egionR *indo!s 8or" /esigner generated code R

    5ublicSubNe!CD M%$ase.Ne!CD

    This call is reEuired b% the *indo!s 8or" /esigner. 'nitiali@e-o"ponentCD

    +dd an% initiali@ation after the 'nitiali@e-o"ponentCD call

    ndSub

    8or" overrides dispose to clean up the co"ponent list. 5rotectedverloadsverridesSub/isposeC$%Valdisposing +s$ooleanD

    'fdisposing Then

    'fNotCco"ponents 'sNothingD Then co"ponents./isposeCD

    nd'f

    nd'f

    M%$ase./isposeCdisposingD ndSub

    ,eEuired b% the *indo!s 8or" /esigner 5rivateco"ponents +sS%ste".-o"ponentModel.'-ontainer

    NTH The follo!ing procedure is reEuired b% the *indo!s 8or" /esigner 't can be "odified using the *indo!s 8or" /esigner.

    /o not "odif% it using the code editor.

    8riend*ithventsLabel# +sS%ste".*indo!s.8or"s.Label

    8riend*ithventsTe)t$o)# +s S%ste".*indo!s.8or"s.Te)t$o)

  • 8/9/2019 ProcessMCdocument.doc

    60/63

    8riend*ithvents8/ +sS%ste".*indo!s.8or"s.pen8ile/ialog

    8riend*ithvents$utton# +sS%ste".*indo!s.8or"s.$utton

    8riend*ithvents$utton2 +sS%ste".*indo!s.8or"s.$utton 8riend*ithvents$utton3 +sS%ste".*indo!s.8or"s.$utton

    8riend*ithventsLabel3 +sS%ste".*indo!s.8or"s.Label

    8riend*ithventsTe)t$o)3 +s S%ste".*indo!s.8or"s.Te)t$o) S%ste"./iagnostics./ebuggerStepThroughCD 5rivateSub'nitiali@e-o"ponentCD

    Me.Label# UNe!S%ste".*indo!s.8or"s.Label

    Me.Te)t$o)# UNe! S%ste".*indo!s.8or"s.Te)t$o) Me.8/ UNe!S%ste".*indo!s.8or"s.pen8ile/ialog

    Me.$utton# UNe!S%ste".*indo!s.8or"s.$utton

    Me.$utton2 UNe!S%ste".*indo!s.8or"s.$utton

    Me.$utton3 UNe!S%ste".*indo!s.8or"s.$utton Me.Label3 UNe!S%ste".*indo!s.8or"s.Label

    Me.Te)t$o)3 UNe! S%ste".*indo!s.8or"s.Te)t$o)

    Me.SuspendLa%outCD

    Label#

    Me.Label#.Location UNe!S%ste"./ra!ing.5ointC>& #

  • 8/9/2019 ProcessMCdocument.doc

    61/63

    $utton2

    Me.$utton2.Location UNe!S%ste"./ra!ing.5ointC#20& ##2D Me.$utton2.Na"e U R$utton2R

    Me.$utton2.Tab'nde) U ;

    Me.$utton2.Te)t U RG,unR

    $utton3

    Me.$utton3.Location UNe!S%ste"./ra!ing.5ointC200& ##2D

    Me.$utton3.Na"e U R$utton3R

    Me.$utton3.Tab'nde) U