Professional Documents
Culture Documents
Project Report
On
IN
COMPUTER APPLICATION
Session 2022-23
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.
and also challenging. This project is fully developed and capable to fulfill all
I have covered up-to-date and latest information for this project and
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
just make a descriptive project. I hope that this project will be easy and
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.
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
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
7
VENTURES OF SVF
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
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.
10
11
Data from System Department for the Year 2022-23
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
13
INTRODUCATION
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
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.
16
Department of PGDCA Faculty Detail
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 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’.
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
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:-
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.
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:
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.
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.
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
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:
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.
Features :
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
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
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.
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.
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 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 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.
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
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.
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.
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.
This tools enables you to testing the run time performances and resource load
characteristics of various enterprise application design scenarios you are considering.
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.
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.
The Microsoft SQL server programmer’s toolkit covers transact –SQL, programming
ODBC for SQL and more.
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.
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
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
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.
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.
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.
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.
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.
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
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.
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.
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.
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.
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.
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.
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.
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.
All Edition offer a streamlined set of routines to traverse the file system and create
text files and directories.
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).
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.
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
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.
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.
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
Weak 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
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
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).
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.
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.
56
\
57
58
59
60
61
62
63
64
65
66
67
Login Form 1
Unload Me
MDIForm1.Show
Else
68
Text1.Text = ""
Text2.Text = ""
End If
End Sub
End
End Sub
End Sub
Label10.Caption = Date
Label11.Caption = Time
End Sub
69
Private Sub Timer2_Timer()
Image2.Top = 0
Else
Image2.Top = Image2.Top + 25
End If
Image1.Left = 1000
Else
Image1.Left = Image1.Left + 29
End If
End Sub
MDI Form 1
Private Sub aAbout_Click()
Form10.Show
End Sub
Form9.Show
End Sub
70
Private Sub aCanellation_Click()
Form5.Show
End Sub
End
End Sub
Form4.Show
End Sub
form2.Show
End Sub
Form12.Show
End Sub
Form8.Show
End Sub
Form6.Show
End Sub
71
Private Sub bTrainList_Click()
Form7.Show
End Sub
Label4.Caption = Date
Label5.Caption = Time
End Sub
Label3.Left = 2000
Else
Label3.Left = Label3.Left + 25
End If
End Sub
Reservation Form2
72
Dim cn4 As New ADODB.Connection
MsgBox "Age Should Be More Than 60..", vbInformation, ("Age Should Be More
Than 60")
Check1.Value = False
End If
End Sub
MsgBox "Age Should Be More Than 60..", vbInformation, ("Age Should Be More
Than 60")
Check2.Value = False
End If
End Sub
MsgBox "Age Should Be More Than 60..", vbInformation, ("Age Should Be More
Than 60")
Check3.Value = False
73
End If
End Sub
MsgBox "Age Should Be More Than 60..", vbInformation, ("Age Should Be More
Than 60")
Check4.Value = False
End If
End Sub
MsgBox "Age Should Be More Than 60..", vbInformation, ("Age Should Be More
Than 60")
Check5.Value = False
End If
End Sub
MsgBox "Age Should Be More Than 60..", vbInformation, ("Age Should Be More
Than 60")
Option6.Value = False
End If
End Sub
s = "select * from seats where train_no = " & Text1.Text & " AND class = " &
Combo1.Text & "' "
74
connect (s)
'Text66.DataField = "available_seats"
Combo1.Text = ""
'End If
End Sub
Exit Sub
End If
n1 = Text11.Text
End If
n2 = Text12.Text
End If
n3 = Text13.Text
End If
n4 = Text14.Text
End If
75
n5 = Text15.Text
End If
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("From").Value = Combo8.Text
Adodc1.Recordset.Fields("To").Value = Combo9.Text
Adodc1.Recordset.Fields("Date_Travel").Value = Text5.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
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
End
End Sub
79
Dim RandomNumber As Integer
80
Label11.BackColor = RGB(92, 133, 51)
End Sub
Adodc2.Refresh
Adodc2.Recordset.MoveFirst
Text2.Text = Adodc2.Recordset.Fields("Train_Name").Value
End If
Adodc2.Recordset.MoveNext
Loop
End Sub
Label24.Caption = Date
Label25.Caption = Time
End
Ticket Form3
Command1.Visible = False
81
Dim Beginpage, EndPage, NumCopies, orientation, i
CommonDialog1.CancelError = True
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
End
End Sub
'Text3.Text = Temp2
s = " select * from reservation where PNR_NO = " & Text3.Text & " "
82
connect (s)
Text1.DataField = "Train_No"
Text2.DataField = "Date"
Text3.DataField = "PNR_NO"
Text10.DataField = "Class"
Text5.DataField = "From"
Text6.DataField = "To"
Text7.DataField = "Seat"
Label18.DataField = "Date_Travel"
Label27.DataField = "Age"
Label25.DataField = "Sex"
Assecc = "select * from timings where Train_No = " & Text1.Text & ""
83
cn1.CursorLocation = adUseClient
'cn1.Open
rs1.CursorType = adOpenDynamic
rs1.LockType = adLockOptimistic
'rs1.ActiveConnection = cn1
'rs1.Open Access
Label19.DataField = "Distance"
Label20.DataField = "Arrival_Time"
Label21.DataField = "Departure_Time"
End Sub
Adodc3.Refresh
Adodc3.Recordset.MoveFirst
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
Adodc1.Recordset.Delete
End If
Adodc1.Recordset.MoveNext
Loop
End If
Unload Me
End Sub
Unload Me
End Sub
End Sub
s = "select * from reservation where PNR_NO = " & Text1.Text & " "
connect (s)
Text2.Text = ""
End Sub
Form6
Private Sub Command1_Click()
s = "select * from reservation where Date = ' " + Text1.Text + " ' "
connect (s)
End Sub
Unload Me
End Sub
Form7
Private Sub Command1_Click()
s = "select * from reservation where Train_No= ' " + Text1.Text + " ' "
connect (s)
End Sub
Unload Me
End Sub
End Sub
Form8
Private Sub Command1_Click()
's = "select * from reservation where Train_No= " + Text1.Text = " 0 "
'connect (s)
'Text1.Text = ""
End Sub
88
Private Sub Command2_Click()
Unload Me
End Sub
End Sub
Form9
Private Sub Command1_Click()
connect (s)
End Sub
Unload Me
89
End Sub
End Sub
Form10
Private Sub Command1_Click()
MDIForm1.Show
Unload Me
End Sub
End Sub
Conclusion
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
92
Internet
www.sanjivanivf.org
www.railway.nic
www.vb6.0.com
www.w3school.com
93