Handbook Report With Sourse Code

79
 PROJECT REPORT ON UNIVERSITY HANDBOOK MANAGEMENT PREPARED BY: ISHAN RAJDOR (DELHI COLLEGE OF ENGINEERING )

Transcript of Handbook Report With Sourse Code

Page 1: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 1/79

 

PROJECT REPORT

ON

UNIVERSITY HANDBOOK 

MANAGEMENT

PREPARED BY:

ISHAN RAJDOR

(DELHI COLLEGE OF ENGINEERING)

Page 2: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 2/79

University Handbook Management 

2

CERTIFICATE

This is to certify that ISHAN RAJDOR student of the B.E (Information

Technology) 5TH semester of Delhi College of Engineering, Delhi has made the

project on University Handbook Management System under my guidance. He has

successfully completed four weeks of industrial training during the period from

15th

December 2011 to

12th

January 2012 in Scientific Research Lab of Advance Study Cell, RAC, DRDO.

He was professionally diligent and sincere during the period and showed a keen

interest in duties assigned to her. I am satisfied with the project he has made and

the final project report he has submitted.

Mrs. Jyoti Bhalla

(Scientist ‘B’ RAC, DRDO)

Page 3: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 3/79

University Handbook Management 

3

 ACKNOWLEDGEMENT

The satisfaction that accompanies the successful completion of any task would be

incomplete without the mention of people whose ceaseless cooperation made it

possible, whose constant guidance and encouragement crowned all efforts with

success.

I am very grateful to my project guide Mrs. Jyoti Bhalla for the guidance,

inspiration and constructive suggestions that helped me in the preparation of thisproject.

I would also like to express my gratitude to Ms. Stuti Gupta and Mr. Kashi Ram 

whose constant efforts and support enriched this project with its vivid

dimensions.

Ishan Rajdor

Page 4: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 4/79

University Handbook Management 

4

TABLE OF CONTENT

S NO. Contents PAGE NO.

1. Introduction 7

1.1 Preamble  7

1.2 Objective  7

1.3 Scope  8

1.4 Broad Outline of the Project 9

1.5 Broad Outline of Software 10

2. Analysis  12

2.1 Feasibility study  12

2.2 Risk Analysis  13

2.3 Analysis Models  14

2.3.1 Use Case Diagram  14

2.3.2 Entity Relationship Model  20

2.3.3 Data Flow Diagram  21

2.4 Database Schema 28

Page 5: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 5/79

University Handbook Management 

5

3. Testing  31

3.1 Testing Methods 31

3.2 Test Cases 32

4. Interface of the software 36

4.1 Screen shots 36

5. References and Bibliography 45

Page 6: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 6/79

University Handbook Management 

6

 ABSTRACT

In today’s time when use of technology is influencing every field of life , to make it

easy and convenient and one way of doing that is to digitize the information

available in hard copy format. Digitization means converting the hard copy

format of any text into in editable format and storing it in computer so that easy

retrieval of that data can be possible in future or we can say storing data in digital

format.

The project uses Microsoft Access (component of Microsoft Office) for backendand Microsoft Visual Basic 6.0 for front end.

This project meant to upgrade the existing UNIVERSITY HANDBOOK database

software in accordance with the Latest version of University handbook and

provides new modules to Add, Remove and Update Universities, Course offered

by universities and Subjects offered by different courses.

Page 7: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 7/79

University Handbook Management 

7

INTRODUCTION

1.1 Preamble:

Since the invention of computers, it has changed the way world works. It is

undoubtedly one of the top ten greatest inventions of mankind. Originally

designed for defence purposes during World War II, computer has become an

indispensable part of our daily lives, and its uses are almost beyond

comprehension itself. Present day computers are used to work, to play, to have

fun, to shop, to study, to talk and to generally do anything one can think about.

Today, everything is developing to make the work easier and faster. This is

achieved by the fast processing power of computer systems. Paper work is

converting into computer work. Manual work is expressive but it requires time. In

this technically progressive world, how good it seems when all the administrative

and managerial tasks are implemented so easily and on time.

University Handbook Management links to the digitization of the University

Handbook. Digitization means converting the hard copy format of any text into in

editable format and storing it in computer so that easy retrieval of that data can

be possible in future or we can say storing data in digital format. This project will

help our organization to meet aims and needs through best use of IT.

1.2 Objective

RAC, the unique Recruitment and Assessment Centre of DRDO was set up on 23

July 1985 after getting exemption from the purview of Union Public Service

Commission (UPSC). It is situated at Lucknow Road, Timarpur, Delhi. RAC has

undertaken various recruitment programmers’ to induct about 1000 scientists

Page 8: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 8/79

University Handbook Management 

8

each Year in variety of scientific and engineering disciplines relevant to DRDO

Laboratories

The primary responsibilities of RAC

1.  Recruitment of Scientists (Group 'A' Class I Gazetted Post) in DRDO

2.  Assessments of Scientists of DRDO for promotion to the next higher grades

3.  Selection of candidates for higher study course (ME/ M. Tech/ MSc Engg)

under Research & Training Scheme of DRDO and Post Graduate Training

scheme of Army, Navy and Air Force

The main objective of University Handbook Management to digitize the University

Handbook, preparing the data and develop a simplest GUI to interface with this

data. So that the fetching of data to obtain the needed information is quite easy &

fast.

1.3 Scope

The RAC conducting several recruitment activities for selection of scientists inDRDO. The candidates applied from several different universities & institutions.

After the passing the written exam, the qualified candidates called for interview

and their documents should needs to be checked & verified. The qualification

they obtained from different universities and institution the affiliation of their

universities/Institutes from UGC & AICTE checked from the university handbook.

The University Handbook Management provides the scope of fetching data from

database which is quite easy task now. Digitization of the University Handbook isdone through a process. Like scanning of book converting data in editable text

and then preparing database from this raw text. Normalizing this data to remove

redundancy and maintain the integrity and database dependency of every field.

Page 9: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 9/79

University Handbook Management 

9

The scope of the software is multiuse.

1.4 Broad Outline of the Project 

University Handbook Provides information on Graduate/Post-Graduate courses

and degree awarded by different universities, institutions of national importance,

‘Deemed Universities’ and colleges Imparting general, technical and professional

education in India. It includes the Following Information: Names of administrative

heads, chancellor, vice chancellor, registrar, Deans of Faculties, and the addresses

and Contact numbers of different universities.

This project deals with the digitization of the University Handbook,

preparing the data and develops a simplest GUI to interface with this data, It

includes the following steps

1.  Scanning

2.  Converting scanned data in editable raw text format.

3.  Preparing database from raw text.

4.  Normalizing the data.5.  Develop a GUI to interface with this data.

6.  Report generation

7.  Updating of database

Page 10: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 10/79

University Handbook Management 

10

1.5 Broad outline of the software 

Data entry persons are provided with the start up procedure, to run the software,

and database, holding the information about the Universities.

User

  Data entry operators are the user of this software.

Interface

  Allows interaction of the user with the database

  Provides facility to Add, Remove, Update Universities

  Provides facility to Add, Remove, Update Courses offered by Universities

  Provides facility to Add, Remove, Update Subjects offered in different

Courses by Universities

Database

  Stores Universities details

  Data readily available for analysis of Universities, colleges of different

Universities, Courses offered by Universities.

Page 11: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 11/79

University Handbook Management 

11

Page 12: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 12/79

University Handbook Management 

12

ANALYSIS

2.1 Feasibility Study

The feasibility study assess whether the proposed development is practical in

terms of balance of costs and benefits, the technical requirements and the

organization’s information system objectives. 

Three types of constraints influence the decision about the appropriate option:

1.  Technical constraints: can the proposed project be completed with the

technology currently available?

The technology to be used for development of this project is VB6.0 package

for front end and MS Access as back end. Both are readily available with the

organization.

2.  Time constraints: can the proposed project be completed in the available

time?

The time available for development is 1 month. This require us to plan

Various phases of the software development life cycle in accordance with

the available time. We can use V model (Software Development Model)

which allows simultaneous analysis, designing, development with testing. It

is a very useful; model of the systems development process. 

3.  Budgetary constraints: are the necessary finances available?

The software’s required for developments of the project are readily

available in the organization.

Page 13: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 13/79

University Handbook Management 

13

2.2 Risk Analysis & Management

A risk is an undesirable outcome which threatens the successful achievement of 

the project’s objectives. The adverse effects could be a reduction in the efficiency

of the project or even the failure of the project. The risks may originate from

inside the development programme or project, or they could be caused by

external events.

The objectives of risk analysis & management are to identify, address and

minimize risks before they become threats to the successful completion of the

project. However, we need to be aware of the law of diminishing returns which

suggests that the initial effort and expenditure provides the best return and

benefits from further spending to solve the problem gradually becomes smaller.

Indentifying risks

  Technical Risk

The real-time working of the software entirely depends on the reliability of 

the code and it’s possible that an unexpected error may occur not yet

handled properly.

  Database risk

One might try to directly access or update the data from the database.

  Platform Issue

The software may behave differently on other platforms due to missing

dependent files for the controls used in the software.

Page 14: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 14/79

University Handbook Management 

14

Assessing the riskThe evaluation of the risk is based on three criteria:

1.  the probability that the risk will occur

2.  the impact that the risk will have

3.  the proximity relates to the time period when the risk may occur

Deciding the appropriate actions

The risks identified can be reduced, transferred or eliminated by taking mitigation

actions and if necessary the project team could decide to take no action or to

develop a contingency plan.

S.

No.

Risk Probability Impact Proximity

1 Confidentiality

Issue

- - -

2 Technical Risk Moderate Serious Error encountered or

unexpected abruption of 

the program

3 Database Risk - - -

4 Platform Issue High Significant When certain control in the

project requires a

dependent file missing inthe system

5 Software’s

Misuse

Low Tolerable -

Page 15: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 15/79

University Handbook Management 

15

S.No.

Risk Action

1 Confidentiality

Issue

Password protected interface (Two-tier protection)

2 Technical Risk Handling the error occurred in the program

3 Database Risk Password protected

4 Platform Issue Checking the system for dependent files and

installing in case not present in the system

5 Software’s

Misuse

Accepting the risk – No further action other than to

monitor it

Proposed plan

All the processes described above should continue throughout the life of the

project as new risks may be indentified at any time and there may also be

secondary risks that results from actions to reduce initial risks.

S.

No.

Risk Planning

1 Confidentiality

Issue

-

2. Technical Risk An appropriate message displayed if an error occurs

3 Database Risk -

4 Platform Issue 1.  Looking for dll/ocx files in

C:\Windows\System32 folder

2.  If files are not found then copy the files from a

support folder, in the application folder, to

the system folder

5 Software’s

Misuse

-

Page 16: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 16/79

University Handbook Management 

16

Analysis Models

2.3.1 Use Case Diagram 

In software and system engineering, a use case is a list of steps, typically defining

interactions between a role (known in UML as an "actor") and a system, to

achieve a goal. The actor can be a human or an external system

Add Course

Add subjects

Update University

Update Course

Update Subjects

Add University

Remove

University

Remove Course

Remove

Subject

Actor

Database

Page 17: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 17/79

University Handbook Management 

17

Use Case 1: Add University

Main succes scenario :

1. software itself provide a unique University ID.

2. Actor (data entry operator) enters the university name and the available fields.

3. Actor (data entry operator) press the ADD button to add University.

Exeption scenario:

1. university already exists in the database.

Use Case 2: Add Course

Main succes scenario :

1. Actor (data entry operator) selects university ,selects course name to be added

to be added, selects faculty, enter specialization (if any) and enter the duration of 

the course.

2. Actor (data entry operator) press ADD button to add course to university.

Exeption scenario :

1. Error msg either of university,course or faculty not selected.

Use Case 3: Add Subjects

Main succes scenario :

1. Actor (data entry operator) selects university, select course, select subject to be

added to selected course.

2. Actor (data entry operator) press ADD button to add subject to selected course.

Page 18: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 18/79

University Handbook Management 

18

Exeption scenario :

1. Error msg either of the university, course , subject not selected.

Use Case 4: Update University

Main succes scenario :

1. Actor (data entry operator) selects the university from the combo box.

2 Actor (data entry operator) updates the university information from University

Handbook in text boxes.

3. Actor (data entry operator) press UPDATE button to save the changes made in

the university.

Use Case 5: Remove University

Main succes scenario :

1. Actor (data entry operator) selects University to remove from combo box.

2. Actor (data entry operator) press REMOVE button to remove University.

Use Case 6: Remove Course

Main succes scenario :

1. Actor (data entry operator) selects University, selects Course, select

specialization.

2. Actor (data entry operator) press REMOVE button to remove University.

Page 19: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 19/79

University Handbook Management 

19

Use Case 6: Remove Subjects

Main succes scenario :

1. Actor (data entry operator) selects University, selects course, select subject.

2. Actor (data entry operator) press REMOVE button to remove subject from the

selected course.

Page 20: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 20/79

University Handbook Management 

20

2.3.2 In software engineering, an Entity-relationship model (ER model for

short) is an abstract and conceptual representation of data. Entity-relationship

modeling is a database modeling method, used to produce a type of conceptualschema or semantic data model of a system, often a relational database, and its

requirements in a top-down fashion. Diagrams created by this process are called

entity-relationship diagrams or ER diagrams.

ER Diagram

Address

UNIVERSITY

Vice chancellor

(VC)

Email ID

Univ_ID University

Name

Location

HAS 

HAS

Colleges

Website

Subjects

Courses

Offers

Course

 Course name

Course ID

Specialization Duration

Faculty

Fac ID

HAS

State

City

Comes

under

Offers

fields

Faculty name

Subject NameSubject ID

Page 21: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 21/79

University Handbook Management 

21

2.3.3 DATA FLOW DIAGRAM 

LEVEL-1 DFD (Using event partitioning approach)

1.

Name

(process

name)

ADD University

Description Add new universities to database

Inputs University name, VC, Reg, Address, Email ID, Website,FAX

no.,Telephone no.

Output Message “university Added “, University added to database

2.

Name

(process

name)

ADD Courses

Description Add new Course to selected University

Inputs University name, Course name, faculty name , duration,

specialization.

Output Message “Course Added”, Course added to database

Page 22: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 22/79

University Handbook Management 

22

3.

Name

(process

name)

ADD Subject

Description add subjects to selected course of a university

Inputs University name, course name , subject name

Output Message “Subject Added”, subject added to database

4.

Name

(process

name)

UPDATE University

Description Update university information according to new handbook

Inputs Change required fields

Output Message “University Updated”, changes saved to database 

Page 23: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 23/79

University Handbook Management 

23

5.

Name

(process

name)

UPDATE Course

Description Update course name and specialization

Inputs University name, course name , specialization, faculty

Output Message “course updated”, changes saved to database.

6.

Name

(process

name)

UPDATE Subject

Description Update subject name

Inputs University name, course name, subject name

Output Message “subject updated ”, changes saved to database. 

Page 24: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 24/79

University Handbook Management 

24

7.

Name

(process

name)

REMOVE University

Description Remove University from database

Inputs University name

Output Message “University removed”, university removed from

database

8.

Name

(process

name)

REMOVE Course

Description Remove course from selected university

Inputs University name, course name , specialization (if any)

Output Message “Course removed”, course removed from selected

university.

Page 25: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 25/79

University Handbook Management 

25

9.

Name

(process

name)

REMOVE Subject

Description Remove subject from selected course and university

Inputs University name, course name, subject name

Output Message “subject removed”, subject removed from selected

course.

Level 1 DFD:

1.

User

ADD

UniversityDatabase

Page 26: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 26/79

University Handbook Management 

26

2.

3.

4.

ADD

CourseUser Database

User

ADD

Subject Database

User 

Update

University

Database

Page 27: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 27/79

University Handbook Management 

27

5.

6.

UserRemove

Course

Database

Remove

SubjectUserDatabase

Page 28: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 28/79

University Handbook Management 

28

2.3.4 Database Schema

LIST OF TABLES USED

1. UNIVERSITY 

Attribute

Name

Data type Description

Univ_id Number Identifies university

U_name Text University Name

From_p Number Shows starting page of University in

Handbook

To Page (To_p) Number Shows ending page of University in

Handbook

Cable Text Cable is of University

STD Code Number STD Code of UniversityAddress Text Address of university campus

Vice chancellor (VC) Text Name of VC of university

Registrar (Reg) Text Name of registrar of university

PBX Text PBX number of University

FAX Number Fax no. of university

Email Address Text Email id of university

Website Address Text Web address of university

Page 29: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 29/79

University Handbook Management 

29

2. Univ_course

Attribute

Name

Data type Description

Univ_id Number Identifies university

Course_Id Number Identifies Course

Eligibility Text Specialization of a course

Duration Number Duration of course

Fac_Id Number Identifies Faculty

3. Univ_Location

Attribute Name Data type Description

City Text City in which university comes

State Text State in which university comes

Region Text Region of University

4. Subject

Attribute Name Data type Description

Sub_ID Number Identifies Subject

S_Name Text Subject Name

Page 30: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 30/79

University Handbook Management 

30

5. Sub_Univ_Crs

Attribute Name Data type Description

Sub_ID Number Identifies Subject

Course_ID Number Identifies Course

Univ_ID Number Identifies university

6. Faculty

Attribute Name Data type Description

Fac_ID Number Identifies Faculty

F_Name Text Faculty Name

7. CoursesAttribute Name Data type Description

Course_ID Number Identifies Course

C_Name Text Course Name

Page 31: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 31/79

University Handbook Management 

31

Testing

Software testing is a critical phase of software quality assurance. Once source

code has been generated, software must be tested to uncover and correct

maximum possible errors, before delivering. Thus a series of test cases are

designed that have a high likelihood of finding errors.

3.1 Testing Methods

The methods used for testing are:

1.  Static Testing: It can be applied to an application at any time of itsdevelopment. The idea is that test data is manually worked through the

system as documented to see if it produces the expected results.

2.  Dynamic Testing: It is divided into various levels-

a.  Unit Testing – It is the very basic testing to be carried out on a piece

of software.

b.  Integration Testing – It involves linking a number of components of 

the system and running them as a whole. To determine whether

units communicate properly.

c.  System Testing  – The final stage in testing by the developmentprofessional. It involves running the system on the infrastructure that

will be used when the system is operational.

d.  User acceptance – To see whether the user can operate the system.

It should meet their expectation and not just requirement.

e.  Regression testing  – Need to take place at each stage of testing.

Whenever a fault is found the offending piece of software identified

has to be corrected.

Page 32: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 32/79

University Handbook Management 

32

3.2 Test Cases

Unit Testing:

1. ADD University page – ‘ADD’ button

S

no.

Input Data Output/ Message

1. - Enter University Name

2. Aligarh Muslim University University Name Already exist

3. Aliah University University Added

2. Update University Page-‘UPDATE’ button 

Sno.

Input Data Output/ Message

1. - University not Selected

2. Aligarh Muslim University, Prof P

K Abdul Azis (VC),

Prof V K Abdul Jaleel (Registrar),

vcamu.sancharnet.in (Website

Address), 36 (From Page), 49 (To

Page).

University Updated

Page 33: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 33/79

University Handbook Management 

33

3. Remove University Page-‘REMOVE UNIVERSITY’ button 

S

no.

Input Data Output/ Message

1. - University not selected

2. Aliah University University Removed

4. Add Course Page-‘ADD’ button 

S

no.

Input Data Output/ Message

1. - University not selected

2. Aligarh Muslim University, - Course not selected

3. Aligarh Muslim University,

Faculty of Agricultural Science,

BSc, hons, 3.

Coursed Added

4. Aliah University, BTech Course Added

5. Add Subject Page-‘ADD SUBJECT’ button 

S

no.

Input Data Output/ Message

1. - University not selected

2. Aligarh Muslim University, - Course not selected3. Aligarh Muslim University, BTech Subject not selected

4. Aligarh Muslim University,

BTech,Civil Engineering

Subject Added

Page 34: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 34/79

University Handbook Management 

34

6. Remove Course Page-‘REMOVE COURSE’ button 

S

no.

Input Data Output/ Message

1. - University not selected2. Algappa University, - Course not selected

3. Algappa University, BTech, - Select specialization

4. Algappa University, BTech, Part -

time

Course Removed from University

7. Remove Subject Page-‘REMOVE SUBJECT’ button 

S no Input Data Output/ Message

1. - University not selected

2. Algappa University Course not selected

3. Algappa University, BTech, - Select Subject

4. Algappa University, BTech,

Electronics & Communication

Subject Removed

Page 35: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 35/79

University Handbook Management 

35

Integration Testing :

S

No 

Form  Button  Action 

Error/msg 

1. Main menu ADD, Update,

Remove

ADD : menu page

(Add university,

courses, subjects)

UPDATE: menu

page (Update

University, Courses,

Subjects)REMOVE: menu

page (Remove

University, courses,

Subjects)

2. Add

University

ADD University added University name

already exists

3. Add courses ADD Course added

3. Add Subjects ADD Subject added

4. Update

University

UPDATE University Updated

5. Update

Course

UPDATE Course Updated

6. Update

Subject

UPDATE Subject Updated

7. Remove

University

REMOVE University Removed

8. Remove

Course

REMOVE Course Removed

9. Remove

Subject

REMOVE Subject Removed

Page 36: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 36/79

University Handbook Management 

36

Interface of the software

4.1 Screen shots

1. Main menu Page (Starting Page)

Select University to Add , Update and Remove university

Page 37: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 37/79

University Handbook Management 

37

2. University menu Page

ADD University:

1. System itself provide unique University ID

2. Add university name and all other details as provided in the university

handbook.

3. Press ‘ADD’ button to add university

Page 38: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 38/79

University Handbook Management 

38

Update University:

1. Select University from the combo box.

2. There information is displayed in the text boxes, compare it with new details

and make required changes.

3. Press ‘UPDATE’ button to Update University. 

Remove University:

1. Select University from the combo box.

2. Press ‘REMOVE’ button to remove university.

Page 39: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 39/79

University Handbook Management 

39

3. Course menu Page:

Add Course:

1. Select university name from university list.

2. Select Faculty from Faculty list.

3. Select Course from Course list.

4. Enter Specialization (if any).

5. Enter Duration.

Page 40: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 40/79

University Handbook Management 

40

Remove Course:

1. Select University name from the university list.

2. Select Course name from’ Course offered by selected university list’.

3. Select specialization (if any).

4. Press ‘REMOVE’ button to remove course from university. 

Update Course:

1. Select University name from the university list.

2. Select Course name from’ Course offered by selected university list’. 

3. Select specialization (if any).

4. Made changes in the specialization ( if required).

5. Press ‘UPDATE’ button update course. 

Page 41: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 41/79

University Handbook Management 

41

4. Subject Menu Page: 

Remove Subject:

1. Select university name from university list.

2. Select course from ‘course offered by selected university list’

3. Select subject from ‘Subject offered by selected Course’ list. 

4. Press ‘REMOVE’ button to remove subject from selected course. 

Page 42: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 42/79

University Handbook Management 

42

Add Subject:

1. Select university name from university list.

2. Select course from course list.

3. Select subject from subject list.

4. Press ‘ADD’ button to add s8ubject to selected course in selected university. 

Page 43: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 43/79

University Handbook Management 

43

5. Exit image (to exit the software)

Click image to Exit software.

6. Back image (to go back to last Page)

Click image to go back to previous page.

Page 44: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 44/79

University Handbook Management 

44

Coding used

Main menu page (Form1)

Private Sub Image5_Click ()

End

End Sub

Private Sub Image6_Click ()

Me. Hide

Form3.Show

End Sub

Private Sub Image7_Click ()

Me. Hide

Form7.Show

End Sub

Private Sub Image8_Click ()

Me. Hide

Page 45: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 45/79

University Handbook Management 

45

Form8.Show

End Sub

University add, update, remove page (Form 3)

Public con As New Connection

Public rs As New Recordset

Public qry, fn As String

Dim u_id As Integer

Private Sub cmdadd_Click ()

Dim ae As Integer

If Text2.Text = "" Then

MsgBox "University Name not Entered", vbOKOnly

Form_Load

GoTo Line9

End If 

'Check for validation of university name

If rs.State = adStateOpen Then rs.Close

rs.Open "select U_Name from University", con, adOpenStatic

Page 46: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 46/79

University Handbook Management 

46

While rs.EOF = False

If UCase(Text2.Text) <> UCase(rs.Fields(0)) Then

rs.MoveNext

Else:

MsgBox "university already exits", vbOKOnly + vbInformation, "university

cannot be added"

ae = 1

GoTo Line10

End If 

Wend

If Text12.Text = "" Then

Text12.Text = fp

Text13.Text = tp

End If 

qry = "insert into University values(" & Text1.Text & ",'" & Text2.Text & "'," &

Text12.Text & "," & Text13.Text & ",'" & Text3.Text & "','" & Text4.Text & "','" &

Text5.Text & "','" & Text6.Text & "','" & Text7.Text & "','" & Text8.Text & "','" &

Text9.Text & "','" & Text10.Text & "','" & Text11.Text & "')"

If rs.State = adStateOpen Then rs.Close

rs.Open qry, con, adOpenDynamic, adLockOptimistic, adOpenKeyset

MsgBox "One Row Added", vbOKOnly + vbInformation, "University Added. "

Page 47: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 47/79

University Handbook Management 

47

List1.AddItem Text2.Text

Line10: Text2.Text = ""

Text3.Text = ""

Text4.Text = ""

Text5.Text = ""

Text6.Text = ""

Text7.Text = ""

Text8.Text = ""

Text9.Text = ""

Text10.Text = ""

Text11.Text = ""

Text12.Text = ""

Text13.Text = ""

If ae = 1 Then

Text1.Text = Text1.Text

Else

Text1.Text = Text1.Text + 1

End If 

ae = 0

If rs.State = adStateOpen Then rs.Close

rs.Open "select Univ_ID from University order by Univ_ID", con, adOpenStatic

If rs.EOF = True Then

Page 48: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 48/79

University Handbook Management 

48

Text1.Text = 1

Else

rs.MoveLast

Text1.Text = rs!univ_id + 1

End If 

Line9: 'University not entered

Combo1.Clear

End Sub

Private Sub cmdupdate_Click()

If Text2.Text = "" Then

MsgBox "University Name not Entered", vbOKOnly

Form_Load

GoTo Line10

End If 

If rs.State = adStateOpen Then rs.Close

rs.Open "select * from university where univ_id=" & Text1.Text & "", con,

adOpenDynamic, adLockOptimistic

rs.Fields("U_name") = Text2.Text

rs.Fields("Cable") = Text3.Text

Page 49: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 49/79

University Handbook Management 

49

rs.Fields("STD_Code") = Text4.Text

rs.Fields("Address") = Text5.Text

rs.Fields("Vc") = Text6.Text

rs.Fields("Reg") = Text7.Text

rs.Fields("PBX") = Text8.Text

rs.Fields("fax") = Text9.Text

rs.Fields("Email") = Text10.Text

rs.Fields("Web") = Text11.Text

rs.Fields("from_p") = Text12.Text

rs.Fields("To_p") = Text13.Text

rs.Update

MsgBox "your updations are made", vbOKOnly + vbInformation, "University data

updated"

Line10: Text1.Text = ""

Text2.Text = ""

Text3.Text = ""

Text4.Text = ""

Text5.Text = ""

Text6.Text = ""

Text7.Text = ""

Text8.Text = ""

Text9.Text = ""

Page 50: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 50/79

University Handbook Management 

50

Text10.Text = ""

Text11.Text = ""

Text12.Text = ""

Text13.Text = ""

Combo1.Text = ""

If rs.State = adStateOpen Then rs.Close

rs.Open "select Univ_ID from University order by Univ_ID", con, adOpenStatic

If rs.EOF = True Then

Text1.Text = 1

Else

rs.MoveLast

Text1.Text = rs!univ_id + 1

End If 

End Sub

Private Sub Combo1_Click()

exist = 0

If rs.State = adStateOpen Then rs.Close

rs.Open "select * from University where U_Name = '" & Combo1.Text & "'", con,

adOpenStatic

Text1.Text = rs!univ_id

Page 51: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 51/79

University Handbook Management 

51

Text2.Text = rs!U_name

Text3.Text = rs!Cable

Text4.Text = rs!STD_Code

Text5.Text = rs!Address

Text6.Text = rs!VC

Text7.Text = rs!Reg

Text8.Text = rs!PBX

Text9.Text = rs!Fax

Text10.Text = rs!Email

Text11.Text = rs!Web

Text12.Text = rs!From_p

Text13.Text = rs!To_p

If rs.State = adStateOpen Then rs.Close

rs.Open "select univ_id from university where u_name='" & Combo1.Text & "'",

con, adOpenStatic

u_id = rs!univ_id

'MsgBox U_id, vbOKOnly

End Sub

Private Sub combo1_GotFocus()

Combo1.Clear

If rs.State = adStateOpen Then rs.Close

Page 52: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 52/79

University Handbook Management 

52

rs.Open "select U_Name from University", con, adOpenStatic

While rs.EOF = False

Combo1.AddItem rs!U_name

rs.MoveNext

Wend

If rs.State = adStateOpen Then rs.Close

rs.Open "select Univ_ID from University order by Univ_ID", con, adOpenStatic

If rs.EOF = True Then

Text1.Text = 1

Else

rs.MoveLast

Text1.Text = rs!univ_id + 1

End If 

End Sub

Private Sub Command2_Click()

If Combo1.Text = "" Then

MsgBox "university not selected", vbOKOnly + vbInformation, "select university"

Form_Load

GoTo Line7

End If 

If rs.State = adStateOpen Then rs.Close

Page 53: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 53/79

University Handbook Management 

53

rs.Open "delete from university where U_name='" & Combo1.Text & "'", con,

adOpenDynamic, adLockOptimistic

If rs.State = adStateOpen Then rs.Close

rs.Open "delete from univ_course where univ_id=" & u_id & "", con,

adOpenDynamic, adLockOptimistic

If rs.State = adStateOpen Then rs.Close

rs.Open "delete from sub_univ_crs where univ_id=" & u_id & "", con,

adOpenDynamic, adLockOptimistic

MsgBox "University removed", vbOKOnly + vbInformation, "university removed"

Form_Load

Combo1.Text = ""

Line7: 'university not removed

Text1.Text = ""

Text2.Text = ""

Text3.Text = ""

Text4.Text = ""

Text5.Text = ""

Text6.Text = ""

Text7.Text = ""

Text8.Text = ""

Text9.Text = ""

Page 54: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 54/79

University Handbook Management 

54

Text10.Text = ""

Text11.Text = ""

Text12.Text = ""

Text13.Text = ""

Combo1.Text = ""

End Sub

Private Sub Form_Load()

'CONNECTION

Set con = New Connection

con.CursorLocation = adUseClient

con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path &

"\Handbook.mdb" ';Persist Security Info=False"

If rs.State = adStateOpen Then rs.Close

rs.Open "select U_Name from University", con, adOpenStatic

While rs.EOF = False

Combo1.AddItem rs!U_name

rs.MoveNext

Wend

If rs.State = adStateOpen Then rs.Close

Page 55: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 55/79

University Handbook Management 

55

rs.Open "select Univ_ID from University order by Univ_ID", con, adOpenStatic

If rs.EOF = True Then

Text1.Text = 1

Else

rs.MoveLast

Text1.Text = rs!univ_id + 1

End If 

fp = 0

tp = 0

End Sub

Private Sub Image4_Click()

Me.Hide

Form1.Show

End Sub

Private Sub Image5_Click()

End

End Sub

Page 56: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 56/79

University Handbook Management 

56

Course Add, Update, Remove

Public con As New Connection

Public rs As New Recordset

Dim recset As New Recordset

Public qry, fn As String

Dim uid, fid, cid, sid As String

Dim unv, crs As String

Dim u_id As Integer

Dim coid As Integer

Dim Spec As String

Dim facid As Integer

Private Sub cmdaddc_Click()

If Text16.Text <> "" Then

If rs.State = adStateOpen Then rs.Close

rs.Open "insert into Faculty values(" & Text17.Text & ",'" & Text16.Text & "')",

con, adOpenDynamic, adLockOptimistic, adOpenKeyset

List3.AddItem Text16.Text

fid = Text17.Text

Text17.Text = Text17.Text + 1

End If 

Page 57: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 57/79

University Handbook Management 

57

If Text14.Text <> "" Then

If rs.State = adStateOpen Then rs.Close

rs.Open "insert into Courses values(" & Text15.Text & ",'" & Text14.Text & "')",

con, adOpenDynamic, adLockOptimistic, adOpenKeyset

List1.AddItem Text14.Text

cid = Text15.Text

Text15.Text = Text15.Text + 1

End If 

If List2.Text = "" Then

MsgBox "university not selected", vbOKOnly + vbInformation, "university not

selected"

Form_Load

GoTo Line5

ElseIf (List3.Text = "" And Text16.Text = "") Then

MsgBox "faculty not selected", vbOKOnly + vbInformation, "faculty not selected"

Form_Load

GoTo Line5

ElseIf (List1.Text = "" And Text14.Text = "") Then

MsgBox "course not selected", vbOKOnly + vbInformation, "course not selected"

Form_Load

GoTo Line5

End If 

Page 58: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 58/79

University Handbook Management 

58

If rs.State = adStateOpen Then rs.Close

rs.Open "insert into Univ_Course values('" & uid & "','" & cid & "','" & Text12.Text

& "','" & Text13.Text & "','" & fid & "')", con, adOpenDynamic, adLockOptimistic,

adOpenKeyset

MsgBox "One row added", vbOKOnly + vbInformation, "Course Updated"

Line5: Text12.Text = ""

Text13.Text = ""

Text16.Text = ""

Text14.Text = ""

End Sub

Private Sub cmdremove_Click()

If List2.Text = "" Then

MsgBox "select university", vbOKOnly + vbInformation, "select university"

Form_Load

GoTo Line6

ElseIf List4.Text = "" Then

MsgBox "select course", vbOKOnly + vbInformation, "select university"

Form_Load

GoTo Line6

'ElseIf List3.Text = "" Then

'MsgBox "select Eligibility criteria", vbOKOnly + vbInformation, "select eligibilty"

Page 59: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 59/79

University Handbook Management 

59

'Form_Load

'GoTo Line6

End If 

Dim i As Integer

If Spec = "" Then

If rs.State = adStateOpen Then rs.Close

rs.Open "delete from univ_course where univ_id=" & u_id & " and course_id=" &

coid & "", con, adOpenDynamic, adLockOptimistic, adOpenKeyset

If rs.State = adStateOpen Then rs.Close

rs.Open "delete from sub_univ_crs where univ_id=" & u_id & " and course_id=" &

coid & "", con, adOpenDynamic

Else

If rs.State = adStateOpen Then rs.Close

rs.Open "delete from univ_course where univ_id=" & u_id & " and course_id=" &

coid & " and eligibility='" & Spec & "'", con, adOpenDynamic, adLockOptimistic,

adOpenKeyset

If rs.State = adStateOpen Then rs.Close

rs.Open "delete from sub_univ_crs where univ_id=" & u_id & " and course_id=" &

coid & "", con, adOpenDynamic

End If 

For i = List5.ListCount - 1 To 0 Step -1

If List5.Selected(i) = True Then

Page 60: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 60/79

University Handbook Management 

60

List5.RemoveItem (i)

End If 

Next i

For i = List4.ListCount - 1 To 0 Step -1

If List4.Selected(i) = True Then

List4.RemoveItem (i)

End If 

Next i

Text1.Text = ""

MsgBox "course removed", vbOKOnly + vbInformation, "courses modified"

Line6: ' course not removed

End Sub

Private Sub Command1_Click()

If Spec <> "" Then

If rs.State = adStateOpen Then rs.Close

rs.Open "update univ_course set eligibility='" & Text2.Text & "' where univ_id="

& u_id & " and course_id=" & coid & " and eligibility='" & Spec & "'", con,

adOpenDynamic, adLockOptimistic

Else

Page 61: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 61/79

University Handbook Management 

61

If rs.State = adStateOpen Then rs.Close

rs.Open "update univ_course set eligibility='" & Text2.Text & "' where univ_id="

& u_id & " and course_id=" & coid & "", con, adOpenDynamic, adLockOptimistic

End If 

If rs.State = adStateOpen Then rs.Close

rs.Open "update courses set c_name='" & Text1.Text & "' where course_id=" &

coid & "", con, adOpenDynamic, adLockOptimistic

If rs.State = adStateOpen Then rs.Close

rs.Open "update faculty set f_name='" & Text3.Text & "' where fac_id=" & facid &

"", con, adOpenDynamic, adLockOptimistic

MsgBox "updations are made", vbOKOnly + vbInformation, "course updated"

Text1.Text = ""

Text2.Text = ""

Text3.Text = ""

End Sub

Private Sub Form_Load()

Set con = New Connection

con.CursorLocation = adUseClient

con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path &

"\Handbook.mdb" ';Persist Security Info=False"

Page 62: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 62/79

University Handbook Management 

62

List1.Clear

List2.Clear

List3.Clear

If rs.State = adStateOpen Then rs.Close

rs.Open "select U_Name from University order by U_Name", con, adOpenStatic

While rs.EOF = False

List2.AddItem rs!U_name

rs.MoveNext

Wend

If rs.State = adStateOpen Then rs.Close

rs.Open "select F_Name from Faculty order by F_Name", con, adOpenStatic

While rs.EOF = False

List3.AddItem rs!f_name

rs.MoveNext

Wend

If rs.State = adStateOpen Then rs.Close

rs.Open "select C_Name from Courses order by C_Name", con, adOpenStatic

While rs.EOF = False

List1.AddItem rs!c_name

rs.MoveNext

Page 63: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 63/79

University Handbook Management 

63

Wend

If rs.State = adStateOpen Then rs.Close

rs.Open "select * from Faculty order by fac_id", con, adOpenStatic

If rs.EOF = True Then

Text17.Text = 1

Else

rs.MoveLast

Text17.Text = rs!fac_id + 1

End If 

If rs.State = adStateOpen Then rs.Close

rs.Open "select * from Courses order by Course_ID", con, adOpenStatic

If rs.EOF = True Then

Text15.Text = 1

Else

rs.MoveLast

Text15.Text = rs!course_id + 1

End If 

End Sub

Private Sub Image1_Click()

Page 64: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 64/79

University Handbook Management 

64

Me.Hide

Form1.Show

End Sub

Private Sub Image5_Click()

End

End Sub

Private Sub List1_Click()

If rs.State = adStateOpen Then rs.Close

rs.Open "select Course_ID from Courses where C_Name = '" & List1.Text & "'",

con, adOpenStatic

cid = rs!course_id

End Sub

Private Sub List2_Click()

If rs.State = adStateOpen Then rs.Close

rs.Open "select Univ_ID from University where U_Name = '" & List2.Text & "'",

con, adOpenStatic

uid = rs!univ_id

Page 65: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 65/79

University Handbook Management 

65

List4.Clear

If recset.State = adStateOpen Then recset.Close

recset.Open "select univ_id from university where u_name= '" & List2.Text & "'",

con, adOpenStatic

u_id = recset!univ_id

If rs.State = adStateOpen Then rs.Close

rs.Open "select distinct c_Name from Univ_course,courses where

univ_course.univ_id=" & u_id & " and courses.course_id=univ_course.course_id",

con, adOpenStatic

While rs.EOF = False

List4.AddItem rs!c_name

rs.MoveNext

Wend

End Sub

Private Sub List3_Click()

If rs.State = adStateOpen Then rs.Close

rs.Open "select Fac_ID from Faculty where F_Name = '" & List3.Text & "'", con,

adOpenStatic

fid = rs!fac_id

End Sub

Page 66: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 66/79

University Handbook Management 

66

Private Sub List4_Click()

If recset.State = adStateOpen Then recset.Close

recset.Open "select course_id from courses where c_name= '" & List4.Text & "'",

con, adOpenStatic

coid = recset!course_id

If rs.State = adStateOpen Then rs.Close

rs.Open "select eligibility from univ_course where univ_id=" & u_id & " and

course_id=" & coid & "", con, adOpenStatic

List5.Clear

While rs.EOF = False

List5.AddItem rs!eligibility

rs.MoveNext

Wend

If rs.State = adStateOpen Then rs.Close

rs.Open "select distinct f_name from univ_course, faculty where univ_id=" & u_id

& " and course_id=" & coid & " and univ_course.fac_id=faculty.fac_id", con,

adOpenStatic

List6.Clear

While rs.EOF = False

Page 67: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 67/79

University Handbook Management 

67

List6.AddItem rs!f_name

rs.MoveNext

Wend

Text1.Text = List4.Text

Text2.Text = ""

Text3.Text = ""

End Sub

Private Sub List5_Click()

Text2.Text = List5.Text

Spec = List3.Text

If List5.ListCount = 0 Then

Spec = ""

End If 

End Sub

Private Sub List6_Click()

Text3.Text = List6.Text

If rs.State = adStateOpen Then rs.Close

Page 68: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 68/79

University Handbook Management 

68

rs.Open "select Fac_id from faculty where f_name='" & Text3.Text & "'", con,

adOpenStatic

facid = rs!fac_id

End Sub

Subject Add, Update, Remove

Dim uid, fid, cid, sid As Integer

Dim unv, crs As String

Dim subid As Integer

Public con As New Connection

Public rs As New Recordset

Dim recset As New Recordset

Public qry, fn As String

Private Sub Command6_Click()

If Text19.Text <> "" Then

If rs.State = adStateOpen Then rs.Close

rs.Open "insert into Subject values(" & Text18.Text & ",'" & Text19.Text & "')",

con, adOpenDynamic, adLockOptimistic, adOpenKeyset

Page 69: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 69/79

University Handbook Management 

69

List4.AddItem Text19.Text

Text19.Text = ""

sid = Text18.Text

Text18.Text = Text18.Text + 1

End If 

If rs.State = adStateOpen Then rs.Close

rs.Open "insert into Sub_Univ_Crs values('" & sid & "','" & crs & "','" & unv & "')",

con, adOpenDynamic, adLockOptimistic, adOpenKeyset

lblRslt.BackStyle = 1

lblRslt.Caption = " 1 row added successfully."

End Sub

Private Sub cmdadds_Click()

If Text19.Text <> "" Then

If rs.State = adStateOpen Then rs.Close

rs.Open "insert into Subject values(" & Text18.Text & ",'" & Text19.Text & "')",

con, adOpenDynamic, adLockOptimistic, adOpenKeyset

List4.AddItem Text19.Text

sid = Text18.Text

Text18.Text = Text18.Text + 1

End If 

If List5.Text = "" Then

Page 70: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 70/79

University Handbook Management 

70

MsgBox "university not selected", vbOKOnly + vbInformation, " select university"

Form_Load

GoTo Line5

ElseIf List6.Text = "" Then

MsgBox "course not selected", vbOKOnly + vbInformation, " select course"

Form_Load

GoTo Line5

ElseIf (List4.Text = "" And Text19.Text = "") Then

MsgBox "subject not selected", vbOKOnly + vbInformation, "select subject"

Form_Load

GoTo Line5

End If 

If rs.State = adStateOpen Then rs.Close

rs.Open "insert into Sub_Univ_Crs values('" & sid & "','" & crs & "','" & unv & "')",

con, adOpenDynamic, adLockOptimistic, adOpenKeyset

MsgBox "One Row Added", vbOKOnly + vbInformation, "Subjects Updated"

Line5: Text19.Text = ""

End Sub

Private Sub cmdremsub_Click()

If List5.Text = "" Then

Page 71: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 71/79

University Handbook Management 

71

MsgBox "select university", vbOKOnly + vbInformation, "select university"

Form_Load

GoTo Line6

ElseIf List1.Text = "" Then

MsgBox "select course", vbOKOnly + vbInformation, "select university"

Form_Load

GoTo Line6

ElseIf List2.Text = "" Then

MsgBox "select subject", vbOKOnly + vbInformation, "select subject"

Form_Load

GoTo Line6

End If 

Dim i As Integer

If rs.State = adStateOpen Then rs.Close

rs.Open "delete from sub_univ_crs where univ_id=" & unv & " and course_id="

& cid & " and sub_id=" & subid & "", con, adOpenDynamic, adLockOptimistic,

adOpenKeyset

For i = List2.ListCount - 1 To 0 Step -1

If List2.Selected(i) = True Then

List2.RemoveItem (i)

End If 

Next i

Page 72: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 72/79

University Handbook Management 

72

MsgBox "subject removed", vbOKOnly + vbInformation, "subjects updated"

Line6: 'subject not removed

Text1.Text = ""

End Sub

Private Sub Command1_Click()

If List5.Text = "" Then

MsgBox "select university", vbOKOnly + vbInformation, "select university"

Form_Load

GoTo Line6

ElseIf List1.Text = "" Then

MsgBox "select course", vbOKOnly + vbInformation, "select university"

Form_Load

GoTo Line6

ElseIf List2.Text = "" Then

MsgBox "select subject", vbOKOnly + vbInformation, "select subject"

Form_Load

GoTo Line6

End If 

If rs.State = adStateOpen Then rs.Close

rs.Open "update subject set s_name='" & Text1.Text & "' where sub_id=" & subid

& "", con, adOpenDynamic, adLockOptimistic

Page 73: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 73/79

University Handbook Management 

73

MsgBox "updations are made", vbOKOnly + vbInformation, "subject updated"

Line6: 'subject not removed

Text1.Text = ""

Form_Load

End Sub

Private Sub Form_Load()

Set con = New Connection

con.CursorLocation = adUseClient

con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path &

"\Handbook.mdb" ';Persist Security Info=False"

List4.Clear

If rs.State = adStateOpen Then rs.Close

rs.Open "select * from Subject order by S_Name", con, adOpenStatic

While rs.EOF = False

List4.AddItem rs!S_Name

rs.MoveNext

Wend

Page 74: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 74/79

University Handbook Management 

74

List5.Clear

If rs.State = adStateOpen Then rs.Close

rs.Open "select U_Name from University order by U_Name", con, adOpenStatic

While rs.EOF = False

List5.AddItem rs!U_name

rs.MoveNext

Wend

List6.Clear

If rs.State = adStateOpen Then rs.Close

rs.Open "select C_Name from Courses order by C_Name", con, adOpenStatic

While rs.EOF = False

List6.AddItem rs!c_name

rs.MoveNext

Wend

If rs.State = adStateOpen Then rs.Close

rs.Open "select * from Subject order by Sub_ID", con, adOpenStatic

If rs.EOF = True Then

Text18.Text = 1

Else

rs.MoveLast

Text18.Text = rs!sub_id + 1

End If 

Page 75: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 75/79

University Handbook Management 

75

End Sub

Private Sub Image1_Click()

Me.Hide

Form1.Show

End Sub

Private Sub Image5_Click()

End

End Sub

Private Sub List1_Click()

List2.Clear

If recset.State = adStateOpen Then recset.Close

recset.Open "select course_id from courses where c_name='" & List1.Text & "'",

con, adOpenStatic

cid = recset!course_id

If rs.State = adStateOpen Then rs.Close

rs.Open "select s_name from subject, sub_univ_crs wheresubject.sub_id=sub_univ_crs.sub_id and sub_univ_crs.univ_id=" & unv & " and

sub_univ_crs.course_id=" & cid & " ", con, adOpenStatic

While rs.EOF = False

List2.AddItem rs!S_Name

Page 76: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 76/79

University Handbook Management 

76

rs.MoveNext

Wend

End Sub

Private Sub List2_Click()

If recset.State = adStateOpen Then recset.Close

recset.Open "select sub_id from subject where s_name='" & List2.Text & "'", con,

adOpenStatic

subid = recset!sub_id

Text1.Text = List2.Text

End Sub

Private Sub List4_Click()

If rs.State = adStateOpen Then rs.Close

rs.Open "select Sub_ID from Subject where S_Name = '" & List4.Text & "'", con,

adOpenStatic

sid = rs!sub_id

End Sub

Private Sub List5_Click()

If rs.State = adStateOpen Then rs.Close

Page 77: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 77/79

University Handbook Management 

77

rs.Open "select Univ_ID from University where U_Name = '" & List5.Text & "'",

con, adOpenStatic

unv = rs!univ_id

List1.Clear

List2.Clear

If rs.State = adStateOpen Then rs.Close

rs.Open "select distinct c_Name from sub_univ_crs, courses where

sub_univ_crs.univ_id=" & unv & " And sub_univ_crs.course_id=courses.course_id

", con, adOpenStatic

While rs.EOF = False

List1.AddItem rs!c_name

rs.MoveNext

Wend

End Sub

Private Sub List6_Click()

If rs.State = adStateOpen Then rs.Close

rs.Open "select Course_ID from Courses where C_Name = '" & List6.Text & "'",

con, adOpenStatic

crs = rs!course_id

End Sub

Page 78: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 78/79

University Handbook Management 

78

System Requirements

OS : Windows XP/Windows7

MSOffice : 2003 / 2007 version

OCX Files : MSChrt20.ocx (C:\Windows\System32)

MSComCt2.ocx (C:\Windows\System32)

MSComCtl.ocx (C:\Windows\System32)

Page 79: Handbook Report With Sourse Code

7/30/2019 Handbook Report With Sourse Code

http://slidepdf.com/reader/full/handbook-report-with-sourse-code 79/79

University Handbook Management 

REFERENCES AND BIBLIOGRAPHY  

For the successful completion of the project, the references to the following

books and website links were considered:

1. www.codeguru.com 

2. www.devex.com 

3. Microsoft Visual Basic Programmer’s Guide 

4. Microsoft Visual Basic Language Reference Manual