You are on page 1of 93

A

Project Report
On

RAILWAY RESERVATION MANAGEMENT SYSTEM

POST GRADUATE DIPLOMA

IN

COMPUTER APPLICATION

(ADVANCED)P.G.D.C.A. – 2nd Semester

Session 2022-23

SUBMITTED TO: SUBMITTED BY:


DR.K.C. JOSHI RAVIT KUMAR
Mr. RAJAT SIR (AD) P.G.D.C.A. II Se
Roll No.

1
M.J.P. ROHILKHAND UNIVERSITY,
BAREILLY

2
PREFACE

As you are aware that computer is a part of our day-to-day life. All

activities and happenings around are related to the computers in any way.

This is an advancement of technology and we are living in this area. We

should be well aware with the technology advancement.

Exploring the world of information technology is informative, exciting

and also challenging. This project is fully developed and capable to fulfill all

the requirements of user.

I have covered up-to-date and latest information for this project and

with full enhancement from the previous one.

In this project, I will give the information about the Entertainment Blog

Spot, You can lisliten the music , watch movies ,news & cricket ,footwall .. In

this project, persons can use study material that is provided online. I will try

to cover the maximum requirements of user, which is more important than

just make a descriptive project. I hope that this project will be easy and

useful for the user.

3
ACKNOWLEDGEMENT

Many people have helped to create this project and each of contribution

has been valuable. There are several person to whom I owe thanks for their

help, guidance, support, and suggestions during the various stages of this

project.

I thank All faculty Member for appreciating and encouraging my

creativity. I would also like to thank DR. KC JOSHI who has contributed greatly

to the success of this topic. The idea of this topic was planted by my father. I

thanks to my parents for their moral support without which the work would

not be possible.

Thanks

DEEPAK YADAV

(AD)PGDCA (2 Semester)

4
Roll No.23201940006

DECLARATION

I hereby declare that the project work entitled “RAILWAY

RESERVATION MANAGEMENT SYSTEM” is submitted for the partial

fulfillment of One year’s degree course Advanced Post Graduate Diploma In

Management from MJP Rohilkhand University, Bareilly is my original work

and has not been submitted for any other degree.

This project work is in accordance with “VISUAL BASIC 6.0” and my original
work.

DEEPAK YADAV

(AD)PGDCA (2 Semester)

Roll No.23201940006

5
6
INTRODUCTION

Sanjivamni vikas foundation:-

SVF was registered on Under societies regn:act;21 of 1860. Regn. No


497/2004-2005, the Society is deemed to be registered as a Multistate Co-
operative Society. The Society is primarily engaged in csp and distribution of Rural
Banking services. The byelaws of the Society provide a broad frame work for the
activities of sanjivani vikas foundation as a Society (ngo)

7
VENTURES OF SVF

Products: Man power suppliers


working Site: pan India
Shareholding: 20 %

SVF has a modern world scale Maximum-train traveling and working all banking
services to providing rural banking

1. SBI
2. BOB
3. PNB
4. UNION BANK
5. UCO BANK
6. UPBANK

8
Working PROFILE

WORKING OFFICE ALL INDIA:-


There are many OFFICE in the pan India unit but most important office given below.

 Main office Patna


 Uttar Pradesh
 Delhi
 Rajasthan

9
IT DEPARTMENT

Svf office Bareilly Unit is like the backbone of the company. It is responsible
for controlling the whole functionality of the plant because of this department
it become very easy for the management of control room and manage the
whole organization and like it to various other office all over the world. IT
Department provide its services not only to people within the organization
but also connects various other branches across the globe.

IT Department exist inside technical block in which there is well Equipped IT


LAB which is responsible for controlling whole plants. All the software and
hardware are established here which runs around the environment of
continuous 24hrs power supply and fully Air conditioned block under the
hard work of the Department working staff.

Major work of IT Department is to make software of organization own use.


There are many software made by IT Department which provide great help
to the organization. These are as shown as below:

 Payroll Software for manage the all employees


 Data Management System Software
 Product Dispatch Software
 Township Planning Management Software
 Working application

10
11
Data from System Department for the Year 2022-23

Facilities Capacity Consultant


/Contractors /
Designer / Supplier
Oracle Database Server Risc Server 16GB RAM, 2x300GB IBMP520 Exp
HDD, 36/72 DLT and AIX
Operating System connected with
1TB SAN storage DS4700
1.)Oracle 10g Application Each with Intel OUAD Core IBM X3650
Servers-1(PMMS/LAB/Material Processor XEON 5500 Series, 8GB Total 3NOS.
Gate pass/ Inspection RAM, HDD 146 GBx4 with RAID,
Vibration Monitoring /Tel OS Windows Server 2008
Complaint / AB Club Library )
2.)Attendance Recording
System Server / PCF test
Server
3.) Data Backup Server-1/PCF
Database Server
Louts Domino Server Inter QUAD Core Processor XEON IBM X 3650
5500 Sense, 8GB RAM, HDD
146GB x 4with RADI, OS-Linux
5.1.19.6
Oracle 9i/10g Application Intel XEON Processor 3.60GHz/800 IBM X Series 236
Server MHz FSB.8GB RAM, 3X146.8 G.
(Technical Reporting / Hot SWAP HDD, Supporting
Township Complaint / RAID5. Windows 2003Server
Computer Complaint)
Document Management Intel XEON Processor 2.0 GHz,8 HP Proliant ML 370
Server / other Backup / PCF GB RAM 5 X146 GB hot SWAP G5
alternate Server. HDD, Windows 2003 Server
Domain Controller Each with dual Intel TUALATIN P- Compaq ML 350 G2
III processor at 1013GHz, 2GB
ECC RAM, 36.4GB x 4ULTRA-III
SCSI with RAID,OS- windows NT
4.0 service pack6

12
Antivirus server Inter (R) Core (TM) i3-2120 CPU HP 6200
@3.3 GHz, 4GB RAM, 80 GB HDD,
Supporting RAID5. OS-Windows
2003 Server

Development Database Server, 6GB RAM, 2x18.2 GB HDD, IBM RS 6000 F-80
35/70 DLT 250 GB External Storage
with AIX Operating System

No. of Pcs as on 31.3.2015 500 Nos


No. of printers and 425 Nos
Scanners an on 31.3.2015
Communication Facilities It is to maintain WAN connectivity between svf units and
8Mbps MPLS-VPN multi link HO.
from BSNL Applications like ERP, HRMS, Produce Dispatch, E-
procurement, video Conferencing etc are using this line.
Airtel 8Mbps/RF link in It is used as a backup of exiting MPLS link of BSNL
load sharing mode
Sify 8Mbps 1:1 link taken at It is used for local internet Service required at sbf bareilly
Aonla unit
BSNL 4Mbps shared
broadband line
TATA6 Mbps line It is used for WAN connectivity between svf units and
HO. Apart from application running from centralized
server, this link is used for internet and video
conferencing

13
INTRODUCATION

M.J.P. Rohilkhand University was established in1975 as an affiliating


University. Its status was upgraded to affiliating-cum-residential university in 1985
when four teaching Departments were established in the campus. In 1987 three
more Departments were added. In August 1997 Rohilkhand University was
renamed as Mahatma Jyotiba Phule Rohilkhand University. The University
has taken an overall perspective of development plan and thereby modified
University status by including new Faculties of Engineering and Technology,
Management, Applied Sciences, Education and Allied Sciences etc. It has more than
215 affiliated colleges. The existing faculties in the University are as under

Advanced Social Sciences


 Applied Science
 Education
 Agriculture
 Education & Allied Sciences
 Arts
 Commerce
 Dental Sciences
 Engineering & Technology
 Law
 Management
 Sciences

14
The University headquarter is located at Bareilly with its territorial jurisdiction
extending over the districts of Bareilly, Moradabad, Rampur, Bijnore,
Jyotibaphule Nagar, Baduan, Pilibhit and Shahjahanpur. The University
campus spreads over 206 acre of Land. The Campus possesses administrative
building, faculty buildings, Central Library, Multipurpose hall, hostel for boys & girls,
Staff quarter for Vice Chancellor and another officers of the University, faculty
members, Non-teaching staff, Guest houses and Sports complex. It has also a
medical center. The senior faculty members of different disciplines in Humanities,
Science and Technology are running research projects funded by various agencies
and so far 49 projects funded by UGC, AICTE, DST, CST, ICAR, ICHR, MIF
have been completed. Teachers of the Affiliated college are also engaged in
research projects funded by above agencies. In tune with the goals of the University
the different departments of the campus have framed their objectives for keeping
pace with the national and international educational scenario

The core programmer’s are mainly at Masters level while professional, technical and
vocational belong to under graduate level. The former includes M.A. in Ancient
History & Culture, Applied and Regional Economics, Plant Science, Animal Science,
Education, Law and Business Administration. While the latter encompass degree
courses in six branches of technology, three courses in specialized education,
pharmacy etc. New advanced technologies such as Air Craft Maintenance are on the
agenda of the University.
At present there are 21 university departments,17 Government colleges, 29
Government funded affiliated colleges, 108 self- financing colleges. The University
runs 36 Post Graduate, 15 under Graduate, 09 Diploma, 20 Post Graduate Diploma,
02 M.Phil and 34 Doctoral Programmer’s. In most cases syllabi are revised annually.

The University has Central Library, Computer Centre, Workshop, Primary Health
Centre, Sports facilities including Indoor stadium, Track field etc. for out door
games, inter-alia, as Central facility. Moreover electronic gadgets are regularly used
for imparting instructions in the class rooms, laboratories and workshops.

15
Department of Advanced PG Diploma in Computer
Application

Head Prof NANILI SRIVASTAV

Phone 0581-2528106

Fax No. -

E-Mail -

Establishment 1997

Courses Ad.PGDCA

We have been successfully running one-year ( Two Semester) Ad. P.G. diploma
Course in Computer Application Since 1997.

Computer, now-a-days is indispensable in almost all sphere of life- industry, banking,


business, medical, education and officer. This course is designed to acquaint these
students with the latest knowledge of operating system and languages. The main
emphases is giving to develop software packages in visual basic, C, C++, Java and
Oracle and also basic knowledge of Internet and e-commerce. Keeping in view the
rapid growth of IT and liberation of the economy , the Advanced PGDCA is especially
designed to enable the student to build and peruse of career in emerging world of
computer and IT.

16
Department of PGDCA Faculty Detail

S.N Designati Qualificati Specializati Mor


Name Email
o on on on e

Mr.
RAJAT Programme Sharmatul110971@Rediffmail. Mor
1 M.Sc.(cs) Networking
RAJPOO r Com e
T SIR

Dr.
KAILAS Programme Software Mor
2 Ph.D Kc-Joshi@Indiatimes.Com
H r Engineering e
JOSHI

17
Railway Reservation System

INTRODUCTION:-
This project introduces Railway Reservation System. Railway
ticket booking system software projects main aim is to provide a secure and easy
way to book train tickets. This project is developed in Visual Basic 6.0 language and
Microsoft Access Database. This RAILWAY RESERVATION MANAGEMENT SYSTEM
should be able to manage all the reservation related functions.

18
MODULES IN DETAIL

 Ticket reservation

This is the module one and this comprises of following subtasks:-

i. Checking for availability


ii. Accepting details
iii. Journey planner

i. Checking for availability :

This is the process of checking the train’s database to check whether seats
are vacant or not. That is the whether the ticket that will be reserved is
‘Available’ or ‘RAC’ or a ‘Waiting list’.

ii. Accepting Details

This includes following steps :-

a) Gathering passenger details


b) Processing the ticket request
c) Calculation of fare
d) Issuing the PNR
e) Issuing ticket details

iii. Journey planner :

This is an innovative idea we are proposing. Software’s first and


foremost requirement is that it should lessen or eliminate manual
exertion. That is, it should be as user friendly as possible.

Now what we propose to achieve by this is, by just entering the


starting and ending station, we will get the list of following details

1. Direct trains to the destination


2. Connection trains which are feasible

19
 Status monitoring:

This process lets the passenger / operator know the status of the ticket. There are
three possible states for a ticket to be in

a) Confirmed
b) RAC
c) Waiting list

This process is used to issue the current state of the ticket.

 Ticket canceling:

This is the task of canceling a railway ticket. Cancellation leads to the rearrangement
of the database containing the allotted passenger’s details. There are three cases:-

a) Cancellation of a confirmed ticket involves transforming the RAC-1 to the


cancelled ticket and moving all the RAC and Waiting list entries up by one.

b) Cancellation of a RAC involves moving the succeeding RAC and waiting list
entries up by one.

c) Cancellation of a Waiting list just involves the moving up by one all the
succeeding Waiting list entries.

Gant Chart
This is the time frame that we are trying to abide in achieving the project.

Here the three modules and major steps of our project are shown.

In this chart, X-axis denotes progress and Y axis denotes time

20
final project

review2
Cancellation
Status
Reservation
review 1
Database construc-
tion
Analysis phase
19-Jan

0 1 2 3 4 5

21
Existing system vs. our proposed system

Our railway uses a very advanced system and that too for a long time. That it
is a system which is tested by time. But no system is perfect and there is scope for
improvement in every one! So we analyzed deeply and came up with this :-

Journey planner:

Currently The Indian railway does use a kind of Journey planner in


the name of “Trains between stations”. But our’s goes a step further than
the existing one. We are planning to take into account the connection trains
as well. Thus the number of options is increased dramatically.

Apart from this we try to meet if not better all the major technicalities
which are sufficient and is currently in the existing system.

Future Enhancements

Due to the limited amount of resources and time, we are planning to restrict our
project to Southern railway for now, but later on it can be extended to the whole of
Indian railway.

Then our system is easy to update with new trains and new routes.

Also our system makes it possible to update the cost of ticket and other
charges periodically.

Then, this project can be later on be used to implement as an online system


as well.

Problem Definition

User faces various difficulties while booking their tickets by visiting to the reservation
counter or by visiting to the agents. Through this system it will save customers time

22
and money as well. User will get the facility of making their payments of their choice
and get entire information after reservations and many more of the login screen.

Motivation behind this project

Finding trains between given routes through simple search query on particular date
and displaying all details of that particular train such as arrival time, departure time,
number of seats available, class type, charges details and many more. Users will also
able to update their profiles and can get details related to their transactions.

23
Project Statement

Background – Current Process

Current system does not provide facility of self-cancellation and other facilities such
as shortest route details from their current locations. It does not provide details of
their previous booking history as well as festive session offer/discounts details.
Through this system, user will able to perform various activities using a single
windows panel.

Overview

To access this system, users have to register by giving their entire details such as
their name, full address details, sex, age, occupation, date of birth, nationality,
mobile number, email id. After successful registration, users will be provided with
their login id and password.

Under the user login panel, they can search train by using two given stations name
of by using their station id on particular date. If user has to boom ticket, then they
have to provide they have to provide type of reservation such as General, Tier I,II or
AC type. Then they have to enter total number of tickets they require and their
details except current user. User will be provided with ticket number along with
journey details.

Apart from this option, user can able to print the tickets, make cancellations, check
their transaction history, update their profile, user can check their account section
for refund of their money after making cancellation.

For special offers, user can check festive/discount sections. Under this section user
will be provided with following details: - special trains, instant booking discount
offers, special discounts for senior citizens etc. To make searching process easier
user can see list trains and time table’s details for the available trains on particular
route and their arrival and departure time details. User can log out by just pressing
logout button given. It will take the user to the main screen of the system displaying
logo and its name.

24
Purpose:

The purpose of Railway Reservation System is a software application which provides


the train timing details, reservation, billing and cancellation.

Using these systems Ticket Counter person can perform operations like finding out
the train timings and to know information about PNR status, seats availability and
costs of each ticketed.

This system is developed in three categories.


1. Ticket Reservation
2. Ticket Cancellation
3. Status checking
Modules :
Admin Module
Train Details Module
Reservation Module
Billing Module
Cancellation Module

Software’s Used to develop:

Railway Reservation System application is developed using visual basic as a front


end and Microsoft Access as database which runs as backend application.

Features :

 This application is an automated railway ticket booking system.


 First the Ticket counter clerk will check for availability for the seats in a particular
train on a specified date of journey. If it is available the clerk will reserve seats.
 The administrator should be able to enter any change related to the train
information like change in train name, number etc.
 The system should be able to reserve seat in a train for a passenger.
 The system should be able to print the report like it should be able to generate
reservation chart, train report, reservation ticket which will have train no and
name, date of journey, boarding station, destination station, person name, age,
sex, total fare and a unique PNR no.
 The system should be able to cancel a reservation.
 The system should be able to print the cancellation ticket which will have total
fare and the amount deducted.

25
HARDWARE & SOFTWARE
The minimum specifications required to develop “IFFCO, Bareilly” are as under:

Technologies Used
1. Visual Basic 6.0
2. Ms-Access

Software Used
1. Windows Xp ,7 , 8 any more.
2. Visual Basic 6.0
3. My SQL Server.

Hardware Requirements
 Processor – Pentium III or higher version.
 Ram – 100 MB.
 Hard Disk – 300 MB.
 Monitor.
 Optical USB Mouse.
 Keyboard.
 Printer.

26
PROPOSED SYSTEM
Today one cannot afford to rely on the fallible human being of be really wants to
stand against today’s merciless competition where not to wise saying “to err is
human’’ no longer valid, it’s outdated to rationalize your mistake. So to keep pace
with time , to bring about the best result without malfunctioning and greater
efficiency so to replace the unending heaps of flies with a much sophisticated hard
disk of the computer. One has to use the data management software. Software has
been an ascent in atomization various organizations. Many software products
working are now in markets, which have helped in making the organizations work
easier such an organization gives the better look. and efficiently. Data management
initially had to maintain a lot of ledgers and a lot of paper work has to be done but
now software product on this organization has made their work faster and easier.
Now only this software has to be loaded on the computer and work can be
done. This prevents a lot of time and money. The work becomes fully
automated and any information regarding the organization can be obtained by
clicking the button. Moreover, now it’s an age of computers of and
automating

SYSTEM DEVELOPMENT LIFE CYCLE

The System Development Life Cycle (SDLC) is a conceptual model used in project
management that describe the stages involved in an information system development project
from an initial feasibility study through maintenance of the completed application, various
SDLC methodologies have been developed to guide the processes involved including the
waterfall model (the original SDLC method), rapid application development (RAD), joint
application development (JAD), The fountain model and the spiral model. Mostly, several
models are combined into some sort of hybrid methodology. Documentation is crucial
regardless of the type of model chosen of devised for any application, and is usually done in
parallel with the development process. Some methods work better for specific types of
projects, but in the final analysis, the most important factor for the success of a project may
be now closely particular plan was followed. The image below is the classic waterfall model
methodology, which is the first SDLC method and it describe the various phase involved in
development.

27
Feasibility
Analysis
Design

Implement

Test
Maintainence

Briefly on different Phase:

Feasibility:
The feasibility study is used to determine if the project should get the go ahead. If the
project is to proceed, the feasibility study will produce a project plan and budget estimates for
the future stages of development.

Requirement Analysis and Design:


Analysis gathers the requirement for the system. This stage includes a detailed study
of the business needs of the organization. Options for changing the business process may be
considered. Design focuses on high level design like, what programs are needed and how are
they going to interact, low-level design (how they individual programs are going to work),
interface design (what are the interfaces going to look like) and data design (what data will be
required). During these phases, softer ware’s overall structure is defined. Analysis and design
are very crucial in the whole development cycle. Any glitch in the design phase could be very
expensive to solve in the later stage of the software development. Much care is taken during
this phase. The logical system of the product is development in this phase.

Implementation:
28
In this phase the design are translated into code. Computer program are written using a
conventional programming language or an application generator .programming tools like
compiler, interpreters, debuggers are used to generate code. Different high level languages
like C, C++, PASCAL, and JAVA are used for coding .With respect type of application, the
right programming language is chosen.

Testing:
In this phase the system in tested. Normally programs are written as series of individual
modules, subject to separate and detailed test. The system is then tested as whole. The
separate modules are brought together and tested as completed system. The system is tested
to ensure that interfaces between modules working (integration testing), the system works on
the intended platform and with the expected volume of data (volume testing) and the system
dose what the user requires (acceptance/beta testing).

Maintenance:
Inevitably the system will need maintenance. Software will definitely undergo change once it
is delivered to the customer. There are reason for the change. Change could happen because
of some unexpected input values into the system. In addition, the changes in the system could
directly affect the software operations. The software should be developed to accommodate
changes that could happen during the post implementation period.

System Development Life Cycle


Referred to variously as the waterfall model and linear cycle, this methodology is a
coherent description of the steps taken in the development of information system. The reason

29
why it is referred to as the waterfall model should be obvious from the following figure (from
Horner, 1993):

Requirements

Analysis

Design

Coding

Testing

Acceptance

The waterfall model (System Development Life Cycle)

Figure: System Development Life Cycle

The methodology SDLC is closely linked to what has come to be know as structured system
analysis & design. It involves a series of steps to be undertaken in the development of
information system as follow:

 Problem definition: On receiving a request from the user for system development, an
investigation is conducted to state the problem to be solved.
 Deliverables: Problem statement.
 Feasibility study: The objective here is to clearly define the and objectives of the
system project, and to identify alternative solutions to the problem defined earlier.
 Deliverables: feasibility report.

30
 System analysis phase: The present system is investigated and its specifications
documented. They should contain our understanding of how the present system
works and what it doers.
 Deliverables: Specification of the present system.

 System design phase: The specification of the present system are studied to determine
what changes will be needed to incorporate the user needs not met by the system
presently. The output of this phase will consist of the specification, which must
describe both WHAT the proposed system will do and HOW it will work.
 Deliverables: Specification of the proposed system.

 System Construction: Programming the system, and development of user


documentation for the System as well as the programs.
 Deliverables: programs, their documentation, and user manuals.

 System testing & evaluation: Testing verification and validation of the system just
built.
 Deliverables: Test and evaluation results , and the system ready to be
delivered to the user/client.

The figure below provides an illustration for the description.

User Request

Problem
Problem Statement
definition

Feasibility study
31
Feasibility
System analysis Report

Specs of
Existing System
User needs System Design

Specs of
System Proposed
Construction system

System Testing &


Proposed system
evalustion

System Development Life Cycle (SDLC)

Figure: Data Diagram for SDLC


The waterfall model has many attractive features: Clearly defined deliverables at the end
of each of phase, so that the client can take decisions on continuing the project. Incremental
resource commitment. The client does not have to make a full commitment on the project at
the beginning. Isolation of the problem early in the process.

About Visual Basic (6.0)

So what is Visual Basic? The “Visual” part refers to the method used to create the
graphical user interface (GUI). Rather than writing numerous lines of to code
describe the appearance and location of interface elements, you simply add pre built
objects into place on screen. If you’ve ever used a drawing program such as Paint,
you already have most of the skills necessary to create an effective user interface.

32
The “Basic” part refers to the BASIC (Beginners All-purpose Symbolic Instruction
Code) language, a language used by more programmers than any other language in
the history of computing. Visual Basic has evolved from the original BASIC language
and now contains several hundred statements, functions , and keywords , many of
which relate directly to windows GUI. Beginners can crate useful applications by
learning just a few of the keywords, yet the power of the language allows
professionals to accomplish anything that can be accomplished using any other
Windows programming language.

The Visual Basic programming language is not unique to Visual Basic. The Visual
Basic programming system, Application Edition included in Microsoft Excel, Microsoft
Access, and many other Windows application uses the same language. The Visual
Basic Scripting Edition (VB Script) is a widely used scripting language and a subset of
the Visual Basic language. The investment you make in learning Visual Basic will
carry over to these other areas.

Active X tm technologies allow you to use the functionality provided by other


applications, such as Word processor, Microsoft Excel spreadsheet, and other
Windows application. You can even automate applications and other objects created
using the professional of Enterprise editions of Visual Basic.

Visual Basic Editions

Visual Basic is available in three versions, each geared to meet a specific set of
development.

The Visual Basic Learning edition allows programmers to easily create powerful
applications for Microsoft Windows and Windows NTR. It includes all intrinsic
controls, plus grid, tab, and data bound controls. Documentation provided with this

33
edition includes the Learn VB Now CD plus the Microsoft Developer Network
(MSDNtm) Library CDs containing full online documentation.

The professional provides computer professional with a full featured set of tools for
developing solutions for others. It includes all the features of the Learning edition,
plus additional Active X controls, the internet information Server Application
Designer, integrated Visual Database Tools and Data Environment, Active Data
Objects, and the Dynamic HTML Page Designer. Documentation provided with the
Professional edition includes the Visual Studio Professional Features Book plus
Microsoft Developer Network CDs containing full online documentation.

Visual Basic Enterprise Edition Features

The Visual Basic Enterprise Edition contains all of the include with the Visual Basic
professional Edition and the Visual Basic Learning Edition. In addition , it contains
the following features, available in the Enterprise Edition only. For more information
about other edition of Visual Basic , see Visual Basic Edition.

Note these features are also part of the Visual Studio enterprise Edition.

Which contains the full complement of Microsoft Enterprise Development tools.

Application Performance Explorer

This tools enables you to testing the run time performances and resource load
characteristics of various enterprise application design scenarios you are considering.

Internet Information Server 4.0

34
Internet information server (MTS) is a component based transaction processing
system for developing , deploying, and ,managing high performance, scalable , and
robust enterprise , and internet server application.

OLE DB
OLE DB is asset of OLE interfaces that provide applications with uniform access to
Data stored in diverse information sources. These interfaces support the amount of
DBMS functionality appropriate to the Data source, enabling it to share its Data.

Remote Data Control

The remote Data control implement Data access by using RDO, The Microsoft
remote Data objects.

SQL Debugging

The Microsoft debugging allows you to interactive Debug remote stored procedures
written in Microsoft SQL server’s transact SQL dialect, from within the Visual Basic
Development Environment.

SQL Server 10g

The Microsoft SQL server programmer’s toolkit covers transact –SQL, programming
ODBC for SQL and more.

Stored Procedures Editor

The SQL editor allows you to create and edit stored procedures and triggers in both
SQL server and Oracle from within the Visual Basic development environment.

35
User Connection Designer

This ActiveX designers provides design-time support for programmatic data access.
This tool has been superseded in this version of Visual Basic by the data
Environment designers, listed above.

MDI for Visual Basic 6.0 Users

You can use both Visual Basic 6.0 a to create multiple-document interface (MDI)
applications; however the techniques for creating them and some of their behaviors
differ.

36
Conceptual Differences

In Visual Basic 6.0, multiple-document interface (MDI) applications are created by


adding an MDI form to a project and then setting the MDIChild property of any
child forms.

Visual Basic 2008 does not have an MDI form; any form can be made into an MDI
parent by setting the IsMdiContainer property to True.
Many of the properties and methods that applied to Visual Basic 6.0 MDI forms have
changed in Visual Basic 2008. For more information, see MDIForm Object for Visual
Basic 6.0 Users.

The behavior of MDI applications has also changed. In Visual Basic 6.0, an MDI
application having a form that is not an MDI child does not end until that form is
closed, even if the MDI parent is closed. In Visual Basic 2008, the application ends
when the startup form is closed, regardless of any non-MDI forms in the application.

MDI Overview
This document introduces you to the concept of Multiple Document
Interface (MDI) and how to create menus within an MDI application. You will learn
to create an MDI application in Microsoft Visual Studio .NET and learn why you
might want to use this type of interface. You will learn about child forms that are
contained within the MDI application, and learn to create shortcut, or context-
sensitive, menus.
MDI is a popular interface because it allows you to have multiple documents (or
forms) open in one application. Examples of MDI applications include Microsoft
Word, Microsoft Excel, Microsoft PowerPoint®, and even the Visual Studio integrated
development environment itself. Each application consists of one (or more) parent
windows, each containing an MDI client area—the area where the child forms (or
documents) will be displayed. Code you write displays as many instances of each of
the child forms that you want displayed, and each child form can only be displayed
within the confines of the parent window—this means you can't drag the child forms
outside the MDI container. Figure 1 shows a basic MDI application in use.

37
Use MDI to open multiple windows and have them all contained within the parent area

Single Document Interface


Don't be misled: MDI is only one of several possible
paradigms for creating a user interface. You can also create applications that display
just a single form. They're easier to create, in fact. Those applications are called
Single Document Interface (SDI) applications. Microsoft Windows® Notepad is an
SDI application, and you can only open a single document at a time. (If you want
multiple documents open, you simply run Notepad multiple times.) You are under no
obligation to create your applications using the MDI paradigm. Even if you have
multiple forms in your project, you can simply have each one as a stand-alone form,
not contained by any parent form.

Uses of MDI
You'll use MDI most often in applications where the user might like
to have multiple forms or documents open concurrently. Word processing
applications (like Microsoft Word), spreadsheet applications (like Microsoft Excel),
and project manager applications (like Microsoft Project) are all good candidates for
MDI applications. MDI is also handy when you have a large application, and you
want to provide a simple mechanism for closing all the child forms when the user
exits the application.

Creating an MDI Parent Form


To create an MDI parent form,
you can simply take one of your existing forms and set its Is MDIContainer property
to True. This form will now be able to contain other forms as child forms. You may
have one or many container forms within your application.
Tip Note the difference here between Visual Studio 6.0 and Microsoft Visual
Basic® 6.0 behavior. In Visual Basic 6.0, you could only have a single MDI parent
form per application, and you had to use the Project menu to add that one special
form. In Visual Studio 6.0, you can turn any form into an MDI parent form by simply
modifying a property, and you can have as many MDI parent forms as you require
within the same project.

You may have as many different child forms (the forms that remain contained within
the parent form) as you want in your project. A child form is nothing more than a
regular form for which you dynamically set the MDI Parent property to refer to the
MDI container form.
Note The user interface objects you've designed within the Visual Studio
environment are really templates for forms. That is, they don't actually become real
Form objects until you instantiate them at run time. Therefore, your project can
contain as many different templates for MDI child forms as you like. You can
instantiate and then show as many instances of as many different templates as you
need, while your applications are running.

38
Run-time Features of MDI Child Forms

At run time, the MDI parent form and the MDI child forms take on special features:

 All child forms are displayed within the MDI parent's client area. The client
area is the area below the MDI parent's title bar, any menus, and any tool
bars.
 Child forms can be moved and sized only within the MDI parent's client area.
 Child forms can be minimized and their icon will be displayed within the
parent's client area.
 Child forms can be maximized within the parent's client area and the caption
of the child form is appended to the caption of the MDI form.
 Windows automatically gives child forms that have
their FormBorderStyle property set to a sizable border a default size. This
size is based on the size of the MDI parent's client area. You can override this
by setting the Form Border Style property of the child form to any of the
fixed type of borders.
 Child forms cannot be displayed modally.
 The MDI form can be minimized and only one icon will be displayed on the
desktop representing the MDI form and all of its children.
 If the MDI form is unloaded, all of the loaded children will also be unloaded.

Note The client area includes any usable area on the MDI form minus any toolbars or status bars that you may
have added to the MDI form.

Create an MDI Project


In this section, you will walk through the steps of creating a simple MDI application
using Visual Studio .NET. To do this, you will create a new form that will be the MDI
parent form. You will add some menus to this new form, and then you will load the
product form from a menu as a child form.

Create the MDI Parent Form


To create the MDI parent form

1. Open Visual Basic 6.0

39
2. Create a new Windows application project.
3. Set the name of the project to MDI.sln.
4. Rename the form that is created automatically to frm Main.vb.
5. With the frm Main selected, set the form's Is Mdi Container property
to True.
6. Set the Window State property to Maximized.

That's all there is to it: you've created an MDI parent form.

Creating Menus
Your main form will require menus so that you can perform actions such as opening
child forms, copying and pasting data, and arranging windows. Visual Basic6.0
includes a new menu designer that makes creating and modifying menus a snap.

To add menus to your MDI parent form

1. Double-click the Main Menu tool in the Toolbox window to add a new object
named MainMenu1 to the form tray.

Note Unlike the form designer in Visual Basic 6.0, the Visual Studio .NET
form designer places controls that don't have a user interface at run time into
a special area on the form designer: the form "tray". They're out of the way,
and don't get buried underneath other controls. This is a real improvement!

2. At the top of the MDI parent form, click the box with Type Here in it and
type &File. Tip Just as in Visual Basic 6.0, inserting an ampersand (&) into
a menu caption displays the caption with an underscore under the following
letter. Pressing Alt+<the letter> acts as a hotkey, activating the menu
item. One thing to note: if you're using Windows 2000 or later, it's possible
that the hotkeys won't show up underlined until you press the Alt key. This
setting is buried in the Display applet within Control Panel. In the Display
Properties dialog box, check the Effects page: the Hide keyboard
navigation indicators until I use the Alt key option controls this
behavior.
3. Press Enter to move to the next menu item and type &Products.
4. Press Enter to move to the next menu item and type a hyphen (-).

Tip Rather than using the "-" to indicate a divider in the menu, you can
insert the next menu item (Exit, in this case), and then right-click the new
item. Select "Insert Separator" from the context menu, and Visual
Studio .NET will insert a separator above the current item for you.

5. Press Enter and type Exit.

You have now created the first drop-down menu on your main form. You should
have something that looks like Figure 2.

40
The menu designer allows you to type your menu structure in a
WYSIWYG fashion.

To the right of the File menu and at the same level, you'll see another small box
with the text, Type Here. Click it and type the following menu items by
pressing Enter after each one.

 &Edit
 Cu&t
 &Copy
 &Paste

Once more to the right of the Edit menu and at the same level, add the following
menu items in the same manner.

 &Window
 &Cascade
 Tile &Horizontal
 Tile &Vertical
 &Arrange Icons

Creating Names for Each Menu

After creating all the menu items, you'll need to set the Name property for each.
(Because you'll refer to the name of each menu item from any code you write
concerning that menu item, it's important to choose a name you can understand
from within your code.) Instead of clicking each menu item one at a time and then
moving over to the Properties window to set the Name property, Visual Studio
provides a shortcut: Right-click an item in the menu, then select Edit Names from
the context menu. Now you can simply click each menu item and set the name
property directly on each menu. This is certainly quicker than using the Properties
window to accomplish the same task.

Use the following names for your menu items:

 mnuFile
 mnuFProducts
 mnuFExit
 mnuEdit
 mnuECut

41
 mnuECopy
 mnuEPaste
 mnuWindow
 mnuWCasade
 mnuWHorizontal
 mnuWVertical
 mnuWArrange

Test out your application: Press F5 and you should see your main MDI window
appear with your menu system in place.

What’s New in Data Access?

ADO(ActiveX Data Objects)

All editors this data access technology features a simple object model , better
integration with other Microsoft and non- Microsoft technologies ,a common
interface for local and remote data access, and hierarchical record sets.

Data Environments

42
Professional and Enterprise Edition the Data Environment designers provides an
interactive , design –time environment for creating ADO objects. These can be used
as a data source for data-aware objects on a from report , or accessed
programmatically as method and properties exposed off of the data environment
object. The data Environment designer supports all functionality of visual Basic’s
User Connection designers , as well as additional features , including drag and drop,
hierarchies, groping , and aggregates.

ADO Data Control

All Editors a new OLEDB-aware data source control that functions much like the
intrinsic Data and Remote Data controls, in that it allows you to create a database
application with minimum code.

Enhanced Data Binding

Professional and Enterprise Edition in previous versions of Visual Basic, it was only
possible to bind controls together on a form. In Visual Basic 6.0, we’ve made it
possible to bind any ADO/OLE DB Data source to any ADO/OLE DB Data
consumers . You can set the data source property of controls at run time to
dynamically bind to data source. You can create classes that are data sources and
consumers, and bind them through the new bindings collection object. You can
create user controls that are data sources, similar to the ADO data controls. You can
create user controls that are complex-bound, similar to the Data Grid Controls.

OLE DB Support

All Editions OLE DB is a set of COM interfaces that provide applications with
uniform access to data stored in diverse information source, both relational and non
relational. These interfaces support the amount of DBNS Functionality appropriate
to the data source, enabling it to share its data. ADO is the way that programmers
access OLE DB. All the new data bound controls, the Data Environment, and the
Data Report Designers is OLEDB Aware.

43
Visual Database Tolls Integration (Query Designer and Database Designer)
Enterprise Edition Visually create and modify database schemas and queries: Create
SQL Server and Oracle database tables, drag and drop to create views, and
automatically change column data types.

Setup Wizard Data Enhancements

All editions the package and deployment wizard (formerly the setup wizard)
incorporates support for ADO, OLE DB, RDO, ODBC and DAO.

Data Report

Professional and Enterprise Editions Allows you to use drag that are data sources, to
which other controls can be bound.

Data view window


Professional and Enterprise Edition you can use the data view window to browse all
of the databases you are connected to and see their tables, views , stored
procedures etc.

SQL Editor

Enterprise Edition allows you to add new stored procedures to existing SQL Server
oracle database. You can write triggers using the editor too.

Hierarchical Flex Grid Control

All Edition update version of the Flex Grid that, in addition to supporting all
functionality of the Flex Grid control, can display a hierarchy of ADO Record sets.

44
Returned is displayed as a separate band within the grid and can formatted
independently.

Data Repeater Control


Professional and Enterprise Edition insert a user control into the Data Repeater to
create a custom view of a database, similar to Access forms. The User Control can
contain Text Box, Data Grid or other controls bound to data fields.

Passing ADO Record Sets


All Edition you can now pass ADO Record sets across processes, and even across
machines(using HTTP or DCOM) , which provides an efficient means for moving data
between tires in a multitier application.

Data From Wizard Enhancements


Professional and Enterprise Edition now gives you the ability to build code only forms
where controls are not bound to data control. It allows you to use ADO code. The
wizard is; integrated with the application , chart ,and Flex Grid wizards.

File System Objects

All Edition offer a streamlined set of routines to traverse the file system and create
text files and directories.

Working With Access DataBase

Microsoft Access

Ms Access is a relational database that stores data (information) in field which are
then grouped together in to records. A table is a collection of records which are all of
the type and structure. Fields are the smallest unit of data addressable in access.
Like VB field specified in the ‘Random Access’ file type(i.e. Type……. End Type).

Access field also need to be assigned a data type:


45
 Text(default)
 Memo
 Date/Time
 Currency
 Yes/No
 OLE Object

Related field from records for instance, a medical record could include the
following field: patient name, patient address, age, weight, height history of
operations , allergy list, notes etc. each form a table. The overall medical
database would then hold tables for all the doctors working in the current
practice.

MS Access is a very powerful database with its own basic language built in.
However , this language is only a subset of Visual Basic, therefore sometimes a
system may require a VB solution but still be handing large amounts of
structured information in a standard access database and to use VB to provide a
user interface and other facilities to possible with in access.

SYSTEM ANALYSIS

INTRODUCTION
System analysis refers into of examining a situation with the
intent of improving it through better process and planning system to either
replace or complement an existing system. Before starting any plan, the old
system must be thoroughly understood and requirement determined by the
developer. System analysis’s therefore, the process of gathering and interpreting
facts, diagnosing problem and using the information to recommit improving in
the system or in other words , system analysis means a detailed explanation and
description.

46
Before computerized a system under consideration, it has to be
analyzed. We need to study how it is function currently , what are the problems
and what are the requirements that the proposed system should meet. System
analysis is an activity that encompasses most of the task that are collectively
called computer system engineering. Confusion sometimes occurs because the
terms are often analysis focuses on all system elements , nit only just software.

When analyzing this system I kept the following objective in mind:

 What is the need of the computerized bank?


 The evaluation of the system concept for feasibility.
 To performing economic and technical analysis.
 Allocation function to hardware, software, people, database and other
system element.
 Establishment of coast and schedule constraints.

REQUIREMENT ANALYSIS
The first step of system analysis process
evolves the identification of need , which is , analyzing the requirement of the
existing system and proposed system. The developer meets with the customer and
the user, because the most important element of an information system is people,
not even a single project has been successful without participation of user. The
analyst makes sure to distinguish between what are the need of the customer? And
what customer wants? The analyst assists , several fact-finding techniques that are
used to find the user requirements such as what information will be produced ?
What information is to be provided? What function and performance are required?
And , many others.

Gathering Information

Strategy to gather information: gathering information in large organization is


difficult and takes time all relevant personal should be consulted and no information
should be overlooked. The strategy consists of:

 Identifying the information sources.


 Evolving a method of obtaining information identified sources.
 Using an information flow model of organization.

Information Sources

47
 The main sources of information for system developing are.
 User of the system.
 Form and document and rulebooks, which specify how varies activities, are
carried in the organization.
 Various report need in the organization.

The Existing System


For information gathering purpose I studied thoroughly
the exiting physical system for understanding the existing system I go through the
fact finding technique named as on- site observation and interviews actually on-site
observation is the process of reorganizing the major objective of this technique is to
get as close as possible to the real system being studied. An interview is a face to
face interpersonal role of situation in which analyst question to use customer of the
system to gather information. So when I interviewed the persons about the project
matters, they provide me the valuable information about the existing system, how
they work and what type of problem they are facing, the system being studied here
is bank. After the detailed study, it was observed the different activities that the
bank has to computerize.

Functional Requirements
A Functional requirement gives the view of the
main parts and function of the system which is developed. This describes in a
summarized form, the function, the process that the system perform mainly. This
function requirement can be described by DFD of the system. Actually analyzing the
system’s functional requirements that describe the fundamental action, process and
giving the graphical view of the system.

ENTITY RELATIONSHIP DIAGRAM

Entity relationship diagram expresses the overall logical structure of a


database graphically. It shows the relationship between different entities. The
can have composite multivolume or derived attributes. The entities and their
attributes are.
1. Passenger
 Name
 First Name

48
 Middle Name
 Last Name

 Gender
 Address
 Age
 Phone No
2. Form
 Form No
3. Ticket
 Confirmed
 Waiting
 Cancelled
4. Reservation counter
5. Administrator
6. Train
 Train No
 Train Name
 PNR No
 Source
 Destination

7. Seat
 Seat No
 Compartment No.

49
Entity Relationship Diagram Notations

Peter Chen developed ERDs in 1976. Since then Charles Bachman and James Martin
have added some sligh refinements to the basic ERD principles.

Entity

An entity is an object or concept about which you want to store information.

Weak Entity

Attributes are the properties or characteristics of an entity.

50
Key attribute

A key attribute is the unique, distinguishing characteristic of the entity. For example,
an employee's social security number might be the employee's key attribute.

Multivalve attribute

A multivalve attribute can have more than one value. For example, an employee
entity can have multiple skill values.

Derived attribute

A derived attribute is based on another attribute. For example, an employee's


monthly salary is based on the employee's annual salary.

Relationships

Relationships illustrate how two entities share information in the database structure.
Learn how to draw relationships:
First, connect the two entities, then drop the relationship notation on the line.

51
Cardinality

Cardinality specifies how many instances of an entity relate to one instance of


another entity.

Ordinarily is also closely linked to cardinality. While cardinality specifies the


occurrences of a relationship, ordinarily describes the relationship as either
mandatory or optional. In other words, cardinality specifies the maximum number of
relationships and ordinarily specifies the absolute minimum number of relationships.

Recursive relationship

In some cases, entities can be self-linked. For example, employees can supervise
other employees.

DFD’s
DFD are one of the tools of the dataflow strategy. It is the graphical tool in which
we describe and analyze the movement data through a system manual and

52
automated. They focus on data flowing into the system between processes and in
and out of data stores. This is a central tool and the basis from which other
components are developed. The system modules are termed as DATA FLOW
DIAGRAMS(DFD).

SYMBOLS USED IN DFD—

DATAFLOW :

DATA STORES :

EXTERNAL ENTITY :

PROCESS :

53
54
DESCRIPTION OF FLOW CHART
The program flow chart show how the system proceeds from the input form to the
output form of the system. It explains how the system is actually processed step. It
represents the flow of control as the system is processed.

There are three types of program flow chart:-

55
 Input flow chart:
This flowchart depicts the basic input operation in the
system. In railway reservation system, first of all the password is checked
then if the password is valid then we process the input from if the data is
valid then the entries are update in the data base otherwise the form is
refilled.

 Output flow chart:


This flowchart depicts the basic output operations in the
system. The user is required to enter the criteria for output . if the seats are
available then the confirmed ticket is generated otherwise the user is asked
for waiting and if he wants then waiting ticket is generated. If the user wants
the seat to be cancelled it is done and the cancelled ticket is generated for
the user. The information about all the above transactions is then transferred
to the related databases.

 Report flow chart:


This flowchart depicts the basic operation for the
generation of report. If the entries from the proceed database are valid the
concerned report are generated otherwise the process will have to be
repeated

INPUT FLOW CHART

56
\

REPORT FLOW CHART

57
58
59
60
61
62
63
64
65
66
67
Login Form 1

Private Sub Command1_Click()

If Text1.Text = "ankur" And Text2.Text = "ankur" Then

Unload Me

MDIForm1.Show

Else

MsgBox "invalid username/Password..", vbInformation, ("invalid


username/Password")

68
Text1.Text = ""

Text2.Text = ""

End If

End Sub

Private Sub Command2_Click()

End

End Sub

Private Sub Form_Load()

Label4.BackColor = RGB(147, 112, 219)

Label3(0).BackColor = RGB(191, 148, 233)

Label8.BackColor = RGB(191, 148, 233)

Label9.BackColor = RGB(191, 148, 233)

Label10.BackColor = RGB(191, 148, 233)

Label11.BackColor = RGB(191, 148, 233)

Form1.BackColor = RGB(219, 112, 255)

Label1.BackColor = RGB(219, 112, 255)

Label2.BackColor = RGB(219, 112, 255)

End Sub

Private Sub Timer1_Timer()

Label10.Caption = Date

Label11.Caption = Time

End Sub

69
Private Sub Timer2_Timer()

If Image2.Top > 9000 Then

Image2.Top = 0

Else

Image2.Top = Image2.Top + 25

End If

If Image1.Left > 19000 Then

Image1.Left = 1000

Else

Image1.Left = Image1.Left + 29

End If

End Sub

MDI Form 1
Private Sub aAbout_Click()

Form10.Show

End Sub

Private Sub abSeats_Click()

Form9.Show

End Sub

70
Private Sub aCanellation_Click()

Form5.Show

End Sub

Private Sub aExit_Click()

End

End Sub

Private Sub amap_Click()

Form4.Show

End Sub

Private Sub aReservation_Click()

form2.Show

End Sub

Private Sub awatin_Click()

Form12.Show

End Sub

Private Sub bFaresList_Click()

Form8.Show

End Sub

Private Sub bReservation_Click()

Form6.Show

End Sub

71
Private Sub bTrainList_Click()

Form7.Show

End Sub

Private Sub Timer1_Timer()

Label4.Caption = Date

Label5.Caption = Time

End Sub

Private Sub Timer2_Timer()

If Label3.Left > 14900 Then

Label3.Left = 2000

Else

Label3.Left = Label3.Left + 25

End If

End Sub

Reservation Form2

Dim cn1 As New ADODB.Connection

Dim rs1 As New ADODB.Recordset

Dim cn2 As New ADODB.Connection

Dim rs2 As New ADODB.Recordset

Dim cn3 As New ADODB.Connection

Dim rs3 As New ADODB.Recordset

72
Dim cn4 As New ADODB.Connection

Dim rs4 As New ADODB.Recordset

Dim cn5 As New ADODB.Connection

Dim rs5 As New ADODB.Recordset

Dim cn6 As New ADODB.Connection

Dim rs6 As New ADODB.Recordset

Private Sub Check1_Click()

If Text12.Text < 60 Then

MsgBox "Age Should Be More Than 60..", vbInformation, ("Age Should Be More
Than 60")

Check1.Value = False

End If

End Sub

Private Sub Check2_Click()

If Text13.Text < 60 Then

MsgBox "Age Should Be More Than 60..", vbInformation, ("Age Should Be More
Than 60")

Check2.Value = False

End If

End Sub

Private Sub Check3_Click()

If Text14.Text < 60 Then

MsgBox "Age Should Be More Than 60..", vbInformation, ("Age Should Be More
Than 60")

Check3.Value = False

73
End If

End Sub

Private Sub Check4_Click()

If Text15.Text < 60 Then

MsgBox "Age Should Be More Than 60..", vbInformation, ("Age Should Be More
Than 60")

Check4.Value = False

End If

End Sub

Private Sub Check5_Click()

If Text16.Text < 60 Then

MsgBox "Age Should Be More Than 60..", vbInformation, ("Age Should Be More
Than 60")

Check5.Value = False

End If

End Sub

Private Sub Check6_Click()

If Text17.Text < 60 Then

MsgBox "Age Should Be More Than 60..", vbInformation, ("Age Should Be More
Than 60")

Option6.Value = False

End If

End Sub

Private Sub Combo1_Change()

s = "select * from seats where train_no = " & Text1.Text & " AND class = " &
Combo1.Text & "' "

74
connect (s)

Set Text1.DataSource = Adodc1

'Text66.DataField = "available_seats"

'If Text66.Text = "0" Then

'MsgBox ("No Seats Available in" & Combo1.Text)

Combo1.Text = ""

'End If

End Sub

Private Sub Command1_Click()

If Combo1.Text = "" Then

MsgBox "Please Select Class..", vbInformation, ("Please Select Class")

Exit Sub

End If

If Text12.Text <> "" And Text12.Text <> "0" Then

n1 = Text11.Text

End If

If Text13.Text <> "" And Text13.Text <> "0" Then

n2 = Text12.Text

End If

If Text14.Text <> "" And Text14.Text <> "0" Then

n3 = Text13.Text

End If

If Text15.Text <> "" And Text15.Text <> "0" Then

n4 = Text14.Text

End If

If Text16.Text <> "" And Text16.Text <> "0" Then

75
n5 = Text15.Text

End If

If Text17.Text <> "" And Text17.Text <> "0" Then

n6 = Text17.Text

End If

Adodc1.Refresh

Adodc1.Recordset.AddNew

Adodc1.Recordset.Fields("PNR_No").Value = Text72.Text

Adodc1.Recordset.Fields("Train_No").Value = Text1.Text

Adodc1.Recordset.Fields("Train Name").Value = Text2.Text

Adodc1.Recordset.Fields("From").Value = Combo8.Text

Adodc1.Recordset.Fields("To").Value = Combo9.Text

Adodc1.Recordset.Fields("Date_Travel").Value = Text5.Text

Adodc1.Recordset.Fields("Passenger Name").Value = Text6.Text

Adodc1.Recordset.Fields("Passenger Name1").Value = Text7.Text

Adodc1.Recordset.Fields("Passenger Name2").Value = Text8.Text

Adodc1.Recordset.Fields("Passenger Name3").Value = Text9.Text

Adodc1.Recordset.Fields("Passenger Name4").Value = Text10.Text

Adodc1.Recordset.Fields("Passenger Name5").Value = Text11.Text

Adodc1.Recordset.Fields("Class").Value = Combo1.Text

Adodc1.Recordset.Fields("Age").Value = Text12.Text

Adodc1.Recordset.Fields("Age1").Value = Text13.Text

Adodc1.Recordset.Fields("Age2").Value = Text14.Text

Adodc1.Recordset.Fields("Age3").Value = Text15.Text

Adodc1.Recordset.Fields("Age4").Value = Text16.Text

Adodc1.Recordset.Fields("Age5").Value = Text17.Text

Adodc1.Recordset.Fields("Sex").Value = Combo2.Text

Adodc1.Recordset.Fields("Sex1").Value = Combo3.Text

76
Adodc1.Recordset.Fields("Sex2").Value = Combo4.Text

Adodc1.Recordset.Fields("Sex3").Value = Combo5.Text

Adodc1.Recordset.Fields("Sex4").Value = Combo6.Text

Adodc1.Recordset.Fields("Sex5").Value = Combo7.Text

Adodc1.Recordset.Fields("Seat").Value = Combo10.Text

Adodc1.Recordset.Fields("Seat1").Value = Combo11.Text

Adodc1.Recordset.Fields("Seat2").Value = Combo12.Text

Adodc1.Recordset.Fields("Seat3").Value = Combo13.Text

Adodc1.Recordset.Fields("Seat4").Value = Combo14.Text

Adodc1.Recordset.Fields("Seat5").Value = Combo15.Text

Adodc1.Recordset.Fields("Date").Value = Label24.Caption

Adodc1.Recordset.AddNew

Text72.Text = ""

Text1.Text = ""

Text2.Text = ""

Combo1.Text = ""

'Text3.Text = ""

Text5.Text = ""

'Text4.Text = ""

Text5.Text = ""

Text6.Text = ""

Text7.Text = ""

Text8.Text = ""

Text9.Text = ""

Text10.Text = ""

Text11.Text = ""

Text12.Text = ""

Text13.Text = ""

77
Text14.Text = ""

Text15.Text = ""

Text16.Text = ""

Text17.Text = ""

Combo2.Text = ""

Combo3.Text = ""

Combo4.Text = ""

Combo5.Text = ""

Combo6.Text = ""

Combo7.Text = ""

Combo8.Text = ""

Combo9.Text = ""

Combo10.Text = ""

Combo11.Text = ""

Combo12.Text = ""

Combo13.Text = ""

Combo14.Text = ""

Combo15.Text = ""

Label24.Caption = ""

Unload Me

Form3.Show

End Sub

Private Sub Command2_Click()

Text5.Text = ""

Text6.Text = ""

Text7.Text = ""

Text8.Text = ""

78
Text9.Text = ""

Text10.Text = ""

Text11.Text = ""

Text12.Text = ""

Text13.Text = ""

Text14.Text = ""

Text15.Text = ""

Text16.Text = ""

Combo1.Text = ""

Combo2.Text = ""

Combo3.Text = ""

Combo4.Text = ""

Combo5.Text = ""

Combo6.Text = ""

Combo7.Text = ""

Check1.Value = False

Check2.Value = False

Check3.Value = False

Check4.Value = False

Check5.Value = False

Check6.Value = False

End Sub

Private Sub Command3_Click()

End

End Sub

Private Sub Form_Load()

79
Dim RandomNumber As Integer

RandomNumber = Int(((UpperBound + 1) - LowerBound) * Rnd + LowerBound)

Text72.Text = (Int((10000000 * Rnd()) + 1))

form2.BackColor = RGB(92, 133, 51)

Label1.BackColor = RGB(92, 133, 51)

Label2.BackColor = RGB(92, 133, 51)

Label3.BackColor = RGB(92, 133, 51)

Label4.BackColor = RGB(92, 133, 51)

Label5.BackColor = RGB(92, 133, 51)

Label6.BackColor = RGB(92, 133, 51)

Label7.BackColor = RGB(92, 133, 51)

Label8.BackColor = RGB(92, 133, 51)

Label9.BackColor = RGB(92, 133, 51)

Label10.BackColor = RGB(92, 133, 51)

Label12.BackColor = RGB(92, 133, 51)

Label13.BackColor = RGB(92, 133, 51)

Label14.BackColor = RGB(92, 133, 51)

Label15.BackColor = RGB(92, 133, 51)

Label16.BackColor = RGB(92, 133, 51)

Label17.BackColor = RGB(92, 133, 51)

Label18(1).BackColor = RGB(92, 133, 51)

Label19.BackColor = RGB(92, 133, 51)

Label20.BackColor = RGB(92, 133, 51)

Label21.BackColor = RGB(92, 133, 51)

Label22.BackColor = RGB(92, 133, 51)

Label23.BackColor = RGB(92, 133, 51)

Label24.BackColor = RGB(92, 133, 51)

Label25.BackColor = RGB(92, 133, 51)

80
Label11.BackColor = RGB(92, 133, 51)

Frame1.BackColor = RGB(92, 133, 51)

Label26.BackColor = RGB(92, 133, 51)

End Sub

Private Sub Text1_Change()

Adodc2.Refresh

Adodc2.Recordset.MoveFirst

Do While Not Adodc2.Recordset.EOF = True

If Adodc2.Recordset.Fields("Train_Number").Value = Text1.Text Then

Text2.Text = Adodc2.Recordset.Fields("Train_Name").Value

End If

Adodc2.Recordset.MoveNext

Loop

End Sub

Private Sub Timer1_Timer()

Label24.Caption = Date

Label25.Caption = Time

End

Ticket Form3

Dim rs1 As New ADODB.Recordset

Dim cn1 As New ADODB.Connection

Private Sub Command1_Click()

Command1.Visible = False
81
Dim Beginpage, EndPage, NumCopies, orientation, i

CommonDialog1.CancelError = True

On Error GoTo ErrHandler

CommonDialog1.ShowPrinter

Beginpage = CommonDialog1.FromPage

EndPage = CommonDialog1.ToPage

NumCopies = CommonDialog1.Copies

orientation = CommonDialog1.orientation

For i = 1 To NumCopies

Form3.PrintForm

Next

Exit Sub

ErrHandler:

Exit Sub

End Sub

Private Sub Command2_Click()

End

End Sub

Private Sub Form_Load()

Dim RandomNumber As Integer

RandomNumber = Int(((UpperBound + 1) - LowerBound) * Rnd + LowerBound)

Label23.Caption = (Int((60 * Rnd()) + 1))

'Label14.Caption = "Rs." & "" & temp3

'Text3.Text = Temp2

s = " select * from reservation where PNR_NO = " & Text3.Text & " "

82
connect (s)

Set Text1.DataSource = Adodc1

Text1.DataField = "Train_No"

Set Text2.DataSource = Adodc1

Text2.DataField = "Date"

Set Text3.DataSource = Adodc1

Text3.DataField = "PNR_NO"

Set Text10.DataSource = Adodc1

Text10.DataField = "Class"

Set Text4.DataSource = Adodc1

Text4.DataField = "Train Name"

Set Text5.DataSource = Adodc1

Text5.DataField = "From"

Set Text6.DataSource = Adodc1

Text6.DataField = "To"

Set Text7.DataSource = Adodc1

Text7.DataField = "Seat"

Set Label18.DataSource = Adodc1

Label18.DataField = "Date_Travel"

Set Label26.DataSource = Adodc1

Label26.DataField = "Passenger Name"

Set Label27.DataSource = Adodc1

Label27.DataField = "Age"

Set Label25.DataSource = Adodc1

Label25.DataField = "Sex"

Set DataGrid1.DataSource = Adodc1

Assecc = "select * from timings where Train_No = " & Text1.Text & ""

Set cn1 = New ADODB.Connection

83
cn1.CursorLocation = adUseClient

'cn1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\my


project\Railway Reservation.mdb;Persist Security Info=tuer "

'cn1.Open

Set rs1 = New ADODB.Recordset

rs1.CursorType = adOpenDynamic

rs1.LockType = adLockOptimistic

'rs1.ActiveConnection = cn1

'rs1.Open Access

Set Label19.DataSource = Adodc2

Label19.DataField = "Distance"

Set Label20.DataSource = Adodc2

Label20.DataField = "Arrival_Time"

Set Label21.DataSource = Adodc2

Label21.DataField = "Departure_Time"

Label1.BackColor = RGB(48, 48, 234)

End Sub

Private Sub Text1_Change()

Adodc3.Refresh

Adodc3.Recordset.MoveFirst

Do While Not Adodc3.Recordset.EOF = True

If Adodc3.Recordset.Fields("Train _No").Value = Text1.Text Then

Label14.Caption = Adodc3.Recordset.Fields("Rs").Value

End If

Adodc3.Recordset.MoveNext

Loop
84
End Sub

Form4
Private Sub Command1_Click()

Unload Me

End Sub

Form5
Private Sub Command1_Click()

85
If MsgBox(" Are you sure you want to cancel this ticket?", vbYesNo, "RRS") = vbYes
Then

s1 = "delete from reservation where PNR_NO = " & Text1.Text & " "

connect (s1)

Temp5 = Text1.Text

n7 = Text2.Text

Adodc1.Refresh

Adodc1.Recordset.MoveFirst

Do While Not Adodc1.Recordset.EOF = True

If Adodc1.Recordset.Fields("PNR_No").Value = Text2.Text Then

Adodc1.Recordset.Delete

End If

Adodc1.Recordset.MoveNext

Loop

MsgBox ("data is delete")

Text2.Text = " "

End If

Unload Me

End Sub

Private Sub Command2_Click()

Unload Me

End Sub

Private Sub Form_Load()

Form5.BackColor = RGB(76, 128, 76)

DataGrid1.BackColor = RGB(255, 128, 128)

Label1.BackColor = RGB(76, 128, 76)

Label3.BackColor = RGB(76, 128, 76)


86
Text2.BackColor = RGB(255, 230, 230)

End Sub

Private Sub Text1_Change()

s = "select * from reservation where PNR_NO = " & Text1.Text & " "

connect (s)

Set DataGrid1.DataSource = Adodc1

Text2.Text = ""

End Sub

Form6
Private Sub Command1_Click()

s = "select * from reservation where Date = ' " + Text1.Text + " ' "

connect (s)

Set DataGrid1.DataSource = Adodc1

End Sub

Private Sub Command2_Click()

Unload Me

End Sub

Private Sub Form_Load()

Form6.BackColor = RGB(92, 133, 51)

Label1.BackColor = RGB(92, 133, 51)

Label2.BackColor = RGB(92, 133, 51)

Label3.BackColor = RGB(92, 133, 51)

DataGrid1.BackColor = RGB(255, 128, 128)


87
End Sub

Form7
Private Sub Command1_Click()

s = "select * from reservation where Train_No= ' " + Text1.Text + " ' "

connect (s)

Set DataGrid1.DataSource = Adodc1

End Sub

Private Sub Command2_Click()

Unload Me

End Sub

Private Sub Form_Load()

Form7.BackColor = RGB(92, 133, 51)

Label1.BackColor = RGB(92, 133, 51)

Label2.BackColor = RGB(92, 133, 51)

'Label3.BackColor = RGB(92, 133, 51)

End Sub

Form8
Private Sub Command1_Click()

's = "select * from reservation where Train_No= " + Text1.Text = " 0 "

'connect (s)

Set DataGrid1.DataSource = Adodc1

'Text1.Text = ""

End Sub

88
Private Sub Command2_Click()

Unload Me

End Sub

Private Sub Form_Load()

Form8.BackColor = RGB(92, 133, 51)

Label1.BackColor = RGB(92, 133, 51)

Label2.BackColor = RGB(92, 133, 51)

'Label3.BackColor = RGB(92, 133, 51)

DataGrid1.BackColor = RGB(255, 128, 128)

End Sub

Form9
Private Sub Command1_Click()

s = "select * from resevation where seat" + Text1.Text = " "

connect (s)

Set DataGrid1.DataSource = Adodc1

End Sub

Private Sub Command2_Click()

Unload Me
89
End Sub

Private Sub Form_Load()

Form9.BackColor = RGB(92, 133, 51)

Label1.BackColor = RGB(92, 133, 51)

Label2.BackColor = RGB(92, 133, 51)

'Label3.BackColor = RGB(92, 133, 51)

DataGrid1.BackColor = RGB(255, 128, 128)

End Sub

Form10
Private Sub Command1_Click()

MDIForm1.Show

Unload Me

End Sub

Private Sub Form_Load()

Form10.BackColor = RGB(51, 204, 255)

Label1.BackColor = RGB(51, 204, 255)

Label2.BackColor = RGB(51, 204, 255)


90
Label3.BackColor = RGB(51, 204, 255)

Command1.BackColor = RGB(51, 204, 255)

End Sub

Conclusion

In today’s ever expanding and demanding world there is always a need as


well as scope to enhance the capability of an individual, with the help of
technology.

In today’s world where computers are used extensively so as to speed up


various processes. Hence this project of ours tries to confront some problems
faced in Time Table Scheduling, this project provides with an enhanced
alternative which is far cheaper then the conventional methods of record
keeping, apart from being cheap it is also very simple to implement.

91
Due to this project we were able to learn many things in Microsoft Visual
Basic & MS Access. This project also gave us an experience of working in a
group and securing a nice co-ordination between all of the partners.

BIBLIOGRAPHY

While creating this software we have used lot of Books. But we used a Book “Visual
Basic 6.0 Programming Black Book of Dreamtech Press”, which helps us to develop
this Software Successfully. We are much comfortable using this book and by using
Internet we find some matter of our project. The Book Designed in simple and
understandable language and also have understandable example which helps us to
develop this project easily.

BOOK NAME
Visual Basic 6.0 Programming Black Book

Visual Basic 6.0 Complete Reference

Mastering Visual Basic 6.0

92
Internet

 www.sanjivanivf.org
 www.railway.nic
 www.vb6.0.com
 www.w3school.com

93

You might also like