Institute MS Spiral Doc

Embed Size (px)

Citation preview

  • 7/23/2019 Institute MS Spiral Doc

    1/111

    TILAK COLLEGE OF SCIENCE &COMMERCEVASHI,NAVI MUMBAI-400703

    PROJECT REPORT

    ON

    INSTITUTEManagement System

    SUBMITTED TO

    UNIVERSITY OF MUMBAI

    BY

    Vaibhav Baban Gho!a"#T$Y$B$S%$ &'OM(UTER S'IEN'E)

    2010-2011

    1

  • 7/23/2019 Institute MS Spiral Doc

    2/111

    AcknowledgementAcknowledgement

    I VAIBHAV B.GHORPADEstudent of Tilak College of Science &

    Commerce vashi, would like to express my sincere gratitude towards

    Computer Science Department.

    I would like to thank ect. Mrs.Triveni Kaufor their constant

    support during the pro!ect. ast "ut not least I thank all my colleagues

    for "eing with me throughout the pro!ect, which leads to a successful

    completion of my pro!ect. we are Thankful to our #ead of Department

    Pr!".Mrs B#ag#yas#ree Ku$arni.$or their guidance, the completion

    of this pro!ect would have "een di%cult task.

    e also express our sincere thanks to our principal Mrs.Hema

    %agannt#an ma&amand the management for providing us all the

    facilities for completion of our pro!ect work. ast "ut not the least we

    would like to or teaching sta' of our department and the la" assistant

    Mr.Ku&ee' sirwho directly or indirectly helped completion of our

    pro!ect.

    Yours faithfully,

    Vaibhav B.Ghorpade

    2

  • 7/23/2019 Institute MS Spiral Doc

    3/111

    *INDEX*

    Chapter

    N!" C!#te#t Pa$e N!"

    01

    Pre%'#ar( I#)et$at!#

    Organizational Overview

    Description of System

    Limitation of present system

    Proposed system and is adv.

    Feasibility Study

    Stae!olders

    "antt c!art

    02

    S(te' A#a%(

    Fact Finding #ec!ni$ues%&nter'iew(

    )uestionnaire(*ecord'iew(Observation+

    ,vent #able

    -se case Diagram use case Description

    ,*D

    /ctivity Diagram

    0lass Diagram Obect Diagram

    Se$uence Diagram0ollaboration Diagram

    0 S(te' De$#

    0onverting ,*D to #ables

    0omponent Diagram

    Pacage Diagram

    Deployment Diagram

    System flow c!art Structure c!art%Program level System

    level+

    0+ S(te' C!,#$

    3enu #ree

    4

  • 7/23/2019 Institute MS Spiral Doc

    4/111

    List of tables wit! attributes and constraints

    Program Description

    'alidations

    #est 0ases( #est Data and #est *esults

    Screen Layouts *eport Layouts

    Program Listing

    0 S(te' I'p%e'e#tat!#

    0. F/t/re E#ha#e'e#t

    0 Reere#e a#, 34%!$raph(

    5

  • 7/23/2019 Institute MS Spiral Doc

    5/111

    1.Preliminary Investigation

    6

  • 7/23/2019 Institute MS Spiral Doc

    6/111

    O*ani+aiona Ov#vi#.

    INSTITUTE MANAGEMENT

    A In/i# Mana*#1#nis a collection of sources, resources, and services, and

    the structure in which it is housed. Generally speaking, the institute aims at providing the

    necessary information and making them available to all the beneficiaries in the appropriate

    time as well as it seeks affording and organizing balanced sets of faculty and other

    information.The current working system in the Success omputer !nstitute" which is

    situated at the koparkhairane #avi $umbai, is totally based on manual system.This institute

    offers some computer courses like %ava,#etworking,&T',Tally,(isual Studio etc. !t has

    different batches for each computer courses. !t is tedious )ob to work on the system. !t ishard to maintain data or the information of each * every new record of the student details.

    Since it is totally based on paper work, so there is a chance of human error more in this case.

    And hence to maintain such huge amount of data of the student and course details a

    computerized system was needed.

    +hen we go for enuiry in the institute clerk writes down all the details of the

    student on the paper. Then if the student comes for enuiry the details of the students are

    taken for second time. After taking admission roll no is given to student and the batch is also

    allotted to the student.

    7

  • 7/23/2019 Institute MS Spiral Doc

    7/111

    D#/%i!ion o2 (#/#n S/#1

    The current working system in the S%%#// 'o1!# In/i#" is

    totally based on manual system. !t offers some computer courses ,duration of

    courses may be one month,two month and so on.!nstitute provide faculty for

    each course and also assign batch for each course,Students takes admission

    in the institute by filling a admission form * paying some amount of course

    fee.After taking admission management assign roll number to the

    students.student can pay remaining fee afterwords.

    !t is tedious )ob to work on the system. !t is hard to maintain data or

    the information of each * every new record of the student details. Since it is

    totally based on paper work, so there is a chance of human error more in this

    case.

    8

  • 7/23/2019 Institute MS Spiral Doc

    8/111

    i1iaion/ o2 (#/#n S/#1

    -. All the entrys of the transaction are hand written so there is risk of mistakes.

    /. !t is totally based on paper work, so there is a chance of human error more

    in this case.

    0. alculation in the manual system is difficult to task * it is time consuming

    1. $anual works a need more security in the present system the data cant be kept

    confidential that means it is not secured well.

    2. 'resent system maintains faculty ,student and other information on the register.

    3etrieving the particular record is difficult to keep in this present system.

    9

  • 7/23/2019 Institute MS Spiral Doc

    9/111

    (o!o/#" S/#1 5 I6/ A"vana*#/&ue to limitations of urrent system, a new system is to be introduced to overcome

    those limitations .The new system is satisfies the drawbacks of the urrent system. The

    urrent system is fully automated, and then user )ob is become very, less which increases

    the performance.

    A computer based management system is designed to handle all the primary

    !nformation reuired to calculate monthly statements. Separate database is $aintained to

    handle all the details reuired for the correct statement calculation and generation.

    This pro)ect intends to introduce more user friendliness in the various activities such as

    record updating, maintenance, and searching.The searching of record has been made

    uite simple as all the details of the Staffs, Students can be obtained by simply keying in

    the identification of those staffs, students.

    Similarly, record maintenance and updating can also be accomplished by using the

    identification of the Students and Staffs with all the details being automatically generated.

    These details are also being promptly automatically updated in the $aster files thus

    keeping the record absolutely up4to4date.

    The entire information has maintained in the database or 5iles and whoever wants to

    retrieve cant retrieve, only authorization user can retrieve the necessary !nformation

    which can be easily is accessible from the file.

    The main ob)ective of the entire activity is to automate the process of ollege

    $anagement like6

    Student 3egistration,,

    5aculty information,

    ourse information,

    5ee 'ayment !nformation,

    Generate various reports.

    :

  • 7/23/2019 Institute MS Spiral Doc

    10/111

    Th# a"vana*#/ o2 h# (o!o/#" //#1 ov# h# !#/#n //#1 a#

    -7 The proposed system an enhancement to all functionalities of the e8isting system.

    /7 The proposal system has better !9: capabilities of each the user skills while

    !nteracting with the system.

    07 The entrys of the records are easily stored.

    17 The transaction reports are easily generated.

    27 3ecords are easily search and retrieved

    ;7 Gives or prompts the information 9 messages to the end user if he making error during wor

    7:ur system improves the security level.

    1;

  • 7/23/2019 Institute MS Spiral Doc

    11/111

    F#a/ibii S"

    5easibility is a measure of how beneficial the development of information system would

    be to an organization.

    5easibility analysis is the activity by which the feasibility is measured. Too many pro)ect

    call for premature solutions and estimates. This approach often results in an over budget?

    There are three types of 5easibility study6

    8$9$8 T#%hni%a F#a/ibii

    M#anin*:an the work for the pro)ect be done with current euipment e8isting software

    technology and available personnel? !f new technology is needed, what is the likelihoodthat it can be developed?

    The Technical 5easibility always focuses on the e8isting computer hardware,

    software and personnel. This also includes the need for more hardware or software

    personnel and the possibility of procuring9installing such facility.

    The techniues issues usually raised during the feasibility stage of the

    investigation include these6

    -. &oes the necessary technology e8it to do what is suggested and can it be acuired?

    /. &oes the proposed euipment have the technical capacity to hold the data reuired to

    use the new system?

    0. +ill the proposed system provide adeuate responses to inuiries, regardless of the

    number or location of users?

    1. an the system be e8panded if developed?

    2. Are there technical guarantees of accuracy, reliability, ease of access, and data

    security?

    11

  • 7/23/2019 Institute MS Spiral Doc

    12/111

    8$9$: E%ono1i%a F#a/ibii

    M#anin* Are there sufficient benefits in creating the system to make the costs

    acceptable? :r Are the costs of not creating the system so great that it is advisable to

    undertake the pro)ect. This will include three ma)or costs as described below64

    ost of @ardware and Software ost of software to be acuired to build and run

    the product is a one4time cost. uying a back end database is the ma)or part of hardware

    and software cost. omparison between the :racle database high cost and better features

    with the SBC server low cost and better support for the same vendor operating system

    make this decision need oriented. enefits in reduced cost, error and Savings will be

    made by reduction of present system e8penses, time saving and increased accuracy.

    8$9$3 O!#aiona F#a/ibii

    M#anin*: The system will be used if it is developed well then be resistance from users

    that undermine the possible application benefits.

    !t considers the acceptability of the system. !t checks whether system will be used

    if it is developed and implemented are the users of the system able to handle the system

    whether the proposed system cause any trouble, etc.

    'roposed pro)ect are beneficial only if they can be turned into information system

    that will meet the organizations perating reuirements. Simply stated, this trust of

    feasibility asks if the system will work when it is developed and installed. Are there

    ma)or barriers to implementation* @ere are the uestions that will help test the

    operational feasibility of a pro)ect.

    12

  • 7/23/2019 Institute MS Spiral Doc

    13/111

    Sa;# Ho"#/

    A corporate stake holder is a party that can affect or be affected by the actions

    of the business as a whole

    T!#/ o2 Sa;# Ho"#/

    In#na /a;# ho"#

    !nternal stake holders4$arket Dor primary7Stake holders are those that are engaged in

    economic transactions with the business.

    E

  • 7/23/2019 Institute MS Spiral Doc

    14/111

    Gan 'ha

    Tas$ Name %un %u Aug

    Se'

    O(t

    N!v

    De( %an

    P%a###$ !r the (te' !rL4rar(

    Defining Problem

    Defining 0urrent System

    Developing 0urrent System

    S(te' A#a%(

    Fact Finding

    -se 0ase Diagram

    Obect Diagram/ctivity Diagram

    Se$uence0ollaborationDiagram

    S(te' De$#

    0onvert ,*D into #ables

    0omponent Diagram

    Pacage Diagram

    Deployment Diagram

    System Flow 0!art

    S(te' C!,#$

    3enu #ree

    Program*eport List

    List of #ables wit! /ttribute

    'alidation

    #est 0ases( #est Data #estLayout

    S(te' I'p%e'e#tat!#

    F/t/re E#ha#e'e#t

    Pr!5et Rep!rt S/4'!#

    15

  • 7/23/2019 Institute MS Spiral Doc

    15/111

    2. System Analysis

    16

  • 7/23/2019 Institute MS Spiral Doc

    16/111

    Fa% Fin"in* T#%hni=#/

    To study any system the analyst needs to do collect facts and all relevant information. the

    facts when e8pressed in uantitative form are termed as data. The success of any pro)ect

    is depended upon the accuracy of available data. Accurate information can be collected

    with help of certain methods techniues.

    These specific methods for finding information of the system are termed as fact finding

    techniues. !nterview, Buestionnaire, 3ecord (iew and :bservations are the different fact

    finding techniues used by the analyst. The analyst may use more than one techniue for

    investigation.

    !estionnaire

    !t is the techniue used to e8tract information from number of people. This method can

    be adopted and used only by an skillful analyst. The Buestionnaire consists of series of

    uestions framed together in logical manner. The uestions are simple, clear and to the

    point. This method is very useful for attaining information from people who are

    concerned with the usage of the system and who are living in different countries.

    ! developed the uestionnaires as follows6

    8$ @ow the system works or flows?

    :$ @ow do you keep a track of all transactions?

    3$ +hat parameters you takes into consideration while

    Admitting a member?

    4$+hat different types of records you need or you

    $aintain?

    According to these Buestionnaires the system study is performed and the system

    is developed.

    "ecord View

    The information related to the system is published in the sources like newspapers,

    magazines, )ournals, documents etc. This record review helps the analyst to get

    valuable information about the system and the organization.

    17

  • 7/23/2019 Institute MS Spiral Doc

    17/111

    Ev#n Tab#

    E6ENT TRIGGER SO7RCE ACTI6IT8 RESPONSE DESTINATION

    /dd Student Student

    details

    Student /dd Student

    details

    &nformation

    saved

    Student

    -pdate -pdate

    Student

    details

    Student update

    Student

    details

    &nformation

    updated

    Student

    /dd Faculty /dd Faculty

    detail

    Faculty /dd Faculty

    details

    &nformation

    saved

    Faculty

    -pdate

    Faculty

    -pdate

    Faculty

    details

    Faculty -pdate

    Faculty

    details

    &nformation

    updated

    Faculty

    /dmission

    Details

    /dd

    /dmission

    details

    /dmission /dd/dmission

    details

    &nformation

    saved

    /dmission

    Fee PaymentDetails

    -pdate FeePayment

    Details

    Fee Payment -pdate FeePaymentDetails

    &nformation-pdated

    Fee Payment

    /dmission

    *eport

    "enerate

    /dmission

    report

    /dmission Produce

    0!ec in

    report

    *eport

    generated

    /dmission

    Fee Payment

    *eport

    "enerate

    Fee Paymentreport

    Fee Payment Produce Fee

    Paymentreport

    *eport

    generated

    Fee Payment

    18

  • 7/23/2019 Institute MS Spiral Doc

    18/111

    U/# 'a/# Dia*a1,S%#naio/ 5 U/# 'a/# D#/%i!ion

    #se $ase %iagram

    The Use case diagram is used to identify the primary elements andprocesses that form the system. The primary elements are termed as

    "actors" and the processes are called "use cases." The Use case diagram

    shows which actors interact with each use case.

    A use case diagram captures the functional aspects of a system. $ore specifically, it

    captures the business processes carried out in the system. As you discuss the

    functionality and processes of the system, you discover significant characteristics of

    the system that you model in the use case diagram. &ue to the simplicity of use case

    diagrams, and more importantly, because they are shorn of all technical )argon, use

    case diagrams are a great storyboard tool for user meetings. Fse case diagrams haveanother important use. Fse case diagrams define the reuirements of the system being

    modeled and hence are used to write test scripts for the modeled system.

    #se $ase %iagram &or Instit!te 'anagement System

    Scenario

    #se $ase %escription

    A%o/An actor portrays any entity Dor entities7 that perform certain roles in a

    given system. The different roles the actor represents are the actual business roles

    of users in a given system. An actor in a use case diagram interacts with a use

    case.

    Figure 3.1: an actor in a use case diagram

    5ifure 0.- shows Two actors6"5aculty" and" Student" in the use case diagram

    of a institute system.

    U/# %a/#A use case in a use case diagram is a visual representation of a

    distinct business functionality in a system. The key term here is distinct

    business functionality. To choose a business process as a likely candidate for

    19

  • 7/23/2019 Institute MS Spiral Doc

    19/111

    modeling as a use case, you need to ensure that the business process is discrete

    in nature.

    Figure 3.2: use cases in a use case diagram

    5igure 0./ shows two uses cases6 take admission and fees payment in the

    use case diagram of a institute system.

    S/#1 bon"aA system boundary defines the scope of what a system will

    be. A system cannot have infinite functionality. So, it follows that use cases also

    need to have definitive limits defined. A system boundary of a use case diagram

    defines the limits of the system. The system boundary is shown as a rectanglespanning all the use cases in the system.

    Figure 3.3: a use case diagram depicting the system boundary of

    a class management application.

    5igure 0.0 shows the system boundary of the !nstitute application. The use

    cases of this system are enclosed in a rectangle. #ote that the actors in thesystem are outside the system boundary.

    "elationships in !se cases

    Fse cases share different kinds of relationships. A relationship between

    two use cases is basically a dependency between the two use cases.

    In%"#+hen a use case is depicted as using the functionality of another use

    case in a diagram, this relationship between the use cases is named as anincluderelationship.

    Figure 3.4: an example of an include relationship

    1:

  • 7/23/2019 Institute MS Spiral Doc

    20/111

    5or e8ample, in 5igure 0.1, you can see that the functionality defined by the

    (alidate student records use case is contained within the take faculty use

    case. @ence, whenever the issue faculty use case e8ecutes, the business steps

    defined in the (alidate student use case are also e8ecuted.

    E

  • 7/23/2019 Institute MS Spiral Doc

    21/111

    Eni R#aion/hi! Dia*a1&ERD)

    21

    take

  • 7/23/2019 Institute MS Spiral Doc

    22/111

    A%ivi Dia*a1

    Activity diagrams represent the business and operational workflows of a system.

    An Activity diagram is a dynamic diagram that shows the activity and the event

    that causes the ob)ect to be in the particular state.

    Fi*# 7$:>A%ivi "ia*a1 2o h# ?Mana*# S"#n in2o1aion?

    /# %a/#

    22

  • 7/23/2019 Institute MS Spiral Doc

    23/111

    'a// Dia*a1

    A class diagram is a pictorial representation of the detailed system design. &esign e8perts

    who understand the rules of modeling and designing systems design the systemHs class

    diagrams. A thing to student is that a class diagram is a static view of a system. The

    structure of a system is represented using class diagrams.

    24

    (

  • 7/23/2019 Institute MS Spiral Doc

    24/111

    25

  • 7/23/2019 Institute MS Spiral Doc

    25/111

    Ob@#% Dia*a1

    Although we design and define classes, in a live application classes are not directly used,

    but instances or ob)ects of these classes are used for e8ecuting the business logic. A

    pictorial representation of the relationships between these instantiated classes at any pointof time Dcalled ob)ects7 is called an Ob@#% "ia*a1. !t looks very similar to a class

    diagram, and uses the similar notations to denote relationships.

    F$/re "9the !45et ,a$ra' !r the Fa/%t(-St/,e#t %a

    ,a$ra'

    26

  • 7/23/2019 Institute MS Spiral Doc

    26/111

    S#=#n%# Dia*a1

    A seuence diagram is made up of ob)ects and messages. :b)ects are

    represented e8actly how they have been represented in all F$C diagramsI

    as rectangles with the underlined class name within the rectangle

    27

  • 7/23/2019 Institute MS Spiral Doc

    27/111

    (. System %esign

    28

  • 7/23/2019 Institute MS Spiral Doc

    28/111

    'onv#in* ERD To Tab#

    29

    )ender

  • 7/23/2019 Institute MS Spiral Doc

    29/111

    'o1!on#n Dia*a1

    The different high4level reusable parts of a system are represented in a omponentdiagram. A component is one such constituent part of a system. !n addition to

    representing the high4level parts, the omponent diagram also captures the inter4

    relationships between these parts.

    2:

  • 7/23/2019 Institute MS Spiral Doc

    30/111

    (a%;a*# Dia*a1

    A package provides the ability to group together classes and9or interfaces

    that are either similar in nature or related. Grouping these design elements in

    a package element provides for better readability of class diagrams,especially comple8 class diagrams.

    4;

  • 7/23/2019 Institute MS Spiral Doc

    31/111

    C%e#t: 3r!;er

    A,'#trat!r

  • 7/23/2019 Institute MS Spiral Doc

    32/111

    S/#1 Fo. 'ha

    42

    )ee Payment Re'!rt

  • 7/23/2019 Institute MS Spiral Doc

    33/111

    S%#" 'ha

    44

  • 7/23/2019 Institute MS Spiral Doc

    34/111

    ). System $oding

    45

  • 7/23/2019 Institute MS Spiral Doc

    35/111

    M#n T##

    46

    *"out+.

  • 7/23/2019 Institute MS Spiral Doc

    36/111

    i/ O2 Tab#/ ih Aib#/ An" 'on/ain/

    Fa/%t(5aculty!& numericD-7 as primary Jey identity specification yes5aculty#amevarcharD2>7

    5acultyAddress varcharDma87

    5acultyGender varcharD2>7

    5'hone#umber varcharD2>7

    5acultyity varcharD2>7

    3athatch!& numericD-7 as primary Jey identity specification yes

    atch#ame varcharD2>7ourse!& numericD-7 as foreign key to course

    C!/recourse!& numericD-7 as primary Jey identity specification yes

    course#ame as varcharD2>7

    &uration varcharD2>7

    ourse5ee numericD-7

    5aculty!& numericD-7 as foreign key to faculty

    Pa('e#tDeta%'ayment!& numericD-7 as primary Jey identity specification yes

    Studentid numericD-7 foreign key to Student

    Total numericD-7 as primary Jey identity specification yespassword varcharD2>7

    47

  • 7/23/2019 Institute MS Spiral Doc

    37/111

    A$#3ath!& numericD-7 as primary Jey identity specification yes

    Studentid numericD-7 foreign key to Student

    atch!& numericD-7 foreign key to atch

    ourse!& numericD-7 foreign key to course

    assigndate datetime

    St/,e#tStudent!& numericD-7 as primary Jey identity specification yes

    Student#ame varcharD2>7

    &: datetime

    Gender varcharD2>7'hone#umber varcharD2>7

    Address varcharD2>7

    ourse!& numericD-7 foreign key to ourse

    State varcharD2>7

    ountry varcharD2>7

    #ationality varcharD2>7

    status varcharD2>7

    A,'!#heck!n!d numericD-7 as primary Jey identity specification yes

    Student!& numericD-7 foreign key to Student

    atch!& numericD-7 foreign key to atch

    'repaid numericD-

  • 7/23/2019 Institute MS Spiral Doc

    38/111

    (o*a1 D#/%i!ion

    Administrator

    Administrator is must be an authorized user. @e can further change the password. The

    main aim of the entire activity is to automate the process of !nstitute $anagement System

    that includes Admission !nformation, Add 5aculty,Add 5aculty,Student 3ecord, $aintain

    5ee payment, Generating Admission and 'ayment 3eport etc.

    The limited time and resources have restricted us to incorporate, in this pro)ect, only main

    activities that are performed in a !nstitute $anagement System, but utmost care has been

    taken to make the system efficient and user friendly. !nstitute $anagement System has

    been designed to computerize the following functions that are performed by the system6

    K-L$aintain Admission !nformation

    KaLAdd Student !nformation

    KbLAssigns Student!& To Student

    K/L$aintain 'ayment !nformation

    KaLAdd 'ayment !nformation

    KbLFpdate 'ayment !nformation

    K0L$aintain 5aculty !nformation

    KaLAdd 5aculty !nformation

    KbLFpdate 5aculty !nformation

    49

  • 7/23/2019 Institute MS Spiral Doc

    39/111

    KcLAssigns ourse

    K0L$aintain ourse !nformation

    KaLAdd ourse !nformation

    KbLFpdate 5aculty !nformation

    K0LGenerate 3eport

    KaLAdmission 3eport

    KbL5ee 'ayment 3eport

    4:

  • 7/23/2019 Institute MS Spiral Doc

    40/111

    Vai"aion/

    -.check whether the Administrator of !nstitute has entered valid values for

    username and password.

    /.check the Admission details are perfect.

    0.check during Admission for 'ayment.

    1.check whether the te8tbo8es are properly filled

    2.check whether any unauthorized person is trying to access.

    M.check whether 'repaid amount not gretter than total fee of a course.

    ;.check details are clearly provided before submitting .

    5;

  • 7/23/2019 Institute MS Spiral Doc

    41/111

    T#/ 'a/#/, T#/ Daa an" T#/ R#//

    F!r' 6a%, Data I# 6a%, Data

    /ddStudent

    /ll Field are0ompulsory

    ,mpty Fields( alp!abets in 0ontact

  • 7/23/2019 Institute MS Spiral Doc

    42/111

    S%##n ao/ 5 R#!o/ ao/

    S'as# S(reen

    *!gin )!rm

    The login screen allows the security interface for the user interacting with

    the system. Every time a user logs into the system he has the appropriate

    rights to work with the system with some modules.

    52

  • 7/23/2019 Institute MS Spiral Doc

    43/111

    Main )!rm

    A&missi!n )!rm

    Add Admission details of a students and assigns Student !& to them.

    54

  • 7/23/2019 Institute MS Spiral Doc

    44/111

    Stu&ent In"!rmati!n

    This forms search,delete,update student details.

    )ees Payment

    This form pays students fees.

    55

  • 7/23/2019 Institute MS Spiral Doc

    45/111

    )a(uty In"!rmati!n

    This form add,update,delete and search 5aculty details.

    +!urse In"!rmati!n

    56

  • 7/23/2019 Institute MS Spiral Doc

    46/111

    This form add,update,delete course details.

    User

    User Dia!g

    U'&ate User

    57

  • 7/23/2019 Institute MS Spiral Doc

    47/111

    58

  • 7/23/2019 Institute MS Spiral Doc

    48/111

    U'&ate )ee Payment

    A&missi!n Re'!rt )!rm

    59

  • 7/23/2019 Institute MS Spiral Doc

    49/111

    )ees Payment Re'!rt )!rm

    A&missi!n Re'!rt

    5:

  • 7/23/2019 Institute MS Spiral Doc

    50/111

    )ees Payment Re'!rt

    A,!ut Us

    6;

  • 7/23/2019 Institute MS Spiral Doc

    51/111

    61

  • 7/23/2019 Institute MS Spiral Doc

    52/111

    (o*a1 i/

    Form

  • 7/23/2019 Institute MS Spiral Doc

    53/111

    *. $oding

    64

  • 7/23/2019 Institute MS Spiral Doc

    54/111

    Utiity+ass.v,

    ImportsSystem.Data.SqlClientImportsSystem.Configuration

    'This Class creates getID & isExist shared function for generating id'sfor required formsPulicClass!tilityClass PulicShared"unctiongetID#$y%altale sString $y%alcol sString( sInteger Try Dimo)con sSqlConnection * +e,SqlConnection#Configuration-anager.ConnectionStrings#Class(.ConnectionString(

    o)con./pen#( Dimo)cmd sSqlCommand * +e,SqlCommand#select max#0col 0 ( from 0 tale 0 o)con( Dimo)rdr sSqlData1eader * o)cmd.Execute1eader Dimid sInt23 Ifo)rdr.1ead Then If+otIsD$+ull#o)rdr.4et%alue#5(( Then id * o)rdr.4et%alue#5( id * id 0 6 Else id * 6 EndIf Else id * 6 EndIf 1eturnid Catchex sException

    -sg$ox#ex.-essage( EndTry

    End"unction PulicShared"unctionisExist#$y%altale sString $y%alcol sString $y%al7al sInteger( sInteger Try Dimo)con sSqlConnection * +e,SqlConnection#Configuration-anager.ConnectionStrings#Class(.ConnectionString( o)con./pen#( Dimo)cmd sSqlCommand * +e,SqlCommand#select count#8(from 0 tale 0 ,here & col & *& 7al o)con(

    Dimo)rdr sSqlData1eader * o)cmd.Execute1eader Dimid sInt23 Ifo)rdr.1ead Then If+otIsD$+ull#o)rdr.4et%alue#5(( Then id * o)rdr.4et%alue#5( Else id * 5 EndIf Else

    65

  • 7/23/2019 Institute MS Spiral Doc

    55/111

    id * 5 EndIf 1eturnid Catchex sException -sg$ox#ex.-essage( EndTry

    End"unction

    66

  • 7/23/2019 Institute MS Spiral Doc

    56/111

    EndClassStu&ent +ass.v,

    PulicClassStudentClass Pulicid sInteger Pulicname sString Pulicgender sString

    Pulicaddress sString Puliccity sString Puliccountry sString Pulicchec9indate sDate Pulicchec9outdate sDate Pulicduration sString Puliccname sString Puliccid sInteger Pulicprepaid sDoule Pulicfees sDoule Pulicremaining sDoule Pulic/7errides"unctionToString#( sString 1eturnname End"unctionEndClass

    67

  • 7/23/2019 Institute MS Spiral Doc

    57/111

    S'as# .v,

    PulicClassSplash Dim: s$yte Pri7ateSuSplash;

  • 7/23/2019 Institute MS Spiral Doc

    58/111

    )rm*!gin .v,

    ImportsSystem.ConfigurationImportsSystem.Security.CryptographyImportsSystem.TextImportsSystem.Data.SqlClient

    PulicClass"rm

  • 7/23/2019 Institute MS Spiral Doc

    59/111

    tn

  • 7/23/2019 Institute MS Spiral Doc

    60/111

    )rmMain .v,

    PulicClass"rm-ain Pri7ateSu-ain;"ormClosed#$y%alsender s/)ect $y%ale sSystem.Aindo,s."orms."ormClosedE7entrgs( =andles-e."ormClosed "rm

  • 7/23/2019 Institute MS Spiral Doc

    61/111

    Pri7ateSuExitToolStrip-enuItem6;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs( =andlesExitToolStrip-enuItem.Clic9 Dim-ess sString -ess * -sg$ox#Do you ,ant to ExitB -sg$oxStyle.Information 0-sg$oxStyle./9Cancel Institute -anagement System( If-ess * 7/ Then End EndIf EndSu Pri7ateSuClosell#( "orEachfrm s"orm In-e.-diChildren frm.Close#( +ext EndSu Pri7ateSuStudentToolStrip-enuItem;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs( =andlesStudentToolStrip-enuItem.Clic9 Closell#( Dimo) sfrmStudentInfo * +e,frmStudentInfo

    o).StartPosition * "ormStartPosition.CenterScreen o).-diParent * -e o).Sho,#( EndSu

    Pri7ateSuCourseInfoToolStrip-enuItem;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs( =andlesCourseInfoToolStrip-enuItem.Clic9 Closell#( Dimo) sfrmCourseInfo * +e,frmCourseInfo o).StartPosition * "ormStartPosition.CenterScreen o).-diParent * -e o).Sho,#( EndSu

    Pri7ateSudmissionToolStrip$utton6;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs( =andlesdmissionToolStrip$utton6.Clic9 Closell#( Dimo) sfrmdmission * +e,frmdmission o).-diParent * -e o).StartPosition * "ormStartPosition.CenterScreen o).Sho,#( EndSu

    Pri7ateSuStudentInfoToolStrip$utton3;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs( =andles

    StudentInfoToolStrip$utton3.Clic9 Closell#( Dimo) sfrmStudentInfo * +e,frmStudentInfo o).StartPosition * "ormStartPosition.CenterScreen o).-diParent * -e o).Sho,#( EndSu

    71

  • 7/23/2019 Institute MS Spiral Doc

    62/111

    Pri7ateSu"eesPaymentToolStrip-enuItem;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs( =andles"eesPaymentToolStrip-enuItem.Clic9 Closell#( Dimo) sfrm"eesPayment * +e,frm"eesPayment o).StartPosition * "ormStartPosition.CenterScreen o).-diParent * -e o).Sho,#( EndSu

    Pri7ateSuSearchToolStrip$utton>;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs( Closell#( Dimo) sSearchStudentDialog * +e,SearchStudentDialog o).StartPosition * "ormStartPosition.CenterScreen o).-diParent * -e o).Sho,#( EndSu

    Pri7ateSuSet!p!serToolStrip-enuItem;Clic9#$y%alsender s

    System./)ect $y%ale sSystem.E7entrgs( =andlesSet!p!serToolStrip-enuItem.Clic9 Closell#( Dimo) s!ser"orm * +e,!ser"orm o).StartPosition * "ormStartPosition.CenterScreen o).-diParent * -e o).Sho,#( EndSu

    Pri7ateSuChange!serPass,ordToolStrip-enuItem;Clic9#$y%alsendersSystem./)ect $y%ale sSystem.E7entrgs( =andlesChange!serPass,ordToolStrip-enuItem.Clic9 Closell#( Dimo) s!sersDialog * +e,!sersDialog o).StartPosition * "ormStartPosition.CenterScreen o).-diParent * -e o).Sho,#( EndSu

    Pri7ateSu"eesPaymentToolStrip$utton2;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs( =andles"eesPaymentToolStrip$utton2.Clic9 Closell#( Dimo) sfrm"eesPayment * +e,frm"eesPayment o).StartPosition * "ormStartPosition.CenterScreen o).-diParent * -e o).Sho,#(

    EndSu

    Pri7ateSu"eesPayment1ptToolStrip-enuItem6;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs( =andles"eesPayment1ptToolStrip-enuItem6.Clic9 Closell#( Dimo) sfrpt"eesPayment * +e,frpt"eesPayment o).StartPosition * "ormStartPosition.CenterScreen o).-diParent * -e

    72

  • 7/23/2019 Institute MS Spiral Doc

    63/111

    o).Sho,#( EndSu

    Pri7ateSudmission1ptToolStrip-enuItem6;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs( =andlesdmission1ptToolStrip-enuItem6.Clic9 Closell#( Dimo) sf1ptdmission * +e,f1ptdmission o).StartPosition * "ormStartPosition.CenterScreen o).-diParent * -e o).Sho,#( EndSu

    Pri7ateSuout!sToolStrip-enuItem;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs( =andlesout!sToolStrip-enuItem.Clic9

    EndSu

    Pri7ateSuChec9InToolStrip

  • 7/23/2019 Institute MS Spiral Doc

    64/111

    EndSu

    Pri7ateSuout!sToolStrip-enuItem;-ouse=o7er#$y%alsender s/)ect $y%ale sSystem.E7entrgs( =andlesout!sToolStrip-enuItem.-ouse=o7er ToolStripStatus

  • 7/23/2019 Institute MS Spiral Doc

    65/111

    Pri7ateSuExitToolStrip-enuItem;-ouse

  • 7/23/2019 Institute MS Spiral Doc

    66/111

    Pri7ateSuCourseInfoToolStrip-enuItem;-ouse=o7er#$y%alsender s/)ect $y%ale sSystem.E7entrgs( =andlesCourseInfoToolStrip-enuItem.-ouse=o7er ToolStripStatus

  • 7/23/2019 Institute MS Spiral Doc

    67/111

    "rmA&missi!n .v,

    ImportsSystem.Data.SqlClientImportsSystem.Configuration

    PulicClassfrmdmission

    Dimconstr sString Pri7ateSutnSStudent;Clic9#$y%alsender sSystem./)ect $y%alesSystem.E7entrgs( EndSu

    Pri7ateSufrmdmission;

  • 7/23/2019 Institute MS Spiral Doc

    68/111

    EndIf Iftxtddress.Text

  • 7/23/2019 Institute MS Spiral Doc

    69/111

    Pri7ateSutn!pdate;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs( =andlestn!pdate.Clic9 If7alidate"ields#( Then Dimo)con sSqlConnection * +othing Dimo)cmd sSqlCommand * +othing Dimo)cmd3 sSqlCommand * +othing Dimo)cmd2 sSqlCommand * +othing Dimo)cmdH sSqlCommand * +othing

    Try

    o)con * +e,SqlConnection#constr( o)con./pen#( o)cmd * +e,SqlCommand#insert intoStudent#Student+ame4enderD/$ddressCityStateCountry+ationalityPhone+umerCourseIDstatus(7alues#'& Student+ameText$ox.Text.Trim &''& Como$ox6.SelectedItem.ToString & ''& DateTimePic9er3.%alue& ''& txtddress.Text.Trim & ''& txtCity.Text.Trim & ''&StateText$ox.Text.Trim & ''& txtCountry.Text.Trim & ''&Text$ox3.Text.Trim & ''& txtContact+o.Text.Trim & '&

    CType#co1Type.SelectedItem Course(.cID & 'acti7e'( o)con( Dimi sInteger* o)cmd.Execute+onFuery Dimid sInteger* %al#txtstuID.Text.Trim( ' -sg$ox#id( o)cmd3 * +e,SqlCommand#insert intodmission#Chec9InIDdmissiondatestudentidatchidprepaid(7alues# &txtstuID.Text & '& CDate#txtdmissionDate.Text( & '& id & &CType#$atchComo$ox.SelectedItem $atch(.id & &%al#txtPrepaid.Text.Trim( & ( o)con( o)cmd3.Execute+onFuery#( o)cmd2 * +e,SqlCommand#insert intossignatch#StudentID$atchIDCourseIDssignedDate(7alues#& id & & CType#$atchComo$ox.SelectedItem $atch(.id & &

    CType#co1Type.SelectedItem Course(.cID & '& Date.+o, & '(o)con( o)cmd2.Execute+onFuery#( o)cmdH * +e,SqlCommand#insert intopaymentDetails#TotalPaid$alanceStudentID(7alues#&%al#txtTotal.Text.Trim( & & %al#txtPrepaid.Text.Trim( & &%al#txt1emain.Text.Trim( & & id & ( o)con( o)cmdH.Execute+onFuery#( o)cmd.Dispose#( o)cmd3.Dispose#( o)cmd2.Dispose#( o)cmdH.Dispose#( 'transaction.Commit#( -essage$ox.Sho,#Student added Successfully

    Institute -anagament System( o)con.Close#( -e.Close#( Catchex sException 'transaction.1ollac9#( -sg$ox#ex.-essage( EndTry EndIf

    7:

  • 7/23/2019 Institute MS Spiral Doc

    70/111

    EndSu

    Pri7ateSutnClose;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs( =andlestnClose.Clic9 -e.Close#( EndSu

    Pri7ateSuco1Type;SelectedIndexChanged#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs( =andlesco1Type.SelectedIndexChanged $atchComo$ox.Items.Clear#(

    If+otco1Type.SelectedIndex * 5 Then txtmount.Text * CType#co1Type.SelectedItem Course(.fee txtTotal.Text * CType#co1Type.SelectedItem Course(.fee get$atches#CType#co1Type.SelectedItem Course(.cID( txtDuration.Text * CType#co1Type.SelectedItemCourse(.duration EndIf EndSu

    Pri7ateSuget$atches#$y%alcourseID sInteger( Dimo)con sSqlConnection * +othing Dimo)cmd sSqlCommand * +othing Dimo)rdr sSqlData1eader * +othing $atchComo$ox.Items.dd#Select $atch( Try o)con * +e,SqlConnection#constr( o)con./pen#( o)cmd * +e,SqlCommand#select 8 from atch ,herecourseID*& courseID o)con( o)rdr * o)cmd.Execute1eader Ahileo)rdr.1ead Dimo) s$atch * +e,$atch o).id * o)rdr#5( o).atchname * o)rdr#6( $atchComo$ox.Items.dd#o)( EndAhile o)rdr.Close#( o)cmd.Dispose#( o)con.Close#( Catchex sException -sg$ox#ex.-essage( EndTry $atchComo$ox.SelectedIndex * 5 EndSu

    Pri7ateSutxtPrepaid;

  • 7/23/2019 Institute MS Spiral Doc

    71/111

    EndIf If%al#txt1emain.Text J 5( Then -sg$ox#prepaid amount should not e greater than totalamount( txtPrepaid."ocus#( EndIf EndIf EndSuEndClassClassCourse PuliccID sInteger Pulicc+ame sString Pulicfee sDoule Pulicduration sString Pulic/7errides"unctionToString#( sString 1eturnc+ame End"unctionEndClassClass$atch

    Pulicid sInteger Pulicatchname sString Pulic/7errides"unctionToString#( sString 1eturnid End"unctionEndClass

    81

  • 7/23/2019 Institute MS Spiral Doc

    72/111

    "rm)eesPayment .v,

    ImportsSystem.Data.SqlClientImportsSystem.ConfigurationPulicClassfrm"eesPayment Dimconstr sString

    Dimo) sStudentClass Pri7ateSutnChec9/ut;Clic9#$y%alsender sSystem./)ect $y%alesSystem.E7entrgs( =andlestnChec9/ut.Clic9 If%alidateChec9out#( Then Dimo)con sSqlConnection * +othing Dimo)cmd sSqlCommand * +othing Dimo)cmd3 sSqlCommand * +othing Dimtransaction sSqlTransaction * +othing Try o)con * +e,SqlConnection#constr( o)con./pen#( transaction * o)con.$eginTransaction o)cmd * +e,SqlCommand#insert into"eesPayment#PIDdmissionDatePaymentdateStudentIDtotalDuration(7alues#& %al#Text$ox2.Text.Trim( & '& CDate#txtdmissionDate.Text( &''& CDate#txtPaymentDate.Text(.ToString & '& txtStuID.Text.Trim& & txtTotal.Text.Trim & '& txtDuration.Text.Trim & '(o)con transaction( Dimi sInteger* o)cmd.Execute+onFuery o)cmd3 * +e,SqlCommand#update student setstatus*'inacti7e' ,here studentid*& %al#txtStuID.Text.Trim( o)contransaction( Dim) sInteger* o)cmd3.Execute+onFuery transaction.Commit#( Ifi ? 5 nd) ? 5 Then -essage$ox.Sho,#Student Paid "ull mountInstitute -anagement System(

    o)cmd.Dispose#( o)con.Close#( -e.Close#( EndIf Catchex sException -sg$ox#ex.-essage( EndTry Else If-sg$ox#Kou ha7en't paid full amount can't chec9 you outDo you ,ant to update student PaymentB -sg$oxStyle.Kes+o Institute-angaement System( * -sg$ox1esult.Kes Then Dimo) sfrm!padate"eePayment * +e,frm!padate"eePayment

    o).StartPosition * "ormStartPosition.CenterScreen o).-diParent * -e.-diParent o).Sho,#( -e.=ide#( EndIf EndIfEndSu Pri7ate"unction%alidateChec9out#( s$oolean If%al#txt1emain.Text.Trim( J* 5 Then

    82

  • 7/23/2019 Institute MS Spiral Doc

    73/111

    1eturnTrue Else 1eturn"alse EndIf End"unction Pri7ateSutnSearch;Clic9#$y%alsender sSystem./)ect $y%alesSystem.E7entrgs( =andlestnSearch.Clic9 Dimo) sSearchStudentDialog * +e,SearchStudentDialog#-e( o).StartPosition * "ormStartPosition.CenterScreen o).-diParent * -e.-diParent o).Sho,#( tnChec9/ut.Enaled * True EndSu Pri7ateSuclosell#( "orEachfrm s"orm In-e.-diParent.-diChildren frm.Close#( +ext EndSu PulicSuset7alues#$y%alo) sStudentClass( txtStuID.Text * o).id

    txtStu+ame.Text * o).name txtddress.Text * o).address txtmount.Text * o).fees txtdmissionDate.Text * o).chec9indate txtCity.Text * o).city txtCountry.Text * o).country txtDuration.Text * o).duration txt4ender.Text * o).gender txtPrepaid.Text * o).prepaid txt1emain.Text * o).remaining txtTotal.Text * o).fees Text$ox6.Text * o).prepaid Text$ox3.Text * #%al#o).fees( %al#o).prepaid(( C+ameText$ox.Text * o).cname CIDText$ox.Text * o).cid

    EndSu

    Pri7ateSutnClose;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs( =andlestnClose.Clic9 -e.Close#( EndSu

    Pri7ateSufrm"eesPayment;

  • 7/23/2019 Institute MS Spiral Doc

    74/111

    "rm+!urseIn"! .v,

    ImportsSystem.ConfigurationImportsSystem.Data.SqlClientPulicClassfrmCourseInfo Dimconstr sString

    Pri7ateSutnDelete;Clic9#$y%alsender sSystem./)ect $y%alesSystem.E7entrgs( =andlestnDelete.Clic9 If7alidate"ields#( Then Dimo)con sSqlConnection * +othing Dimo)cmd sSqlCommand * +othing Dimtransaction sSqlTransaction * +othing Try o)con * +e,SqlConnection#constr( o)con./pen#( transaction * o)con.$eginTransaction o)cmd * +e,SqlCommand#delete from Course ,herecourseID*& %al#txtCourseID.Text.Trim( o)con transaction( o)cmd.Execute+onFuery#( o)cmd.Dispose#( transaction.Commit#( o)con.Close#( -essage$ox.Sho,#Course deleted SuccessfullyInstitute -anagament System(

  • 7/23/2019 Institute MS Spiral Doc

    75/111

    Pri7ateSu

  • 7/23/2019 Institute MS Spiral Doc

    76/111

    Pri7ateSuData4rid%ie,6;CellClic9#$y%alsender sSystem./)ect$y%ale sSystem.Aindo,s."orms.Data4rid%ie,CellE7entrgs( =andlesData4rid%ie,6.CellClic9 Dimro, sInteger* Data4rid%ie,6.Current1o,.Index txtCourseID.Text * %al#Data4rid%ie,6.Item#5ro,(.%alue.ToString( txtCourse+ame.Text * Data4rid%ie,6.Item#6 ro,(.%alue.ToString txt"ees.Text * Data4rid%ie,6.Item#3 ro,(.%alue.ToString txtDuration.Text * Data4rid%ie,6.Item#H ro,(.%alue.ToString EndSu

    Pri7ateSutnSa7e;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs( =andlestnSa7e.Clic9 If7alidate"ields#( Then Dimo)con sSqlConnection * +othing Dimo)cmd sSqlCommand * +othing Dimtransaction sSqlTransaction * +othing Try

    If!tilityClass.isExist#Course CourseID

    %al#txtCourseID.Text.Trim(( * 5 Then o)con * +e,SqlConnection#constr( o)con./pen#( transaction * o)con.$eginTransaction o)cmd * +e,SqlCommand#insert intoCourse#Course+ameCoursefeeDuration(7alues#'& txtCourse+ame.Text.Trim& '& %al#txt"ees.Text.Trim( & '& txtDuration.Text.Trim & '(o)con transaction( o)cmd.Execute+onFuery#( o)cmd.Dispose#( transaction.Commit#( o)con.Close#( -essage$ox.Sho,#Course added SuccessfullyInstitute -anagament System(

  • 7/23/2019 Institute MS Spiral Doc

    77/111

    Pri7ateSu$utton6;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs( =andles$utton6.Clic9 If7alidate"ields#( Then Dimo)con sSqlConnection * +othing Dimo)cmd sSqlCommand * +othing Dimtransaction sSqlTransaction * +othing Try

    If!tilityClass.isExist#Course CourseID%al#txtCourseID.Text.Trim(( * 5 Then -sg$ox#"irst Create Course to !pdate( Else

    o)con * +e,SqlConnection#constr( o)con./pen#( transaction * o)con.$eginTransaction o)cmd * +e,SqlCommand#update Course setCourse+ame*'& txtCourse+ame.Text.Trim & 'Coursefee*&%al#txt"ees.Text.Trim( & Duration*'& txtDuration.Text.Trim & ',here courseID*& %al#txtCourseID.Text.Trim( o)con transaction(

    o)cmd.Execute+onFuery#( o)cmd.Dispose#( transaction.Commit#( o)con.Close#( -essage$ox.Sho,#Course updated SuccessfullyInstitute -anagament System(

  • 7/23/2019 Institute MS Spiral Doc

    78/111

    "rm)a(utyIn"! .v,

    ImportsSystem.Data.SqlClientImportsSystem.ConfigurationPulicClass"acultyInfo Dimconstr sString

    Pri7ateSu

  • 7/23/2019 Institute MS Spiral Doc

    79/111

    EndSu

    Pri7ateSu"acultyInfo;

  • 7/23/2019 Institute MS Spiral Doc

    80/111

    txt"Phone+o.Text * %al#Data4rid%ie,6.Item#Lro,(.%alue.ToString( "orEachstr sStringInCom"4ender.Items Ifstr * gender Then Com"4ender.SelectedItem * str EndIf +ext Dimi sInteger "ori * 6 ToCom"Course.Items.Count 6 IfCType#Com"Course.Items#i( Course(.cID * cid Then Com"Course.SelectedItem * Com"Course.Items#i( EndIf +ext EndSu Pri7ate"unction7alidate"ields#( s$oolean Iftxt"aculty+ame.Text.

  • 7/23/2019 Institute MS Spiral Doc

    81/111

    r(7alues#'& txt"aculty+ame.Text.Trim & ''& txt"ddress.Text.Trim &''& Com"4ender.SelectedItem.ToString & ''& txt"City.Text.Trim &''& txt"Phone+o.Text.Trim & '( o)con transaction( o)cmd.Execute+onFuery#( o)cmd.Dispose#( transaction.Commit#( o)con.Close#( -essage$ox.Sho,#"aculty added SuccessfullyInstitute -anagement System(

  • 7/23/2019 Institute MS Spiral Doc

    82/111

    Dimo)con sSqlConnection * +othing Dimo)cmd sSqlCommand * +othing Dimo)cmd3 sSqlCommand * +othing Dimtransaction sSqlTransaction * +othing Try o)con * +e,SqlConnection#constr( o)con./pen#( transaction * o)con.$eginTransaction o)cmd * +e,SqlCommand#delete from "aculty ,here"acultyID*& %al#txt"acultyID.Text.Trim( o)con transaction( Dimi sInteger* o)cmd.Execute+onFuery o)cmd.Dispose#( transaction.Commit#( -essage$ox.Sho,#"aculty Deleted SuccessfullyInstitute -anagement System( o)con.Close#(

  • 7/23/2019 Institute MS Spiral Doc

    83/111

    IfIs+umeric#Criteria%alue( Then

    query * query & con7ert#7archar#655(&Criteriaey.SelectedItem.ToString & (*'& Criteria%alue.Text.Trim &' Else query * query & f.& Criteriaey.SelectedItem.ToString& li9e '0 Criteria%alue.Text.Trim 0 M' EndIf Dimo)da sSqlDatadapter * +e,SqlDatadapter#queryo)con( Dimtale s+e,DataTale

    Ifo)da."ill#tale( Then Data4rid%ie,6.DataSource * tale Criteria%alue.Clear#( Panel6.Enaled * "alse Else -essage$ox.Sho,#1ecord Aas +ot "ound Institute

    -anagement System( EndIfCatchex sException Try o)cmd.Dispose#( Catchexc6 sException

    EndTry Try o)con.Close#( Catchexc sException

    EndTry -sg$ox#ex.-essage( EndTry EndSu

    Pri7ateSutnClose;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs(

    EndSu

    EndClass

    94

  • 7/23/2019 Institute MS Spiral Doc

    84/111

    "rmU'&ateStu&ent)ee .v,

    ImportsSystem.ConfigurationImportsSystem.Data.SqlClientPulicClassfrm!padate"eePayment PulicSu!pdateStudent"ee#(

    Dimconstr sString*Configuration-anager.ConnectionStrings#Class(.ConnectionString

    If7alidate"ields#( Then Dimo)con sSqlConnection * +othing Dimo)cmd sSqlCommand * +othing Dimtransaction sSqlTransaction * +othing Dimalance sDoule* %al#txt1emain.Text.Trim( #PayingText$ox.Text.Trim( Dimpaid sDoule* %al#txtPrepaid.Text.Trim( 0%al#PayingText$ox.Text.Trim( Try o)con * +e,SqlConnection#constr( o)con./pen#( transaction * o)con.$eginTransaction o)cmd * +e,SqlCommand#update paymentDetails setPaid*& paid & $alance*& alance & ,here StudentID*&%al#StudentIDText$ox.Text.Trim( & o)con transaction( Dimi sInteger* o)cmd.Execute+onFuery o)cmd.Dispose#( Ifi ? 5 Then -essage$ox.Sho,#Student's payment details !pdatedSuccessfully Institute -anagement System( -e.Close#( EndIf transaction.Commit#( o)con.Close#(

    Catchex sException transaction.1ollac9#( -sg$ox#ex.-essage( EndTry EndIf EndSu Pri7ateSugetStudent#( Dimconstr sString*Configuration-anager.ConnectionStrings#Class(.ConnectionString Dimo)con sSqlConnection * +othing Dimo)cmd sSqlCommand * +othing StudentComo$ox.Items.dd#Select Student( Try

    o)con * +e,SqlConnection#constr( o)con./pen#( o)cmd * +e,SqlCommand#SE

  • 7/23/2019 Institute MS Spiral Doc

    85/111

    Dimo) sStudentClass * +e,StudentClass o).id * o)rdr#5( o).name * o)rdr#6( o).fees * o)rdr#3( o).prepaid * o)rdr#2( o).remaining * o)rdr#H( StudentComo$ox.Items.dd#o)( EndAhile o)cmd.Dispose#( o)con.Close#( Catchex sException

    -sg$ox#ex.-essage(

    EndTry

    StudentComo$ox.SelectedIndex * 5 EndSu Pri7ate"unction7alidate"ields#( s$oolean IfStudentComo$ox.SelectedIndex * 5 Then

    -sg$ox#Please Select student.( 1eturn"alse EndIf IfPayingText$ox.Text.Trim.

  • 7/23/2019 Institute MS Spiral Doc

    86/111

    Pri7ateSu!pdate"eePayment;

  • 7/23/2019 Institute MS Spiral Doc

    87/111

    "rmStu&entIn"! .v,

    ImportsSystem.Data./leDImportsSystem.ConfigurationImportsSystem.Data.SqlClientPulicClassfrmStudentInfo

    Dimconstr sString Pri7ateSufrmStudentInfo;

  • 7/23/2019 Institute MS Spiral Doc

    88/111

    Try o)con * +e,SqlConnection#constr( Dimo)da sSqlDatadapter * +e,SqlDatadapter#queryo)con( Dimtale s+e,DataTale o)da."ill#tale( Data4rid%ie,6.DataSource * tale

    Catchex sException Try o)cmd.Dispose#( Catchexc6 sException

    EndTry Try o)con.Close#( Catchexc sException

    EndTry -sg$ox#ex.-essage(

    -sg$ox#Err.Source( EndTry EndSu Pri7ateSutnClose;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs( =andlestnClose.Clic9 -e.Close#( EndSu

    Pri7ateSutnSa7e;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs( =andlestnSa7e.Clic9 If7alidate"ields#( Then Dimo)con sSqlConnection * +othing Dimo)cmd sSqlCommand * +othing Dimtransaction sSqlTransaction * +othing Try o)con * +e,SqlConnection#constr( o)con./pen#( transaction * o)con.$eginTransaction o)cmd * +e,SqlCommand#update Student setStudent+ame*'& txtStu+ame.Text.Trim & '4ender*'&Como$ox6.SelectedItem.ToString & 'D/$*'& DateTimePic9erDo.%alue &'ddress*'& txtddress.Text.Trim & 'City*'& txtCity.Text.Trim &'State*'& txtState.Text.Trim & 'Country*'& txtCountry.Text.Trim& '+ationality*'& txt+ationality.Text.Trim & 'Phone+umer*'&txtPhone+o.Text.Trim & 'CourseID*& CType#Como$ox6.SelectedItemCourse(.cID & ,here studentID*& %al#txtStuID.Text.Trim( o)contransaction(

    Dimi sInteger* o)cmd.Execute+onFuery Ifi ? 5 Then

    o)cmd.Dispose#( transaction.Commit#( -essage$ox.Sho,#Student !pdated SuccessfullyInstitute -anagament System( o)con.Close#(

    99

  • 7/23/2019 Institute MS Spiral Doc

    89/111

    clearfields#( tnSa7e.Enaled * "alse tnDelete.Enaled * "alse EndIf

    Catchex sException transaction.1ollac9#( -sg$ox#ex.-essage( EndTry EndIf EndSu

    Pri7ate"unction7alidate"ields#( s$oolean IftxtStu+ame.Text.

  • 7/23/2019 Institute MS Spiral Doc

    90/111

    Pri7ateSutnEdit;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs(

    EndSu

    Pri7ateSutnDelete;Clic9#$y%alsender sSystem./)ect $y%alesSystem.E7entrgs( =andlestnDelete.Clic9 If+ottxtStuID.Text.

  • 7/23/2019 Institute MS Spiral Doc

    91/111

    Pri7ateSutnSho,ll;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs( =andlestnSho,ll.Clic9

  • 7/23/2019 Institute MS Spiral Doc

    92/111

    query * selectStudentIDStudent+ame4endercon7ert#7archar#35(D/$652( asDate;/f;$irthddressCityStateCountry+ationalityPhonenumerCourse+ames.courseID from student s left )oin course c ons.courseid*c.courseid A=E1E IfIs+umeric#Criteria%alue( Then

    query * query & con7ert#7archar#655(&Criteriaey.SelectedItem.ToString & (li9e '& Criteria%alue.Text.Trim& ' Else query * query & s.& Criteriaey.SelectedItem.ToString& li9e '0 Criteria%alue.Text.Trim 0 M' EndIf Dimo)da sSqlDatadapter * +e,SqlDatadapter#queryo)con( Dimtale s+e,DataTale Ifo)da."ill#tale( Then Data4rid%ie,6.DataSource * tale Criteria%alue.Clear#(

    Panel6.Enaled * "alse Else -sg$ox#1ecord Aas +ot "ound( EndIf

    Catchex sException Try o)cmd.Dispose#( Catchexc6 sException

    EndTry Try o)con.Close#( Catchexc sException

    EndTry -sg$ox#ex.-essage( EndTry EndSu PulicSuclearfields#( txtddress.Clear#( txtCity.Clear#( txtCountry.Clear#( txt+ationality.Clear#( txtPhone+o.Clear#( txtState.Clear#( txtStuID.Clear#(

    txtStu+ame.Clear#( EndSu

    Pri7ateSu$utton3;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs( =andles$utton3.Clic9 clearfields#( Panel6.Enaled * "alse EndSuEndClass

    :2

  • 7/23/2019 Institute MS Spiral Doc

    93/111

    User)!rm .v,

    ImportsSystem.Security.Cryptography

    ImportsSystem.TextImportsSystem.Data.SqlClientPulicClass!ser"orm Dimconstr sString Pri7ateSu!ser"orm;

  • 7/23/2019 Institute MS Spiral Doc

    94/111

    Pri7ateSu$utton3;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs( =andles$utton3.Clic9 -e.Close#(EndSuEndClass

    UsersDia!g .v,ImportsSystem.Aindo,s."ormsImportsSystem.Data.SqlClientImportsSystem.ConfigurationPulicClass!sersDialog Dimconstr sStringPri7ateSuCancel;$utton;Clic9#$y%alsender sSystem./)ect $y%alesSystem.E7entrgs( =andlesCancel;$utton.Clic9 -e.Dialog1esult * System.Aindo,s."orms.Dialog1esult.Cancel -e.Close#( EndSuPri7ateSu!sersDialog;

  • 7/23/2019 Institute MS Spiral Doc

    95/111

    U'&ateUser)!rm .v,

    PulicClass!pdate!ser"orm Dimuser sString Dimconstr sString Pri7ateSu$utton3;Clic9#$y%alsender sSystem./)ect $y%ale s

    System.E7entrgs( =andles$utton3.Clic9 -e.Close#( EndSu

    Pri7ateSu!pdate!ser"orm;

  • 7/23/2019 Institute MS Spiral Doc

    96/111

    Pri7ateSu$utton6;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs( =andles$utton6.Clic9 If7alidate"ields#( Then Try Dimo)con s+e,SqlConnection#constr( DimencPass,ord sString* Pass,ordText$ox.Text.Trim#( o)con./pen#( Dimo)cmd sSqlCommand * +e,SqlCommand#updateusermaster set pass,ord*'& encPass,ord & ' o)con( Dimi sInteger* o)cmd.Execute+onFuery Ifi ? 5 Then -essage$ox.Sho,#!pdated Institute -anagementSystem( o)cmd.Dispose#( o)con.Close#( -e.Close#( Else

    -essage$ox.Sho,#"ailed Institute -anagementSystem( EndIf Catchex sException -sg$ox#ex.-essage( EndTry EndIf EndSu Pri7ate"unction7alidate"ields#( s$oolean If!serText$ox.Text.Trim.

  • 7/23/2019 Institute MS Spiral Doc

    97/111

    Sear(#Stu&entDia!g .v,

    ImportsSystem.Aindo,s."ormsImportsSystem.Data.SqlClientImportsSystem.ConfigurationPulicClassSearchStudentDialog

    Dimconstr sStringDimo) sfrm"eesPayment

    Pri7ateSutn/;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs( =andlestn/.Clic9 action#( EndSu

    Pri7ateSutnCancel;Clic9#$y%alsender sSystem./)ect $y%alesSystem.E7entrgs( =andlestnCancel.Clic9 -e.Dialog1esult * System.Aindo,s."orms.Dialog1esult.Cancel -e.Close#( EndSu

    Pri7ateSuSearchStudentDialog;

  • 7/23/2019 Institute MS Spiral Doc

    98/111

    Ifo)da."ill#tale( Then Data4rid%ie,6.DataSource * tale Else -sg$ox#1ecord Aas +ot "ound( EndIf

    Catchex sException Try o)cmd.Dispose#( Catchexc6 sException

    EndTry Try o)con.Close#( Catchexc sException

    EndTry -sg$ox#ex.-essage( EndTry EndSu

    Pri7ateSuCriteria%alue;TextChanged#$y%alsender sSystem./)ect$y%ale sSystem.E7entrgs( =andlesCriteria%alue.TextChanged

    EndSu

    Pri7ateSuCriteria%alue;eyPress#$y%alsender sSystem./)ect$y%ale sSystem.Aindo,s."orms.eyPressE7entrgs( =andlesCriteria%alue.eyPress Ifsc#e.eyChar( * 62 Then action#( EndIf EndSu

    Pri7ateSuData4rid%ie,6;CellContentClic9#$y%alsender sSystem./)ect $y%ale sSystem.Aindo,s."orms.Data4rid%ie,CellE7entrgs( =andlesData4rid%ie,6.CellContentClic9 Dimro, sInteger* Data4rid%ie,6.Current1o,.Index Dimo)student sStudentClass * +e,StudentClass o)student.id * %al#Data4rid%ie,6.Item#5 ro,(.%alue.ToString( o)student.name * Data4rid%ie,6.Item#6 ro,(.%alue.ToString o)student.gender * Data4rid%ie,6.Item#3 ro,(.%alue.ToString o)student.address * Data4rid%ie,6.Item#2 ro,(.%alue.ToString o)student.city * Data4rid%ie,6.Item#H ro,(.%alue.ToString o)student.country * Data4rid%ie,6.Item#> ro,(.%alue.ToString o)student.cname * Data4rid%ie,6.Item#L ro,(.%alue.ToString

    o)student.cid * %al#Data4rid%ie,6.Item#O ro,(.%alue.ToString( o)student.fees * CType#Data4rid%ie,6.Item#ro,(.%alue.ToString Doule( o)student.duration * Data4rid%ie,6.Item#65 ro,(.%alue.ToString o)student.prepaid * CType#Data4rid%ie,6.Item#66ro,(.%alue.ToString Doule( o)student.chec9indate * CType#Data4rid%ie,6.Item#@ ro,(.%alueDate(

    :9

  • 7/23/2019 Institute MS Spiral Doc

    99/111

    o)student.remaining * CType#Data4rid%ie,6.Item#63 ro,(.%alueDoule( o).set7alues#o)student( -e.Close#( EndSu

    PulicSu+e,#(

    ' This call is required y the Aindo,s "orm Designer. Initiali:eComponent#(

    ' dd any initiali:ation after the Initiali:eComponent#( call.

    EndSu PulicSu+e,#$y1efo) sfrm"eesPayment(

    ' This call is required y the Aindo,s "orm Designer. Initiali:eComponent#( -e.o) * o) ' dd any initiali:ation after the Initiali:eComponent#( call.

    EndSu

    EndClass

    ::

  • 7/23/2019 Institute MS Spiral Doc

    100/111

    "R'tA&missi!n .v,

    PulicClassf1ptdmission

    Pri7ateSutnPre7ie,;Clic9#$y%alsender sSystem./)ect $y%alesSystem.E7entrgs( =andlestnPre7ie,.Clic9

    Dimo) sdmission1eport * +e,dmission1eport#DT"rom.%alue.ToString#--GddGyyyy(DTto.%alue.ToString#--GddGyyyy(( o).Sho,#( EndSu

    Pri7ateSu$utton6;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs( =andles$utton6.Clic9 -e.Close#( EndSu

    Pri7ateSuf1ptdmission;

  • 7/23/2019 Institute MS Spiral Doc

    101/111

    A&missi!nRe'!rt .v,

    ImportsSystem.Data.SqlClientImportsSystem.ConfigurationPulicClassdmission1eport Dimdate6 sString

    Dimdate3 sString Pulicreport s+e,f1ptdmission

    PulicSu+e,#(

    ' This call is required y the Aindo,s "orm Designer. Initiali:eComponent#(

    ' dd any initiali:ation after the Initiali:eComponent#( call.

    EndSu PulicSu+e,#$y%aldate6 sString $y%aldate3 sString(

    ' This call is required y the Aindo,s "orm Designer. Initiali:eComponent#(

    ' dd any initiali:ation after the Initiali:eComponent#( call. -e.date6 * date6 -e.date3 * date3

    EndSu

    Pri7ateSudmission1eport;

  • 7/23/2019 Institute MS Spiral Doc

    102/111

    -yCommand.CommandText * SE

  • 7/23/2019 Institute MS Spiral Doc

    103/111

    "r't)eesPayment .v,

    PulicClassfrpt"eesPayment

    Pri7ateSutnPre7ie,;Clic9#$y%alsender sSystem./)ect $y%alesSystem.E7entrgs( =andlestnPre7ie,.Clic9

    Dimo) s"ee1eport * +e,"ee1eport#DT"rom.%alue.ToString#--GddGyyyy(DTto.%alue.ToString#--GddGyyyy(( o).Sho,#(

    EndSu

    Pri7ateSu$utton6;Clic9#$y%alsender sSystem./)ect $y%ale sSystem.E7entrgs( =andles$utton6.Clic9 -e.Close#( EndSu

    Pri7ateSufrpt"eesPayment;

  • 7/23/2019 Institute MS Spiral Doc

    104/111

    )eeRe'!rt .v,

    ImportsSystem.ConfigurationImportsSystem.Data.SqlClient

    PulicClass"ee1eport

    Dimdate6 sString Dimdate3 sString Dimreport s+e,frpt"eesPayment PulicSu+e,#(

    ' This call is required y the Aindo,s "orm Designer. Initiali:eComponent#(

    ' dd any initiali:ation after the Initiali:eComponent#( call.

    EndSu PulicSu+e,#$y%aldate6 sString $y%aldate3 sString(

    ' This call is required y the Aindo,s "orm Designer. Initiali:eComponent#(

    ' dd any initiali:ation after the Initiali:eComponent#( call. -e.date6 * date6 -e.date3 * date3 EndSu

    Pri7ateSu"ee1eport;

  • 7/23/2019 Institute MS Spiral Doc

    105/111

    -yCommand.CommandType * CommandType.Text myD.SelectCommand * -yCommand

    myD."ill#myDS datatale3( rpt.SetDataSource#myDS( Crystal1eport%ie,er6.1eportSource * rpt Else

    -yCommand.CommandText * SE

  • 7/23/2019 Institute MS Spiral Doc

    106/111

    +. System Implementation

    1;7

  • 7/23/2019 Institute MS Spiral Doc

    107/111

    System Im'ementati!n

    After the completion of each module, a small working model with the

    reuired database was created and !nstalled on the +ork Area for the respective

    $odule. The Fsers were trained to use the system and their responses and

    suggestions for updations were noted. The same were implemented wherever

    possible and the updated copy of the $odel was once again installed and the same

    above procedure was repeated till the end user was satisfied sufficiently with the

    system.

    The same procedure was repeated with the full system fill the end users were fully

    satisfied with the System.5or making an e8e file select make pro)ect name.e8e

    under the 5ile menu.:nce the user has completed with the coding the application,

    and tested on multiple machines, it is ready to be deployed. !n order to deploy any

    application, the user can use the 'ackage and &eployment +izard 'rovided by

    $icrosoft. The prereuisite of deploying an application is packaging.

    T! Pa>a$e (!/r app%at!# per!r' the !%%!;#$ tep:

    Start the 'ackage and &eployment +izard.

    After selecting the administration module pro)ect, click on the 'ackage

    button.

    As per the reuirements, select the type of packaging as Standard Setup

    'ackage.

    The +izard will then takes over and perform the rest of the packaging steps for

    you. Nou will see all the reuired files, including the runtime files, automaticallybeing included.

    To deploy your application, perform the following steps6 4

    Select the package you want to deploy, and click on the &eploy button.

    a7 Select the &eployment method. !n this case, it will be 5older. The wizards

    1;8

  • 7/23/2019 Institute MS Spiral Doc

    108/111

    will then take over and perform the rest of the deployment steps for you.

    +. &!t!re ,nhancement

    1;9

  • 7/23/2019 Institute MS Spiral Doc

    109/111

    F/t/re e#ha#e'e#tabout t!e proect would be as followingB

    1. #!e first up gradation would be t!e support for t!e e=amination

    system along wit!.

    2. #!e support for t!e networing system environment

    4. /dding attendance Details of eac! student

    5. Ot!er student re$uirements

    6. 3aintain t!e student parent details

    7. Ot!er possibilities

    1;:

  • 7/23/2019 Institute MS Spiral Doc

    110/111

    -. "eerences And Bibliography

    11;

  • 7/23/2019 Institute MS Spiral Doc

    111/111

    R#2##n%#/ Boo;/

    The complete Reference for VB.NET 2008

    By Anne Bohem, Murach

    System Analysis an !esi"n

    By sain #ames

    !ata$ase in S%&

    'ro(ect Mana"ement

    By ).R.Sharma

    #b/i#/

    www.google.com

    http://www.google.com/http://www.google.com/