8.System Analysis & System Design

download 8.System Analysis & System Design

of 122

Transcript of 8.System Analysis & System Design

  • 8/9/2019 8.System Analysis & System Design

    1/122

    System ANALYSIS & DESIGN

    SYSTEM ANALYSIS & DESIGN

    OF

    STUDENT INFORMATION SYSTEM

    SYSTEM ANALYSIS & Design is the most crucial work in the Software

    Development Life Cycle. System design develops the architectural detail

    required to build a system of product. The system design process encompasses

    the following activities:

    Partition the analysis model into subsystems.

    Identify concurrency that is dictated by the problem.

    Allocate subsystems to processors and tasks.

    Develop a design for the user interface.

    Choose a basic strategy for implementing data management.

    Identify global resources and the control mechanisms required to

    access them.

    Design an appropriate control mechanism for the system, including

    task management.

    Considering how boundary conditions should be handled.

    Reviewing and consider trade-offs.

    The following hierarchy chart shows the list of modules and how the modules

    are attached with the system:

    CHET NATH SARASWATI (054226956) 27

  • 8/9/2019 8.System Analysis & System Design

    2/122

    System ANALYSIS & DESIGN

    Student Information System Group Project

    SIS ( Student Information System)

    Splash Screen (frmSpalsh.frm )

    LOGIN (LoginWin.frm)

    ENTRY

    NEW ADMISSION ( NewAdmWin.frm)

    ADM./INSTALLMENT FEE (installwin.frm)

    MODULES MARKS ( ModulesMarkswin.frm)

    COURSE ( coursewin.frm)

    LIBRARY

    EXIT (Closes the application)

    NEW BOOK (LibraryNewBookWin.frm)

    BOOK ISSUE

    (LibraryBookIssueWin.frm)

    BOOK DEPOSIT

    (LibraryBookDepositWin.frm)

    LIBRARY MEMBER( LibraryMemberWin.frm)

    CHET NATH SARASWATI (054226956) 28

  • 8/9/2019 8.System Analysis & System Design

    3/122

    System ANALYSIS & DESIGN

    MODIFYADMISSION DATA

    (ModifyAdmDataWin.frm)

    INSTALLMENT FEE

    (ModifyInstallmentFeeWin.frm)

    MODULES MARKS

    ( ModifyModulesMarksWin.frm)LIBRARY

    BOOKS DETAILS(ModifyBookDetailWin.frm)

    BOOKISSUERECORD(ModifyBookIsuWin.frm)

    BOOK DEPOSIT

    (ModifyBokDpRecordwin.frm)

    LIBRARY MEMBER

    (ModifyLibMemRecWin.frm)SEARCH

    STUDENT INFORMATION

    ( SearchStdInfoWin.frm)

    INSTALLMENT FEE(SearchInstallmentfeeWin.frm)

    COURSE ( SearchCourseWin.frm)

    MODULE MARKS(SearchModulesMarksWin.frm)

    LIBRARY BOOK/MAGEZINE

    (SearchLibrarbookwin.frm)

    TRANSACTION OF BOOK

    (SearchtransactedbookWin.frm)

    CHET NATH SARASWATI (054226956) 29

  • 8/9/2019 8.System Analysis & System Design

    4/122

    System ANALYSIS & DESIGN

    REPORT

    PAYMENT

    DAILY

    WEEKLY

    MONTHLY

    ADMITTED STUDENTS

    INDIVIDUAL DETAILS

    ALL DETAILS

    LAST ADMITTED STUDENT

    DETAILS

    FEE DETAILS

    INDIVIDUAL DETAILS

    ALL DETAILS

    LAST PAID INSTALLMENT

    DETAILS

    MODULES TEST DETAILS

    INDIVIDUAL STUDENT DETAILS

    ALL STUDENT DETAILS

    BATCHWISE

    UTILITY

    BACKUP

    DISK CLEAN UP

    CHET NATH SARASWATI (054226956) 30

    A

  • 8/9/2019 8.System Analysis & System Design

    5/122

    System ANALYSIS & DESIGN

    6.1 FORM LAYOUTS

    The work processing of SIS may be divided into following modules:

    1. Student details Register2. Admission Register & Receipt

    3. Installment Register and Receipt

    4. Marks of Module Test Register

    5. Library Book Stock Register

    6. Transaction of Books Register

    7. MemberShip of Library Register

    8. Search Module

    9. Generating Reports

    The above listed modules with the supportive modules are operated within

    a parent window. The data flow diagram for the whole project which includes

    the above modules with their databases is shown below.

    CHET NATH SARASWATI (054226956) 31

    DFD1: LEVEL 0: Overall flow of data

    St. SeverinsSt. Severins

    High SchoolHigh School

    1. NewStudent

    s

    4. Old

    student

    5.Authorised

    person/

    Director

    Gives daily, weekly,

    monthly reports.

    Get a admission

    slip, routine &

    batch no.

    admit

    Enters data of module

    test

    2.

    Operator

    Gives a report

    Issue a book Deposit a

    book

    Gives

    monthly fee

    inst.

    Give a inst. fee slip

    3. Library

    membership

    student

  • 8/9/2019 8.System Analysis & System Design

    6/122

    System ANALYSIS & DESIGN

    Module 1 : Master file of Students

    This modules is used for storing the details of the students ofSt. SeverinsSt. Severins

    High SchoolHigh School. The details of new student is at first entered into the master

    file named Registration.

    The DFD for this module is shown below

    DFD 2 : Level 1 Processing of data of New Students of St. SeverinsSt. Severins

    High SchoolHigh School

    Process Logic:

    1. This module is used for entering and storing the records of new students.

    CHET NATH SARASWATI (054226956) 32

    Processing

    of

    Students

    data

    Registrtion

    Registration VDU /Printer

    View & PrintView & Save

    Modify/Delete the record

    Demands report

    Enters data given by the

    student

    Operator ofSt.St.Severins HighSeverins High

    SchoolSchool

    Browse the data Add / Update /

    Delete

  • 8/9/2019 8.System Analysis & System Design

    7/122

    System ANALYSIS & DESIGN

    2. It gives also the report of new admitted students.

    3. It also modifies (edits) , deletes the records of new admitted students.

    4. It can print the report of new admitted student through printer and

    monitor. (Report may be of daily, monthly, & year).

    Design time screen of Module 1 : Student Admission Database Module:

    REGISTRATION.frm

    CHET NATH SARASWATI (054226956) 33

    Picture 6.1: Module 1: New Admission Form: REGISTRATION.frm

  • 8/9/2019 8.System Analysis & System Design

    8/122

    System ANALYSIS & DESIGN

    Design time screen of Module 2: : Admission dues / Monthly

    Installment fee of Students (FEEDETAIL.frm)

    This module is used to store admission fee due (installments) and monthly

    installment. The data entered by the operator are stored into a transaction

    file Fee_Detail table.

    Process Logic:

    1. This module retrieves the details from Registarion.

    2. This module stores the data of students admission fee dues and monthly

    installments into Fee_Detail.

    3. This module also updates or modify the data.

    CHET NATH SARASWATI (054226956) 34

    Registration

    table

    Fee_Detail table

    Operator of St.St.

    Severins HighSeverins HighSchoolSchool

    VDU

    or

    PrinterSave the

    Report

    saving

    Update

    data

    Retrieve

    data

    Add/update

    Processing

    of student

    fee

    Browse the data

    View & Print

    the report &

    fee slip

    Enters data

    Demands report

    DFD 3 : Level 1 : Processing of Monthly Installment fee and admission dues

  • 8/9/2019 8.System Analysis & System Design

    9/122

    System ANALYSIS & DESIGN

    4. This module shows the reports of students fee on the VDU and prints the

    report through printer.

    5. It also prints the slip of students fee.

    6. It reduces the no. of installment of student in the Registration table if

    monthly installment fee is paid.

    7. It reduces the admission dues if admission fee is not cleared and it also

    gives message to clear the admission dues if an admission due exists.

    CHET NATH SARASWATI (054226956) 35

    Picture 6.2: Module 2: Admission dues and Installment Fee dues Form

  • 8/9/2019 8.System Analysis & System Design

    10/122

    System ANALYSIS & DESIGN

    Module 3: Students Modules test marks

    This is used to store the marks of students of modules tests and final

    examination results.

    DFD 4: Level 1 : Processing of Students Module Test Marks

    Process Logic:

    1. This modules tests that entered registration no. of student exists, then

    add the obtained marks of module test of a student into a table Result.

    CHET NATH SARASWATI (054226956) 36

    Result

    Add/update

    Processing

    of students

    obtained

    marks

    Retrieves data

    Registration

    table

    Retrieves data

    VDU & Printer

    Gives report

    Operator of St.St.SeverinsSeverins

    HighHigh

    Enters dataEnters data

    Demands report

  • 8/9/2019 8.System Analysis & System Design

    11/122

    System ANALYSIS & DESIGN

    2. It also gives the reports of marks of all modules obtained by a students if

    given registration no. exists.

    Design time screen of Module 3: Students Module Test Marks:

    Result.frm

    CHET NATH SARASWATI (054226956) 37

    Picture 6.3: Module 3: Module Marks Entry Form : Result.frm

  • 8/9/2019 8.System Analysis & System Design

    12/122

    System ANALYSIS & DESIGN

    Module 4: Modify data of Registration, Fee_Detail,Result and issued

    book from Library.

    If the operator wants to change entered and stored wrong data from

    Registartion, Fee_detail, Result, and Library he/she can modify.

    DFD 5: Level 1 : Process for Modifying record(s) in all table

    CHET NATH SARASWATI (054226956) 38

    Process

    for

    Modify

    Operator ofSt.St.

    Severins HighSeverins HighSchoolSchool

    Registration

    table

    Stud_LibraryTransactiontable

    Result tableFee Detail table

    Enters data update Browse

    data

    updateBrowse

    data

    updateupdate Browsedata

    update

    Browse

    data

    Library_LibraryMastertable

    Browse

    data

  • 8/9/2019 8.System Analysis & System Design

    13/122

    System ANALYSIS & DESIGN

    Process Logic:

    1. This module modifies the wrong stored data of student details from

    REGISTRATION if given registration no. exists.

    2. This module modifies or edits the wrong stored fee into FEE_DETAIL table,

    after checking the given registration no. exists.

    3. It modifies or updates the wrong stored modules marks of a student into

    RESULT, if given registration no. of a student exists into this table.

    This module modifies and update wrong entered data of issued book for a

    student into a table Stud_LibraryMaster and Stud_Library Transaction.

    Design time screen of Module 4: Student_Detail

    CHET NATH SARASWATI (054226956) 39

  • 8/9/2019 8.System Analysis & System Design

    14/122

    System ANALYSIS & DESIGN

    Module 5: Module for Library Management

    This module is used to create a new member of Kids Garden School Library

    and data of membership is stored into a master file Stud_LibraryMaster. If

    a member wants to issue or to deposit a book from or to a Library, their data

    CHET NATH SARASWATI (054226956) 40

  • 8/9/2019 8.System Analysis & System Design

    15/122

    System ANALYSIS & DESIGN

    are stored into a file named Stud_LibraryTransaction. Information of new

    book and old book are stored into a file Libbook_Master.

    DFD 6: Level 1 : Process for Library Management

    CHET NATH SARASWATI (054226956) 41

    Libbook_Master table

    Add/save/

    modifyBrowse

    data

    Stud_LibraryTransactiontab

    le

    Add/save/

    modify

    Browse

    data

    Browse

    data

    Add/save/

    modify ofissue and

    deposted

    books data

    Stud_LibraryMaster table

    Browse

    data

    Report

    Save the report

    Sends

    thereportVDU/Printer

    ProcessingOf

    Library

    Data

    Operator ofSt.St.

    Severins HighSeverins High

    SchoolSchool

    Enter data

    Demands report

  • 8/9/2019 8.System Analysis & System Design

    16/122

    System ANALYSIS & DESIGN

    Process logic:

    1. Information of new books, old books are stored into a file

    LibBook_Master, which are the assets of Library.

    2. If registration no. of student exists into a Registration , the his/her

    membership is created into a table Stud_LibraryMaster.

    3. This module checks a books availability and it also checks total no. of

    books issued to this member, if book is issued already then book is not

    allowed to issue for this member otherwise book is allowed to issue.

    4. It issues the Library card for member of Library.

    5. This module prints the report of book dues defaulter.

    6. It also takes late fines for the late submission of a book.

    Module 6: Module for Searching

    This module is used for searching a record from any database or table such

    as REGISTRATION, FEE_DETAIL, RESULT, and Stud_LibraryMaster,

    Stud_LibraryTransaction of a student , book or other information etc. The

    DFD of this as follows:

    CHET NATH SARASWATI (054226956) 42

  • 8/9/2019 8.System Analysis & System Design

    17/122

    System ANALYSIS & DESIGN

    DFD 7: Level 1 : Process for Searching

    Process Logic:

    1. Methods for searching a student, books, dues defaulter, module marks of

    a student , presence /absence in the module test, installment paid or not,

    address of a student etc.

    Supportive Modules

    Login Module (Checking Authentication of Operator)

    Login Module is the first module which will be executed next to the

    Splash Screen. This is created for security purpose so that no trespasser can

    CHET NATH SARASWATI (054226956) 43

    Libbook_Master table

    Browse data

    Stud_LibraryTransactiontable

    Searching

    given data

    Searching

    given data

    Stud_LibraryMaster table

    Searchinggiven data

    Report

    Save the report

    Sends

    thereport

    VDU/Printer

    Processing

    Of

    Library

    Data

    Operator St.St.Severins HighSeverins High

    SchoolSchool

    Enter data for

    searching

    Demands report

  • 8/9/2019 8.System Analysis & System Design

    18/122

    System ANALYSIS & DESIGN

    use this package. Only the authenticated persons (An authenticated person is a

    staff of NEC Pvt. Ltd. who got a UserID and a Password from the Administrator

    or his senior staff) can use this Software for maintaining records of the Firm.

    Design time screen of Supportive Module 1: Login: LoginWin.frm

    Picture : Login Form : Login.frm

    CHET NATH SARASWATI (054226956) 44

  • 8/9/2019 8.System Analysis & System Design

    19/122

    System ANALYSIS & DESIGN

    Salary Detail Form (appears during payment entry )

    Salary_detail.frm

    CHET NATH SARASWATI (054226956) 45

  • 8/9/2019 8.System Analysis & System Design

    20/122

    System ANALYSIS & DESIGN

    Teacher Detail Form Teacher_detail.frm

    CHET NATH SARASWATI (054226956) 46

  • 8/9/2019 8.System Analysis & System Design

    21/122

    System ANALYSIS & DESIGN

    6.2 REPORT LAYOUT

    Search Module / Generating Reports: Each and every individual module has

    facility for getting report on the data stored on to the database. There exist

    another way to find out information stored into data base in a single module.

    This module can retrieve any information stored into any data base. This can

    also gives information after combining more than one relation.

    DFD 7: LEVEL 1: Processing Search Module/ Designing Reports

    CHET NATH SARASWATI (054226956) 47

    Library Admission

    courses

    Instalment/

    Module test

    student

    Operator ofSt.St.Severins HighSeverins High

    SchoolSchool

    REPORTS

    View &Print onPaper

    PROCESSING OFSEARCH MODULE

    Demands Report

  • 8/9/2019 8.System Analysis & System Design

    22/122

    System ANALYSIS & DESIGN

    6.3 DATABASE DESIGN

    The database is designed as per the requirement of project. To reduce

    redundancy of data the tables/relations are designed in such a way that

    they are linked with each other. The tables/relations with their attributes

    are shown below: -

    1. Table Name:Registration

    ATTRIBUTE

    DATA-

    TYPE

    SIZE MEANING or PURPOSE

    REGNO VARCHAR2 10 Registration Number of Students

    NAME VARCHAR2 25 Student Name

    FNAME VARCHAR2 25 Fathers Name

    FOCCU VARCHAR2 10 Fathers Occupation

    MNAME VARCHAR2 25 Mothers Name

    PHNO VARCHAR2 15 Permanent House Number

    PSTREET VARCHAR2 40 Permanent Street

    PCITY VARCHAR2 40 Permanent City

    PDIST VARCHAR2 40 Permanent District

    PSTATE VARCHAR2 40 Permanent State

    PPHNO NUMBER 12 Permanent Phone number

    CHNO VARCHAR2 15 Corresponding House Number

    CSTREET VARCHAR2 40 Corresponding Street

    CCITY VARCHAR2 40 Corresponding City

    CDIST VARCHAR2 40 Corresponding District

    CSTATE VARCHAR2 40 Corresponding State

    CPHNO NUMBER 12 Corresponding Phone number

    PRSCHOOL VARCHAR2 30 Previous School of Student

    PRCLASS VARCHAR2 5 Previous Class of Student

    SECLASS VARCHAR2 5 Seeking Class of Student

    2. Table Name: STUDENT_DETAIL

    CHET NATH SARASWATI (054226956) 48

  • 8/9/2019 8.System Analysis & System Design

    23/122

    System ANALYSIS & DESIGN

    ATTRIBUTE DATA-

    TYPE

    SIZE MEANING or PURPOSE

    REGNO VARCHAR2 10 Registration Number of Student

    NAME VARCHAR2 30 Student Name

    CLASS VARCHAR2 5 Student seeking Class

    SECTION VARCHAR2 3 Section of ClassROLL NUMBER 3 Roll Number of Student

    DOB DATE Date of Birth of Student

    3. Table Name: FEE_DETAIL

    ATTRIBUTE DATA-

    TYPE

    SIZE MEANING or PURPOSE

    REGNO VARCHAR2 10 Registration Number of Student

    CLASS VARCHAR2 5 Class Of Student

    MONTH VARCHAR2 15 Month Name

    TFEE NUMBER 3 Tution Fee

    AFEE NUMBER 3 Admission Fee

    EXAMFEE NUMBER 3 Examination Fee

    LIBFEE NUMBER 3 Library Fee

    LABFEE NUMBER 3 Laboratory Fee

    EFEE NUMBER 3 Electric Charge

    COMCHARGE NUMBER 3 Computer Fee

    TRANFEE NUMBER 3 Transport Fee

    SFEE NUMBER 3 Sports FeeOthers NUMBER 3 Other Charge

    TOTAL NUMBER 4 Total fee of a Month

    4. Table Name: LIBRARY

    ATTRIBUTE DATA-

    TYPE

    SIZE MEANING or PURPOSE

    REGNO VARCHAR2 10 Registration Number of Student

    NAME VARCHAR2 30 Student Name

    CLASS VARCHAR2 5 Student Class

    BNAME VARCHAR2 40 Name of Book issued to Student

    CHET NATH SARASWATI (054226956) 49

  • 8/9/2019 8.System Analysis & System Design

    24/122

    System ANALYSIS & DESIGN

    DOI DATE Book Issued Date

    FDATE DATE Final Date of Book returning

    FINE NUMBER 4 Fine on late Book returning

    CHET NATH SARASWATI (054226956) 50

  • 8/9/2019 8.System Analysis & System Design

    25/122

    System ANALYSIS & DESIGN

    5. Table Name:RESULT

    ATTRIBUTE DATA-

    TYPE

    SIZE MEANING or PURPOSE

    REG_NO VARCHAR2 10 Registration Number of Student

    TERM VARCHAR2 5 Terminal(1

    st

    ,2

    nd

    ,Final)NAME VARCHAR2 30 Student Name

    CLASS VARCHAR2 5 Student Class

    ROLL NUMBER 3 Roll Number

    HINDI NUMBER 3 Marks Obtained in Hindi

    ENG NUMBER 3 Marks Obtained in English

    MATH NUMBER 3 Marks Obtained in Maths

    SANS NUMBER 3 Marks Obtained in Sanskrit

    SCIENCE NUMBER 3 Marks Obtained in Science

    SST NUMBER 3 Marks Obtained in Sstd

    PHY NUMBER 3 Marks Obtained in Physics

    CHEM NUMBER 3 Marks Obtained in Chemistry

    BIO NUMBER 3 Marks Obtained in Biology

    HIS NUMBER 3 Marks Obtained in History

    GEO NUMBER 3 Marks Obtained in Geography

    CIVICS NUMBER 3 Marks Obtained in Civics

    ECO NUMBER 3 Marks Obtained in Economics

    GK NUMBER 3 Marks Obtained in Gk

    COMP NUMBER 3 Marks Obtained in Computer

    SUPW NUMBER 3 Marks Obtained in Supw

    PE NUMBER 3 Marks Obtained in Physical Education

    ART NUMBER 3 Marks Obtained in Arts & Craft

    TOTAL NUMBER 3 Total Marks Obtained

    RANK VARCHAR2 3 Rank

    AGG NUMBER 3 Total Percentage

    REMARKS VARCHAR2 6 Remarks

    CHET NATH SARASWATI (054226956) 51

  • 8/9/2019 8.System Analysis & System Design

    26/122

    System ANALYSIS & DESIGN

    6. Table Name: EMPLOYEE_DETAIL

    ATTRIBUTE DATA-

    TYPE

    SIZE MEANING or PURPOSE

    ECODE VARCHAR2 10 Employee Code

    ENAME VARCHAR2 30 Employee NamePOST VARCHAR2 30 Post of Employee

    FNAME VARCHAR2 30 Father Name of Employee

    PHNO VARCHAR2 12 Permanent House Number

    PSTREET VARCHAR2 20 Permanent Street

    PCITY VARCHAR2 20 Permanent City

    PDIST VARCHAR2 20 Permanent District

    PSTATE VARCHAR2 20 Permanent State

    PPHNO NUMBER 12 Phone Number

    CHNO VARCHAR2 12 Corresponding House Number

    CSTREET VARCHAR2 20 Corresponding Street

    CCITY VARCHAR2 20 Corresponding City

    CDIST VARCHAR2 20 Corresponding District

    CSTATE VARCHAR2 20 Corresponding State

    CPHNO NUMBER 12 Phone Number of Employee

    DOB DATE Date of Birth of Employee

    DOJ DATE Date of Joining of Employee

    7. Table Name: QUALIFICATION

    ATTRIBUTE

    DATA-

    TYPESIZE MEANING or PURPOSE

    ECODE VARCHAR2 10 Employee Code

    QUALIFICATION VARCHAR2 20 Qualification of Employee

    YEAR NUMBER 10 Year

    DIVISION VARCHAR2 10 Division

    PERCENTAGE NUMBER 20,3 Percentage

    TOTAL_MARKS NUMBER 20,2 Total Marks

    CHET NATH SARASWATI (054226956) 52

  • 8/9/2019 8.System Analysis & System Design

    27/122

    System ANALYSIS & DESIGN

    8. Table Name: TEACHER

    ATTRIBUTE DATA-

    TYPE

    SIZE MEANING or PURPOSE

    ECODE VARCHAR2 10 Employee Code

    ENAME VARCHAR2 20 Employee NameSUB_KNOWN VARCHAR2 20 Subject Name

    9. Table Name: SALARY_DETAIL

    ATTRIBUTE DATA-

    TYPE

    SIZE MEANING or PURPOSE

    ECODE VARCHAR2 10 Employee CodeENAME VARCHAR2 30 Employee Name

    RECNO VARCHAR2 20 Receipt Number

    PAYMODE VARCHAR2 4 Mode Of Payment

    CHNO VARCHAR2 15 Cheque Number

    AMT NUMBER 5 Receive Amount in Rs.

    DCODE VARCHAR2 10 Designation Code

    GSAL NUMBER 5 Gross Salary

    NET NUMBER 5 Total Amount

    CHET NATH SARASWATI (054226956) 53

  • 8/9/2019 8.System Analysis & System Design

    28/122

    System ANALYSIS & DESIGN

    10. Table Name: DESIGNATION_DETAIL

    ATTRIBUTE DATA-

    TYPE

    SIZE MEANING or PURPOSE

    DCODE VARCHAR2 10 Designation Code of Employee

    POST VARCHAR2 20 Post of Employee

    BSAL NUMBER 5 Basic Salary of Employee

    TA NUMBER 5 Travelling Allowance in Rs.

    DA NUMBER 5 Dearness Allowance in Rs.

    PF NUMBER 5 Provident Fund in Rs.

    ITAX NUMBER 5 Income Tax

    TOTAL NUMBER 5 Total Payable Amount

    11. Table Name: LEAVE

    ATTRIBUTE DATA-

    TYPE

    SIZE MEANING or PURPOSE

    ECODE VARCHAR2 10 Employee Code

    ENAME VARCHAR2 30 Employee Name

    MONTH VARCHAR2 10 Name of Month

    YEAR NUMBER 10 Year

    DOL DATE Date of Leave

    NOL NUMBER 3 Number of Days of Leaves

    Step 4:System Cost & Method(Coding)

    Coding in ORACLE

    For Table Creation

    Table Name:- Designation_Record

    SQL> create table designation_record

    CHET NATH SARASWATI (054226956) 54

  • 8/9/2019 8.System Analysis & System Design

    29/122

    System ANALYSIS & DESIGN

    (

    desg_code VARCHAR2(10) primary key,

    ecode varchar2(10) constraint ecdfk2 references

    employee_detail(ecode),

    post varchar2(20),

    basic_sal number(30,2) constraint ckbas check(basic_sal>0),

    ta number(30,2),

    da number(30,2),

    pf number(30,2),

    tax number(30,2)

    );

    Table Name:- Employee_Detail

    SQL> create table employee_detail

    (

    ecode varchar2(10) primary key,

    CHET NATH SARASWATI (054226956) 55

  • 8/9/2019 8.System Analysis & System Design

    30/122

    System ANALYSIS & DESIGN

    ename varchar2(25) not null,

    post varchar2(20) not null,

    father_name varchar2(20),

    sex_code varchar2(8) check(sex_code in ('male','female')),

    perm_street varchar2(40) not null,

    perm_city varchar2(40) not null,

    perm_district varchar2(40) not null,

    perm_state varchar2(40) not null,

    pin number(10) not null,

    phone_no number(12) not null,

    date_birth date not null,

    category varchar2(15),

    date_joining date not null);

    Table Name:- Fee_Detail

    SQL> create table fee_detail

    (

    reg_no varchar2(10) constraint references registration(reg_no),

    mname varchar2(15) not null,

    tution_fee number(20,2) constraint check (tution_fee>0),

    admn_fee number(20,2),

    exam_fee number(20,2),

    lib_fee number(20,2),

    CHET NATH SARASWATI (054226956) 56

  • 8/9/2019 8.System Analysis & System Design

    31/122

    System ANALYSIS & DESIGN

    lab_fee number(20,2),

    arrear_fee number(20,2),

    comp_charge number(20,2) constraint check (comp_charge>0),

    trans_fee number(20,2),

    sports_fee number(20,2),

    total number(40,2) constraint check (total>0)

    );

    Table Name:- Leaves

    SQL> create table leaves

    (ecode varchar2(10)constraint ecdfk5 references

    employee_detail(ecode),

    month varchar2(10) not null,

    year number(10) not null,

    dt date not null,

    day varchar2(20),

    no_of_leaves number(3) not null);

    Table Name:- Qualification

    SQL> create table qualification

    (ecode varchar2(10) constraint ecdfk1 references

    employee_detail(ecode),

    qualification varchar2(20) not null,

    year number(10) not null,

    CHET NATH SARASWATI (054226956) 57

  • 8/9/2019 8.System Analysis & System Design

    32/122

    System ANALYSIS & DESIGN

    division number(10),

    percentage number(20,3),

    total_marks number(20,2)

    );

    Table Name:- REGISTRATION

    SQL> CREATE TABLE REGISTRATION

    (reg_no varchar2(10) primary key,

    sname varchar2(25) not null,

    father_name varchar2(25) not null,

    occupation varchar2(10),

    mother_name varchar2(25),

    perm_street varchar2(40) not null,

    perm_city varchar2(40) not null,

    perm_district varchar2(40) not null,

    perm_state varchar2(40) not null,

    perm_pin number(20) not null,

    corrsp_street varchar2(40),

    corrsp_city varchar2(40),

    corrsp_district varchar2(40),

    corrsp_state varchar2(40),

    corrsp_pin number(20),

    prev_school varchar2(30),

    CHET NATH SARASWATI (054226956) 58

  • 8/9/2019 8.System Analysis & System Design

    33/122

    System ANALYSIS & DESIGN

    prev_class varchar2(5) not null,

    appld_class varchar2(5) not null,

    date_reg date,

    transp_fac varchar2(25) not null,

    host_fac varchar2(25) not null);

    Table Name:- Result

    SQL> create table result

    (reg_no varchar2(10)constraint regfk4 references

    registration(reg_no),

    hindi number(20,2) not null,

    eng number(20,2) not null,

    maths number(20,2) not null,

    sans number(20,2) not null,

    science number(20,2) not null,

    sstd number(20,2) not null,

    phy number(20,2) not null,

    chem number(20,2) not null,

    bio number(20,2) not null,

    history number(20,2) not null,

    geog number(20,2) not null,

    civics number(20,2) not null,

    eco number(20,2) not null,

    gk number(20,2) not null,

    CHET NATH SARASWATI (054226956) 59

  • 8/9/2019 8.System Analysis & System Design

    34/122

    System ANALYSIS & DESIGN

    comp number(20,2) not null,

    supw number(20,2) not null,

    phy_edu number(20,2) not null,

    art_craft number(20,2) not null,

    grand_total number(30,2) not null,

    grade varchar2(10),

    rank VARCHAR2(20),

    percentage number(30,9) not null,

    remarks varchar2(20) not null);

    Table Name:- Salary_Detail

    SQL> create table salary_detail

    (account_no VARCHAR2(20) primary key,

    desg_code varchar2(10) constraint dcdfk1 references

    designation_record(dcode),

    ecode varchar2(10) constraint ecdfk2 references

    employee_detail(ecode),

    receipt_no VARCHAR2(20) not null,

    pay_date date not null,

    receive_amt number(35,2) constraint ckrec check(receive_amt>0),

    itax number(30,2),

    total_amt number(20,2) constraint cktota check(total_amt>0));

    CHET NATH SARASWATI (054226956) 60

  • 8/9/2019 8.System Analysis & System Design

    35/122

    System ANALYSIS & DESIGN

    Table Name:-STUDENT DETAILS

    SQL> create table student_detail

    (s_id varchar2(10) primary key,

    reg_no varchar2(10) constraint regfk references

    registration(reg_no),

    class varchar2(20) not null,

    section varchar2(3) not null,

    roll_no number(3) not null,

    sex_code varchar2(8) check(sex_code in('male','female')),

    date_birth date not null);

    Table Name:-TEACHER DETAILS

    SQL> create table teacher_detail

    (ecode varchar2(10) constraint ecdfk4 references

    employee_detail(ecode),

    sub_known varchar2(30) not null,

    status varchar2(25) not null);

    Table Name:- Transport_Detail

    SQL> create table transport_detail

    (reg_no varchar2(10) constraint regfk2 references

    registration(reg_no),

    trans_type varchar2(30),

    trans_no varchar2(30) not null,

    CHET NATH SARASWATI (054226956) 61

  • 8/9/2019 8.System Analysis & System Design

    36/122

    System ANALYSIS & DESIGN

    area varchar2(30)not null);

    SQL> create table cheque_details

    (

    recpt_no varchar2(10) constraint recptpk Primary Key,

    chequeno varchar2(15),

    issued_by varchar2(15),

    infavourof varchar2(35),

    chkdate date

    );

    6.4 CODING APPLICATION

    Code for MODULE & MAIN Form 1: MODULE1.BAS & MainWin.frm

    Code for MODULE:MODULE.BAS

    Option Explicit

    Public cn As Connection

    Public rdesig As Recordset, rregist As Recordset, remp As Recordset, rfee

    As Recordset, rleaves As Recordset, rlib As Recordset, rs As Recordset,

    rreg As Recordset, rresult As Recordset, rsal As Recordset, rstud As

    Recordset, rteach As Recordset, rtrans As Recordset, rst As Recordset,

    remployee As Recordset, rallrec As Recordset

    Sub main()

    Set cn = New Connection

    Set rdesig = New Recordset

    Set remp = New Recordset

    Set rfee = New Recordset

    CHET NATH SARASWATI (054226956) 62

  • 8/9/2019 8.System Analysis & System Design

    37/122

    System ANALYSIS & DESIGN

    Set rleaves = New Recordset

    Set rlib = New Recordset

    Set rs = New Recordset

    Set rreg = New Recordset

    Set rresult = New Recordset

    Set rsal = New Recordset

    Set rstud = New Recordset

    Set rteach = New Recordset

    Set rtrans = New Recordset

    Set rregist = New Recordset

    Set rst = New Recordset

    Set remployee = New Recordset

    Set rallrec = New Recordset

    With cn

    .ConnectionString = "uid=anamika;pwd=deepak;dsn=school_proj;"

    .Open

    End With

    With rdesig.ActiveConnection = cn

    .CursorLocation = adUseClient

    .LockType = adLockPessimistic

    .Source = "select * from tab"

    .CursorType = adOpenStatic

    .Open

    End WithWith remp

    .ActiveConnection = cn

    .CursorLocation = adUseClient

    .LockType = adLockPessimistic

    .Source = "select * from tab"

    CHET NATH SARASWATI (054226956) 63

  • 8/9/2019 8.System Analysis & System Design

    38/122

    System ANALYSIS & DESIGN

    .CursorType = adOpenStatic

    .Open

    End With

    With rfee

    .ActiveConnection = cn

    .CursorLocation = adUseClient

    .LockType = adLockPessimistic

    .Source = "select * from tab"

    .CursorType = adOpenStatic

    .Open

    End With

    With rleaves

    .ActiveConnection = cn

    .CursorLocation = adUseClient

    .LockType = adLockPessimistic

    .Source = "select * from tab"

    .CursorType = adOpenStatic

    .Open

    End WithWith rlib

    .ActiveConnection = cn

    .CursorLocation = adUseClient

    .LockType = adLockPessimistic

    .Source = "select * from tab"

    .CursorType = adOpenStatic

    .OpenEnd With

    With rs

    .ActiveConnection = cn

    .CursorLocation = adUseClient

    .LockType = adLockPessimistic

    CHET NATH SARASWATI (054226956) 64

  • 8/9/2019 8.System Analysis & System Design

    39/122

    System ANALYSIS & DESIGN

    .Source = "select * from tab"

    .CursorType = adOpenStatic

    .Open

    End With

    With rreg

    .ActiveConnection = cn

    .CursorLocation = adUseClient

    .LockType = adLockPessimistic

    .Source = "select * from tab"

    .CursorType = adOpenStatic

    .Open

    End With

    With rresult

    .ActiveConnection = cn

    .CursorLocation = adUseClient

    .LockType = adLockPessimistic

    .Source = "select * from tab"

    .CursorType = adOpenStatic

    .OpenEnd With

    With rsal

    .ActiveConnection = cn

    .CursorLocation = adUseClient

    .LockType = adLockPessimistic

    .Source = "select * from tab"

    .CursorType = adOpenStatic

    .Open

    End With

    With rstud

    .ActiveConnection = cn

    .CursorLocation = adUseClient

    CHET NATH SARASWATI (054226956) 65

  • 8/9/2019 8.System Analysis & System Design

    40/122

    System ANALYSIS & DESIGN

    .LockType = adLockPessimistic

    .Source = "select * from tab"

    .CursorType = adOpenStatic

    .Open

    End With

    With rteach

    .ActiveConnection = cn

    .CursorLocation = adUseClient

    .LockType = adLockPessimistic

    .Source = "select * from tab"

    .CursorType = adOpenStatic

    .Open

    End With

    With rtrans

    .ActiveConnection = cn

    .CursorLocation = adUseClient

    .LockType = adLockPessimistic

    .Source = "select * from tab"

    .CursorType = adOpenStatic

    .Open

    End With

    With remployee

    .ActiveConnection = cn

    .CursorLocation = adUseClient

    .LockType = adLockPessimistic

    .Source = "select * from tab"

    .CursorType = adOpenStatic

    .Open

    End With

    With rst

    .ActiveConnection = cn

    CHET NATH SARASWATI (054226956) 66

  • 8/9/2019 8.System Analysis & System Design

    41/122

    System ANALYSIS & DESIGN

    .CursorLocation = adUseClient

    .LockType = adLockPessimistic

    .Source = "select * from tab"

    .CursorType = adOpenStatic

    .Open

    End With

    With rallrec

    .ActiveConnection = cn

    .CursorLocation = adUseClient

    .LockType = adLockPessimistic

    .Source = "select * from tab"

    .CursorType = adOpenStatic

    .Open

    End With

    FRM_MENU.Show

    End Sub

    Code for MAIN Form 1: MainWin.frm

    Private Sub Command1_Click()

    End Sub

    Private Sub CMDCLOSE_Click()

    EndEnd Sub

    Private Sub cmdemp_Click()

    FRM_SUBMENU_EMP.Show

    End Sub

    CHET NATH SARASWATI (054226956) 67

  • 8/9/2019 8.System Analysis & System Design

    42/122

    System ANALYSIS & DESIGN

    Private Sub cmdquery_Click()

    FRM_MAINQUERY.Show

    End Sub

    Private Sub cmdstud_Click()

    FRM_SUBMENU_STUD.Show

    End Sub

    Private Sub cquery_Click()

    End Sub

    Code for Module 2: Login Form : LoginWin.frm

    general declaration

    Dim user As String

    CODING FOR STUDENT DETAILS:FRM_STUD_DETAIL

    Private Sub cmdexit_Click()

    frmlogin.Hide

    frmmain.Hide

    End

    End Sub

    Private Sub cmdlogin_Click()

    Static x As Integer

    If txtuser.Text = "" Or txtpassword.Text = "" Then

    m = MsgBox("User name and password should not blank", vbExclamation,

    "Student Infosys")

    x = x + 1

    CHET NATH SARASWATI (054226956) 68

  • 8/9/2019 8.System Analysis & System Design

    43/122

    System ANALYSIS & DESIGN

    ElseIf UCase(Trim(txtuser.Text)) =

    UCase(Trim(Adodc1.Recordset.Fields(0).Value)) And

    UCase(Trim(txtpassword.Text)) =

    UCase(Trim(Adodc1.Recordset.Fields(1).Value)) Then

    user = UCase(txtuser.Text)

    Adodc1.Recordset.Close

    Unload Me

    frmlogin.Hide

    frmmain.statusbar.Panels(7).Text = user

    frmmain.Show

    Else

    m = MsgBox("Incorrect User Name and Password , Try again", vbCritical,

    "Student Infosys")

    x = x + 1

    End If

    If x > 3 Then

    Adodc1.Recordset.Close

    frmlogin.Hide

    frmmain.HideEnd

    End If

    End Sub

    Private Sub Form_Activate()

    txtuser.SetFocus

    End Sub

    Private Sub txtpassword_KeyPress(KeyAscii As Integer)

    If KeyAscii = 13 Then

    cmdlogin.SetFocus

    CHET NATH SARASWATI (054226956) 69

  • 8/9/2019 8.System Analysis & System Design

    44/122

    System ANALYSIS & DESIGN

    End If

    End Sub

    Private Sub txtuser_KeyPress(KeyAscii As Integer)

    If KeyAscii = 13 Then

    txtpassword.SetFocus

    End If

    End Sub

    Code for Module 3: New Admitted Student : NewAdm.frm

    Option Explicit

    Dim tot As Integer, cur As Integer, ctr As Boolean

    Private Sub cclose_Click()End

    End Sub

    Private Sub cdel_Click()

    On Error GoTo n

    Dim a%

    a = MsgBox("Do you want to delete?", vbYesNo, "DELETE ALERT")If a = vbYes Then

    If tot > 0 Then

    If cur < tot Then

    tot = tot - 1

    ElseIf cur > 1 Then

    CHET NATH SARASWATI (054226956) 70

  • 8/9/2019 8.System Analysis & System Design

    45/122

    System ANALYSIS & DESIGN

    tot = tot - 1

    cur = cur - 1

    rstud.MovePrevious

    ElseIf cur = tot Then

    cur = cur - 1

    tot = tot - 1

    Else

    cur = 0

    tot = 0

    End If

    rstud.Delete

    Else

    MsgBox "NO RECORDS AVAILABLE FOR DELETION"

    End If

    End If

    tnevig.Text = "curr:" & cur & "/" & "total:" & totExit Sub

    n:

    MsgBox "ERROR OCCURRED!PLEASE CHECK VALUES"

    End Sub

    Private Sub cfirst_Click()If tot > 0 Then

    If cur > 1 Then

    rstud.MoveFirst

    cur = 1

    Else

    CHET NATH SARASWATI (054226956) 71

  • 8/9/2019 8.System Analysis & System Design

    46/122

    System ANALYSIS & DESIGN

    MsgBox "Already at the first record can not move!"

    End If

    Else

    MsgBox "No records available"

    End If

    tnevig.Text = "curr:" & cur & "/" & "total:" & tot

    End Sub

    Private Sub clast_Click()

    If tot > 0 Then

    If cur < tot Then

    rstud.MoveLast

    cur = tot

    Else

    MsgBox "Already at the end of records!"

    End If

    Else

    MsgBox "No records available!"End If

    tnevig.Text = "curr:" & cur & "/" & "total:" & tot

    End Sub

    Private Sub cnew_Click()

    rstud.AddNewtreg.SetFocus

    ctr = True

    End Sub

    CHET NATH SARASWATI (054226956) 72

  • 8/9/2019 8.System Analysis & System Design

    47/122

    System ANALYSIS & DESIGN

    Private Sub cnext_Click()

    If tot > 0 Then

    If cur < tot Then

    rstud.MoveLast

    cur = tot

    Else

    MsgBox "Already at the end of records!"

    End If

    Else

    MsgBox "No records available!"

    End If

    tnevig.Text = "curr:" & cur & "/" & "total:" & tot

    End Sub

    Private Sub cprev_Click()

    If tot > 0 Then

    If cur > 1 Then

    rstud.MovePreviouscur = cur - 1

    Else

    MsgBox "Already at the first record!can't move previous"

    End If

    Else

    MsgBox "No records available"

    End Iftnevig.Text = "curr:" & cur & "/" & "total:" & tot

    End Sub

    Private Sub csave_Click()

    CHET NATH SARASWATI (054226956) 73

  • 8/9/2019 8.System Analysis & System Design

    48/122

    System ANALYSIS & DESIGN

    rstud.Update

    If ctr Then

    tot = tot + 1

    cur = tot

    ctr = False

    End If

    tnevig.Text = "curr:" & cur & "/" & "total:" & tot

    End Sub

    Private Sub csearch_Click()

    rstud.Close

    rstud.Source = "select * from student_detail where reg_no='" & creg.Text

    & "'"

    rstud.Open

    show1

    End Sub

    Private Sub Form_Load()

    rstud.Close

    rstud.Source = "select * from student_detail"

    rstud.Open

    Set DataGrid1.DataSource = rstud

    Set tsid.DataSource = rstud

    tsid.DataField = "s_id"Set treg.DataSource = rstud

    treg.DataField = "reg_no"

    Set tclass.DataSource = rstud

    tclass.DataField = "class"

    Set tsec.DataSource = rstud

    CHET NATH SARASWATI (054226956) 74

  • 8/9/2019 8.System Analysis & System Design

    49/122

    System ANALYSIS & DESIGN

    tsec.DataField = "section"

    Set troll.DataSource = rstud

    troll.DataField = "roll_no"

    Set tscode.DataSource = rstud

    tscode.DataField = "sex_code"

    Set tdob.DataSource = rstud

    tdob.DataField = "date_birth"

    Do While Not rstud.EOF

    tot = tot + 1

    rstud.MoveNext

    Loop

    If tot > 0 Then

    cur = 1

    rstud.Requery

    End If

    Dim rreg As Recordset

    Set rreg = New RecordsetWith rreg

    .ActiveConnection = cn

    .CursorLocation = adUseClient

    .LockType = adLockPessimistic

    .Source = "select reg_no from student_detail"

    .CursorType = adOpenStatic

    .Open

    End With

    Set creg.DataSource = rreg

    Do While Not rreg.EOF

    creg.AddItem (rreg!reg_no)

    CHET NATH SARASWATI (054226956) 75

  • 8/9/2019 8.System Analysis & System Design

    50/122

    System ANALYSIS & DESIGN

    rreg.MoveNext

    Loop

    rreg.Close

    tnevig.Text = "curr:" & cur & "/" & "total:" & tot

    End Sub

    Private Sub opfem_Click()

    tscode.Text = opfem.Caption

    End Sub

    Private Sub opmale_Click()

    tscode.Text = opmale.Caption

    End Sub

    Private Sub show1()

    tsid.Text = rstud!s_id

    treg.Text = rstud!reg_no

    tclass.Text = rstud!Classtsec.Text = rstud!Section

    troll.Text = rstud!roll_no

    tscode.Text = rstud!sex_code

    tdob.Text = rstud!date_birth

    End Sub

    CHET NATH SARASWATI (054226956) 76

  • 8/9/2019 8.System Analysis & System Design

    51/122

    System ANALYSIS & DESIGN

    CODING FOR EMPLOYEE DETAILS:FRM_EMPLOYEE_DETAILS

    Option Explicit

    Dim tot As Integer, cur As Integer, ctr As Boolean

    Private Sub CMDCLOSE_Click()

    End

    End Sub

    Private Sub cmddel_Click()

    On Error GoTo n

    Dim a%

    a = MsgBox("Do you want to delete?", vbYesNo, "DELETE ALERT")

    If a = vbYes Then

    If tot > 0 Then

    If cur < tot Then

    remp.Delete

    tot = tot - 1

    ElseIf cur > 1 Thenremp.Delete

    tot = tot - 1

    Else

    remp.Delete

    cur = 0

    tot = 0

    End IfEnd If

    End If

    MsgBox "REQUESTED RECORD DELETED"

    Exit Sub

    n:

    MsgBox "ERROE!CHECK VALUES" CHET NATH SARASWATI (054226956) 77

  • 8/9/2019 8.System Analysis & System Design

    52/122

    System ANALYSIS & DESIGN

    CODING FOR DESIGNATION:FRM_DESIGNATION.FRM

    Option Explicit

    Dim tot As Integer, cur As Integer, ctr As Boolean

    Private Sub cclose_Click()

    End

    End Sub

    Private Sub cdel_Click()

    On Error GoTo n

    Dim a%

    a = MsgBox("Do you want to delete?", vbYesNo, "DELETE ALERT")

    If a = vbYes Then

    If tot > 0 Then

    If cur < tot Then

    tot = tot - 1

    ElseIf cur > 1 Then

    cur = cur - 1

    tot = tot - 1rdesig.MovePrevious

    ElseIf cur = tot Then

    cur = cur - 1

    tot = tot - 1

    Else

    cur = 0

    tot = 0End If

    rdesig.Delete

    End If

    End If

    MsgBox "REQUESTED RECORD DELETED"

    Exit Sub CHET NATH SARASWATI (054226956) 78

  • 8/9/2019 8.System Analysis & System Design

    53/122

    System ANALYSIS & DESIGN

    CODING FOR SALARY_DETAILS:FRM_SALARY.FRM

    Option Explicit

    Dim tot As Integer, cur As Integer, ctr As Boolean

    Private Sub cclose_Click()

    End

    End Sub

    Private Sub cdel_Click()

    On Error GoTo n

    Dim a%

    a = MsgBox("Do you want to delete?", vbYesNo, "DELETE ALERT")

    If a = vbYes Then

    If tot > 0 Then

    If cur < tot Then

    tot = tot - 1

    ElseIf cur > 1 Then

    tot = tot - 1cur = cur - 1

    rsal.MovePrevious

    ElseIf cur = tot Then

    cur = cur - 1

    tot = tot - 1

    Else

    cur = 0tot = 0

    End If

    rsal.Delete

    Else

    MsgBox "NO RECORDS AVAILABLE FOR DELETION"

    End If CHET NATH SARASWATI (054226956) 79

  • 8/9/2019 8.System Analysis & System Design

    54/122

    System ANALYSIS & DESIGN

    CODING FOR REGISTRATION:FRM_REGISTRATION.FRM

    Option Explicit

    Dim tot As Integer, cur As Integer, ctr As Boolean

    Private Sub cclose_Click()

    End

    End Sub

    Private Sub cdel_Click()

    On Error GoTo n

    Dim a%

    a = MsgBox("Do you want to delete?", vbYesNo, "DELETE ALERT")

    If a = vbYes Then

    If tot > 0 Then

    If cur < tot Then

    tot = tot - 1

    ElseIf cur > 1 Then

    tot = tot - 1cur = cur - 1

    rreg.MovePrevious

    ElseIf cur = tot Then

    cur = cur - 1

    tot = tot - 1

    Else

    cur = 0tot = 0

    End If

    rreg.Delete

    Else

    MsgBox "NO RECORDS AVAILABLE FOR DELETION"

    End If CHET NATH SARASWATI (054226956) 80

  • 8/9/2019 8.System Analysis & System Design

    55/122

    System ANALYSIS & DESIGN

    CODING FOR FEE_DETAILS:FRM_FEE_DETAIL.FRM

    Option Explicit

    Dim tot As Integer, cur As Integer, ctr As Boolean

    Private Sub cclose_Click()

    End

    End Sub

    Private Sub cdel_Click()

    On Error GoTo n

    Dim a%

    a = MsgBox("Do you want to delete?", vbYesNo, "DELETE ALERT")

    If a = vbYes Then

    If tot > 0 Then

    If cur < tot Then

    tot = tot - 1

    ElseIf cur > 1 Then

    tot = tot - 1cur = cur - 1

    rreg.MovePrevious

    ElseIf cur = tot Then

    cur = cur - 1

    tot = tot - 1

    Else

    cur = 0tot = 0

    End If

    rreg.Delete

    Else

    MsgBox "NO RECORDS AVAILABLE FOR DELETION"

    End If CHET NATH SARASWATI (054226956) 81

  • 8/9/2019 8.System Analysis & System Design

    56/122

    System ANALYSIS & DESIGN

    CODING FOR LEAVE DETAILS:FRM_LEAVE.FRM

    Option Explicit

    Dim tot As Integer, cur As Integer, ctr As Boolean

    Private Sub cclose_Click()

    End

    End Sub

    Private Sub cdel_Click()

    On Error GoTo n

    Dim a%

    a = MsgBox("Do you want to delete?", vbYesNo, "DELETE ALERT")

    If a = vbYes Then

    If tot > 0 Then

    If cur < tot Then

    tot = tot - 1

    ElseIf cur > 1 Then

    tot = tot - 1cur = cur - 1

    rreg.MovePrevious

    ElseIf cur = tot Then

    cur = cur - 1

    tot = tot - 1

    Else

    cur = 0tot = 0

    End If

    rreg.Delete

    Else

    MsgBox "NO RECORDS AVAILABLE FOR DELETION"

    End If CHET NATH SARASWATI (054226956) 82

  • 8/9/2019 8.System Analysis & System Design

    57/122

    System ANALYSIS & DESIGN

    CODING FOR LIBRARY DETAILS:FRM_LIBRARY.FRM

    Option Explicit

    Dim tot As Integer, cur As Integer, ctr As Boolean

    Private Sub cclose_Click()

    End

    End Sub

    Private Sub cdel_Click()

    On Error GoTo n

    Dim a%

    a = MsgBox("Do you want to delete?", vbYesNo, "DELETE ALERT")

    If a = vbYes Then

    If tot > 0 Then

    If cur < tot Then

    tot = tot - 1

    ElseIf cur > 1 Then

    tot = tot - 1cur = cur - 1

    rlib.MovePrevious

    ElseIf cur = tot Then

    cur = cur - 1

    tot = tot - 1

    Else

    cur = 0tot = 0

    End If

    rlib.Delete

    Else

    MsgBox "NO RECORDS AVAILABLE FOR DELETION"

    End If CHET NATH SARASWATI (054226956) 83

  • 8/9/2019 8.System Analysis & System Design

    58/122

    System ANALYSIS & DESIGN

    CODING FOR RESULT DETAILS:FRM_RESULT.FRM

    Option Explicit

    Dim tot As Integer, cur As Integer, ctr As Boolean

    Private Sub cclose_Click()

    End

    End Sub

    Private Sub cdel_Click()

    On Error GoTo n

    Dim a%

    a = MsgBox("Do you want to delete?", vbYesNo, "DELETE ALERT")

    If a = vbYes Then

    If tot > 0 Then

    If cur < tot Then

    tot = tot - 1

    ElseIf cur > 1 Then

    tot = tot - 1cur = cur - 1

    rresult.MovePrevious

    ElseIf cur = tot Then

    cur = cur - 1

    tot = tot - 1

    Else

    cur = 0tot = 0

    End If

    rresult.Delete

    Else

    MsgBox "NO RECORDS AVAILABLE FOR DELETION"

    End If CHET NATH SARASWATI (054226956) 84

  • 8/9/2019 8.System Analysis & System Design

    59/122

    System ANALYSIS & DESIGN

    CODING FOR SUB_MINU:FRM_SUBMENU.FRM

    Private Sub CMDCLOSE_Click()

    End

    End Sub

    Private Sub cmddes_Click()

    FRM_DESIGNATION.Show

    End Sub

    Private Sub cmdemp_Click()

    FRM_EMPLOYEE_DETAIL.Show

    End Sub

    Private Sub cmdleave_Click()

    FRM_LEAVES.Show

    End Sub

    Private Sub cmdqual_Click()

    FRM_QUALIFICATION.ShowEnd Sub

    Private Sub cmdsal_Click()

    FRM_SALARY.Show

    End Sub

    Private Sub cmdteach_Click()FRM_TEACHER_DETAIL.Show

    End Sub

    Private Sub Form_Load()

    End Sub

    CHET NATH SARASWATI (054226956) 85

  • 8/9/2019 8.System Analysis & System Design

    60/122

    System ANALYSIS & DESIGN

    CODING FOR TEACHAR_DETAILS:FRM_TEACHAR_DETAIL.FRM

    Option Explicit

    Dim tot As Integer, cur As Integer, ctr As Boolean

    Private Sub cclose_Click()

    End

    End Sub

    Private Sub cdel_Click()

    On Error GoTo n

    Dim a%

    a = MsgBox("Do you want to delete?", vbYesNo, "DELETE ALERT")

    If a = vbYes Then

    If tot > 0 Then

    If cur < tot Then

    tot = tot - 1

    ElseIf cur > 1 Then

    tot = tot - 1cur = cur - 1

    rteach.MovePrevious

    ElseIf cur = tot Then

    cur = cur - 1

    tot = tot - 1

    Else

    cur = 0tot = 0

    End If

    rteach.Delete

    Else

    MsgBox "NO RECORDS AVAILABLE FOR DELETION"

    End If CHET NATH SARASWATI (054226956) 86

  • 8/9/2019 8.System Analysis & System Design

    61/122

    System ANALYSIS & DESIGN

    CODING FOR TRASPORT_DETAILS:FRM_TRANSPORT.FRM

    Option Explicit

    Dim tot As Integer, cur As Integer, ctr As Boolean

    Private Sub cclose_Click()

    End

    End Sub

    Private Sub cdel_Click()

    On Error GoTo n

    Dim a%

    a = MsgBox("Do you want to delete?", vbYesNo, "DELETE ALERT")

    If a = vbYes Then

    If tot > 0 Then

    If cur < tot Then

    tot = tot - 1

    ElseIf cur > 1 Then

    tot = tot - 1

    cur = cur - 1

    rtrans.MovePrevious

    ElseIf cur = tot Then

    cur = cur - 1tot = tot - 1

    Else

    cur = 0

    tot = 0

    End If CHET NATH SARASWATI (054226956) 87

  • 8/9/2019 8.System Analysis & System Design

    62/122

    System ANALYSIS & DESIGN

    CHET NATH SARASWATI (054226956) 88

  • 8/9/2019 8.System Analysis & System Design

    63/122

    System ANALYSIS & DESIGN

    CODING FOR ALLRECORD:FRM_QALLRECORD.FRM

    Private Sub cmd_allrecord_Click()

    End Sub

    Private Sub CommandButton1_Click()

    End Sub

    Private Sub cmd_close_Click()

    End

    End Sub

    Private Sub cmdstud_Click()

    rallrec.Close

    rallrec.Source="select

    student_detail.reg_no,s_id,class,section,total,percentage,remarks from

    student_detail,fee_detail,result WHERE

    student_detail.reg_no=fee_detail.reg_no andstudent_detail.reg_no=result.reg_no"

    rallrec.Open

    Set DataGrid1.DataSource = rallrec

    End Sub

    Private Sub cmdemp_Click()

    rallrec.Closerallrec.Source = "select

    employee_detail.ecode,ename,post,phone_no,total_amt,desg_code from

    employee_detail,salary_detail,designation_record WHERE

    employee_detail.ecode=designation_record.ecode and

    employee_detail.ecode=salary_detail.ecode"

    rallrec.Open CHET NATH SARASWATI (054226956) 89

  • 8/9/2019 8.System Analysis & System Design

    64/122

    System ANALYSIS & DESIGN

    CODING FOR QEMPLOYEE: FRM_QEMPLOYEE.FRM

    Private Sub cmd_acct_Click()

    remployee.Close

    remployee.Source = "select * from salary_detail WHERE account_no='" +

    treg.Text + "'"

    remployee.Open

    Set DataGrid1.DataSource = remployee

    End Sub

    Private Sub cmd_close_Click()

    End

    End Sub

    Private Sub cmd_desg_Click()

    remployee.Close

    remployee.Source = "select * from designation_record WHERE desg_code='"

    + tdesg.Text + "'"remployee.Open

    Set DataGrid1.DataSource = remployee

    End Sub

    Private Sub cmd_ecode_Click()

    remployee.Closeremployee.Source = "select * from employee_detail where ecode='" +

    tecode.Text + "'"

    remployee.Open

    Set DataGrid1.DataSource = remployee

    End Sub

    CHET NATH SARASWATI (054226956) 90

  • 8/9/2019 8.System Analysis & System Design

    65/122

    System ANALYSIS & DESIGN

    CODING FOR QSTUDENT:FRM_QSTUDENT.FRM

    Private Sub cmd_close_Click()

    End

    End Sub

    Private Sub cmd_new_Click()

    TREG.Text = ""

    TREG.SetFocus

    Set DataGrid1.DataSource = rst

    End Sub

    Private Sub CMD_REGD_Click()

    rst.Close

    rst.Source = "select * from registration WHERE reg_no='" & TREG.Text & "'"

    rst.Open

    Set DataGrid1.DataSource = rst

    End Sub

    Private Sub CMD_ROLL_Click()

    rst.Close

    rst.Source = "SELECT * FROM student_detail WHERE rollno='" +

    Trim(troll.Text) + "' and class='" + Trim(tclass.Text) + "'"

    rst.Open

    Set DataGrid1.DataSource = rst

    End Sub

    Private Sub CMD_SCODE_Click()

    rst.Close

    rst.Source = "SELECT * FROM student_detail WHERE S_ID='" & TSCODE.Text

    & "'"

    rst.Open CHET NATH SARASWATI (054226956) 91

  • 8/9/2019 8.System Analysis & System Design

    66/122

    System ANALYSIS & DESIGN

    CODING FOR QUALIFICATION:FRM_QUALIFICATION.FRM

    Option Explicit

    Dim tot As Integer, cur As Integer, ctr As Boolean

    Private Sub CMDCLOSE_Click()

    End

    End Sub

    Private Sub cmddel_Click()

    On Error GoTo n

    Dim a%

    a = MsgBox("Do you want to delete?", vbYesNo, "DELETE ALERT")

    If a = vbYes Then

    If tot > 0 Then

    If cur < tot Then

    tot = tot - 1

    ElseIf cur > 1 Then

    tot = tot - 1

    cur = cur - 1

    rs.MovePrevious

    ElseIf cur = tot Then

    cur = cur - 1tot = tot - 1

    Else

    cur = 0

    tot = 0

    End If CHET NATH SARASWATI (054226956) 92

  • 8/9/2019 8.System Analysis & System Design

    67/122

    System ANALYSIS & DESIGN

    Private Sub cmdsave_Click()

    AdodcInstallment.Recordset.Save

    AdodcStudMaster.Recordset.Update

    cmdsave.Enabled = False

    CmdNew.SetFocus

    End Sub

    Private Sub Form_Activate()

    frminstallment.Left = 0frminstallment.Top = 0

    End Sub

    Private Sub Form_Initialize()

    txtReceiver.Text = frmmain.statusbar.Panels(7).Text

    AdodcInstallment.Refresh

    Do While Not (AdodcInstallment.Recordset.EOF)

    If AdodcInstallment.Recordset.EOF = True Then

    Exit Do

    End If

    totalrec = totalrec + 1

    AdodcInstallment.Recordset.MoveNext

    Loop

    AdodcInstallment.Refresh

    txtyear.Value = cmbdate.Year

    cmdsave.Enabled = False

    CmdNew.SetFocus

    End Sub

    CHET NATH SARASWATI (054226956) 93

  • 8/9/2019 8.System Analysis & System Design

    68/122

    System ANALYSIS & DESIGN

    Private Sub Form_Load()

    totalrec = 0

    End Sub

    Private Sub optPayMode_Click(Index As Integer)

    If Index = 0 Or optPayMode.Item(0).Value = True Then

    txtmodeOfPayment.Text = "Cash"

    txtRemarks.Text = txtRemarks.Text & vbCrLf & "Cash Payment"

    End If

    If Index = 2 Or optPayMode.Item(2).Value = True Then

    txtmodeOfPayment.Text = "Cheque"

    txtRemarks.Text = txtRemarks.Text & vbCrLf & "Cheque Payment"

    frmchequedetail.Show

    End If

    If Index = 1 Or optPayMode.Item(1).Value = True Then

    txtmodeOfPayment.Text = "Bank Draft"

    txtRemarks.Text = txtRemarks.Text & vbCrLf & "Bank Draft Payment"

    frmBankDraftDetails.Show

    End If

    If Index = 3 Or optPayMode.Item(3).Value = True Then

    txtmodeOfPayment.Text = "Indian Postal Order"

    txtRemarks.Text = txtRemarks.Text & vbCrLf & "IPO Payment"

    frmIPOdetails.Show

    End If

    CHET NATH SARASWATI (054226956) 94

  • 8/9/2019 8.System Analysis & System Design

    69/122

    System ANALYSIS & DESIGN

    If Index = 4 Or optPayMode.Item(4).Value = True Then

    txtmodeOfPayment.Text = "Other Mode"

    txtRemarks.Text = txtRemarks.Text & vbCrLf & "Other Payment Mode"

    m = MsgBox("Enter ohter Payment Mode Information in Remark Box",

    vbInformation, "SiS Message Box")

    frminstallment.txtRemarks.Text = frminstallment.txtRemarks.Text & _

    vbCrLf & "Mode Of Payment Name : " & _

    vbCrLf & "Issue Date : " & _

    vbCrLf & "Issuing Bank/GPO/Financial Organisation : " & _

    vbCrLf & "Bank/GPO/Financial Organisation Address : " & _

    vbCrLf & "In favour of : " & _

    vbCrLf & "Payable At : " & _

    vbCrLf & "Amount (Rs.) : "

    txtRemarks.SetFocus

    End If

    If chk2 = True Then

    txttotalNoOfInstallmentPaid.Text = Val(txttotalNoOfInstallmentPaid.Text) + 1

    AdodcStudMaster.Recordset.Fields(26).Value =

    AdodcStudMaster.Recordset.Fields(26).Value + 1

    txtRemainInstallment.Text = txttotalNoOfInstallment.Text -

    txttotalNoOfInstallmentPaid.Text

    End If

    End Sub

    Private Sub optPayMode_KeyPress(Index As Integer, KeyAscii As Integer)

    CHET NATH SARASWATI (054226956) 95

  • 8/9/2019 8.System Analysis & System Design

    70/122

    System ANALYSIS & DESIGN

    If KeyAscii = 13 Or KeyAscii = vbTab Then

    If Index = 0 Or optPayMode.Item(0).Value = True Then

    txtmodeOfPayment.Text = "Cash"

    txtRemarks.Text = txtRemarks.Text & vbCrLf & "Cash Payment"

    End If

    If Index = 2 Or optPayMode.Item(2).Value = True Then

    txtmodeOfPayment.Text = "Cheque"

    txtRemarks.Text = txtRemarks.Text & vbCrLf & "Cheque Payment"

    frmchequedetail.Show

    End If

    If Index = 1 Or optPayMode.Item(1).Value = True Then

    txtmodeOfPayment.Text = "Bank Draft"

    txtRemarks.Text = txtRemarks.Text & vbCrLf & "Bank Draft Payment"

    frmBankDraftDetails.Show

    End If

    If Index = 3 Or optPayMode.Item(3).Value = True Then

    txtmodeOfPayment.Text = "Indian Postal Order"

    txtRemarks.Text = txtRemarks.Text & vbCrLf & "IPO Payment"

    frmIPOdetails.Show

    End If

    If Index = 4 Or optPayMode.Item(4).Value = True ThentxtmodeOfPayment.Text = "Other Mode"

    txtRemarks.Text = txtRemarks.Text & vbCrLf & "Other Payment Mode"

    m = MsgBox("Enter ohter Payment Mode Information in Remark Box",

    vbInformation, "SiS Message Box")

    CHET NATH SARASWATI (054226956) 96

  • 8/9/2019 8.System Analysis & System Design

    71/122

    System ANALYSIS & DESIGN

    frminstallment.txtRemarks.Text = frminstallment.txtRemarks.Text & _

    vbCrLf & "Mode Of Payment Name : " & _

    vbCrLf & "Issue Date : " & _

    vbCrLf & "Issuing Bank/GPO/Financial Organisation : " & _

    vbCrLf & "Bank/GPO/Financial Organisation Address : " & _

    vbCrLf & "In favour of : " & _

    vbCrLf & "Payable At : " & _

    vbCrLf & "Amount (Rs.) : "

    txtRemarks.SetFocus

    End If

    If chk2 = True Then

    txttotalNoOfInstallmentPaid.Text = Val(txttotalNoOfInstallmentPaid.Text) + 1

    AdodcStudMaster.Recordset.Fields(26).Value =

    AdodcStudMaster.Recordset.Fields(26).Value + 1

    txtRemainInstallment.Text = txttotalNoOfInstallment.Text -

    txttotalNoOfInstallmentPaid.Text

    End If

    End If

    End Sub

    Private Sub TabStripFee_Click()

    If TabStripFee.Tabs(1).Selected = True Then

    End If

    If TabStripFee.Tabs(2).Selected = True Then

    End If

    CHET NATH SARASWATI (054226956) 97

  • 8/9/2019 8.System Analysis & System Design

    72/122

    System ANALYSIS & DESIGN

    End Sub

    Private Sub txtcontrolNo_KeyPress(KeyAscii As Integer)

    Dim strctrl As String

    Dim chk, chk1 As Boolean

    If KeyAscii = 13 Then

    strctrl = Trim(txtcontrolNo.Text)

    AdodcStudMaster.Refresh

    chk = False

    If AdodcStudMaster.Recordset.EOF = True Then

    m = MsgBox("Record Does exist in Student DataBases", vbExclamation, "SIS

    Message Box")

    Exit Sub

    End If

    AdodcStudMaster.Refresh

    Do While Not (AdodcStudMaster.Recordset.EOF)

    If AdodcStudMaster.Recordset.EOF = True Then

    Exit Do

    End If

    If strctrl = Trim(AdodcStudMaster.Recordset.Fields(1).Value) Then

    chk = True

    Exit Do

    End If

    AdodcStudMaster.Recordset.MoveNext

    Loop

    If chk = False Then

    m = MsgBox("Control NO. not found in Student DataBase Re-enter",

    vbExclamation, "SIS Message Box")

    txtcontrolNo.SetFocus

    Else

    CHET NATH SARASWATI (054226956) 98

  • 8/9/2019 8.System Analysis & System Design

    73/122

    System ANALYSIS & DESIGN

    txtstdName.Text = AdodcStudMaster.Recordset.Fields(4).Value

    lblCourseCode.Caption = AdodcStudMaster.Recordset.Fields(17).Value

    txttotalNoOfInstallment.Text = AdodcStudMaster.Recordset.Fields(23).Value

    txttotalNoOfInstallmentPaid.Text =

    AdodcStudMaster.Recordset.Fields(26).Value

    txtRemainInstallment.Text = txttotalNoOfInstallment.Text -

    txttotalNoOfInstallmentPaid.Text

    AdodcCourse.Refresh

    chk1 = False

    Do While Not (AdodcCourse.Recordset.EOF)

    If AdodcCourse.Recordset.EOF = True Then

    Exit Do

    End If

    If Trim(UCase(AdodcStudMaster.Recordset.Fields(17).Value)) =

    Trim(UCase(AdodcCourse.Recordset.Fields(1))) And

    Trim(UCase(AdodcStudMaster.Recordset.Fields(18).Value)) =

    Trim(UCase(AdodcCourse.Recordset.Fields(0).Value)) Then

    chk1 = True

    Exit DoEnd If

    AdodcCourse.Recordset.MoveNext

    Loop

    If chk1 = False Then

    m = MsgBox("Course not found in Course DataBase", vbExclamation, "SIS

    Message Box")

    ElsetxtmonthlyInstallment.Text = AdodcCourse.Recordset.Fields(7).Value

    txtInstallmentFee.Text = AdodcCourse.Recordset.Fields(7).Value

    End If

    cmbdate.SetFocus

    End If

    CHET NATH SARASWATI (054226956) 99

  • 8/9/2019 8.System Analysis & System Design

    74/122

    System ANALYSIS & DESIGN

    End If

    End Sub

    Private Sub txtmonthlyInstallment_Change()

    If Val(txtmonthlyInstallment.Text) > Val(txtInstallmentFee.Text) Then

    txtRemarks.Text = "Advance Instalallment Fee in this month : Rs. " +

    str(Val(txtmonthlyInstallment.Text) - Val(txtInstallmentFee.Text))

    End If

    If Val(txtmonthlyInstallment.Text) < Val(txtInstallmentFee.Text) Then

    txtRemarks.Text = "Due Instalallment Fee of this month : Rs. " +

    str(Val(txtInstallmentFee.Text) - Val(txtmonthlyInstallment.Text))

    End If

    If Val(txtmonthlyInstallment.Text) = Val(txtInstallmentFee.Text) Then

    txtRemarks.Text = "Instalallment Fee of this month is Clear"

    End If

    End Sub

    Private Sub txtmonthlyInstallment_KeyPress(KeyAscii As Integer)

    Dim slen, keyasc As Integer

    Dim chk As Boolean

    Dim str1 As String

    If KeyAscii = 13 Or KeyAscii = vbTab Then

    str1 = txtmonthlyInstallment.Text

    slen = Len(str1)

    chk = True

    For i = 1 To slen

    keyasc = Asc(Mid(str1, i, 1))

    If Not (keyasc >= 48 And keyasc

  • 8/9/2019 8.System Analysis & System Design

    75/122

    System ANALYSIS & DESIGN

    End If

    Next i

    If chk = False Then

    MsgBox ("Monthly must be number/digits , Re-Enter")

    txtmonthlyInstallment.SetFocus

    Exit Sub

    End If

    If Trim(txtmonthlyInstallment.Text) = "" Then

    m = MsgBox("Monthly Installment should not be blank", vbExclamation, "SIS

    Message Box")

    txtmonthlyInstallment.SetFocus

    Exit Sub

    End If

    If Val(txtmonthlyInstallment.Text) Val(txtInstallmentFee.Text) Then

    txtRemarks.Text = "Advance Instalallment Fee in this month : Rs. " +

    str(Val(txtmonthlyInstallment.Text) - Val(txtInstallmentFee.Text))

    End If

    If Val(txtmonthlyInstallment.Text) < Val(txtInstallmentFee.Text) Then

    txtRemarks.Text = "Due Instalallment Fee of this month : Rs. " +

    str(Val(txtInstallmentFee.Text) - Val(txtmonthlyInstallment.Text))End If

    If Val(txtmonthlyInstallment.Text) = Val(txtInstallmentFee.Text) Then

    txtRemarks.Text = "Instalallment Fee of this month is Clear"

    End If

    txttotalNoOfInstallmentPaid.Text = Val(txttotalNoOfInstallmentPaid.Text) + 1

    CHET NATH SARASWATI (054226956) 101

  • 8/9/2019 8.System Analysis & System Design

    76/122

    System ANALYSIS & DESIGN

    AdodcStudMaster.Recordset.Fields(26).Value =

    AdodcStudMaster.Recordset.Fields(26).Value + 1

    txtRemainInstallment.Text = txttotalNoOfInstallment.Text -

    txttotalNoOfInstallmentPaid.Text

    chk2 = False

    optPayMode.Item(0).SetFocus

    End If

    End Sub

    Private Sub txtRemarks_KeyPress(KeyAscii As Integer)

    If vbTab Then

    cmdsave.SetFocus

    End If

    End Sub

    Private Sub txtyear_KeyPress(KeyAscii As Integer)

    If KeyAscii = 13 Then

    txtmonthlyInstallment.SetFocus

    End If

    End Sub

    Code for Module 5: Bank Draft Form: BankDraftDetailswin.frm

    Private Sub cboIssueDate_KeyPress(KeyAscii As Integer)

    txtNameOfIssueBank.SetFocusEnd Sub

    Private Sub cboIssueDate_LostFocus()

    txtNameOfIssueBank.SetFocus

    CHET NATH SARASWATI (054226956) 102

  • 8/9/2019 8.System Analysis & System Design

    77/122

    System ANALYSIS & DESIGN

    End Sub

    Private Sub cmdcancel_Click()

    Unload Me

    frmBankDraftDetails.Hide

    frminstallment.Show

    End Sub

    Private Sub cmdOk_Click()

    frminstallment.txtRemarks.Text = frminstallment.txtRemarks.Text & _

    vbCrLf & "Bank Draft No. : " & txtDraftNumber.Text & _

    vbCrLf & "Issue Date : " & cboIssueDate.Value & _

    vbCrLf & "Issuing Bank Name : " & txtNameOfIssueBank.Text & _

    vbCrLf & "Issuing Bank Branch Code and Address : " & _

    vbCrLf & txtNameOfIssueBank.Text & _

    vbCrLf & "In favour of : " & txtPayTo.Text & _

    vbCrLf & "Payable At : " & txtPayableAT.Text & _

    vbCrLf & "Amount (Rs.) : " & txtDraftOfRs.Text

    Unload Me

    frmBankDraftDetails.Hide

    frminstallment.Show

    End Sub

    Private Sub Form_Activate()

    frmBankDraftDetails.Left = 0

    frmBankDraftDetails.Top = 0End Sub

    Private Sub Form_Initialize()

    frminstallment.Hide

    txtDraftNumber.SetFocus

    CHET NATH SARASWATI (054226956) 103

  • 8/9/2019 8.System Analysis & System Design

    78/122

    System ANALYSIS & DESIGN

    End Sub

    Private Sub txtbranchcodeAddr_KeyPress(KeyAscii As Integer)

    If KeyAscii = 13 Then

    txtPayTo.SetFocus

    End If

    End Sub

    Private Sub txtDraftNumber_KeyPress(KeyAscii As Integer)

    If KeyAscii = 13 Then

    If txtDraftNumber.Text = "" Then

    m = MsgBox("Draft No. must not be empty", vbExclamation, "SIS Message

    Box")

    txtDraftNumber.SetFocus

    Exit Sub

    End If

    cboIssueDate.SetFocus

    End If

    End Sub

    Private Sub txtDraftOfRs_KeyPress(KeyAscii As Integer)

    Dim slen, keyasc As Integer

    Dim chk As Boolean

    Dim str1 As String

    If KeyAscii = 13 Then

    str1 = txtDraftOfRs.Textslen = Len(str1)

    chk = True

    For i = 1 To slen

    keyasc = Asc(Mid(str1, i, 1))

    If Not (keyasc >= 48 And keyasc

  • 8/9/2019 8.System Analysis & System Design

    79/122

    System ANALYSIS & DESIGN

    chk = False

    Exit For

    End If

    Next i

    If chk = False Then

    MsgBox ("Amount must be number/digits , Reenter")

    txtDraftOfRs.SetFocus

    Exit Sub

    End If

    If Trim(txtDraftOfRs.Text) = "" Then

    m = MsgBox("Amount must not be empty", vbExclamation, "SIS Message Box")

    txtDraftOfRs.SetFocus

    Exit Sub

    End If

    If Val(txtDraftOfRs.Text)

  • 8/9/2019 8.System Analysis & System Design

    80/122

    System ANALYSIS & DESIGN

    End Sub

    Private Sub txtNameOfIssueBank_KeyPress(KeyAscii As Integer)

    If KeyAscii = 13 Then

    If txtNameOfIssueBank.Text = "" Then

    m = MsgBox("Name of Issuing Bank must not be empty", vbExclamation, "SIS

    Message Box")

    txtNameOfIssueBank.SetFocus

    Exit Sub

    End If

    txtbranchcodeAddr.SetFocus

    End If

    End Sub

    CHET NATH SARASWATI (054226956) 106

  • 8/9/2019 8.System Analysis & System Design

    81/122

    System ANALYSIS & DESIGN

    Private Sub txtPayableAT_KeyPress(KeyAscii As Integer)

    If KeyAscii = 13 Then

    If txtPayableAT.Text = "" Then

    m = MsgBox("Payable At field must not be empty", vbExclamation, "SIS

    Message Box")

    txtPayableAT.SetFocus

    Exit Sub

    End If

    txtDraftOfRs.SetFocus

    End If

    End Sub

    Private Sub txtPayTo_KeyPress(KeyAscii As Integer)

    If KeyAscii = 13 Then

    If txtPayTo.Text = "" Then

    m = MsgBox("In Favour of field must not be empty", vbExclamation, "SIS

    Message Box")

    txtPayTo.SetFocus

    Exit Sub

    End If

    txtPayableAT.SetFocus

    End If

    End Sub

    Private Sub cboIssueDate_LostFocus()

    txtNameOfBank.SetFocus

    End Sub

    CHET NATH SARASWATI (054226956) 107

  • 8/9/2019 8.System Analysis & System Design

    82/122

    System ANALYSIS & DESIGN

    Private Sub cboIssueDate_LostFocus()

    txtNameOfBank.SetFocus

    End Sub

    Private Sub cmdcancel_Click()

    Unload Me

    frmchequedetail.Hide

    frminstallment.Show

    End Sub

    Private Sub cmdOk_Click()

    frminstallment.txtRemarks.Text = frminstallment.txtRemarks.Text & _

    vbCrLf & "Cheque No. : " & txtChequeNumber.Text & _

    vbCrLf & "Issue Date : " & cboIssueDate.Value & _

    vbCrLf & "Bank Name : " & txtNameOfBank.Text & _

    vbCrLf & "Chequer and A/C No. : " & _

    vbCrLf & txtChequerACNo.Text & _

    vbCrLf & "To : " & txtPayTo.Text & _

    vbCrLf & "Amount (Rs.) : " & txtDraftOfRs.Text

    Unload Me

    frmchequedetail.Hide

    frminstallment.Show

    End Sub

    CHET NATH SARASWATI (054226956) 108

  • 8/9/2019 8.System Analysis & System Design

    83/122

    System ANALYSIS & DESIGN

    Private Sub Form_Activate()

    frmchequedetail.Left = 0

    frmchequedetail.Top = 0

    End Sub

    Private Sub Form_Initialize()

    frminstallment.Hide

    txtChequeNumber.SetFocus

    End Sub

    Private Sub txtDraftNumber_KeyPress(KeyAscii As Integer)

    If KeyAscii = 13 Then

    If txtDraftNumber.Text = "" Then

    m = MsgBox("Draft No. must not be empty", vbExclamation, "SIS Message

    Box")

    txtDraftNumber.SetFocusExit Sub

    End If

    cboIssueDate.SetFocus

    End If

    End Sub

    Private Sub txtChequeOfRs_KeyPress(KeyAscii As Integer)

    Dim slen, keyasc As Integer

    Dim chk As Boolean

    Dim str1 As String

    If KeyAscii = 13 Then

    CHET NATH SARASWATI (054226956) 109

  • 8/9/2019 8.System Analysis & System Design

    84/122

    System ANALYSIS & DESIGN

    str1 = txtChequeOfRs.Text

    slen = Len(str1)

    chk = True

    For i = 1 To slen

    keyasc = Asc(Mid(str1, i, 1))

    If Not (keyasc >= 48 And keyasc

  • 8/9/2019 8.System Analysis & System Design

    85/122

    System ANALYSIS & DESIGN

    vbExclamation, "SIS Message Box")

    txtChequeOfRs.SetFocus

    Exit Sub

    End If

    cmdok.SetFocus

    End If

    End Sub

    Private Sub txtChequerACNo_KeyPress(KeyAscii As Integer)

    If KeyAscii = 13 Then

    txtPayTo.SetFocus

    End If

    End Sub

    Private Sub txtNameOfBank_KeyPress(KeyAscii As Integer)

    If KeyAscii = 13 Then

    If txtNameOfBank.Text = "" Then

    m = MsgBox("Name of Bank must not be empty", vbExclamation, "SIS Message

    Box")txtNameOfBank.SetFocus

    Exit Sub

    End If

    txtChequerACNo.SetFocus

    End If

    End Sub

    Private Sub txtPayTo_KeyPress(KeyAscii As Integer)

    If KeyAscii = 13 Then

    If txtPayTo.Text = "" Then

    m = MsgBox("To field must not be empty", vbExclamation, "SIS Message Box")

    CHET NATH SARASWATI (054226956) 111

  • 8/9/2019 8.System Analysis & System Design

    86/122

    System ANALYSIS & DESIGN

    txtPayTo.SetFocus

    Exit Sub

    End If

    txtChequeOfRs.SetFocus

    End If

    End Sub

    /////

    Private Sub cboIssueDate_KeyPress(KeyAscii As Integer)

    txtissueGPO.SetFocus

    End Sub

    Private Sub cboIssueDate_LostFocus()

    txtissueGPO.SetFocus

    End Sub

    Private Sub cmdcancel_Click()

    Unload Me

    frmIPOdetails.Hide

    frminstallment.Show

    End Sub

    Private Sub cmdOk_Click()

    frminstallment.txtRemarks.Text = frminstallment.txtRemarks.Text & _

    vbCrLf & "IPO No. : " & txtIPONumber.Text & _

    vbCrLf & "Issue Date : " & cboIssueDate.Value & _

    vbCrLf & "Issuing GPO Name : " & txtissueGPO.Text & _

    vbCrLf & "GPO/Branch Address : " & _

    CHET NATH SARASWATI (054226956) 112

  • 8/9/2019 8.System Analysis & System Design

    87/122

    System ANALYSIS & DESIGN

    vbCrLf & txtbranchcodeAddr.Text & _

    vbCrLf & "In favour of : " & txtPayTo.Text & _

    vbCrLf & "Payable At : " & txtPayableAT.Text & _

    vbCrLf & "Amount (Rs.) : " & txtIPOofRs.Text

    Unload Me

    frmIPOdetails.Hide

    frminstallment.Show

    End Sub

    Private Sub Form_Activate()

    frmIPOdetails.Left = 0

    frmIPOdetails.Top = 0

    End Sub

    Private Sub Form_Initialize()

    frminstallment.Hide

    txtIPONumber.SetFocus

    End Sub

    Private Sub txtbranchcodeAddr_KeyPress(KeyAscii As Integer)

    If KeyAscii = 13 Then

    txtPayTo.SetFocus

    End If

    End Sub

    Private Sub txtIPONumber_KeyPress(KeyAscii As Integer)

    If KeyAscii = 13 Then

    If txtIPONumber.Text = "" Then

    m = MsgBox("Draft No. must not be empty", vbExclamation, "SIS Message

    CHET NATH SARASWATI (054226956) 113

  • 8/9/2019 8.System Analysis & System Design

    88/122

    System ANALYSIS & DESIGN

    Box")

    txtIPONumber.SetFocus

    Exit Sub

    End If

    cboIssueDate.SetFocus

    End If

    End Sub

    Private Sub txtIPOofRs_KeyPress(KeyAscii As Integer)

    Dim slen, keyasc As Integer

    Dim chk As Boolean

    Dim str1 As String

    If KeyAscii = 13 Then

    str1 = txtIPOofRs.Text

    slen = Len(str1)

    chk = True

    For i = 1 To slen

    keyasc = Asc(Mid(str1, i, 1))

    If Not (keyasc >= 48 And keyasc

  • 8/9/2019 8.System Analysis & System Design

    89/122

    System ANALYSIS & DESIGN

    m = MsgBox("Amount must not be empty", vbExclamation, "SIS Message Box")

    txtIPOofRs.SetFocus

    Exit Sub

    End If

    If Val(txtIPOofRs.Text)

  • 8/9/2019 8.System Analysis & System Design

    90/122

    System ANALYSIS & DESIGN

    End If

    End Sub

    Private Sub txtPayableAT_KeyPress(KeyAscii As Integer)

    If KeyAscii = 13 Then

    If txtPayableAT.Text = "" Then

    m = MsgBox("Payable At field must not be empty", vbExclamation, "SIS

    Message Box")

    txtPayableAT.SetFocus

    Exit Sub

    End If

    txtIPOofRs.SetFocus

    End If

    End Sub

    Private Sub txtPayTo_KeyPress(KeyAscii As Integer)

    If KeyAscii = 13 Then

    If txtPayTo.Text = "" Then

    m = MsgBox("In Favour of field must not be empty", vbExclamation, "SIS

    Message Box")

    txtPayTo.SetFocus

    Exit Sub

    End If

    txtPayableAT.SetFocus

    End If

    End Sub

    CHET NATH SARASWATI (054226956) 116

  • 8/9/2019 8.System Analysis & System Design

    91/122

    System ANALYSIS & DESIGN

    Dim tstr As String

    Private Sub cmbQualification_KeyPress(KeyAscii As Integer)

    If KeyAscii = 13 Then

    txtCourseDuration.SetFocus

    End If

    End Sub

    Private Sub cmdclear_Click()

    txtprogram.Text = ""

    txtTempProgram.Text = ""

    If AdodcCourse.Recordset.EOF = True Then

    txtTempProgram.Text = "CLP 1"txtprogram.Text = txtTempProgram.Text

    Else

    AdodcCourse.Recordset.MoveLast

    txtprogram.Text = txtTempProgram.Text

    End If

    txtCourseCode.Text = ""

    txtCourseName.Text = ""cmbQualification.Clear

    txtCourseDuration.Text = ""

    txtCourseAdmFee.Text = ""

    txtcourseFee.Text = ""

    txtNoOfInstallment.Text = ""

    txtCourseInstallmentFee.Text = ""

    txtCourseTotalFee.Text = ""txtCourseModulenames.Text = ""

    txtCourseTotalFee.Text = ""

    End Sub

    CHET NATH SARASWATI (054226956) 117

  • 8/9/2019 8.System Analysis & System Design

    92/122

    System ANALYSIS & DESIGN

    Private Sub cmdclear_MouseEnter()

    txtprogram.Text = ""

    txtTempProgram.Text = ""

    If AdodcCourse.Recordset.EOF = True Then

    txtTempProgram.Text = "CLP 1"

    txtprogram.Text = txtTempProgram.Text

    Else

    AdodcCourse.Recordset.MoveLast

    txtprogram.Text = txtTempProgram.Text

    End If

    txtCourseCode.Text = ""

    txtCourseName.Text = ""

    cmbQualification.Clear

    txtCourseDuration.Text = ""

    txtCourseAdmFee.Text = ""

    txtcourseFee.Text = ""

    txtNoOfInstallment.Text = ""

    txtCourseInstallmentFee.Text = ""

    txtCourseTotalFee.Text = ""txtCourseModulenames.Text = ""

    txtCourseTotalFee.Text = ""

    End Sub

    Private Sub cmddelete_Click()

    m = MsgBox("Are you Confire to delete current record", vbYesNo + vbCritical,

    "SIS Message Box")

    If m = vbYes Then

    If cmdSave.Enabled = True Then

    AdodcCourse.Recordset.Save

    End If

    CHET NATH SARASWATI (054226956) 118

  • 8/9/2019 8.System Analysis & System Design

    93/122

    System ANALYSIS & DESIGN

    AdodcCourse.Recordset.Delete

    AdodcModuleTestMarks.Refresh

    End If

    End Sub

    Private Sub cmdexit_Click()

    If cmdSave.Enabled = True Then

    m = MsgBox("Record is not save, Do you to save current record", vbYesNo +

    vbQuestion, "SIS Message box")

    If m = vbYes Then

    AdodcCourse.Recordset.Save

    AdodcCourse.Recordset.Close

    Unload Me

    End If

    Else

    AdodcCourse.Recordset.Close

    Unload Me

    End If

    End Sub

    Private Sub cmdFirst_Click()

    AdodcCourse.Recordset.MoveFirst

    txtprogram.Text = txtTempProgram.Text

    End Sub

    Private Sub cmdLast_Click()

    AdodcCourse.Recordset.MoveLasttxtprogram.Text = txtTempProgram.Text

    End Sub

    Private Sub cmdnext_Click()

    CHET NATH SARASWATI (054226956) 119

  • 8/9/2019 8.System Analysis & System Design

    94/122

    System ANALYSIS & DESIGN

    If AdodcCourse.Recordset.EOF = True Then

    m = MsgBox("There is the End of File , So there is no records after BOF",

    vbExclamation, "SIS Message Box")

    AdodcCourse.Recordset.MoveFirst

    txtprogram.Text = txtTempProgram.Text

    Else

    AdodcCourse.Recordset.MoveNext

    txtprogram.Text = txtTempProgram.Text

    End If

    End Sub

    Private Sub cmdprev_Click()

    If AdodcCourse.Recordset.BOF = True Then

    m = MsgBox("There is the Beginning of File , So there is no records before

    BOF", vbExclamation, "SIS Message Box")

    AdodcCourse.Recordset.MoveLast

    txtprogram.Text = txtTempProgram.Text

    Else

    AdodcCourse.Recordset.MovePrevious

    txtprogram.Text = txtTempProgram.Text

    End If

    End Sub

    Private Sub cmdsave_Click()

    txtTempProgram.Text = txtprogram.Text

    AdodcCourse.Recordset.Save

    cmdSave.Enabled = False

    End Sub

    CHET NATH SARASWATI (054226956) 120

  • 8/9/2019 8.System Analysis & System Design

    95/122

    System ANALYSIS & DESIGN

    Private Sub Form_Activate()

    frmcourse.Left = 0

    frmcourse.Top = 0

    CmdNew.SetFocus

    cmdSave.Enabled = False

    End Sub

    Private Sub Form_Load()

    If AdodcCourse.Recordset.EOF = True Then

    txtTempProgram.Text = "CLP 1"

    txtprogram.Text = txtTempProgram.Text

    Else

    AdodcCourse.Recordset.MoveLast

    txtprogram.Text = txtTempProgram.Text

    End If

    End Sub

    Private Sub optduration_Click(Index As Integer)

    Dim str, str1, str2 As String

    Dim slen, keyasc As Integer

    Dim chk As Boolean

    str = txtCourseDuration.Text

    slen = Len(str)chk = True

    str2 = ""

    For i = 1 To slen

    keyasc = Asc(Mid(str, i, 1))

    If Not (keyasc >= 48 And keyasc

  • 8/9/2019 8.System Analysis & System Design

    96/122

    System ANALYSIS & DESIGN

    chk = False

    Exit For

    End If

    str2 = str2 + Mid(str, i, 1)

    Next i

    If chk = False Then

    txtCourseDuration = str2

    End If

    If Index = 0 Then

    If Val(txtCourseDuration.Text) = 1 Then

    txtCourseDuration.Text = txtCourseDuration.Text + " " + "Month"

    Else

    txtCourseDuration.Text = txtCourseDuration.Text + " " + "Months"

    End If

    End If

    If Index = 1 Then

    If Val(txtCourseDuration.Text) = 1 ThentxtCourseDuration.Text = txtCourseDuration.Text + " " + "Year"

    Else

    txtCourseDuration.Text = txtCourseDuration.Text + " " + "Years"

    End If

    End If

    txtcourseFee.SetFocusEnd Sub

    Private Sub optduration_KeyPress(Index As Integer, KeyAscii As Integer)

    CHET NATH SARASWATI (054226956) 122

  • 8/9/2019 8.System Analysis & System Design

    97/122

    System ANALYSIS & DESIGN

    If KeyAscii = 13 Then

    Dim str, str1, str2 As String

    Dim slen, keyasc As Integer

    Dim chk As Boolean

    str = txtCourseDuration.Text

    slen = Len(str)

    chk = True

    str2 = ""

    For i = 1 To slen

    keyasc = Asc(Mid(str, i, 1))

    If Not (keyasc >= 48 And keyasc

  • 8/9/2019 8.System Analysis & System Design

    98/122

    System ANALYSIS & DESIGN

    txtCourseDuration.Text = txtCourseDuration.Text + " " + "Year"

    Else

    txtCourseDuration.Text = txtCourseDuration.Text + " " + "Years"

    End If

    End If

    End If

    txtcourseFee.SetFocus

    End Sub

    CHET NATH SARASWATI (054226956) 124

  • 8/9/2019 8.System Analysis & System Design

    99/122

    System ANALYSIS & DESIGN

    Private Sub spinbuttonprg_SpinDown()

    Dim temp As Integer

    Dim str1, str2 As String

    str1 = txtprogram.Text

    str2 = Mid(str1, 1, 3)

    str1 = Mid(str1, 4)

    temp = Int(str1)

    temp = temp - 1

    If temp < 0 Then

    temp = 0

    End If

    txtprogram.Text = str2 + str(temp)

    txtTempProgram.Text = txtprogram.Text

    End Sub

    Private Sub spinbuttonprg_SpinUp()

    Dim temp As Integer

    Dim str1, str2 As String

    str1 = txtprogram.Text

    str2 = Mid(str1, 1, 3)

    str1 = Mid(str1, 4)

    temp = Int(str1)

    temp = temp + 1

    txtprogram.Text = str2 + str(temp)

    txtTempProgram.Text = txtprogram.Text

    End Sub

    CHET NATH SARASWATI (054226956) 125

  • 8/9/2019 8.System Analysis & System Design

    100/122

    System ANALYSIS & DESIGN

    Private Sub CmdNew_Click()

    If AdodcCourse.Recordset.EOF = True Then

    txtTempProgram.Text = "CLP 1"

    txtprogram.Text = txtTempProgram.Text

    Else

    AdodcCourse.Recordset.MoveLast

    txtprogram.Text = txtTempProgram.Text

    End If

    AdodcCourse.Recordset.AddNew

    cmdSave.Enabled = True

    txtprogram.SetFocus

    End Sub

    Private Sub spinbuttonprg_DownClick()

    Dim str1 As String

    Dim num As Integer

    str1 = txtprogram.Text

    str1 = Mid(str1, 4)

    num = Val(Trim(str1))

    num = num - 1

    If num > 0 Then

    txtprogram.Text = "CLP" + " " + Trim(str(num))

    txtTempProgram.Text = txtprogram.Text

    Else

    txtprogram.Text = "CLP" + " " + Trim(str(spinbuttonprg.Max))

    txtTempProgram.Text = txtprogram.Text

    End If

    End Sub

    CHET NATH SARASWATI (054226956) 126

  • 8/9/2019 8.System Analysis & System Design

    101/122

    System ANALYSIS & DESIGN

    Private Sub spinbuttonprg_UpClick()

    Dim str1 As String

    Dim num As Integer

    str1 = txtprogram.Text

    str1 = Mid(str1, 4)

    num = Val(Trim(str1))

    num = num + 1

    txtprogram.Text = "CLP" + " " + Trim(str(num))

    txtTempProgram.Text = txtprogram.Text

    End Sub

    Private Sub txtCourseAdmFee_KeyPress(KeyAscii As Integer)

    If KeyAscii = 13 Then

    txtNoOfInstallment.SetFocus

    txtCourseTotalFee.Text = Val(txtCourseAdmFee.Text) + Val(txtcourseFee.Text)

    End If

    End Sub

    Private Sub txtCourseCode_KeyPress(KeyAscii As Integer)

    If KeyAscii = 13 Then

    If txtCourseCode.Text = "" Then

    m = MsgBox("Course Code must be entered", vbCritical, "SIS Message box")

    txtCourseCode.SetFocusExit Sub

    End If

    txtCourseCode.Text = UCase(txtCourseCode.Text)

    txtCourseName.SetFocus

    End If

    CHET NATH SARASWATI (054226956) 127

  • 8/9/2019 8.System Analysis & System Design

    102/122

    System ANALYSIS & DESIGN

    End Sub

    Private Sub txtCourseDuration_Change()

    tstr = txtCourseDuration.Text

    End Sub

    Private Sub txtCourseDuration_KeyPress(KeyAscii As Integer)

    If KeyAscii = 13 Then

    If txtCourseDuration.Text = "" Then

    m = MsgBox("Course Duration must