Sie sind auf Seite 1von 82

Airline Reservation System

CHAPTER 1
ABSTRACT

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 1


Airline Reservation System

1.ABSTRACT
The travel world company is one of the Airline Reservation Company in India. The
Airline Reservation System (ARS) provides an interface to schedule flights and reservations
for an airline services. The responsibility is to keep track of system users, customers, flight
information and cancellation. The functionality of the ARS is broken into 2 primary groups
such as reservation and cancellation.

Admin keeps track of the username, password information and customer reservation
information. Information link provides a link between the customer reservation information
and login table. The airline reservation system comprises of a login screen and 2 modules
namely
 Admin
 Passenger

Admin:
He is the person who will manage the entire system. Admin will do all the
maintenance and control the application of the system.

Passenger:
He is the person who is authorized to booking, cancelling and update the customer
details.

1.1. INTRODUCTION

Airline reservation system is a computerized system used to store and retrieve


information and conduct transaction related to air travel. Gradually the airline witnessed new
route additions, increased flight frequencies and passenger lists. Today travel world to offer
passenger the very best in the skies, travel world constantly upgrades its system in flight
facilities. Expanding the network as a part of its expansion schedule, travel world has
collaborated with some domestic carries to offers its passenger’s convenience all the way.

The outcome of this study will provide a basis for the developing the appropriate
approach to the problems associated with air travelling operations in relation to ARS. The
display of the project will be beneficial to all those who make use ARS. The project is aimed
at exposing the relevance and importance of ARS. It is projected towards enhancing the
relationship between customers and airlines agency through the use of ARS’s.

Some of the reasons to develop a new system are as follows

 Faster system,
 Easy accessibility,
 Reliability,
 Informative user friendly,
 Reservation and cancellation where easily.

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 2


Airline Reservation System

CHAPTER 2
LITERATURE SURVEY

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 3


Airline Reservation System

1.LITERATURE SURVEY

1.1 Overview of Visual Basic

VISUAL BASIC (VB) is a powerful application tool. It is a Microsoft windows


programming language. VB uses different data types and stores data differently when
compare to c and c ++.

VB is a high level language which evolved from the earlier DOS version called
BASICS and visual refers to creating a GUI-(graphical user interface) application, it enables
the rapid application development (RAD) of GUI applications. It is not only a programming
language but also a GUI. It access to the database using data access objects, remote data
objects or ActiveX data objects and creation of ActiveX control and objects, scripting
languages such as VB script.

VB is an event driven, because end users may click on certain object randomly, so
each object has to be programmed independently to response to those actions or events(which
means that, object are called automatically when the end user clicks the mouse, moves the
objects in the screen etc.).

VB helps in developing complicated application very quickly. It helps in developing


complicated applications very quickly. It can develop programs that can be used as front end
applications to the database system. It allows the programmer to create good graphical
programs with less coding, unlike the other languages.

VB is used to develop applications in a number of different fields like


 Education
 Medicine
 Research
 Science
 Law
 Marketing
 bank
 Reservation

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 4


Airline Reservation System

2.2 Introduction to visual basic 6.0

Visual basic evolved from BASIC language which was developed by a professor John
keenly and Thomas Kurtz of Dartmouth College in 1960’s. Since 1991, 6 versions have been
released, with VB 6.0 released in 1998.

VB 6.0 provides a vital link to graphical environment and allows you to develop
applications based on standard windows features: Dialog boxes, Command buttons, Pulldown
menus, Scroll Bars, Selection lists etc.

Visual – Refers to the methods used to create the graphical user interface (GUI) by using pre-
built objects provided by VB.

Basic – Refer to the basic language used as its basic syntax of statements. However VB 6.0
contains several statements, functions etc. , which are related directly to windows GUI.

Visual Basics comes in three editions:

 Standard
It includes some basic controls such as setup wizard, icons and help files. Simple
windows application can be created easily using the standard edition.

 Professional
It is normally used by computer professionals. It includes all the features of standard
edition plus many more such as crystal report, ActiveX and internet controls.

 Enterprise
It is the most advanced edition. It includes all the features of professional edition plus
features such as remote OLE automation, component manager and removes database
access tools. It is used to build distributed application in a team environment.

FEATURES

 ActiveX Data Objects (ADO) and OLE DB replace the Open database connectivity
(ODBC) API as the preferred method for accessing shared file and client/server
databases.
 A multitude of wizards and other graphical tools aid developers new to Visual Basic.
 Visual Basic is an event driven programming language.
 Visual Basic allows you to adopt more of parallel approach, with independent sections of
code for each option that the user may select. This is known as Event driven
programming language.
 Data environment designer
 Drag and drop form generation.
 ADO data control (ADODC).
 ADO compliant data bound controls.
 Hierarchical record sets and the flex grid control.

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 5


Airline Reservation System

 Data report design.


 Data form wizards.
 Format objects.
 Data repeater control.
 Data source classes and data building.
 Visual data tools.
 SQL editor.
 Component creation.
 Language.
 Packaging and development wizard.
 Data object wizard.

Advantages of Visual Basic

 Visual development of GUI which are simple and easy to learn.


 Programmers need not write code to display the required component.
 The component can be moved, resized, or even deleted if required.
 There is no restriction on the number of controls that can be placed in a form.
 The interface provided by the Visual Programming environment has some inbuilt code.

2.3 Introduction to oracle11g

This package is not cheap at all. It is very complex and it can be difficult to
administer. But its complexity makes it very robust. There is almost nothing that you cannot
do in Oracle. Oracle is specifically designed for multi-user applications. In fact, thousands of
users can access the same data without any problems due to Oracle’s very good transactional
control. But applications are not developed nearly as quickly. Oracle can also handle large
amounts of data.

In the end, oracle is a true DBMS and access is not. This does not mean that access
does not have its place. If I’m designing a quick database that only I’ll use, I would do it in
access over oracle. If I’m designing a robust, scalable application used throughout my
enterprise with many users, then oracle is my choice!

Information Management with Oracle Database 11g


Release 2 February 2010
Author: James Steiner
Contributing Authors: Melliyal Annamalai, Mark Drake, Roger Ford, Jean Ihm, Kevin
Jernigan, Xavier Lopez, MaryBeth Pierantoni, Jinyu Wang
Oracle Corporation World Headquarters 500 Oracle Parkway Redwood Shores, CA 94065
U.S.A.

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 6


Airline Reservation System

The dramatic performance and functional improvements in Oracle Database 11g make
the two essential elements for better information management: the ability to manage, secure,
query, and administer information with the highest levels of performance, and the ability to
derive understanding and knowledge in an open, standard manner from data which had
previously been dependent upon proprietary application or device logic. Over a decade of
development, research, and close collaboration with customers and application providers
have resulted in these unique capabilities found only in Oracle Database 11g.

FEATURES

 It eliminates all parent-child relationships and instead represented all data in the database
as simple row/column tables of data values.
 Flexibility in data modelling.
 Easy for accessing data.
 Each table is an independent entity and there is no physical relationship between tables.
 Reduce data storage and redundancy.
 Independent of physical storage and logical data design.
 It has wide level data manipulation language (SQL).
 Most data management system based on the relational model has a built-in support for
query languages like ANSI SQL or QBE (Query by Example). These queries are simple
English constructs that allow adodc data manipulation from a table.
 Deferred writing at commits to improve transaction performance.
 Security and control.
 It has a rollback command for recreating the database to its most recent safe point. Grant
and revoke limits access to information down to row and column level. Views are
valuable features for limiting access to the primary tackles in the database.
 Professional ORACLE starts the DBMS (Database Management System) in the extended
memory, so more main memory is available for other applications.
 Relational model of data management is based on set theory. Built-in query language is
designed in the RDBMS, so that it can manipulate sets of data (one or more tuples).
 User interface used with relational models is non-procedural because only what needs to
be done is specified and not how it has to be done. Using any of the other methods, you
have not only to specify what need to be done but how it has to be done as well.

Database Connectivity

Most of the business applications store large volumes of data, organized in a format
that provides easy access to data. Database Management System (DBMS) provides this
mechanism to manipulate data stored in Tables, with high-level commands.

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 7


Airline Reservation System

By using a database, the programmer can spend more time designing the interface,
rather than worrying about how to save, retrieve and sort the actual data.

A database basically is a group of related information, organized for easy processing


and retrieval. The data in a database is stored in Tables which are made up of rows and
columns. Each row known as a record consists of information about an entity.

In visual basic, three data access interfaces are available to you: ActiveX data objects
(ADO), Remote Data Objects (RDO), and Data Access Objects (DAO). A data access
interface is an object model that represents various facets of accessing data. Using visual
basic, you can programmatically control the connection, statements builders, and returned
data for use in any application.

To create a data connection to an Oracle database


1. In the choose Data Source dialog box, select Oracle Database, click OK.
2. If the Add connection dialog box opens, and the data source is not oracle database, click
change to open the choose/change data source dialog box.
3. Type the name of the server where the database you want to access is located.
4. Type the username and password used to access the database.
5. Click OK.

DATA CONTROL PROPERTIES

 ALIGN: Determine where data control is displayed.


 CAPTION: Phrase displayed on the data control.
 CONNECTIONSTRING: contains the information used to establish a connection to a
database.
 RECORD SET: A set of record defined by a data controls connection string and record
source properties.
 RECORD SOURCE: Determines the table (or virtual table) the data control is attached
to.

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 8


Airline Reservation System

CHAPTER 3
SYSTEM ANALYSIS

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 9


Airline Reservation System

2.SYSTEM ANALYSIS

1.2 EXISTING SYSTEM

The Company follows a manual system for maintaining the Airline Reservation System.
 Whenever any requisition comes to the Counter to issue a ticket the firstly the Ticket
Capacity checked whether the required quantity of the ticket is present or not. If the
required tickets is present then issue a ticket and update the reservation information and
an entry is done to the Ticket Issue Register.
 The day-to-day entries are made manually into the book that has gotten all the relevant
entries.
 Check the Ticket Quantity regularly whether any ticket is not in, if so then Ticket Issue
process is cancelled. In the same way Ticket cancellation is followed. If fare is increased
or decreased then changes into fare book. If New Flight is introduced then entry on
relevant book, that process applies to Flight-Schedule.
 At the end of the year or when an intermediate report is needed then prepare the report is
required.

LIMITATIONS

The Existing system includes problems like

 Time consuming.
 Security problems.
 High cost.
 Complexity.
 Time and speed.
 Maintenance.
 Accuracy.
 Storing.
 Man power.
 Records might get lost or be insufficient due to manual errors.
 Maintaining and managing data is very costly and time consuming, because there are
many documents that have to be maintained by each branch and copies have to be
transferred to relative branches.
 Transfer of information within the branches is costly and time consuming.

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 10


Airline Reservation System

1.3 PROPOSED SYSTEM

There are many activities that can be computerized in this widely spread
organization. The current context is related to maintain the ticket Reservation and
Cancellation ticket. The important reason is to make-work easy. No need to search a flight
register for entry or any other transaction.

Computerization of this must fulfil the requirements of working due to effective


work of computer in terms of efficiency, speed, accuracy, storage capacity and quickness.
Even though it is costly, it is recommended the computerization of the ticket issue process.

OBJECTIVES

 Manual work has to be reduced.


 Get accuracy.
 Result to be received very quickly.
 It uses concept of user friendliness.
 It provides using of multiple applications at a time.
 Increase security, speed, storing and accuracy.
 Customer services can not only be satisfied but also enhanced to the extent that one can
obtain or cancel a reservation from any branch for any route at any given time.
 To speed up the operation.
 Managing and maintaining data becomes easier.
 Provide convenience to travelers.
 It decreases manpower and high cost.

FEATURES

 Manual work has to be reduced and Result to be received quickly.


 To speed up the operation and Decrease manpower, high cost.
 Increase security, speed, storing and accuracy.
 The customers have to face only one person at the booking counter for obtain the
reservation.
 Managing and maintaining data becomes easier and cost effective due to very high
amount and reliability of storage space available in the proposed system.
 It provides support for queries through-out all the branches at any given time at a very
high speed, saving a lot of time.
 The system has been developed under Microsoft Visual Basic 6.0 as a Front-End tool and
Oracle 8.0 as a Back-End tool.

ADVANTAGES

 The proposed system due to computerized is much faster in reservation process,


cancellation process and transactions.
 Transfer of information from various branches would become easier and faster.
 Managing and maintaining data becomes easier and cost effective due to very high
amount and reliability of storage space available in the proposed system.
 Customer services can not only be satisfied but also enhanced to the extent that one can
obtain or cancel a reservation from any given time.

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 11


Airline Reservation System

1.4 ANALYSIS

An examination of data and facts to understand cause effect relationships, thus providing
basis for problem solving and decision making.

3.3.1 SYSTEM ANALYSIS


System analysis is the evaluation of an activity to identify its desired objectives and
determine procedures for efficiently attaining them. Computers the methodical study of the
data processing needs of a business or department, together with recommendations for
specific hardware and software installation.

3.3.2 FEASIBILITY STUDY

Feasibility study is to check the viability of the project under consideration.


Theoretically various types of feasibilities are conducted, but we have conducted three type
of feasibilities explained as below. Feasibility study aims to objectively and rationally
uncover the strengths and weakness of the existing business or proposed adventure,
opportunities and threats as presented by the environment, the resources required to carry
through and ultimately the prospects of success.

Feasibility study is most important and it concerns great to the passenger, for which
new system is to be developed. It includes the study of success and level of satisfaction that
the passenger and the user will get from the system. Feasibility means possibilities (to some
extent), i.e. this study explores the possibility of implementation of new system as a
substitute to old system removing all shortcomings and including all new requirements.

Feasibility study is a report directed management. It evaluates the impact of the


proposed changes in the area(s) in question. The report is a formal document for
management, brief enough and sufficiently, non-technical to be understandable, yet detailed
enough to provide the basis for system design.

An initial determine in a proposal that whether an alternative system is feasible or not.


To determine feasibility of candidate system in all respect I need to consider following
feasibility factors:

 Technical feasibility.
 Economic feasibility.
 Operational feasibility.

3.3.2.1 TECHNICAL FEASIBILITY


Technical feasibility center’s around the existing system (hardware, software, etc) into
what it can sort the proposed addition. A study of resource availability that may affect the
ability to achieve an acceptable system. This evaluation determines whether the technology
needed for the proposed system is available or not.

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 12


Airline Reservation System

 It is determined by the hardware and supporting software.


 Hardware requirement: stand-alone computer with enough main memory space & backup
storage more than 2 GB to support RDBMS and huge database.
 Software requirement: ORACLE.
 Can the work for the project be done with current equipment existing technology &
available personal?
 Can the system be upgraded if developed?
 If new technology with specifying equipment and software that will successfully satisfy
the user requirement front end and back end.

3.3.2.2 OPERATIONAL FEASIBILITY

It is mainly to human organization and political aspects. The points to be considered


are:
 What changes will be bought with the system?
 What new skills will be required?
 Do the exiting staff member have these skills? If not, can they be
 Trained in due course time?
 The system is operationally feasible as it is very easy for the admin to operate it. It only
needs basic information about windows platforms.

3.3.2.3 ECONOMIC FEASIBILITY

This feasibility checks whether the system can be developed with the available
funds. The Attendance Management System does not require enormous amount of money to
be developed. This can be done economically if planned judicially, so it is economically
feasible. The cost of cost of project depends upon the number of man hours required.

With the manual system the operating cost of the system is about 60 Lacks P.A.
This cost comprises salary of 25 people, stationary, building rent, electricity, water, telephone
etc. But with the new system this reoccurring cost comes out to be about 20 lacks P.A. Hence
the new system is economically feasible.

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 13


Airline Reservation System

CHAPTER 4
SOFTWARE
REQUIREMENTS
SPECIFICATIONS

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 14


Airline Reservation System

2.SOFTWARE REQUIREMENTS

1.5 INTRODUCTION
SRS is a document that completely describes what the proposed software should do
without describing how software will do it. The basic goal of the requirement phase is to
produce the SRS, which describe the complete behaviour of the proposed software. SRS is
also helping the clients to understand their own needs.

Software SRS establishes the basic for agreement the client and supplier on what the software
product will do.
1. A SRS provides a reference for validation of the final product.
2. A high-quality SRS is a prerequisite to high-product software.
3. A high-quality SRS reduces the development cost.

1.6 FUNCTIONAL REQUIREMENTS

It defines functions of a system or its components. A function is described as a set of


inputs, the behaviour, and the outputs. Behavioural requirements describing all the cases
where the system uses the functionality requirements are captured in use cases.

The user shall be able to search either all the initial set of database. The system shall
provide appropriate viewers for the user to read documents in document store. Every
reservation shall be allocated a unique identifier which shall be copy to account permanent
Storage area.

Some of the functional requirements of our project are as follows


 The user shall be able to search either all the initial set of database.
 The system shall provide appropriate viewers for the user to read documents in document
store.
 Every reservation shall be allocated a unique identification.

Some of the other functional requirements are:


 Administrative functions.
 Authentication.
 Authorization levels.
 Audit tracking.
 External interfaces.
 Certification requirements.
 Reporting requirements.
 Historical data.
 Legal or Regulatory requirements.

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 15


Airline Reservation System

1.7 NON- FUNCTIONAL REQUIREMENTS

The requirements that specifies criteria that can be used to judge the operation of a
system, rather than specific behaviour. This should be contracted with functional
requirements that define specific behaviour or functions.

Response time should be less then specified time, input screen be self-explanatory,
user friendly, attractive, accurate.

Some non-functional requirements are:


 Fast (Response time be less than specified time)
 Accurate (Up three places after decimal)
 User friendly (Input screen be Self-Explanatory )
 Attractive ( Aesthetically appealing)

Some of the other Non-Functional requirements are:


 Capacity
 Availability
 Reliability
 Recoverability
 Maintainability
 Serviceability
 Regulatory
 Manageability
 Environmental
 Data Integrity
 Usability
 Interoperability

1.8 DOMAIN REQUIREMENTS

Domain requirement is the requirement that comes from the application domain of
the system that refers the characteristics of that domain. Therefore, as our system is an airline
reservation system, the domain requirement of this system should concern about the
requirements that reflect characteristics of airline reservation system. Airline reservation
system must have basic functions: storing, tracking, updating, and must be able to generate
reports.

1. Every operation that occurs in the ARS must concern of data integrity. For eg, we do not
want number of passengers in our ARS to become -1, or enter the passenger without
passenger name.
2. Every operation that occurs in ARS inventory system must be recorded, and the system
should generate report from time to time.

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 16


Airline Reservation System

3. Regarding security issue, the ARS must have an authorization module to prevent
unauthorized access.
4. Authorized person must be able to access the system 24/7 except the system is under
maintenance.
5. Back up unit is required for unexpected system failure event.

4.5 SYSTEM REQUIREMENTS

The most common set of requirement defined by any operating system or software
application is the physical computer resources, also known as hardware, a hardware
requirements list is often accompanied by a hardware compatibility list(HCL), especially in
case of operating system.

The Hardware and Software Configuration for the proposed system is given below.

Hardware Configuration

For the successful run of the proposed system the required standalone Personal
Computer with, minimum hardware required to run the system is as below.

Hardware Minimum Requirement


Processor Pentium 2
Hard disk 4 GB
RAM 64 MB

Software Configuration

The minimum Software required by the system is follows.

Front End Visual basic 6.0


Back End Oracle 11g
Platform Windows XP,7 & 10

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 17


Airline Reservation System

CHAPTER 5
SYSTEM DESIGN

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 18


Airline Reservation System

2.SYSTEM DESIGN

1.9 INTRODUCTION

System design is the process of defining the architecture, components, modules,


interfaces, and data for a system to satisfy specified requirements. System design could be
seen as the application of the systems theory to product development. There are mainly three
types of software model:
 Waterfall model.
 Iterative Enhancement model.
 Spiral model.
 Agile model.

In our project we are implementing Agile model for developing our project.

Agile Model (AM):


Agile model is a methodology for modelling and documenting software system based on best
practices. It is a collection of values and principles, that can be applied on an (Agile) software
development project. This methodology is more flexible than traditional modelling method,
making it a better fit in a fast changing environment. It is a part of the Agile software
development tool kit.

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 19


Airline Reservation System

The manifesto for Agile Software Development is based on twelve principles.


1. Customer satisfaction by early and continuous delivery of valuable software.
2. Welcome changing requirements, even in late development.
3. Working software is delivered frequently (weeks rather than months).
4. Close, daily cooperation between business people and developers.
5. Projects are built around motivated individuals, who should be trusted.
6. Face-to-face conversation is the best form of communication (co-location).
7. Working software is the primary measure of progress.
8. Sustainable development, able to maintain a constant pace.
9. Continuous attention to technical excellence and good design
10. Simplicity-the art of maximizing the amount of work not done-is essential.
11. Best architecture, requirements, and designs emerge from self-organizing teams.
12. Regularly, the team reflects to how become more effective, and adjusts accordingly.

1.10 CONTEXT LEVEL DIAGRAM

A Level 0 DFD also called as fundamental system model or a context model represents
the entire software element as a single bubble with input and output data indicated by
incoming and outgoing arrows respectively. Additional processes and information flow paths
are represented as the level 0 is partitioned to reveal details. Each of that proves represents at
level 1 is sub function of the overall system depicted in the context model. Each of the
process may be refined are layered to depict more detail. Information continuity must be
maintained in every layer, that is input and output to each refinement must remain the same.

LEVEL 0

5.3 DATA FLOW DIAGRAM

As information moves through software, it is modified by a series of transformations. A


Data Flow Diagram (DFD) is a graphical technique that depicts information flow and the
transformations that are applied as data move from input to output. The data flow diagram is
known as a data flow graph or a bubble chart.

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 20


Airline Reservation System

The Data Flow Diagram may be used to representation a system or software at any level
of abstraction. In fact, DFDs may be used partitioned into levels that represent increasing
information flow and functional detail. Therefore, the DFD provides a mechanism for
functional modelling as information flow modelling.

LEVEL 1 DIAGRAM FOR PROCESS

PASSENGER

ADMINISTRATOR

ENQUIRY BOOKING CANCELLATION

FLIGHT DETAILS RESERVE TICKET CANCEL TICKET

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 21


Airline Reservation System

LEVEL 2 DIAGRAM FOR PROCESS

DELETE USER PASSENGER NEW USER

ADMINISTRATOR

ENQUIRY BOOKING CANCELLATION


SECTION COUNTER COUNTER

FLIGHT DETAILS RESERVE TICKET CANCEL TICKET

RESERVATION
FLIGHTS
CANCELATION
SCHEDULE
SEAT
ALLOT

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 22


Airline Reservation System

5.4 ER-Diagram:
INTRODUCTION TO E-R MODEL:
An ER model is an abstract way to describe a database. Describing a database
usually starts with a relational database, which stores data in tables. Some of the data in these
tables point to data in other tables - for instance, your entry in the database could point to
several entries for each of the phone numbers that are yours. The ER model would say that
you are an entity, and each phone number is an entity, and the relationship between you and
the phone numbers is 'has a phone number'. Diagrams created to design these entities and
relationships are called entity– relationship diagrams or ER diagrams.

INTRODUCTION TO E-R DIAGRAM:


Entity relationship diagram is a graphical representation of entities and their
relationships to each other, typically used in computing in regard to the organization of data
within databases or information systems. An entity is a piece of data-an object or concept
about which data is stored. A relationship is how the data is shared between entities.

ER DIAGRAM:

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 23


Airline Reservation System

5.5 DATABASE DESIGN

NORMALIZATION

Database normalization is the process of removing redundant data from the tables to
improve storage efficiency, data integrity and scalability. The classification is called normal
forms (or NF’s) and they show how algorithms are converting a given database between
them. Normalization generally involves splitting existing tables into multiple ones, which
must be re-joined or linked each time a query is issued.

1NF (FIRST NORMAL FORM)

A database is in first normal form if it contains this condition


 Contains only atomic values.
 An atomic value that cannot be divided.
 There are no repeating groups.

2NF (SECOND NORMAL FORM)

A database is in 2NF if it satisfies the following conditions:


 It is in 1NF.
 All non-key attributes are fully functional dependent on the primary key.
 A table is in 1NF and contains only a single key as the primary key is automatically in
2NF.
 In a 2NF table all non-key attributes cannot be dependent on a subset of a primary key.

SCHEMA DIAGRAM:
A diagram that represents the elements of a system using graphic symbols. The schema
diagram for ARS is as follows

LOGIN:

USER NAME

PASSWORD

RESERVATION:

NAME ADDRESS AGE PHONE_ GENDER EMAIL_ID


NO
DESTINATION SOURCE CLASS DATES FLIGHT_NO PNR_NO
DEPARTURE_TIME ARRIVAL_ SEAT_NO TICKET FARE TOTAL_A
TIME MT

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 24


Airline Reservation System

CANCELLATION:

PNR Class F_code Seat no

FLIGHT SCHEDULE:

F_no Dept_time Arr_time place

FLIGHT:

F_NO SOURCE DESTINATION CLASS AMOUNT GST

SEAT:

SEAT NO FLIGHT NO PNR NO CLASS DATE

5.6 TABLE STRUCTURE

Table Name (TN): Login

FIELDS DATA TYPE SIZE


User ID Varchar2 (20)
Password Varchar2 (20)

TN: USER DETAILS

FIELDS DATA TYPE SIZE


Username Varchar2 (20)
Password Varchar2 (20)
Mobile no Number (15)
State Varchar2 (20)

TN: SEAT DETAILS

FIELDS DATA TYPE SIZE


F_code Varchar2 (20)
Seat no Number (15)
PNR Varchar2 (20)

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 25


Airline Reservation System

TN: PASSENGER DETAILS

FIELDS DATA TYPE SIZE

Name Varchar2 (20)


Age Varchar2 (20)
Gender Varchar2 (20)

Mobile no Number (15)


Email_id Varchar2 (20)
Address Varchar2 (20)
Arr_place Varchar2 (20)
Dept_place Varchar2 (20)
Class Varchar2 (20)
Date Number (15)
F_code Number (15)
Seat no Number (15)
PNR Number (15)

TN: FLIGHT DETAILS

FIELDS DATA TYPE SIZE


F_code Varchar2 (20)
Class Varchar2 (20)
Source Varchar2 (20)
Destination Varchar2 (20)
Arr_time Varchar2 (20)
Dept_time Varchar2 (20)
Price Number (15)

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 26


Airline Reservation System

CHAPTER 6
IMPLEMENTATION

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 27


Airline Reservation System

2.Implementation

6.1 Introduction :
Implementation is the carrying out, execution, or practice of a plan, a method, or
any design for doing something. As such, implementation is the action that must follow
any context, implementation encompasses all the processes involved in getting new
software or hardware operating properly in its environment, including installation,
configuration, and running, testing, & making necessary changes. The word deployment
used to mean the same thing.

Implementation Procedure

We have used Oracle 11G as back end & visual basic 6.0 as front end. We have
used ADODB for back end connections in our project & we have used Microsoft tabbed
dialog control 6.0 for handling admin login pages.

We have also used combo boxes & many other components which make our
project a user friendly project.

6.2 Source Code:


Source code refer to the “before” & “after” versions of a computer program i.e.
complied before it is ready to run in a computer.

MODULE CONNECTION

Public con As ADODB.Connection


Public com As ADODB.Command
Public com1 As ADODB.Command
Public rst As ADODB.Recordset
Public rs As ADODB.Recordset
Public num As Integer
Public Sub conn ()
Set con = New ADODB.Connection
Set com = New ADODB.Command
Set com1 = New ADODB.Command
Set rst = New ADODB.Recordset
Set rs = New ADODB.Recordset
With con
.ConnectionString = "User ID = BCA; Password=123; data source = abc"
.Provider = "MSDASQL"
.Open
End With
com.ActiveConnection = con
End Sub

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 28


Airline Reservation System

Public Sub auto()


If rs.State = 1 Then rs.Close
rs.Open "select * from auto", con
num = rs.Fields(0)
num = num + 1
res.txtpnr.Text = Format (num, "A000")
If rst.State = 1 Then rst.Close
End Sub

WELCOME CODE

Private Sub command1_Click()


Timer1.Enabled = True
End Sub

Private Sub Form_Load()


Timer1.Enabled = False
End Sub

Private Sub Timer1_Timer()


If ProgressBar1.Value = 100 Then
Timer1.Enabled = False
login.Show
login.txtuname.SetFocus
Unload Me
Else
ProgressBar1.Value = ProgressBar1.Value + 2
End If
End Sub

LOGIN CODE

Private Sub cmdclr_Click()


txtuname.Text = ""
txtpass.Text = ""
txtuname.SetFocus
End Sub

Private Sub cmdext_Click()


End
End Sub

Private Sub txtuname_KeyPress(K As Integer)


If (K >= 65 And K <= 90) Or (K >= 97 And K < 122) Or K = 32 Or K = 8 Then
txtuname.Locked = False
Else
txtuname.Locked = True
MsgBox "ONLY ALPHABETS ARE ALLOWED"
txtuname.SetFocus
End If End Sub

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 29


Airline Reservation System

Private Sub cmdlogin_Click()


conn
Dim i As Integer
i=0
If txtuname.Text = "" Or txtpass.Text = "" Then
MsgBox "ENTER USERNAME AND PASSWORD", vbQuestion, "Login"
txtuname.SetFocus
Else
rst.Open "select * from logi", con
While rst.EOF <> True
If rst(1) = txtpass.Text And rst(0) = txtuname.Text Then
MsgBox "LOGIN SUCCESSFULLY DONE..!!", vbInformation
i=1
txtuname.Text = ""
txtpass.Text = ""
txtuname.SetFocus
MDIForm1.Show
Me.Hide
End If
rst.MoveNext
Wend
If i = 0 Or rst.BOF = True Then
MsgBox "Incorrect Username or Password", vbCritical
txtuname.Text = ""
txtpass.Text = ""
txtuname.SetFocus
End If
rst.Close
End If
End Sub

Private Sub Form_Load()


conn
Label2.Caption = Format(Date, "MMMM DD, YYYY")
Label3.Caption = Format(Time, "HH:MM:SS AM/PM")
logFile = App.Path & "\LogFile"
End Sub
Private Sub Timer1_Timer()
Label2.Caption = Format(Date, "MMMM DD, YYYY")
Label3.Caption = Format(Time, "HH:MM:SS AM/PM")
End Sub

MDIFORM CODE

Private Sub ABT_Click()


about.Show
Me.Hide
End Sub

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 30


Airline Reservation System

Private Sub ACCADD_Click()


nuser.Show
Me.Hide
End Sub

Private Sub ACCDEL_Click()


delu.Show
Me.Hide
End Sub

Private Sub EXT_Click()


login.Show
Me.Hide
End Sub

Private Sub FDAIR_Click()


airdetails.Show
Me.Hide
End Sub

Private Sub FDSCH_Click()


flightschedule.Show
Me.Hide
End Sub

Private Sub MNUCAN_Click()


cant.Show
Me.Hide
End Sub

Private Sub MNURES_Click()


res.Show
Me.Hide
End Sub

Private Sub RESD_Click()


passenger.Show
Me.Hide
End Sub

NEW USER CODE

Private Sub txtadd_KeyPress(K As Integer)


If (K >= 65 And K <= 90) Or (K >= 97 And K <= 122) Or (K >= 48 And K <= 57) Or K = 8
Or K = 32 Then
txtadd.Locked = False
Else
txtadd.Locked = True
MsgBox "SPECIAL CHARACTERS ARE NOT ALLOWED", vbCritical, "ERROR"
txtadd.SetFocus

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 31


Airline Reservation System

End If
End Sub

Private Sub cmdback_Click()


txtname.Text = ""
txtuname.Text = ""
txtpass.Text = ""
txtadd.Text = ""
txtstate.Text = ""
txtpno.Text = ""
txtcount.Text = ""
MDIForm1.Show
Me.Hide
End Sub

Private Sub cmdclr_Click()


txtname.Text = ""
txtuname.Text = ""
txtpass.Text = ""
txtadd.Text = ""
txtstate.Text = ""
txtpno.Text = ""
txtcount.Text = ""
txtname.SetFocus
End Sub

Private Sub cmdsbt_Click()


rst.Open "select * from new_user", con
While rst.EOF <> True
If rst(1) = txtuname.Text Then
MsgBox ("TRY ANOTHER USERNAME"), vbInformation
rst.Close
txtname.Text = ""
txtuname.Text = ""
txtpass.Text = ""
txtadd.Text = ""
txtstate.Text = ""
txtpno.Text = ""
txtcount.Text = ""
Exit Sub
Else
rst.MoveNext
End If
Wend
rst.Close
Dim i As Integer
i=0
rst.Open "select * from logi", con
While rst.EOF <> True
If rst(1) = txtpass.Text Then

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 32


Airline Reservation System

MsgBox ("TRY ANOTHER USER NAME AND PASSWORD"), vbInformation


rst.Close
Exit Sub
Else
rst.MoveNext
End If
Wend
rst.Close
If txtname.Text = "" Or txtuname.Text = "" Or txtpass.Text = "" Or txtadd.Text = "" Or
txtstate.Text = "" Or txtpno.Text = "" Or txtcount.Text = "" Then
MsgBox "TEXT BOX SHOULD NOT BE LEFT BLANCK", vbInformation
MDIForm1.Show
Else
com1.CommandText = "insert into new_user values('" & txtname.Text & "','" &
txtuname.Text & "','" & txtpass.Text & "','" & txtadd.Text & "','" & txtstate.Text & "','" &
txtpno.Text & "','" & txtcount.Text & "')"
com1.ActiveConnection = con
com1.Execute
com.CommandText = "insert into logi values('" & txtuname.Text & "','" & txtpass.Text & "')"
com.ActiveConnection = con
com.Execute
MsgBox "NEW USER ADDED"
MDIForm1.Show
End If
txtname.Text = ""
txtuname.Text = ""
txtpass.Text = ""
txtadd.Text = ""
txtstate.Text = ""
txtpno.Text = ""
txtcount.Text = ""
Unload Me
End Sub
Private Sub Form_Load()
conn
End Sub

Private Sub txtcount_KeyPress(K As Integer)


If (K >= 65 And K <= 90) Or (K >= 97 And K <= 122) Or K = 8 Or K = 32 Then
txtstate.Locked = False
Else
txtstate.Locked = True
MsgBox "SPECIAL CHARACTERS ARE NOT ALLOWED", vbCritical, "ERROR"
txtstate.SetFocus
End If
End Sub

Private Sub txtname_KeyPress(K As Integer)


If (K >= 65 And K <= 90) Or (K >= 97 And K <= 122) Or K = 8 Or K = 32 Then
txtname.Locked = False

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 33


Airline Reservation System

Else
txtname.Locked = True
MsgBox "SPECIAL CHARACTERS ARE NOT ALLOWED", vbCritical, "ERROR"
txtname.SetFocus
End If
End Sub

Private Sub txtpass_KeyPress(K As Integer)


If (K >= 65 And K <= 90) Or (K >= 97 And K <= 122) Or (K >= 48 And K <= 57) Or K = 8
Or K = 32 Then
txtpass.Locked = False
Else
txtpass.Locked = True
MsgBox "SPECIAL CHARACTERS ARE NOT ALLOWED", vbCritical, "ERROR"
txtpass.SetFocus
End If
End Sub

Private Sub txtpno_KeyPress(K As Integer)


If (K >= 48 And K <= 57) Or K = 8 Or K = 32 Then
txtpno.Locked = False
Else
txtpno.Locked = True
MsgBox "ONLY NYMBERS ALLOWED", vbCritical, "ERROR"
txtpno.SetFocus
End If
End Sub

Private Sub txtstate_KeyPress(K As Integer)


If (K >= 65 And K <= 90) Or (K >= 97 And K <= 122) Or K = 8 Or K = 32 Then
txtstate.Locked = False
Else
txtstate.Locked = True
MsgBox "SPECIAL CHARACTERS ARE NOT ALLOWED", vbCritical, "ERROR"
txtstate.SetFocus
End If
End Sub

Private Sub txtuname_KeyPress(K As Integer)


If (K >= 65 And K <= 90) Or (K >= 97 And K <= 122) Or (K >= 48 And K <= 57) Or K = 8
Or K = 32 Then
txtuname.Locked = False
Else
txtuname.Locked = True
MsgBox "SPECIAL CHARACTERS ARE NOT ALLOWED", vbCritical, "ERROR"
txtuname.SetFocus
End If
End Sub

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 34


Airline Reservation System

DELETE USER

Private Sub cmdback_Click()


txtuname.Text = ""
txtname.Text = ""
MDIForm1.Show
Me.Hide
End Sub
Private Sub cmdclr_Click()
txtuname.Text = ""
txtname.Text = ""
txtuname.SetFocus
End Sub

Private Sub cmddel_Click()


If txtuname.Text = "" Or txtname.Text = "" Then
MsgBox "FILL THE DETAILS", vbInformation, "Delete"
txtuname.SetFocus
Exit Sub
Else
rst.Open "select * from logi", con
While rst.EOF <> True
If txtuname.Text = rst.Fields(0) Then
rst.Close
rs.Open "delete from logi where username= '" & txtuname.Text & "'", con
rs.Open "delete from new_user where name= '" & txtname.Text & "'", con
MsgBox "USER DELETED...!", vbInformation, "Passenger"
txtuname.Text = ""
txtname.Text = ""
MDIForm1.Show
Exit Sub
Else
rst.MoveNext
End If
Wend
End If
If rst.EOF = True Then
MsgBox "user Doesnot Exist", vbInformation, "Delete"
rst.Close
Exit Sub
End If
End Sub

Private Sub Form_Load()


conn
End Sub

Private Sub txtname_KeyPress(K As Integer)


If (K >= 65 And K <= 90) Or (K >= 97 And K <= 122) Or K = 8 Or K = 32 Then
txtname.Locked = False

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 35


Airline Reservation System

Else
txtname.Locked = True
MsgBox "ONLY ALPHABETS ARE ALLOWED", vbCritical, "ERROR"
txtname.SetFocus
End If
End Sub

Private Sub txtuname_KeyPress(K As Integer)


If (K >= 65 And K <= 90) Or (K >= 97 And K <= 122) Or (K >= 48 And K <= 57) Or K = 8
Or K = 32 Then
txtuname.Locked = False
Else
txtuname.Locked = True
MsgBox "SPECIAL CHARACTERS ARE NOT ALLOWED", vbCritical, "ERROR"
txtuname.SetFocus
End If
End Sub

RESERVATION CODE

Private Sub cmdback_Click()


txtname.Text = ""
txtage.Text = ""
txtadd.Text = ""
cmbgen.Text = ""
txtpno.Text = ""
txtemail.Text = ""
cmbfrom.Text = ""
cmbto.Text = ""
cmbclass.Text = ""
txtfno.Text = ""
txtpnr.Text = ""
txtdept.Text = ""
txtarv.Text = ""
txtsno.Text = ""
txtstatus.Text = ""
txtfare.Text = ""
txttot.Text = ""
MDIForm1.Show
Me.Hide
End Sub

Private Sub cmdbt_Click()


If txtname.Text = "" Or txtage.Text = "" Or txtadd.Text = "" Or cmbgen.Text = "" Or
txtpno.Text = "" Or txtemail.Text = "" Or cmbfrom.Text = "" Or cmbto.Text = "" Or
cmbclass.Text = "" Or txtfno.Text = "" Or txtpnr.Text = "" Or txtdept.Text = "" Or
txtarv.Text = "" Or txtsno.Text = "" Or txtstatus.Text = "" Or txtfare.Text = "" Or txttot.Text
= "" Then
MsgBox "FILL ALL THE DETAILS"
Else

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 36


Airline Reservation System

com1.CommandText = "insert into reservation values('" & txtname.Text & "','" & txtage.Text
& "','" & txtadd.Text & "','" & cmbgen.Text & "','" & txtpno.Text & "','" & txtemail.Text &
"','" & cmbfrom.Text & "','" & cmbto.Text & "','" & cmbclass.Text & "','" &
DTPicker1.Value & "','" & txtfno.Text & "','" & txtpnr.Text & "','" & txtdept.Text & "','" &
txtarv.Text & "','" & txtsno.Text & "','" & txtstatus.Text & "','" & txtfare.Text & "','" &
txttot.Text & "')"
com1.ActiveConnection = con
com1.Execute
MsgBox "YOUR RESERVATION IS DONE"
printing.Show
printing.Text1.Text = res.txtname.Text
printing.Text2.Text = res.txtadd.Text
printing.Text3.Text = res.cmbgen.Text
printing.Text4.Text = res.txtage.Text
printing.Text5.Text = res.txtpno.Text
printing.Text6.Text = res.txtemail.Text
printing.Text7.Text = res.cmbfrom.Text
printing.Text8.Text = res.cmbto.Text
printing.Text9.Text = res.cmbclass.Text
printing.Text10.Text = res.DTPicker1.Value
printing.Text11.Text = res.txtdept.Text
printing.Text12.Text = res.txtarv.Text
printing.Text13.Text = res.txtfno.Text
printing.Text14.Text = res.txtpnr.Text
printing.Text15.Text = res.txtsno.Text
printing.Text16.Text = res.txtstatus.Text
printing.Text17.Text = res.txtfare.Text
printing.Text18.Text = res.txttot.Text
End If
End Sub

Private Sub cmdclr_Click()


txtname.Text = ""
txtage.Text = ""
txtadd.Text = ""
cmbgen.Text = ""
txtpno.Text = ""
txtemail.Text = ""
cmbfrom.Text = ""
cmbto.Text = ""
cmbclass.Text = ""
txtfno.Text = ""
txtpnr.Text = ""
txtdept.Text = ""
txtarv.Text = ""
txtsno.Text = ""
txtstatus.Text = ""
txtfare.Text = ""
txttot.Text = ""
txtname.SetFocus

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 37


Airline Reservation System

End Sub
Private Sub cmdseat_Click()
SEAT.Show
Me.Hide
End Sub

Private Sub Form_Load()


conn
txtpno.MaxLength = 10
txtage.MaxLength = 2
End Sub

Private Sub txtadd_KeyPress(K As Integer)


If (K >= 65 And K <= 90) Or (K >= 97 And K <= 122) Or (K >= 48 And K <= 57) Or K = 8
Or K = 32 Then
txtadd.Locked = False
Else
txtadd.Locked = True
MsgBox "IN SPECIAL CHARACTERS ONLY . IS ALLOWED", vbCritical, "ERROR"
txtadd.SetFocus
End If
End Sub

Private Sub txtage_KeyPress(K As Integer)


If (K >= 48 And K <= 57) Or K = 8 Or K = 32 Then
txtage.Locked = False
Else
txtage.Locked = True
MsgBox "ONLY NUMBERS ARE ALLOWED", vbCritical, "ERROR"
txtage.SetFocus
End If
End Sub

Private Sub txtarv_Click()


rst.Open "select * from flight where FLIGHT_NO='" & txtfno.Text & "'", con
txtarv.Text = rst(2)
rst.Close
End Sub
Private Sub txtdept_Click()
rst.Open "select * from flight where FLIGHT_NO='" & txtfno.Text & "'", con
txtdept.Text = rst(1)
rst.Close
End Sub

Private Sub txtemail_KeyPress(K As Integer)


If (K >= 65 And K <= 90) Or (K >= 97 And K <= 122) Or (K >= 48 And K <= 57) Or (K =
64 Or K = 46) Or K = 8 Or K = 32 Then
txtemail.Locked = False
Else
txtemail.Locked = True

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 38


Airline Reservation System

MsgBox "IN SPECIAL CHARACTERS ONLY @ AND . ARE ALLOWED", vbCritical,


"ERROR"
txtemail.SetFocus
End If
End Sub

Private Sub txtfare_Click()


rst.Open "select * from airplane1 where FLIGHT_NO='" & txtfno.Text & "' and class='" &
cmbclass.Text & "'", con
txtfare.Text = rst(4)
rst.Close
End Sub

Private Sub txtfno_Click()


rst.Open "select * from airplane1 where SOURCE='" & cmbfrom.Text & "' and
DESTINATION='" & cmbto.Text & "'", con
txtfno.Text = rst(0)
rst.Close
End Sub

Private Sub txtname_KeyPress(K As Integer)


If (K >= 65 And K <= 90) Or (K >= 97 And K <= 122) Or K = 8 Or K = 32 Then
txtname.Locked = False
Else
txtname.Locked = True
MsgBox "ONLY ALPHABETS ALLOWED", vbCritical, "ERROR"
txtname.SetFocus
End If
End Sub

Private Sub txtpno_KeyPress(K As Integer)


If (K >= 48 And K <= 57) Or K = 8 Or K = 32 Then
txtpno.Locked = False
Else
txtpno.Locked = True
MsgBox "ONLY NUMBERS ARE ALLOWED", vbCritical, "ERROR"
txtpno.SetFocus
End If
End Sub

Private Sub txtpnr_Click()


Call auto
com.CommandText = "update auto set auto_id='" & num & "'"
com.ActiveConnection = con
com.Execute
End Sub

Private Sub txtsno_Click()


rst.Open "select * from seat where pnr_no='" & txtpnr.Text & "'", con
If rst.EOF = True Or rst.BOF = True Then

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 39


Airline Reservation System

MsgBox "SEAT IS NOT ALLOTED", vbInformation


Exit Sub
End If
txtsno.Text = rst(0)
rst.Close
End Sub

Private Sub txtstatus_Click()


txtstatus.Text = " RESERVED "
End Sub

Private Sub txttot_Click()


txttot.Text = Val(txtfare.Text) * 0.12 + Val(txtfare.Text)
End Sub

CANCELLATION CODE

Private Sub cmdback_Click()


txtpnr.Text = ""
txtfno.Text = ""
txtsno.Text = ""
txts.Text = ""
MDIForm1.Show
Me.Hide
End Sub
Private Sub cmdclr_Click()
txtpnr.Text = ""
txtfno.Text = ""
txtsno.Text = ""
txts.Text = ""
txtpnr.SetFocus
End Sub

Private Sub cmdct_Click()


a = InputBox("Enter employee_id to be deleted")
rst.Open "select * from reservation where PNR_NO='" & a & "'", con
If rst.EOF = True And rst.BOF = True Then
MsgBox "YOUR TICKET HAS BEEN ALREADY CANCELLED", vbInformation
txtpnr.SetFocus
txtpnr.Text = ""
rst.Close
Else
rst.Close
rst.Open "Delete from reservation where pnr_no='" & a & "'", con
rst.Open "Delete from seat where pnr_no='" & a & "'", con
MsgBox "YOUR TICKET IS CANCELLED", vbInformation
txtpnr.Text = ""
txtfno.Text = ""
txtsno.Text = ""
txts.Text = ""

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 40


Airline Reservation System

txtpnr.SetFocus
End If
End Sub

Private Sub Cmdsearch_Click()


i = InputBox("Enter PNR number to search the record")
rst.Open "select * from reservation where pnr_no='" & i & "'", con
If rst.EOF = True Or rst.BOF = True Then
MsgBox "PNR_NO ENTERED IS IN CORRECT OR HAS BEEN CANCELLED
ALREADY"
Else
txtpnr.Text = rst(11)
txtfno.Text = rst(10)
txtsno.Text = rst(14)
txts.Text = rst(15)
txtpnr.Visible = True
txtfno.Visible = True
lblfno.Visible = True
txtsno.Visible = True
lblsno.Visible = True
txts.Visible = True
lblstat.Visible = True
End If
rst.Close
End Sub

Private Sub Form_Load()


conn
txtpnr.Visible = False
txtfno.Visible = False
lblfno.Visible = False
txtsno.Visible = False
lblsno.Visible = False
txts.Visible = False
lblstat.Visible = False
End Sub

SEAT CODE

Private Sub cmdallot_Click()


conn
rst.Open "select *from seat", con
While rst.EOF <> True
If rst(0) = txtsno.Text Then
MsgBox ("seat no already exist"), vbInformation
rst.Close
txtsno.Text = ""
cmbfno.Text = ""
txtpnr.Text = ""
cmbclass.Text = ""

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 41


Airline Reservation System

txtsno.SetFocus
Exit Sub
Else
rst.MoveNext
End If
Wend
rst.Close
Dim i As Integer
i=0
If txtsno.Text = "" Or cmbfno.Text = "" Or txtpnr.Text = "" Or cmbclass.Text = "" Then
MsgBox " enter all details", vbInformation
res.Show
Else
com1.CommandText = " insert into seat values('" & txtsno.Text & "','" & cmbfno.Text & "','"
& txtpnr.Text & "','" & cmbclass.Text & "')"
com1.ActiveConnection = con
com1.Execute
MsgBox " seat alloted"
res.Show
End If
txtsno.Text = ""
cmbfno.Text = ""
txtpnr.Text = ""
cmbclass.Text = ""
Unload Me
End Sub

Private Sub cmdback_Click()


txtsno.Text = ""
cmbfno.Text = ""
txtpnr.Text = ""
cmbclass.Text = ""
Unload Me
res.Show
End Sub

Private Sub cmdclr_Click()


txtsno.Text = ""
cmbfno.Text = ""
txtpnr.Text = ""
cmbclass.Text = ""
txtsno.SetFocus
End Sub

Private Sub Form_Load()


conn
End Sub

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 42


Airline Reservation System

Private Sub txtpnr_KeyPress(K As Integer)


If (K >= 65 And K <= 90) Or (K >= 97 And K <= 122) Or (K >= 48 And K <= 57) Or K = 8
Or K = 32 Then
txtpnr.Locked = False
Else
txtpnr.Locked = True
MsgBox "SPECIAL CHARACTERS ARE NOT ALLOWED", vbCritical, "ERROR"
txtpnr.SetFocus
End If
End Sub

Private Sub txtsno_KeyPress(K As Integer)


If (K >= 65 And K <= 90) Or (K >= 97 And K <= 122) Or (K >= 48 And K <= 57) Or K = 8
Or K = 32 Then
txtsno.Locked = False
Else
txtsno.Locked = True
MsgBox "SPECIAL CHARACTERS ONLY ARE NOT ALLOWED", vbCritical, "ERROR"
txtsno.SetFocus
End If
End Sub

PASSENGER DETAILS CODE

Private Sub cmdback_Click()


MDIForm1.Show
Me.Hide
End Sub

Private Sub cmdres_Click()


Command1.Visible = True
Command2.Visible = True
Command3.Visible = True
Label2.Visible = True
Command4.Visible = False
Command5.Visible = False
End Sub

Private Sub cmdseat_Click()


Command4.Visible = True
Command5.Visible = True
Label2.Visible = True
Command1.Visible = False
Command2.Visible = False
Command3.Visible = False
End Sub

Private Sub command1_Click()


Dim i As Integer
Dim a As String

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 43


Airline Reservation System

i=1
MSFlexGrid1.Clear

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 1
MSFlexGrid1.Text = "NAME"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 2
MSFlexGrid1.Text = "AGE"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 3
MSFlexGrid1.Text = "ADDRESS"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 4
MSFlexGrid1.Text = "GENDER"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 5
MSFlexGrid1.Text = "PHONE_NO"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 6
MSFlexGrid1.Text = "EMAIL_ID"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 7
MSFlexGrid1.Text = "SOURCE"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 8
MSFlexGrid1.Text = "DESTINATION"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 9
MSFlexGrid1.Text = "CLASS"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 10
MSFlexGrid1.Text = "DATES"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 11
MSFlexGrid1.Text = "FLIGHT_NO"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 12
MSFlexGrid1.Text = "PNR_NO"

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 44


Airline Reservation System

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 13
MSFlexGrid1.Text = "DEPARTURE_TIME"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 14
MSFlexGrid1.Text = "ARRIVAL_TIME"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 15
MSFlexGrid1.Text = "SEAT_NO"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 16
MSFlexGrid1.Text = "TICKET"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 17
MSFlexGrid1.Text = "FARE"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 18
MSFlexGrid1.Text = "TOTAL_AMT"

If rst.State = 1 Then rst.Close


a = InputBox("ENTER PNR NUMBER")
rst.Open "select * from reservation where PNR_NO='" & a & "'", con
If rst.EOF = True Or rst.BOF = True Then
MsgBox "PNR NUMBER YOU ENTERED DOES NOT EXIST", vbInformation
Exit Sub
End If
Do While Not rst.EOF
MSFlexGrid1.Row = i
MSFlexGrid1.Col = 1
MSFlexGrid1.Text = rst(0)

MSFlexGrid1.Col = 2
MSFlexGrid1.Text = rst(1)

MSFlexGrid1.Col = 3
MSFlexGrid1.Text = rst(2)

MSFlexGrid1.Col = 4
MSFlexGrid1.Text = rst(3)

MSFlexGrid1.Col = 5
MSFlexGrid1.Text = rst(4)

MSFlexGrid1.Col = 6

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 45


Airline Reservation System

MSFlexGrid1.Text = rst(5)

MSFlexGrid1.Col = 7
MSFlexGrid1.Text = rst(6)

MSFlexGrid1.Col = 8
MSFlexGrid1.Text = rst(7)

MSFlexGrid1.Col = 9
MSFlexGrid1.Text = rst(8)

MSFlexGrid1.Col = 10
MSFlexGrid1.Text = rst(9)

MSFlexGrid1.Col = 11
MSFlexGrid1.Text = rst(10)

MSFlexGrid1.Col = 12
MSFlexGrid1.Text = rst(11)

MSFlexGrid1.Col = 13
MSFlexGrid1.Text = rst(12)

MSFlexGrid1.Col = 14
MSFlexGrid1.Text = rst(13)

MSFlexGrid1.Col = 15
MSFlexGrid1.Text = rst(14)

MSFlexGrid1.Col = 16
MSFlexGrid1.Text = rst(15)

MSFlexGrid1.Col = 17
MSFlexGrid1.Text = rst(16)

MSFlexGrid1.Col = 18
MSFlexGrid1.Text = rst(17)

i=i+1
rst.MoveNext
MSFlexGrid1.Rows = i + 1
If rst.EOF = True Then
rst.Close
Exit Do
End If
Loop
End Sub

Private Sub Command4_Click()


Dim i As Integer

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 46


Airline Reservation System

Dim a As String
i=1
MSFlexGrid1.Clear

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 1
MSFlexGrid1.Text = "seat_no"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 2
MSFlexGrid1.Text = "flight_no"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 3
MSFlexGrid1.Text = "pnr_no"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 4
MSFlexGrid1.Text = "class"

If rst.State = 1 Then rst.Close


a = InputBox("ENTER PNR_NO")
rst.Open "select * from seat where pnr_no='" & a & "'", con
If rst.EOF = True Or rst.BOF = True Then
MsgBox "PNR NUMBER YOU ENTERED DOES NOT EXIST", vbInformation
Exit Sub
End If
Do While Not rst.EOF
MSFlexGrid1.Row = i
MSFlexGrid1.Col = 1
MSFlexGrid1.Text = rst(0)

MSFlexGrid1.Col = 2
MSFlexGrid1.Text = rst(1)

MSFlexGrid1.Col = 3
MSFlexGrid1.Text = rst(2)

MSFlexGrid1.Col = 4
MSFlexGrid1.Text = rst(3)

i=i+1
rst.MoveNext
MSFlexGrid1.Rows = i + 1
If rst.EOF = True Then
rst.Close
Exit Do
End If
Loop
End Sub

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 47


Airline Reservation System

Private Sub Command2_Click()


Dim i As Integer
Dim a As String
i=1
MSFlexGrid1.Clear

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 1
MSFlexGrid1.Text = "NAME"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 2
MSFlexGrid1.Text = "AGE"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 3
MSFlexGrid1.Text = "ADDRESS"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 4
MSFlexGrid1.Text = "GENDER"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 5
MSFlexGrid1.Text = "PHONE_NO"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 6
MSFlexGrid1.Text = "EMAIL_ID"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 7
MSFlexGrid1.Text = "SOURCE"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 8
MSFlexGrid1.Text = "DESTINATION"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 9
MSFlexGrid1.Text = "CLASS"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 10
MSFlexGrid1.Text = "DATES"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 11
MSFlexGrid1.Text = "FLIGHT_NO"

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 48


Airline Reservation System

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 12
MSFlexGrid1.Text = "PNR_NO"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 13
MSFlexGrid1.Text = "DEPARTURE_TIME"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 14
MSFlexGrid1.Text = "ARRIVAL_TIME"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 15
MSFlexGrid1.Text = "SEAT_NO"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 16
MSFlexGrid1.Text = "TICKET"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 17
MSFlexGrid1.Text = "FARE"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 18
MSFlexGrid1.Text = "TOTAL_AMT"

If rst.State = 1 Then rst.Close


a = InputBox("ENTER FLIGHT NUMBER")
rst.Open "select * from reservation where FLIGHT_NO='" & a & "'", con
If rst.EOF = True Or rst.BOF = True Then
MsgBox "FLIGHT NUMBER YOU ENTERED DOES NOT EXIST", vbInformation
Exit Sub
End If
Do While Not rst.EOF
MSFlexGrid1.Row = i
MSFlexGrid1.Col = 1
MSFlexGrid1.Text = rst(0)

MSFlexGrid1.Col = 2
MSFlexGrid1.Text = rst(1)

MSFlexGrid1.Col = 3
MSFlexGrid1.Text = rst(2)

MSFlexGrid1.Col = 4
MSFlexGrid1.Text = rst(3)

MSFlexGrid1.Col = 5

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 49


Airline Reservation System

MSFlexGrid1.Text = rst(4)

MSFlexGrid1.Col = 6
MSFlexGrid1.Text = rst(5)

MSFlexGrid1.Col = 7
MSFlexGrid1.Text = rst(6)

MSFlexGrid1.Col = 8
MSFlexGrid1.Text = rst(7)

MSFlexGrid1.Col = 9
MSFlexGrid1.Text = rst(8)

MSFlexGrid1.Col = 10
MSFlexGrid1.Text = rst(9)

MSFlexGrid1.Col = 11
MSFlexGrid1.Text = rst(10)

MSFlexGrid1.Col = 12
MSFlexGrid1.Text = rst(11)

MSFlexGrid1.Col = 13
MSFlexGrid1.Text = rst(12)

MSFlexGrid1.Col = 14
MSFlexGrid1.Text = rst(13)

MSFlexGrid1.Col = 15
MSFlexGrid1.Text = rst(14)

MSFlexGrid1.Col = 16
MSFlexGrid1.Text = rst(15)

MSFlexGrid1.Col = 17
MSFlexGrid1.Text = rst(16)

MSFlexGrid1.Col = 18
MSFlexGrid1.Text = rst(17)

i=i+1
rst.MoveNext
MSFlexGrid1.Rows = i + 1
If rst.EOF = True Then
rst.Close
Exit Do
End If
Loop
End Sub

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 50


Airline Reservation System

Private Sub Command3_Click()


Dim i As Integer
Dim a As String
i=1
MSFlexGrid1.Clear

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 1
MSFlexGrid1.Text = "NAME"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 2
MSFlexGrid1.Text = "AGE"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 3
MSFlexGrid1.Text = "ADDRESS"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 4
MSFlexGrid1.Text = "GENDER"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 5
MSFlexGrid1.Text = "PHONE_NO"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 6
MSFlexGrid1.Text = "EMAIL_ID"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 7
MSFlexGrid1.Text = "SOURCE"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 8
MSFlexGrid1.Text = "DESTINATION"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 9
MSFlexGrid1.Text = "CLASS"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 10
MSFlexGrid1.Text = "DATES"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 11
MSFlexGrid1.Text = "FLIGHT_NO"

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 51


Airline Reservation System

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 12
MSFlexGrid1.Text = "PNR_NO"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 13
MSFlexGrid1.Text = "DEPARTURE_TIME"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 14
MSFlexGrid1.Text = "ARRIVAL_TIME"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 15
MSFlexGrid1.Text = "SEAT_NO"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 16
MSFlexGrid1.Text = "TICKET"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 17
MSFlexGrid1.Text = "FARE"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 18
MSFlexGrid1.Text = "TOTAL_AMT"

If rst.State = 1 Then rst.Close


a = InputBox("ENTER DATE DD/MM/YYYY")
rst.Open "select * from reservation where DATEs='" & a & "'", con
If rst.EOF = True Or rst.BOF = True Then
MsgBox "DATE YOU ENTERED DOES NOT HAVE ANY RESERVATION",
vbInformation
Exit Sub
End If
Do While Not rst.EOF
MSFlexGrid1.Row = i
MSFlexGrid1.Col = 1
MSFlexGrid1.Text = rst(0)

MSFlexGrid1.Col = 2
MSFlexGrid1.Text = rst(1)

MSFlexGrid1.Col = 3
MSFlexGrid1.Text = rst(2)

MSFlexGrid1.Col = 4
MSFlexGrid1.Text = rst(3)

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 52


Airline Reservation System

MSFlexGrid1.Col = 5
MSFlexGrid1.Text = rst(4)

MSFlexGrid1.Col = 6
MSFlexGrid1.Text = rst(5)

MSFlexGrid1.Col = 7
MSFlexGrid1.Text = rst(6)

MSFlexGrid1.Col = 8
MSFlexGrid1.Text = rst(7)

MSFlexGrid1.Col = 9
MSFlexGrid1.Text = rst(8)

MSFlexGrid1.Col = 10
MSFlexGrid1.Text = rst(9)

MSFlexGrid1.Col = 11
MSFlexGrid1.Text = rst(10)

MSFlexGrid1.Col = 12
MSFlexGrid1.Text = rst(11)

MSFlexGrid1.Col = 13
MSFlexGrid1.Text = rst(12)

MSFlexGrid1.Col = 14
MSFlexGrid1.Text = rst(13)

MSFlexGrid1.Col = 15
MSFlexGrid1.Text = rst(14)

MSFlexGrid1.Col = 16
MSFlexGrid1.Text = rst(15)

MSFlexGrid1.Col = 17
MSFlexGrid1.Text = rst(16)

MSFlexGrid1.Col = 18
MSFlexGrid1.Text = rst(17)

i=i+1
rst.MoveNext
MSFlexGrid1.Rows = i + 1
If rst.EOF = True Then
rst.Close
Exit Do
End If

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 53


Airline Reservation System

Loop
End Sub
Private Sub Command5_Click()
Dim i As Integer
Dim a As String
Dim b As String
i=1
MSFlexGrid1.Clear

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 1
MSFlexGrid1.Text = "NAME"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 2
MSFlexGrid1.Text = "AGE"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 3
MSFlexGrid1.Text = "ADDRESS"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 4
MSFlexGrid1.Text = "GENDER"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 5
MSFlexGrid1.Text = "PHONE_NO"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 6
MSFlexGrid1.Text = "EMAIL_ID"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 7
MSFlexGrid1.Text = "SOURCE"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 8
MSFlexGrid1.Text = "DESTINATION"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 9
MSFlexGrid1.Text = "CLASS"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 10
MSFlexGrid1.Text = "DATES"

MSFlexGrid1.Row = 0

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 54


Airline Reservation System

MSFlexGrid1.Col = 11
MSFlexGrid1.Text = "FLIGHT_NO"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 12
MSFlexGrid1.Text = "PNR_NO"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 13
MSFlexGrid1.Text = "DEPARTURE_TIME"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 14
MSFlexGrid1.Text = "ARRIVAL_TIME"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 15
MSFlexGrid1.Text = "SEAT_NO"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 16
MSFlexGrid1.Text = "TICKET"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 17
MSFlexGrid1.Text = "FARE"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 18
MSFlexGrid1.Text = "TOTAL_AMT"

If rst.State = 1 Then rst.Close


a = InputBox("ENTER FLIGHT NUMBER")
b = InputBox("ENTER THE DATE , DD-MM-YYYY")
rst.Open "select * from reservation where FLIGHT_NO='" & a & "' and DATEs='" & b &
"'", con
If rst.EOF = True Or rst.BOF = True Then
MsgBox "FLIGHT NUMBER YOU ENTERED DOES NOT EXIST", vbInformation
Exit Sub
End If
Do While Not rst.EOF
MSFlexGrid1.Row = i
MSFlexGrid1.Col = 1
MSFlexGrid1.Text = rst(0)

MSFlexGrid1.Col = 2
MSFlexGrid1.Text = rst(1)

MSFlexGrid1.Col = 3
MSFlexGrid1.Text = rst(2)

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 55


Airline Reservation System

MSFlexGrid1.Col = 4
MSFlexGrid1.Text = rst(3)

MSFlexGrid1.Col = 5
MSFlexGrid1.Text = rst(4)

MSFlexGrid1.Col = 6
MSFlexGrid1.Text = rst(5)

MSFlexGrid1.Col = 7
MSFlexGrid1.Text = rst(6)

MSFlexGrid1.Col = 8
MSFlexGrid1.Text = rst(7)

MSFlexGrid1.Col = 9
MSFlexGrid1.Text = rst(8)

MSFlexGrid1.Col = 10
MSFlexGrid1.Text = rst(9)

MSFlexGrid1.Col = 11
MSFlexGrid1.Text = rst(10)

MSFlexGrid1.Col = 12
MSFlexGrid1.Text = rst(11)

MSFlexGrid1.Col = 13
MSFlexGrid1.Text = rst(12)

MSFlexGrid1.Col = 14
MSFlexGrid1.Text = rst(13)

MSFlexGrid1.Col = 15
MSFlexGrid1.Text = rst(14)

MSFlexGrid1.Col = 16
MSFlexGrid1.Text = rst(15)

MSFlexGrid1.Col = 17
MSFlexGrid1.Text = rst(16)

MSFlexGrid1.Col = 18
MSFlexGrid1.Text = rst(17)

i=i+1
rst.MoveNext
MSFlexGrid1.Rows = i + 1
If rst.EOF = True Then

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 56


Airline Reservation System

rst.Close
Exit Do
End If
Loop
End Sub

Private Sub Form_Load()


conn
Command1.Visible = False
Command2.Visible = False
Command3.Visible = False
Command4.Visible = False
Command5.Visible = False
Label2.Visible = False
End Sub

FLIGHT SCHEDULING CODE

Private Sub cmddone_Click()


MDIForm1.Show
Me.Hide
End Sub
Private Sub command1_Click()
Dim i As Integer
Dim a As String
i=1
MSFlexGrid1.Clear

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 1
MSFlexGrid1.Text = "FLIGHT_NO"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 2
MSFlexGrid1.Text = "DEPARTURE_TIME"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 3
MSFlexGrid1.Text = "ARRIVAL_TIME"

If rst.State = 1 Then
rst.Close
End If
a = InputBox("ENTER FLIGHT NUMBER")
rst.Open "select * from flight where flight_no='" & a & "'", con
If rst.EOF = True Or rst.BOF = True Then
MsgBox "Flight Number You Entered Does Not Exist", vbInformation
Exit Sub

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 57


Airline Reservation System

End If
Do While Not rst.EOF
MSFlexGrid1.Row = i
MSFlexGrid1.Col = 1
MSFlexGrid1.Text = rst(0)

MSFlexGrid1.Col = 2
MSFlexGrid1.Text = rst(1)

MSFlexGrid1.Col = 3
MSFlexGrid1.Text = rst(2)

i=i+1
rst.MoveNext
MSFlexGrid1.Rows = i + 1
If rst.EOF = True Then
rst.Close
Exit Do
End If
Loop
End Sub

Private Sub Form_Load()


conn
End Sub

FLIGHT DETAILS CODE

Private Sub cmdback_Click()


MDIForm1.Show
Unload Me
End Sub
Private Sub Cmdsearch_Click()
Dim i As Integer
Dim a As String
i=1
MSFlexGrid1.Clear
MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 1
MSFlexGrid1.Text = "FLIGHT_NO"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 2
MSFlexGrid1.Text = "SOURCE"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 3
MSFlexGrid1.Text = "DESTINATION"

MSFlexGrid1.Row = 0

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 58


Airline Reservation System

MSFlexGrid1.Col = 4
MSFlexGrid1.Text = "CLASS"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 5
MSFlexGrid1.Text = "PRICE"

MSFlexGrid1.Row = 0
MSFlexGrid1.Col = 6
MSFlexGrid1.Text = "GST"

If rst.State = 1 Then
rst.Close
End If
a = InputBox("ENTER FLIGHT NUMBER")
rst.Open "SELECT *FROM airplane1 where flight_no='" & a & "'", con
If rst.EOF = True Or rst.BOF = True Then
MsgBox "Flight Number You Entered Does Not Exist", vbInformation
Exit Sub
End If
Do While Not rst.EOF
MSFlexGrid1.Row = i
MSFlexGrid1.Col = 1
MSFlexGrid1.Text = rst(0)

MSFlexGrid1.Col = 2
MSFlexGrid1.Text = rst(1)

MSFlexGrid1.Col = 3
MSFlexGrid1.Text = rst(2)
MSFlexGrid1.Col = 4
MSFlexGrid1.Text = rst(3)
MSFlexGrid1.Col = 5
MSFlexGrid1.Text = rst(4)

MSFlexGrid1.Col = 6
MSFlexGrid1.Text = rst(5)

i=i+1
rst.MoveNext
MSFlexGrid1.Rows = i + 1
If rst.EOF = True Then
rst.Close
Exit Do
End If
Loop
End Sub
Private Sub Form_Load()
conn
End Sub

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 59


Airline Reservation System

CHAPTER 7
SCREEN SHOT

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 60


Airline Reservation System

2.1 SCREEN SHOT


In computer systems, a screen shots is the state of a system at a particular point in
time. The term was coined as an analogy to that in photography. It can refer to an actual copy
of the state of a system of to a capability provided by certain systems.

WELCOME FORM:

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 61


Airline Reservation System

LOGIN FORM:

NEW USER

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 62


Airline Reservation System

BOOKING FORM:

SEAT FORM:

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 63


Airline Reservation System

TICKET FORM:

FLIGHT DETAILS:

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 64


Airline Reservation System

FLIGHT SCHEDULING:

RESERVATION DETAILS:

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 65


Airline Reservation System

Career with AIIS Airlines:

Career Details Form:

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 66


Airline Reservation System

CHAPTER 8
TESTING

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 67


Airline Reservation System

2.TESTING
1.10 Introduction
Testing:
Testing is the process of validation of evaluation a software item to detect difference
between given input & expected output. Also to access the feature of a software item. Testing
assesses the quality of the product. Software testing is a process that should be done during
the development process. In other words software testing is a verification & validation
process.

Types of Testing:
There are many types of testing:
 Unit Testing.
 Integration Testing.
 Functional Testing.
 System Testing.
 Stress Testing.
 Performance Testing.
 Usability Testing.
 Acceptance Testing.
 Regression Testing.
 Beta Testing.

Unit Testing:
Unit testing is the testing of an individual unit or group of related units. It falls under
the class of white box testing. It is often done by the programmer to test that the unit he/she
has implemented is producing expected output against given input.

Integration Testing:
Integration testing is a testing in which a group of components are combined to produce
output. Also, the interaction between software & hardware is tested in integration testing if
software & hardware components have any relation. It may fall under both white box & black
box testing.

Functional Testing:
Functional testing is the testing to ensure that the specified functionality required in the
system requirements works. It falls under the class of black box testing.

System Testing:
System testing is the testing to ensure that by putting the software in different
environments (e.g. operating Systems) it still works. System testing is done with full system
implementations & environment. It falls under the class of black box testing.

Stress Testing:
Stress testing is the testing to evaluate how the system behaves under unfavourable
conditions. Testing is conducted at beyond limits of the specifications. It falls under the class
of black box testing.

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 68


Airline Reservation System

Performance Testing:
Performance testing is the testing to assess the speed & effectiveness of the system & to
make sure it is generating results within a specified time as in performance requirements. It
falls under the class of black box testing.

Usability Testing:
Usability testing is performed to the perspective of the client, to evaluate how the GUI is
use-friendly. How easily can the client learn? After learning how to use, how proficiently can
the client perform? How pleasing is it to use its design? This falls under the class of black
box testing.

Acceptance Testing:
Acceptance testing is often done by the customer to ensure that the delivered product
meets the requirements & works as the customer expected. It falls under the class of black
box testing.

Regression Testing:
Regression testing is the testing after modification of a system, component, or a group
of related units to ensure that the modification is working correctly & is not damaging or
imposing other modules to produce unexpected results. It falls under the class of black box
testing.

Beta Testing:
Beta testing is the testing which is done by end users, a team outside development, or
publicly releasing full pre-version of the product which is known as beta version. The aim of
beta testing is to cover unexpected errors. It falls under the class of black box testing.

1.11 Black Box Testing:

Black Box testing, also known as Behavioral Testing, is a software testing method in
which the internal structure/design/implementations of the item being tested is not known to
the tester. These tests can be functional or non-functional, through usually functional.

This method is named so because the software program, in the eyes of the tester, is like a
black box, inside which one cannot see.

Black box testing is contrasted with white box testing. View differences between black box &
white box testing.
 Incorrect or missing functions.
 Interfaces errors.
 Errors in data structures or external database access.
 Behaviour or performance errors.
 Initialization & termination errors.

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 69


Airline Reservation System

Advantages:
 Tests are done from user’s point of view & will help in exposing discrepancies in the
specifications.
 Tester need not know programming languages or how the software has been
implemented.
 Tests can be conducted by a body independent from the developers, allowing for an
objective perspective & the avoidance of developer-bias.
 Test cases can be designed as soon as the specifications are complete.

Disadvantages:
 Only a small number of possible inputs can be tested & many program paths will be left
untested.
 Without a clear specification which is the situation in many projects, test cases will be
difficult to design.
 Tests can be redundant if the software designer/developer has already run a test case.
 Ever wondered why a soothsayer closes the eyes when foretelling events? So is almost
the case in Black box testing?

1.12 White Box Testing:

White Box Testing also known as clear box testing, open box testing, is a software
testing method in which the internal structure/design/implementation of the item being tested
is known as to the tester. The tester chooses inputs to exercise paths through the code &
determines the appropriate outputs. Programming know how & the implementation
knowledge is essential. White box testing is testing beyond the user interfaces & into the
nitty-gritty of a system/
The method is named so because the software program, in the eyes of the tester, is
like a white/transparent box, inside which one clearly sees.

Advantages:
 Testing can be commenced at an earlier stage. One need not wait for the GUI to be
available.
 Testing is more through, with the possibility of covering most paths.

Disadvantages:
 Since tests can be very complex, highly skilled resources are required, with through
knowledge of programming & implementation.
 Test script maintenance can be a burden if the implementation changes too frequently.
 Since this method of testing it closely tied with the application being testing, tools to cater
to every kind of implementation/platform may not be readily available.
 It is like the work of a mechanic who examines the engine to see why the car is not
moving.

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 70


Airline Reservation System

8.4 Testing Strategies:

A test strategy is a high level document & normally developed by project manager.
This document defines “Software Testing Approach” to achieve testing objectives. The test
strategy is a static document meaning that it is not updated too often. It sets the standards for
testing processes & activities & other documents such as the test plan draws its contents from
those standards set in the test strategy document.

A test strategy will typically cover the following aspects:


 Definition of test objectives.
 Strategy to meet the specified objective.
 Overall testing approach.
 Test environment & etc.

A Block Diagram of Test Strategy is shown below:

Testing infrastructure Test Requirements


Source Control Performance Security
f f

Application
Quality of Software Review Strategy
Process/ Walks-thru
f
Test f
Strategy

Risks Resources
Impact of Failure Skill-Level

f f

Testing Tools Test Objectives


Automation Tools Usability/ Functionality

f f

Test Strategy:
A test strategy is a high level document & normally developed by project manager.
This document defines “Software Testing Approach” to achieve testing objectives. The test
strategy is a static document meaning that it is not updated too often. It sets the standards for
testing processes & activities & other documents such as the test plan draws its contents from
those standards set in the test strategy document.

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 71


Airline Reservation System

Some companies include the “Test Approach” or “Strategy” inside the test plan,
which is fine & it is usually the case for small projects. However, for larger projects, there is
one test strategy document & different number of test plan for each phase or level of testing.

Components of the Test Strategy document:


 Scope & Objectives.
 Business issues.
 Roles & responsibilities.
 Communication & status reporting.
 Test deliverability.
 Industry standards to follow.
 Test automation & tools.
 Testing measurements & metrics.
 Risks & mitigation.
 Defect reporting & tracking.
 Change & configuration management.
 Training plan.

8.4.1 Unit Testing:

Unit testing is a level of the software testing process where individual


units/components of a software/system are tested. The purpose is to validate that each unit of
the software performs as designed.
A unit is the smallest testable part of software. It usually has one or a few inputs &
usually a single output. In procedural programming a unit may be an individual program,
function, procedure, etc. in object oriented programming, the smallest unit is a method, which
may belong to a base/ super class, abstract class or derived/ child class. Unit testing
frameworks, drivers, stubs & mock or fake objects are used to assist in unit testing.

Method:
Unit testing is performed by using the white box testing method.

When is it performed?
Unit testing is the first level of testing & is performed prior to integration testing.

Who performs it?


Unit testing is normally performed by software developers themselves or their peers.
In rare cases it may also be performed by independent software testers.
Tasks:
 Unit test plan
 Prepare
 Review
 Rework

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 72


Airline Reservation System

8.4.2 Integration Testing:


Integration testing is a level of the software testing process where individual units are
combined & tested as a group.
The purpose of this level of testing is to expose faults in the interaction between
integrated units.
Test drivers & test stubs are used to assist in integration testing.
Tasks:
 Integration Test plan
 Prepare
 Review
 Rework
 Baseline

 Integration test cases/ scripts


 Prepare
 Review
 Rework
 Baseline

 Integration test
 perform

8.4.3 Validation Testing:


 Determining if the system complies with the requirements & performs functions for
which it is intended & meet the organization’s goals & user needs.
 Validation is done at the end of the development process and takes place after
verification are completed.
 It answers the question like: AM I BUILDING THE RIGHT PRODUCT?
 Am I accessing the right data (in terms of the data required to satisfy the
requirements).
 It is a high level activity.
 Performed after a work product is produced against established criteria ensuring that
the product integrates correctly into the environment.
 Determination of correctness of the final software product by a development project
with respect to the user needs & requirements.

Verification

Needs & Specification Process Product


expectation of
Customer
Validation

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 73


Airline Reservation System

According to the capability maturity model (CMMI-SW v1.1) we can also define
validation as the process of evaluating software during or at the end development process to
determine whether it satisfies specified requirements.
A product can pass while verification, as it is done on the paper & no running or
functional application is required. But, when same points which were verified on the paper is
actually developed then the running application or product can fail while validation. This may
happen because when a product or application is built as per the specification but these
specifications is not up to the mark hence they fail to address the user requirements.

Advantages of Validation:
 During verification if some defects are missed then during validation process it can be
caught as failure.
 If during verification some specification is misunderstood and development had happen
then during validation process while executing that functionality the difference between
the actual result and expected result can be understood.
 Validation is done during testing like feature testing, integration testing, system testing,
load testing, compatibility testing, stress testing, etc.
 Validation helps in building the right product as per the customer’s requirements and
helps in satisfying their needs.

Validation is basically done by the testers during the testing. While validating the product if
some deviation is found in the actual result from the expected result then a bug is reported or
an incident is raised. Not all incidents are bugs. But all bugs are incidents. Incidents can also
be of type ‘Question’ where the functionality is not clear to the tester.
Hence, validation helps in unfolding the exact functionality of the features and helps
the testers to understand the product in much better way. It helps in making the product more
users friendly.

8.5 Test Cases:

A test case, in software engineering, is a set of conditio0ns or variables under which a


tester will determine whether an application, software system or one of its features is working
as it was originally established for it to do. The mechanism for determining whether a
software program or system has passed or failed such a test is known as test oracle.

In some settings, an oracle could be a requirement or use case, while in others it could
be a heuristic. It may take many test cases it determine that a software program or is
considered sufficiently scrutinized to be released. Test cases are often referred to as test
scripts, particularly when written when they are usually collected into test suite.

8.5.1 User Login:


Test Case Check Test case Step to Test Data Excepted Actual
Number Item objective Execute Result Result
1. Login Page Leave all Click ------------ Prompt Yes
fields Submit error
empty message
2. User Page Enter Click 12234 Prompt Yes
invalid Login Admin error
username message

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 74


Airline Reservation System

3. Username Enter valid Click User Prompt Yes


username Submit 123456 login
& Successful
password
4. Login Page Leave all Click ------------- Message No
fields submit “Enter all
details”
5. Login Page Enter a Click User Error Yes
valid Submit 0000 Message
username
& wrong
password
8.5.2 Reservation:

Test case Check Item Test Case Step to Test data Excepted Actual
Number Objectives Execute Result Result
1. Reservation Leave all Click book ------------- Message Yes
fields “Enter all
fields”
2. Gender Leave all Click book ------------- Message No
fields “Select
Gender”
3. Mobile Enter text Click book Abcd Message Yes
Number in the text “Text not
box allowed”
4. Departure Leave all Click book ------------- Message yes
Fields “Select
Departure
Place”
5. Arrival Leave all Click book ------------- Message Yes
Place Fields “Select
arrival
place”
6. Date Leave the Click book ------------- Message Yes
field “Select the
date”

8.5.5 Cancellation:

Test case Check item Test case Step to Test data Excepted Actual
Number objectives execute result result
1. PNR Leave all Click ok --------- Enter PNR No
Fields number
2. PNR Enter the Click ok P0003 Show Yes
PNR no. cancellation
form
3. PNR Enter a Click ok P000 Error No
wrong message
PNR no. “Enter a

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 75


Airline Reservation System

Valid
PNR”
4. Exit Click on Click Exit Show mdi Yes
exit form
button

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 76


Airline Reservation System

CHAPTER 9
CONCLUSION

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 77


Airline Reservation System

2. CONCLUSION
The Airline reservation system has been a way of minimizing the clerical work, which is
almost a routine and consumes the most precious time. This AIRLINE RESERVATION
SYSTEM has been an attempt to help the user to minimize his workload along with
minimizing the paper works and saving of time.

The system has been developed in a way to make it very user friendly. Any person having a
little bit of window based can run this system without any pain. Almost all the difficulties of
manual reservation have been removed by this system.

The project entitled “AIRLINE RESERVATION SYSTEM” was completed on time with
total satisfaction after testing with possible sample data. The performance was found to be
efficient and error free. This is a user friendly packaged application which is very easy to
access and understand. Anyone with the knowledge of computer will find it very easy to use
this software and perform various operations in it.

The main aim of making this software is to make the flight reservation easy fast and efficient.
A conscious effort has been made to develop a software packages, making use of available
tools, techniques and resources that would generate a proper system.

An eye has been kept on making it as user friendly and as flexible as possible. Therefore, one
may hope that the system will be acceptable to any user and will adequately meet his/her
needs. There have been limitations and short comings in the system development as well such
as time constraints and limited exposure towards the respected field, and hence the project is
still under modification.

In this project, first an attempt has been conducted to find the need of the system. To fulfill
the needs, a detailed study had been conducted to find the various requirements of the system.
This particular system has been designed in an attractive manner so that even a user with
minimum knowledge can be able to operate the system easily.

This software combines the best of the world’s i.e. programming language VISUAL BASICS
6.0 and database ORACLE 10G providing easy accessibility and security. It was developed
to benefit the organizations and the customers. Finally the system was tested with real data
and everything worked successfully. Thus the system has fulfilled all the objectives identified
and is able to replace the existing system.

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 78


Airline Reservation System

Chapter 10
Future Enhancement

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 79


Airline Reservation System

10.Future Enhancement

Having mentioned the efforts and limitations on the development of the system for the
project there could be future enhancement in such a way that more miscellaneous types of
customers would be accommodated for flight reservation. Reservation and returning routes
should be considered for customers that could be laid out in vast manner. Remark
information can be added for the customer to add more details on what he/she has imposed.

Our “AIRLINE RESERVATION SYSTEM” project has only one source place which
is a major drawback of our company and it is restricted to only domestic flights i.e. the
passengers can only book ticket for only within India so in future our “ARS” will have many
different sources and even passenger can book ticket for international destinations. Our
system is standalone system which means it runs only on one computer so in future our
software will be developed in such a way that it can be run on many computers and even in
net like online reservation of ticketing.

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 80


Airline Reservation System

Chapter 11
Bibliography

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 81


Airline Reservation System

11. BIBLIOGRAPHY

A bibliography is a list of the sources we used to get information for our project. It is
included at the end of our report, on the last page.

Books Referred:

 Visual Basics Programming


 Database management System

Web Links:

 http://www.trawex.com/flight-booking-engine.php
 http://www.intelisyaviation .com/am liars-airline-reservation-system/
 http://www.academia.edu/487385/Airline Reservation Systems
 http://www.codeproject.com/Tips/351122/software-testing

AL_AMEEN INSTITUTION OF INFORMATION SCIENCES Page 82

Das könnte Ihnen auch gefallen