Anda di halaman 1dari 112

AIRLINE RESERVATION SYSTEM

AIRLINE RESERVATION SYSTEM

AIRLINE
RESERVATION
SYSTEM

AIRLINE RESERVATION SYSTEM

Computer Department
CERTIFICATE
This

is

to

certify

that

the

project

work

_______________________________________

is

is

satisfactorily

work

carried

done

by

out

on

__________

______________ in partial fulfillment of the requirement for the award of the degree of
bachelor of computer applications during the academic year 2009-2010.
I appreciate their hard work, honesty and discipline during the training for concerned
project in our organization. The project work was carried out under our supervision and
guidance. This project report or a similar report on the topic has not been submitted for
any other examination and does not form a part of any other course undergone by the
candidate.

__________________

___________________

Mr. Snehal Joshi


Head of Department

Dr. Pankaj Desai


Director
__________________
Project Internal Guide

Project Certified
At T.Y.B.C.A Examination
Examiners: 1. ________________

Date : _____________

AIRLINE RESERVATION SYSTEM


SR.NO

TOPICS

PAGE NO.

1.

PROJECT TITLE

2.

COLLAGE CERTIFICATE

PROJECT REPORT

JOINING LETTER

PROJECT COMPLITION CERTIFICATE

ACKNOWLEDGEMENT

COMPANY PROFILE

PROJECT GOAL STATEMENT

10

8.1

HARDWARE/SOFTWARE CONFIGURATION

11

8.2

OPERATING SYSTEM USED

12

8.3

FRONT-END USED

14

8.4

BACK-END USED

15

8.5

SYSTEM ANALYSIS

16

STUDY OF CURRENT SYSTEM

17

9.1

REQUIREMENT ANALYSIS

20

9.2

SCOPE OF SYSTEM

22

10

SYSTEM DESIGN

23

10.1

ENTITY RELATIONSHIP DIAGRAM

24

10.2

DATA FLOW DIAGRAM

27

DATA-DICTIONARY

32

TABEL DESIGN

34

SCREEN SHOTS OF FORMS & CODES

39

12.2

REPORTS

89

13

TESTING

103

14

COUNCLUSION

107

15

BIBLIOGRAPHY

108

11
11.1
12

2. ________________

INDEX

AIRLINE RESERVATION SYSTEM

Project Report

As a partial requirement for the degree of


bachelor of computer application

Project
On

AIRLINE RESERVATION
SYSTEM
Submitted By:

Guidance By:

RIDDHI R NAIK.
ANKITA R PATEL.

MISS.PREMAL SHAH.

Develop For:

LOTUS-HOLYDAYS
NEAR BAI AVA BAI HIGH SCHOOL
VALSAD-396001

AIRLINE RESERVATION SYSTEM


JOINING LETTER

AIRLINE RESERVATION SYSTEM


COMPLITION LETTER

AIRLINE RESERVATION SYSTEM

ACKNOWLEDGEMENT
We are the student of T.Y.B.C.A. in DUIAS & DSIM&C
Valsad. We feel great Pleasure this project at this stage,
which is outcome of us and others who have helped
throughout the project. We hope you will acknowledge
this project.
We are extremely grateful to collage unit for allowing us to
do this project and the excellent infrastructural facilities
made available.
We are sincerely thankful to the manager and officers of
the unit for providing us necessary information about the
required project which we have incorporated in this
project.
We thank each and everybody related directly or
indirectly with the completion of the project without
immense support and advice it was not possible for us to
undertake the project entitled AIRLINE RESERCATION
SYSTEM.

THANKING SINCERELY,

NAIK RIDDHI R
PATEL ANKITA R
8

AIRLINE RESERVATION SYSTEM

COMPANY PROFILE
The main work of airline reservation system is booking
tickets,easily payment,view allcustomers reports and
viewall flight details.

COMPANY NAME:
LOTUS HOLIDAYS
Near bai ava bai high school,
valsad-396001.

COMPANY OWNER:
MR.KEYUR SHAH.

AIRLINE RESERVATION SYSTEM

PROJECT GOAL STATEMENT:


Our project goal is ticket reservation of airline more
convenient,less time consuming and more user friendly.

10

AIRLINE RESERVATION SYSTEM

HARDWARE / SOFTWARE
CONFIGRATION:-

H/W SPECIFICATION:PROCESSOR :-Intel Pentium 4


HDD

:-80GB

RAM

:-1GB

S/W SPECIFICATION:FRONT END:-MICROSOFT VISUAL STUDIO.NET 2005


BACK END :-MICROSOFT ACCEESS 2007
OPERATING SYSTEM:-WINDOW XP
DOCUMENTATION:-MICROSOFT WORD 2007

11

AIRLINE RESERVATION SYSTEM

OPERATING SYSTEM
VISUAL BASIC.NET 2005
MICROSOFT ACCESS

OPERATING SYSTEM

The Operating System (OS) is a collection of programming


that controls all the hardware and other resources in the
computer system.

It is the Operating System that controls and operates the


CPU, Memory, Various I/O devices such as keyboard,
12

AIRLINE RESERVATION SYSTEM

Mouse, Printer, Scanner etc. It is responsible for the


smooth and efficient operation of computer.
Windows XP professional integrates the strengths of
windows 2000 professional,such as standards-based
security,manageability and reliability with the best
business features of windows 98 and windows millennium
edition,such as plug and play,simplified user interface and
innovative support services.
This communication creats the best desktop operating
system for business.

13

AIRLINE RESERVATION SYSTEM

FRONT END
VISUAL BASIC.NET 2005
Visual Basic .NET 2005
Visual Basic .NET 2005 provides the easiest, most
productive language and tool for rapidly building
Windows and Web applications. Visual Basic .NET 2005
comes with enhanced visual designers, increased
application performance, and a powerful integrated
development environment (IDE). It also supports creation
of applications for wireless, Internet-enabled hand-held
devices.

14

AIRLINE RESERVATION SYSTEM

BACK END
MICROSOFT ACCESS
Microsoft Access is a relational database management
system from Microsoft, packaged with Microsoft Office
Professional which combines the relational Microsoft Jet
Database Engine with a graphical user interface. It can use
data stored in Access/Jet, SQL Server, Oracle, or any
ODBC-compliant data container. Skilled software
developers and data architects use it to develop powerful,
complex application software. Relatively unskilled
programmers and non-programmer "power users" can use
it to build simple applications without having to deal with
features they don't understand. It supports substantial
object-oriented (OO) techniques but falls short of being a
fully OO development tool.

15

AIRLINE RESERVATION SYSTEM

System analysis
PROJECT SCOPE:Our scope is related to maintaining details of Airline
reservation records and Addition, Updating & Deletion
of those records,flight details,booking details,customer
details, payment details.

OBJECTIVES:To manage & maintain all the details of Airline for daily
booking of new customer.

BENEFITS :Information stored in a database is in structured format so


retrieval is easy & fast. Secured accessibility. Reduce data
redundancy. save paper work.
16

AIRLINE RESERVATION SYSTEM

STUDY OF CURRENT SYSTEM:

In each and every system there is a particular system


component through the system is running till now. The
existing system can be any type, they can keep in either
maintain in traditional manual system or can be
maintained using computerized system. But after some
time there is need of implementation to make our
organization work in more advanced way and can
completed with the existing system of others.

17

AIRLINE RESERVATION SYSTEM

Drawback of Existing System


Each and every system has certain drawback that leads
them in to the improper working or not so powerful.
Following are some drawbacks of manual system that are
observed and forced me to design new system.

High amount of work


Employees do paper work. And then he/she
does paper work essentially in their required
position.
Time consuming
Employee has to do lots of paper work. so it
is wasting of time for both manager and
customers.
Problem in creating the report

18

AIRLINE RESERVATION SYSTEM

In company it is necessary to prepare report.


It is difficult to prepare on paper because it
is required the all data that is on paper. So

the report generation process is very lengthy.

Much expansive
All above activities is much more expensive
in paper work.

19

AIRLINE RESERVATION SYSTEM

REQUIREMENT ANALYSIS:
AIRLINE DETAILS: This module is use to view the

airline details like airline code,airline name,city,phone no.

CUSTOMER DETAILS: This module is use to view the


customers details like customer id,customer
name,city,address,state,country, email-id.

FLIGHT DETAILS: This module is use to view the

information about flights like flightcode,airline code,flight


name,flight from where and to,departuretime,arrival
time,number of seats in this flight.

BOOKING DETAILS: This module is use to view the


information about booking like booking date,flight
no.,seats no,customer name,etc.

20

AIRLINE RESERVATION SYSTEM

PAYMENT DETAILS:This module is use to viewthe


information about payment like cash payment,cheque
payment or by creditcard.

21

AIRLINE RESERVATION SYSTEM

SCOPE OF SYSTEM
User friendly interface.
Time saving.
Save paper work.
Connecting to database so we use different type of
queries.
Datas are easily approchable.

22

AIRLINE RESERVATION SYSTEM

SYSTEM DESIGN
E-R DIAGRAM
DATAFLOW DIAGRAM
DATA DICTIONARY

23

AIRLINE RESERVATION SYSTEM

E-R DIAGRAM
In Entity relationship diagram relationship
between entities can be represented using symbols. It
represents over all logical structure of the database. Set
of primary components of ER-diagram is:
1. Data objects
2. Attributes
3. Relationship
4. Various type indication.
The symbol and the notation used in ER-diagram are as
follows:

24

AIRLINE RESERVATION SYSTEM

Rectangles:

It represents entity sets.

Ellipses:

It represents attributes.

Diamonds:

It represents entity relationship among the entity sets.

Line:

Line links between entity sets and their relationship.

25

AIRLINE RESERVATION SYSTEM

E- R DIAGRAM
M_PHONE
NO.

M_NAME

MANAGEMENT
M_ADD

M_ID

RECEIVE
INFO.

C_NAME

C_ID

CUSTOMER
C_ADD

C_PHONE
NO

26

AIRLINE RESERVATION SYSTEM

DATA - FLOW DIAGRAM


A graphical representation that depicts information flow
and on the transformations that are applied as data moves
from input to O/P is known as DFD. The DFD is also
known as bubble chart. The DFD represents the entire
S/W elements as a single bubble. DFD describes what
data flow rather than how they are processed. So, it does
not depend on hardware, software data structure or file
organization. As the level DFD is partitioned additional
process are brought out of level more details.
NOTATIONS USED IN THE DFD

It represents external entity such as hardware,


a person, another program etc., source and destination of system data.

It represents a process that transforms incoming data to outgoing data.

27

AIRLINE RESERVATION SYSTEM

It represents a data-item or collection of Data-item.The arrow indicates direction of


Data-flow.

It represents data storage

28

AIRLINE RESERVATION SYSTEM

DATA FLOW DAIGRAM


LEVEL - 0

29

AIRLINE RESERVATION SYSTEM

30

AIRLINE RESERVATION SYSTEM

31

AIRLINE RESERVATION SYSTEM

FIRST LEVEL

32

AIRLINE RESERVATION SYSTEM

SECOND LEVEL FOR 5.0

33

AIRLINE RESERVATION SYSTEM

DATA-DICTIONARY
DATA DICTIONARY
A data dictionary is a catalogue a repository of the
element system. As name suggest the elements center
around data and they are structured to meet user
requirements and organization needs. Thus, data
34

AIRLINE RESERVATION SYSTEM

dictionary gives on the details and description of data


flows, process and stores used in DFD.

IMPORTANCE OF DATA DICITIONARY


1. Manage the detail large system.
2. To communicate a common meaning for all
element.
3. To documentation the features of a system.

4. To facilitate analysis of the details in order to


evaluate characteristics and determine where
system changes should be made.
5. To locate error and omission in system.

35

AIRLINE RESERVATION SYSTEM

TABEL DESIGN

1.
FIELD
AIRLINE_CD
AIRLINE_NO
ADD 1
ADD 2
CITY
PINCODE
PHONE_NO

AIRLINE DETAILS TABLE


DATA TYPE
NUMBER
NUMBER
TEXT
TEXT
TEXT
NUMBER
NUMBER

SIZE
10
10
50
50
40
10
20

CONSTRAINTS
PK

36

DISCRIPTION
AIRLINE CODE
AIRLINE NO.
ADDRESS 1
ADDRESS 2
CITY
PINCODE NO.
PHONE NO.

AIRLINE RESERVATION SYSTEM


CONTACCT_PERSON

NUMBER

20

CONTACT PERSON NO.

37

AIRLINE RESERVATION SYSTEM

2 CUSTOMER DETAILS TABLE


FIELD
CUST_ID
CUST_NAME
CUST_ADD
CUST_CITY
CUST_PIN
CUST_STATE
CUST_COUNTRY
CUST_PHONE
CUST_EMAIL

DATA TYPE
NUMBER/TEXT
TEXT
TEXT
TEXT
NUMBER
TEXT
TEXT
NUMBER
TEXT

SIZE
20
40
50
40
10
30
20
20
25

CONSTRAINTS
PK

38

DISCRIPTION
CUST_ID/NO.
CUST_NAME
CUST_ADDRESS
CUST_CITY
PINCODE_NO.
CUST_STATE
CUST_COUNTRY
CUST_PHONE
CUSTEMAIL_ID

AIRLINE RESERVATION SYSTEM

3 FLIGHT DETAIL TABLE


FIELD
FLIGHT_CD
AIRLINE_CD
FLIGHT_NO
FLIGHT_NAME
FROM
TO
DEPARTURE_TIME
ARRIVAL_TIME
AMOUNT
TOTAL SEATS

DATA TYPE
NUMBER
NUMBER
NUMBER
TEXT
TEXT
TEXT
DATE/TIME
DATE/TIME
NUMBER
NUMBER

SIZE
10
10
10
40
40
40
8
8
8
3

CONSTRAINTS
PK
FK

39

DISCRIPTION
FLIGHT_CODE
AIRLINE_CODE
FLIGHT_NO
FLIGHT_NAME
FLIGHT FROM
FLIGHT TO
DEPARTURE TIME
ARRIVAL TIME
AMOUNT
TOTAL SEATS

AIRLINE RESERVATION SYSTEM

4 BOOKING DETAIL TABLE


FIELD
B_ID
B_DATE
C_ID
C_NAME
FLIGHT_CD
FLIGHT_NO
AMOUNT
STATUS
SEAT_NO

DATA TYPE
NUMBER/TEXT
DATE/TIME
NUMBER/TEXT
TEXT
NUMBER
NUMBER
NUMBER
TEXT
NUMBER

SIZE
20
8
20
40
10
10
8
3
3

CONSTRAINTS
PK
FK
FK

40

DISCRIPTION
BOOKING ID/NO
BOOKING DATE
CUST_ID
CUST_NAME
FLIGHT CODE
FLIGHT_NO
AMOUNT
STATUS
SEAT_NO

AIRLINE RESERVATION SYSTEM

5 PAYMENT DETAIL TABLE


FIELD
B_ID
C_ID
FLIGHT_NO
AMOUNT
PAYMENT BY CASH
PAYMENT BY CHEQUE
AMOUNT
CHEQUE NO
CHEQUE DATE
CREDIT CARD
CARD TYPE

DATA TYPE
NUMBER/TEXT
NUMBER/TEXT
NUMBER
NUMBER
NUMBER
NUMBER
NUMBER
NUMBER
DATE/TIME
NUMBER
TEXT

SIZE
20
20
10
8
8
8
8
8
8
10
2

41

CONSTRAINTS
PK
FK
FK

DISCRIPTION
BOOKING ID/NO
CUST_ID/NO
FLIGHT NUMBER
AMOUNT
CASH PAYMENT
CHEQUE PAYMENT
AMOUNT
CHEQUE NUMBER
DATE OF CHEQUE
CREDIT CARD NO
CARD TYPE

AIRLINE RESERVATION SYSTEM

SCREEN SHORTS OF ALL


FORMS AND ITS CODDING

42

AIRLINE RESERVATION SYSTEM

MAIN FORM

43

AIRLINE RESERVATION SYSTEM

Public Class frmmain


Private Sub AirlinesDetailsEntryToolStripMenuItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
AirlinesDetailsEntryToolStripMenuItem.Click
frmairline.ShowDialog()
End Sub
Private Sub FlightEntryToolStripMenuItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
FlightEntryToolStripMenuItem.Click
FLIGHT.ShowDialog()
End Sub
Private Sub CustometEntryToolStripMenuItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
CustometEntryToolStripMenuItem.Click
CUSTOMER.ShowDialog()
End Sub
Private Sub BookingEntryToolStripMenuItem_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
BookingEntryToolStripMenuItem.Click
FRMBOOK.ShowDialog()
End Sub
Private Sub PaymentToolStripMenuItem_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles PaymentToolStripMenuItem.Click
FRMPAY.ShowDialog()
End Sub
Private Sub AirlineToolStripMenuItem_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles AirlineToolStripMenuItem.Click
mitm = 1
tb = "airline_details"
frmsearch.Show()
End Sub
Private Sub FlightToolStripMenuItem_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles FlightToolStripMenuItem.Click
mitm = 2
tb = "flight_details"
frmsearch.Show()
End Sub

44

AIRLINE RESERVATION SYSTEM


Private Sub CustomerToolStripMenuItem_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles CustomerToolStripMenuItem.Click
mitm = 3
tb = "customer_details"
frmsearch.Show()
End Sub
Private Sub BookingToolStripMenuItem_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles BookingToolStripMenuItem.Click
mitm = 4
tb = "BOOK_DETAILS"
frmsearch.Show()
End Sub
Private Sub PaymentToolStripMenuItem1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles PaymentToolStripMenuItem1.Click
mitm = 5
tb = "PAYMENT"
frmsearch.ShowDialog()
End Sub

45

AIRLINE RESERVATION SYSTEM

AIRLINES
DETAILS

46

AIRLINE RESERVATION SYSTEM


Imports System.Data.OleDb
Imports System.Data
Public Class frmairline
Dim ad As New OleDbDataAdapter("select * from airline_details", cn)
Dim ds As New DataSet
Dim cnt As Integer
Private Sub frmairline_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
conndb()
cnt = 0
ds.Clear()
ad.Fill(ds, "airline_details")
DG.DataSource = ds.Tables("airline_details")
BTN_ADD.Enabled = True
BTN_EDIT.Enabled = True
BTN_DEL.Enabled = True
BTN_FIRST.Enabled = True
BTN_PRV.Enabled = True
BTN_NEXT.Enabled = True
BTN_LAST.Enabled = True
BTN_CLR.Enabled = False
BTN_SAVE.Enabled = False
End Sub
Public Sub cleartxt()
TXT_ACD.Text = ""
TXT_ANm.Text = ""
TXT_ADD1.Text = ""
TXT_ADD2.Text = ""
TXT_CITY.Text = ""
TXT_PIN.Text = ""
TXT_PHONE.Text = ""
TXT_CON_PER.Text = ""
End Sub
Private Sub BTN_ADD_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_ADD.Click
cleartxt()
BTN_ADD.Enabled = False
BTN_EDIT.Enabled = False
BTN_DEL.Enabled = False
BTN_FIRST.Enabled = False
BTN_PRV.Enabled = False
BTN_NEXT.Enabled = False
BTN_LAST.Enabled = False
BTN_CLR.Enabled = True
BTN_SAVE.Enabled = True
'auto numbnber
Dim adf As New OleDbDataAdapter("select max(airline_cd) from
airline_details", cn)
Dim dsf As New DataSet
dsf.Clear()

47

AIRLINE RESERVATION SYSTEM


adf.Fill(dsf, "airline_details")
Dim n
If dsf.Tables("airline_details").Rows.Count <= 0 Then
n = 1
Else
If IsDBNull(dsf.Tables("airline_details").Rows(0).Item(0)) Then
n = 1
Else
n = dsf.Tables("airline_details").Rows(0).Item(0)
n = n + 1
End If
End If
TXT_ACD.Text = n
BTN_SAVE.Text = "SAVE"
End Sub
Private Sub BTN_SAVE_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_SAVE.Click
Dim sql As String
Dim cmd As New OleDbCommand
cmd.Connection = cn
cmd.CommandType = CommandType.Text
If BTN_SAVE.Text = "SAVE" Then
sql = "INSERT INTO AIRLINE_DETAILS VALUES(" _
& TXT_ACD.Text & ",'" _
& TXT_ANm.Text & "','" _
& TXT_ADD1.Text & "','" _
& TXT_ADD2.Text & "','" _
& TXT_CITY.Text & "'," _
& TXT_PIN.Text & "," _
& TXT_PHONE.Text & ",'" _
& TXT_CON_PER.Text & "')"
Else
sql = "UPDATE AIRLINE_DETAILS SET airline_name='" _
& TXT_ANm.Text & "',a_add1='" _
& TXT_ADD1.Text & "',a_add2='" _
& TXT_ADD2.Text & "',City='" _
& TXT_CITY.Text & "',pincode=" _
& TXT_PIN.Text & ",phone=" _
& TXT_PHONE.Text & ",Contacct_per='" _
& TXT_CON_PER.Text & "' WHERE airline_cd=" & TXT_ACD.Text
End If
cmd.CommandText = sql
cmd.ExecuteNonQuery()
ds.Clear()
ad.Fill(ds, "airline_details")
DG.DataSource = ds.Tables("airline_details")
cleartxt()
BTN_ADD.Enabled = True
BTN_EDIT.Enabled = True
BTN_DEL.Enabled = True
BTN_FIRST.Enabled = True
BTN_PRV.Enabled = True
BTN_NEXT.Enabled = True
BTN_LAST.Enabled = True

48

AIRLINE RESERVATION SYSTEM


BTN_CLR.Enabled = False
BTN_SAVE.Enabled = False
End Sub
Private Sub BTN_EDIT_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_EDIT.Click
If TXT_ACD.Text = "" Then
MsgBox("SELECT RECORD FROM LIST")
Else
BTN_ADD.Enabled = False
BTN_EDIT.Enabled = False
BTN_DEL.Enabled = False
BTN_FIRST.Enabled = False
BTN_PRV.Enabled = False
BTN_NEXT.Enabled = False
BTN_LAST.Enabled = False
BTN_CLR.Enabled = True
BTN_SAVE.Enabled = True
BTN_SAVE.Text = "UPDATE"
End If
End Sub
Private Sub BTN_FIRST_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_FIRST.Click
cnt = 0
TXT_ACD.Text = ds.Tables("airline_details").Rows(cnt).Item(0)
TXT_ANm.Text = ds.Tables("airline_details").Rows(cnt).Item(1)
TXT_ADD1.Text = ds.Tables("airline_details").Rows(cnt).Item(2)
TXT_ADD2.Text = ds.Tables("airline_details").Rows(cnt).Item(3)
TXT_CITY.Text = ds.Tables("airline_details").Rows(cnt).Item(4)
TXT_PIN.Text = ds.Tables("airline_details").Rows(cnt).Item(5)
TXT_PHONE.Text = ds.Tables("airline_details").Rows(cnt).Item(6)
TXT_CON_PER.Text = ds.Tables("airline_details").Rows(cnt).Item(7)
End Sub
Private Sub BTN_PRV_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_PRV.Click
cnt = cnt - 1
If cnt = -1 Then
cnt = 0
End If
TXT_ACD.Text = ds.Tables("airline_details").Rows(cnt).Item(0)
TXT_ANm.Text = ds.Tables("airline_details").Rows(cnt).Item(1)
TXT_ADD1.Text = ds.Tables("airline_details").Rows(cnt).Item(2)
TXT_ADD2.Text = ds.Tables("airline_details").Rows(cnt).Item(3)
TXT_CITY.Text = ds.Tables("airline_details").Rows(cnt).Item(4)
TXT_PIN.Text = ds.Tables("airline_details").Rows(cnt).Item(5)
TXT_PHONE.Text = ds.Tables("airline_details").Rows(cnt).Item(6)
TXT_CON_PER.Text = ds.Tables("airline_details").Rows(cnt).Item(7)
End Sub
Private Sub BTN_NEXT_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_NEXT.Click
cnt = cnt + 1
If cnt = ds.Tables("airline_details").Rows.Count Then

49

AIRLINE RESERVATION SYSTEM


cnt = cnt - 1
End If
TXT_ACD.Text = ds.Tables("airline_details").Rows(cnt).Item(0)
TXT_ANm.Text = ds.Tables("airline_details").Rows(cnt).Item(1)
TXT_ADD1.Text = ds.Tables("airline_details").Rows(cnt).Item(2)
TXT_ADD2.Text = ds.Tables("airline_details").Rows(cnt).Item(3)
TXT_CITY.Text = ds.Tables("airline_details").Rows(cnt).Item(4)
TXT_PIN.Text = ds.Tables("airline_details").Rows(cnt).Item(5)
TXT_PHONE.Text = ds.Tables("airline_details").Rows(cnt).Item(6)
TXT_CON_PER.Text = ds.Tables("airline_details").Rows(cnt).Item(7)
End Sub
Private Sub BTN_LAST_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_LAST.Click
cnt = ds.Tables("airline_details").Rows.Count - 1
TXT_ACD.Text = ds.Tables("airline_details").Rows(cnt).Item(0)
TXT_ANm.Text = ds.Tables("airline_details").Rows(cnt).Item(1)
TXT_ADD1.Text = ds.Tables("airline_details").Rows(cnt).Item(2)
TXT_ADD2.Text = ds.Tables("airline_details").Rows(cnt).Item(3)
TXT_CITY.Text = ds.Tables("airline_details").Rows(cnt).Item(4)
TXT_PIN.Text = ds.Tables("airline_details").Rows(cnt).Item(5)
TXT_PHONE.Text = ds.Tables("airline_details").Rows(cnt).Item(6)
TXT_CON_PER.Text = ds.Tables("airline_details").Rows(cnt).Item(7)
End Sub
Private Sub BTN_DEL_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_DEL.Click
If TXT_ACD.Text = "" Then
MsgBox("SELECT RECORD FROM LIST")
Else
Dim CMD As New OleDbCommand
Dim SQL As String
SQL = "DELETE FROM AIRLINE_DETAILS WHERE airline_cd=" &
TXT_ACD.Text
CMD.Connection = cn
CMD.CommandType = CommandType.Text
CMD.CommandText = SQL
CMD.ExecuteNonQuery()
ds.Clear()
ad.Fill(ds, "airline_details")
DG.DataSource = ds.Tables("airline_details")
cleartxt()
End If
End Sub
Private Sub DG_CellContentClick(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.DataGridViewCellEventArgs) Handles DG.CellContentClick
End Sub
Private Sub DG_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Handles DG.Click
Dim R
R = DG.CurrentRow.Index
TXT_ACD.Text = DG.Item(0, R).Value

50

AIRLINE RESERVATION SYSTEM


TXT_ANm.Text = DG.Item(1, R).Value
TXT_ADD1.Text = DG.Item(2, R).Value
TXT_ADD2.Text = DG.Item(3, R).Value
TXT_CITY.Text = DG.Item(4, R).Value
TXT_PIN.Text = DG.Item(5, R).Value
TXT_PHONE.Text = DG.Item(6, R).Value
TXT_CON_PER.Text = DG.Item(7, R).Value
End Sub
Private Sub BTN_CLR_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_CLR.Click
cleartxt()
BTN_ADD.Enabled = True
BTN_EDIT.Enabled = True
BTN_DEL.Enabled = True
BTN_FIRST.Enabled = True
BTN_PRV.Enabled = True
BTN_NEXT.Enabled = True
BTN_LAST.Enabled = True
BTN_CLR.Enabled = False
BTN_SAVE.Enabled = False
End Sub
End Class

51

AIRLINE RESERVATION SYSTEM

FLIGHT
DETAILS

52

AIRLINE RESERVATION SYSTEM


Imports System.Data.OleDb
Imports System.Data
Public Class FLIGHT
Dim ad As New OleDbDataAdapter("select * from flight_details", cn)
Dim ds As New DataSet
Dim cnt As Integer
Private Sub FLIGHT_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
conndb()
cnt = 0
ds.Clear()
ad.Fill(ds, "flight_details")
DG.DataSource = ds.Tables("flight_details")
BTN_ADD.Enabled = True
BTN_EDIT.Enabled = True
BTN_DEL.Enabled = True
BTN_FIRST.Enabled = True
BTN_PRV.Enabled = True
BTN_NEXT.Enabled = True
BTN_LAST.Enabled = True
BTN_CLR.Enabled = False
BTN_SAVE.Enabled = False
'FILL COMBO
Dim ADF As New OleDbDataAdapter("SELECT * FROM AIRLINE_DETAILS", cn)
Dim DSF As New DataSet
DSF.Clear()
ADF.Fill(DSF, "AIRLINE_DETAILS")
Dim I
CMBACD.Items.Clear()
For I = 0 To DSF.Tables("AIRLINE_DETAILS").Rows.Count - 1
CMBACD.Items.Add(DSF.Tables("AIRLINE_DETAILS").Rows(I).Item(0))
Next
End Sub
Public Sub cleartxt()
TXT_FLCD.Text = ""
CMBACD.Text = ""
TXT_F_NO.Text = ""
TXT_FNAME.Text = ""
TXT_FROM.Text = ""
TXT_TO.Text = ""
TXT_DEPART.Text = ""
TXTATM.Text = ""
TXTCHR.Text = ""
TXTTSEAT.Text = ""
LBLANM.Text = ""
End Sub
Private Sub BTN_ADD_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_ADD.Click
cleartxt()
BTN_ADD.Enabled = False
BTN_EDIT.Enabled = False
BTN_DEL.Enabled = False

53

AIRLINE RESERVATION SYSTEM


BTN_FIRST.Enabled = False
BTN_PRV.Enabled = False
BTN_NEXT.Enabled = False
BTN_LAST.Enabled = False
BTN_CLR.Enabled = True
BTN_SAVE.Enabled = True
'auto numbnber
Dim adf As New OleDbDataAdapter("select max(airline_cd) from
flight_details", cn)
Dim dsf As New DataSet
dsf.Clear()
adf.Fill(dsf, "flight_details")
Dim n
If dsf.Tables("flight_details").Rows.Count <= 0 Then
n = 1
Else
If IsDBNull(dsf.Tables("flight_details").Rows(0).Item(0)) Then
n = 1
Else
n = dsf.Tables("flight_details").Rows(0).Item(0)
n = n + 1
End If
End If
TXT_FLCD.Text = n
BTN_SAVE.Text = "SAVE"
End Sub
Private Sub BTN_SAVE_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_SAVE.Click
Dim sql As String
Dim cmd As New OleDbCommand
cmd.Connection = cn
cmd.CommandType = CommandType.Text
If BTN_SAVE.Text = "SAVE" Then
sql = "INSERT INTO flight_details VALUES(" _
& TXT_FLCD.Text & "," _
& CMBACD.Text & ",'" _
& TXT_F_NO.Text & "','" _
& TXT_FNAME.Text & "','" _
& TXT_FROM.Text & "','" _
& TXT_TO.Text & "','" _
& TXT_DEPART.Text & "','" _
& TXTATM.Text & "'," _
& TXTCHR.Text & "," _
& TXTTSEAT.Text & ")"
Else
&
&
&
&

sql = "UPDATE flight_details SET airline_cd=" _


CMBACD.Text & ",FLIGHT_NO='" _
TXT_F_NO.Text & "',flight_name='" _
TXT_FNAME.Text & "',_from='" _
TXT_FROM.Text & "',_to='" _

54

AIRLINE RESERVATION SYSTEM


& TXT_TO.Text & "',depature_time='" _
& TXT_DEPART.Text & "',arival_time='" _
& TXTATM.Text & "',amount=" _
& TXTCHR.Text & ",total_seat=" _
& TXTTSEAT.Text & " WHERE flight_cd=" & TXT_FLCD.Text
End If
cmd.CommandText = sql
cmd.ExecuteNonQuery()
ds.Clear()
ad.Fill(ds, "flight_details")
DG.DataSource = ds.Tables("flight_details")
cleartxt()
BTN_ADD.Enabled = True
BTN_EDIT.Enabled = True
BTN_DEL.Enabled = True
BTN_FIRST.Enabled = True
BTN_PRV.Enabled = True
BTN_NEXT.Enabled = True
BTN_LAST.Enabled = True
BTN_CLR.Enabled = False
BTN_SAVE.Enabled = False
End Sub
Private Sub BTN_EDIT_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_EDIT.Click
If TXT_FLCD.Text = "" Then
MsgBox("SELECT RECORD FROM LIST")
Else
BTN_ADD.Enabled = False
BTN_EDIT.Enabled = False
BTN_DEL.Enabled = False
BTN_FIRST.Enabled = False
BTN_PRV.Enabled = False
BTN_NEXT.Enabled = False
BTN_LAST.Enabled = False
BTN_CLR.Enabled = True
BTN_SAVE.Enabled = True
BTN_SAVE.Text = "UPDATE"
End If
End Sub
Private Sub BTN_FIRST_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_FIRST.Click
cnt = 0
TXT_FLCD.Text = ds.Tables("flight_details").Rows(cnt).Item(0)
CMBACD.Text = ds.Tables("flight_details").Rows(cnt).Item(1)
TXT_F_NO.Text = ds.Tables("flight_details").Rows(cnt).Item(2)
TXT_FNAME.Text = ds.Tables("flight_details").Rows(cnt).Item(3)
TXT_FROM.Text = ds.Tables("flight_details").Rows(cnt).Item(4)
TXT_TO.Text = ds.Tables("flight_details").Rows(cnt).Item(5)
TXT_DEPART.Text = ds.Tables("flight_details").Rows(cnt).Item(6)
TXTATM.Text = ds.Tables("flight_details").Rows(cnt).Item(7)
TXTCHR.Text = ds.Tables("flight_details").Rows(cnt).Item(8)
TXTTSEAT.Text = ds.Tables("flight_details").Rows(cnt).Item(9)

55

AIRLINE RESERVATION SYSTEM


'LBLANM.Text = ds.Tables("flight_details").Rows(cnt).Item(10)
End Sub
Private Sub BTN_PRV_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_PRV.Click
cnt = cnt - 1
If cnt = -1 Then
cnt = 0
End If
TXT_FLCD.Text = ds.Tables("flight_details").Rows(cnt).Item(0)
CMBACD.Text = ds.Tables("flight_details").Rows(cnt).Item(1)
TXT_F_NO.Text = ds.Tables("flight_details").Rows(cnt).Item(2)
TXT_FNAME.Text = ds.Tables("flight_details").Rows(cnt).Item(3)
TXT_FROM.Text = ds.Tables("flight_details").Rows(cnt).Item(4)
TXT_TO.Text = ds.Tables("flight_details").Rows(cnt).Item(5)
TXT_DEPART.Text = ds.Tables("flight_details").Rows(cnt).Item(6)
TXTATM.Text = ds.Tables("flight_details").Rows(cnt).Item(7)
TXTCHR.Text = ds.Tables("flight_details").Rows(cnt).Item(8)
TXTTSEAT.Text = ds.Tables("flight_details").Rows(cnt).Item(9)
' LBLANM.Text = ds.Tables("flight_details").Rows(cnt).Item(10)
End Sub
Private Sub BTN_NEXT_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_NEXT.Click
cnt = cnt + 1
If cnt = ds.Tables("flight_details").Rows.Count Then
cnt = cnt - 1
End If
TXT_FLCD.Text = ds.Tables("flight_details").Rows(cnt).Item(0)
CMBACD.Text = ds.Tables("flight_details").Rows(cnt).Item(1)
TXT_F_NO.Text = ds.Tables("flight_details").Rows(cnt).Item(2)
TXT_FNAME.Text = ds.Tables("flight_details").Rows(cnt).Item(3)
TXT_FROM.Text = ds.Tables("flight_details").Rows(cnt).Item(4)
TXT_TO.Text = ds.Tables("flight_details").Rows(cnt).Item(5)
TXT_DEPART.Text = ds.Tables("flight_details").Rows(cnt).Item(6)
TXTATM.Text = ds.Tables("flight_details").Rows(cnt).Item(7)
TXTCHR.Text = ds.Tables("flight_details").Rows(cnt).Item(8)
TXTTSEAT.Text = ds.Tables("flight_details").Rows(cnt).Item(9)
'LBLANM.Text = ds.Tables("flight_details").Rows(cnt).Item(10)
End Sub
Private Sub BTN_LAST_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_LAST.Click
cnt = ds.Tables("flight_details").Rows.Count - 1
TXT_FLCD.Text = ds.Tables("flight_details").Rows(cnt).Item(0)
CMBACD.Text = ds.Tables("flight_details").Rows(cnt).Item(1)
TXT_F_NO.Text = ds.Tables("flight_details").Rows(cnt).Item(2)
TXT_FNAME.Text = ds.Tables("flight_details").Rows(cnt).Item(3)
TXT_FROM.Text = ds.Tables("flight_details").Rows(cnt).Item(4)
TXT_TO.Text = ds.Tables("flight_details").Rows(cnt).Item(5)
TXT_DEPART.Text = ds.Tables("flight_details").Rows(cnt).Item(6)
TXTATM.Text = ds.Tables("flight_details").Rows(cnt).Item(7)
TXTCHR.Text = ds.Tables("flight_details").Rows(cnt).Item(8)

56

AIRLINE RESERVATION SYSTEM


TXTTSEAT.Text = ds.Tables("flight_details").Rows(cnt).Item(9)
'LBLANM.Text = ds.Tables("flight_details").Rows(cnt).Item(10)
End Sub
Private Sub BTN_DEL_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_DEL.Click
If TXT_FLCD.Text = "" Then
MsgBox("SELECT RECORD FROM LIST")
Else
Dim CMD As New OleDbCommand
Dim SQL As String
SQL = "DELETE FROM flight_details WHERE flight_cd=" &
TXT_FLCD.Text
CMD.Connection = cn
CMD.CommandType = CommandType.Text
CMD.CommandText = SQL
CMD.ExecuteNonQuery()
ds.Clear()
ad.Fill(ds, "flight_details")
DG.DataSource = ds.Tables("flight_details")
cleartxt()
End If
End Sub
Private Sub DG_CellContentClick(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.DataGridViewCellEventArgs) Handles DG.CellContentClick
End Sub
Private Sub DG_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Handles DG.Click
Dim R
R = DG.CurrentRow.Index
TXT_FLCD.Text = DG.Item(0, R).Value
CMBACD.Text = DG.Item(1, R).Value
TXT_F_NO.Text = DG.Item(2, R).Value
TXT_FNAME.Text = DG.Item(3, R).Value
TXT_FROM.Text = DG.Item(4, R).Value
TXT_TO.Text = DG.Item(5, R).Value
TXT_DEPART.Text = DG.Item(6, R).Value
TXTATM.Text = DG.Item(7, R).Value
TXTCHR.Text = DG.Item(8, R).Value
TXTTSEAT.Text = DG.Item(9, R).Value
'LBLANM.Text = DG.Item(10, R).Value
End Sub
Private Sub BTN_CLR_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_CLR.Click
cleartxt()
BTN_ADD.Enabled = True

57

AIRLINE RESERVATION SYSTEM


BTN_EDIT.Enabled = True
BTN_DEL.Enabled = True
BTN_FIRST.Enabled = True
BTN_PRV.Enabled = True
BTN_NEXT.Enabled = True
BTN_LAST.Enabled = True
BTN_CLR.Enabled = False
BTN_SAVE.Enabled = False
End Sub
Private Sub CMBACD_SelectedIndexChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles CMBACD.SelectedIndexChanged
Dim ADF As New OleDbDataAdapter("SELECT airline_name FROM
AIRLINE_DETAILS WHERE airline_cd=" & CMBACD.Text, cn)
Dim DSF As New DataSet
DSF.Clear()
ADF.Fill(DSF, "AIRLINE_DETAILS")
LBLANM.Text = DSF.Tables("AIRLINE_DETAILS").Rows(0).Item(0)
End Sub
Private Sub GroupBox1_Enter(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles GroupBox1.Enter
End Sub
End Class

58

AIRLINE RESERVATION SYSTEM

CUSTOMER
DETAILS

59

AIRLINE RESERVATION SYSTEM


Imports System.Data.OleDb
Imports System.Data
Public Class CUSTOMER
Dim ad As New OleDbDataAdapter("select * from customer_details", cn)
Dim ds As New DataSet
Dim cnt As Integer
Private Sub CUSTOMER_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
conndb()
cnt = 0
ds.Clear()
ad.Fill(ds, "customer_details")
DG.DataSource = ds.Tables("customer_details")
BTN_ADD.Enabled = True
BTN_EDIT.Enabled = True
BTN_DEL.Enabled = True
BTN_FIRST.Enabled = True
BTN_PRV.Enabled = True
BTN_NEXT.Enabled = True
BTN_LAST.Enabled = True
BTN_CLR.Enabled = False
BTN_SAVE.Enabled = False
End Sub
Public Sub cleartxt()
TXT_ID.Text = ""
TXT_NAME.Text = ""
TXT_ADD.Text = ""
TXT_CITY.Text = ""
TXT_PIN.Text = ""
TXT_STATE.Text = ""
TXT_COUNTRY.Text = ""
TXT_PHONE.Text = ""
TXT_EMAIL.Text = ""
End Sub
Private Sub BTN_ADD_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_ADD.Click
cleartxt()
BTN_ADD.Enabled = False
BTN_EDIT.Enabled = False
BTN_DEL.Enabled = False
BTN_FIRST.Enabled = False
BTN_PRV.Enabled = False
BTN_NEXT.Enabled = False
BTN_LAST.Enabled = False
BTN_CLR.Enabled = True
BTN_SAVE.Enabled = True
'auto numbnber

60

AIRLINE RESERVATION SYSTEM


Dim adf As New OleDbDataAdapter("select max(cust_id) from
customer_details", cn)
Dim dsf As New DataSet
dsf.Clear()
adf.Fill(dsf, "customer_details")
Dim n As Integer
Dim N1 As String
If dsf.Tables("customer_details").Rows.Count <= 0 Then
N1 = "CST01"
Else
If IsDBNull(dsf.Tables("customer_details").Rows(0).Item(0)) Then
N1 = "CST01"
Else
N1 = dsf.Tables("customer_details").Rows(0).Item(0)
n = Mid(N1, 4, N1.Length)
n = n + 1
If n < 9 Then
N1 = "CST0" & n
Else
N1 = "CST" & n
End If
End If
End If
TXT_ID.Text = N1
BTN_SAVE.Text = "SAVE"
End Sub
Private Sub BTN_SAVE_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_SAVE.Click
Dim sql As String
Dim cmd As New OleDbCommand
cmd.Connection = cn
cmd.CommandType = CommandType.Text
If BTN_SAVE.Text = "SAVE" Then
sql = "INSERT INTO customer_details VALUES('" _
& TXT_ID.Text & "','" _
& TXT_NAME.Text & "','" _
& TXT_ADD.Text & "','" _
& TXT_CITY.Text & "','" _
& TXT_PIN.Text & "','" _
& TXT_STATE.Text & "','" _
& TXT_COUNTRY.Text & "'," _
& TXT_PHONE.Text & ",'" _
& TXT_EMAIL.Text & "')"
Else
sql = "UPDATE customer_details SET cust_name='" _
& TXT_NAME.Text & "',cust_add='" _
& TXT_ADD.Text & "',cust_city='" _
& TXT_CITY.Text & "',cust_pin='" _
& TXT_PIN.Text & "',cust_state='" _
& TXT_STATE.Text & "',cust_country='" _
& TXT_COUNTRY.Text & "',cust_phone=" _
& TXT_PHONE.Text & ",cust_email='" _
& TXT_EMAIL.Text & "' WHERE cust_id='" & TXT_ID.Text & "'"

61

AIRLINE RESERVATION SYSTEM


End If
cmd.CommandText = sql
cmd.ExecuteNonQuery()
ds.Clear()
ad.Fill(ds, "customer_details")
DG.DataSource = ds.Tables("customer_details")
cleartxt()
BTN_ADD.Enabled = True
BTN_EDIT.Enabled = True
BTN_DEL.Enabled = True
BTN_FIRST.Enabled = True
BTN_PRV.Enabled = True
BTN_NEXT.Enabled = True
BTN_LAST.Enabled = True
BTN_CLR.Enabled = False
BTN_SAVE.Enabled = False
End Sub
Private Sub BTN_EDIT_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_EDIT.Click
If TXT_ID.Text = "" Then
MsgBox("SELECT RECORD FROM LIST")
Else
BTN_ADD.Enabled = False
BTN_EDIT.Enabled = False
BTN_DEL.Enabled = False
BTN_FIRST.Enabled = False
BTN_PRV.Enabled = False
BTN_NEXT.Enabled = False
BTN_LAST.Enabled = False
BTN_CLR.Enabled = True
BTN_SAVE.Enabled = True
BTN_SAVE.Text = "UPDATE"
End If
End Sub
Private Sub BTN_FIRST_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_FIRST.Click
cnt = 0
TXT_ID.Text = ds.Tables("customer_details").Rows(cnt).Item(0)
TXT_NAME.Text = ds.Tables("customer_details").Rows(cnt).Item(1)
TXT_ADD.Text = ds.Tables("customer_details").Rows(cnt).Item(2)
TXT_CITY.Text = ds.Tables("customer_details").Rows(cnt).Item(3)
TXT_PIN.Text = ds.Tables("customer_details").Rows(cnt).Item(4)
TXT_STATE.Text = ds.Tables("customer_details").Rows(cnt).Item(5)
TXT_COUNTRY.Text = ds.Tables("customer_details").Rows(cnt).Item(6)
TXT_PHONE.Text = ds.Tables("customer_details").Rows(cnt).Item(7)
TXT_EMAIL.Text = ds.Tables("customer_details").Rows(cnt).Item(8)
End Sub
Private Sub BTN_PRV_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_PRV.Click
cnt = cnt - 1

62

AIRLINE RESERVATION SYSTEM


If cnt = -1 Then
cnt = 0
End If
TXT_ID.Text = ds.Tables("customer_details").Rows(cnt).Item(0)
TXT_NAME.Text = ds.Tables("customer_details").Rows(cnt).Item(1)
TXT_ADD.Text = ds.Tables("customer_details").Rows(cnt).Item(2)
TXT_CITY.Text = ds.Tables("customer_details").Rows(cnt).Item(3)
TXT_PIN.Text = ds.Tables("customer_details").Rows(cnt).Item(4)
TXT_STATE.Text = ds.Tables("customer_details").Rows(cnt).Item(5)
TXT_COUNTRY.Text = ds.Tables("customer_details").Rows(cnt).Item(6)
TXT_PHONE.Text = ds.Tables("customer_details").Rows(cnt).Item(7)
TXT_EMAIL.Text = ds.Tables("customer_details").Rows(cnt).Item(8)
End Sub
Private Sub BTN_NEXT_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_NEXT.Click
cnt = cnt + 1
If cnt = ds.Tables("customer_details").Rows.Count Then
cnt = cnt - 1
End If
TXT_ID.Text = ds.Tables("customer_details").Rows(cnt).Item(0)
TXT_NAME.Text = ds.Tables("customer_details").Rows(cnt).Item(1)
TXT_ADD.Text = ds.Tables("customer_details").Rows(cnt).Item(2)
TXT_CITY.Text = ds.Tables("customer_details").Rows(cnt).Item(3)
TXT_PIN.Text = ds.Tables("customer_details").Rows(cnt).Item(4)
TXT_STATE.Text = ds.Tables("customer_details").Rows(cnt).Item(5)
TXT_COUNTRY.Text = ds.Tables("customer_details").Rows(cnt).Item(6)
TXT_PHONE.Text = ds.Tables("customer_details").Rows(cnt).Item(7)
TXT_EMAIL.Text = ds.Tables("customer_details").Rows(cnt).Item(8)
End Sub
Private Sub BTN_LAST_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_LAST.Click
cnt = ds.Tables("customer_details").Rows.Count - 1
TXT_ID.Text = ds.Tables("customer_details").Rows(cnt).Item(0)
TXT_NAME.Text = ds.Tables("customer_details").Rows(cnt).Item(1)
TXT_ADD.Text = ds.Tables("customer_details").Rows(cnt).Item(2)
TXT_CITY.Text = ds.Tables("customer_details").Rows(cnt).Item(3)
TXT_PIN.Text = ds.Tables("customer_details").Rows(cnt).Item(4)
TXT_STATE.Text = ds.Tables("customer_details").Rows(cnt).Item(5)
TXT_COUNTRY.Text = ds.Tables("customer_details").Rows(cnt).Item(6)
TXT_PHONE.Text = ds.Tables("customer_details").Rows(cnt).Item(7)
TXT_EMAIL.Text = ds.Tables("customer_details").Rows(cnt).Item(8)
End Sub
Private Sub BTN_DEL_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_DEL.Click
If TXT_ID.Text = "" Then
MsgBox("SELECT RECORD FROM LIST")
Else
Dim CMD As New OleDbCommand
Dim SQL As String
SQL = "DELETE FROM customer_details WHERE airline_cd=" &
TXT_ID.Text
CMD.Connection = cn
CMD.CommandType = CommandType.Text

63

AIRLINE RESERVATION SYSTEM


CMD.CommandText = SQL
CMD.ExecuteNonQuery()
ds.Clear()
ad.Fill(ds, "customer_details")
DG.DataSource = ds.Tables("customer_details")
cleartxt()
End If
End Sub
Private Sub DG_CellContentClick(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.DataGridViewCellEventArgs) Handles DG.CellContentClick
End Sub
Private Sub DG_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Handles DG.Click
Dim R
R = DG.CurrentRow.Index
TXT_ID.Text = DG.Item(0, R).Value
TXT_NAME.Text = DG.Item(0, R).Value
TXT_ADD.Text = DG.Item(0, R).Value
TXT_CITY.Text = DG.Item(0, R).Value
TXT_PIN.Text = DG.Item(0, R).Value
TXT_STATE.Text = DG.Item(0, R).Value
TXT_COUNTRY.Text = DG.Item(0, R).Value
TXT_PHONE.Text = DG.Item(0, R).Value
TXT_EMAIL.Text = DG.Item(0, R).Value
End Sub
Private Sub BTN_CLR_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_CLR.Click
cleartxt()
BTN_ADD.Enabled = True
BTN_EDIT.Enabled = True
BTN_DEL.Enabled = True
BTN_FIRST.Enabled = True
BTN_PRV.Enabled = True
BTN_NEXT.Enabled = True
BTN_LAST.Enabled = True
BTN_CLR.Enabled = False
BTN_SAVE.Enabled = False
End Sub
End Class

64

AIRLINE RESERVATION SYSTEM

BOOK
DETAILS

65

AIRLINE RESERVATION SYSTEM


Imports System.Data.OleDb
Imports System.Data
Public Class FRMBOOK
Dim ad As New OleDbDataAdapter("select * from BOOK_DETAILS", cn)
Dim ds As New DataSet
Dim cnt As Integer
Private Sub FRMBOOK_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
conndb()
cnt = 0
ds.Clear()
ad.Fill(ds, "BOOK_DETAILS")
DG.DataSource = ds.Tables("BOOK_DETAILS")
BTN_ADD.Enabled = True
BTN_FIRST.Enabled = True
BTN_PRV.Enabled = True
BTN_NEXT.Enabled = True
BTN_LAST.Enabled = True
BTN_CLR.Enabled = False
BTN_SAVE.Enabled = False
Dim adf As New OleDbDataAdapter("select * from customer_details", cn)
Dim dsf As New DataSet
dsf.Clear()
adf.Fill(dsf, "customer_details")
Dim i
cmbcid.Items.Clear()
For i = 0 To dsf.Tables("customer_details").Rows.Count - 1
cmbcid.Items.Add(dsf.Tables("customer_details").Rows(i).Item(0))
Next
Dim adf1 As New OleDbDataAdapter("select * from flight_details where
total_seat>0", cn)
Dim dsf1 As New DataSet
dsf.Clear()
adf1.Fill(dsf1, "flight_details")
cmbfcd.Items.Clear()
For i = 0 To dsf1.Tables("flight_details").Rows.Count - 1
cmbfcd.Items.Add(dsf1.Tables("flight_details").Rows(i).Item(0))
Next
End Sub
Public Sub cleartxt()
TXTACD.Text = ""
txtdt.Text = ""
cmbcid.Text = ""
TXTnm.Text = ""
cmbfcd.Text = ""
TXTfno.Text = ""
TXTchr.Text = ""
txtsno.Text = ""
End Sub

66

AIRLINE RESERVATION SYSTEM


Private Sub BTN_ADD_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_ADD.Click
cleartxt()
BTN_ADD.Enabled = False
BTN_FIRST.Enabled = False
BTN_PRV.Enabled = False
BTN_NEXT.Enabled = False
BTN_LAST.Enabled = False
BTN_CLR.Enabled = True
BTN_SAVE.Enabled = True
'auto numbnber
cn)

Dim adf As New OleDbDataAdapter("select max(B_ID) from BOOK_DETAILS",


Dim dsf As New DataSet
dsf.Clear()
adf.Fill(dsf, "BOOK_DETAILS")
Dim n As Integer
Dim N1 As String
If dsf.Tables("BOOK_DETAILS").Rows.Count <= 0 Then
N1 = "BID01"
Else
If IsDBNull(dsf.Tables("BOOK_DETAILS").Rows(0).Item(0)) Then
N1 = "BID01"
Else
N1 = dsf.Tables("BOOK_DETAILS").Rows(0).Item(0)
n = Mid(N1, 4, N1.Length)
n = n + 1
If n < 9 Then
N1 = "BID0" & n
Else
N1 = "BID" & n
End If
End If
End If
TXTACD.Text = N1
BTN_SAVE.Text = "SAVE"
End Sub

Private Sub BTN_SAVE_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles BTN_SAVE.Click
Dim sql As String
Dim cmd As New OleDbCommand
cmd.Connection = cn
cmd.CommandType = CommandType.Text
sql = "INSERT INTO BOOK_DETAILS VALUES('" _
& TXTACD.Text & "','" _
& txtdt.Text & "','" _
& cmbcid.Text & "','" _

67

AIRLINE RESERVATION SYSTEM


&
&
&
&
&

TXTnm.Text & "'," _


cmbfcd.Text & ",'" _
TXTfno.Text & "'," _
TXTchr.Text & "," _
txtsno.Text & ")"
cmd.CommandText = sql
cmd.ExecuteNonQuery()

'update seat
Dim cmd1 As New OleDbCommand
cmd1.Connection = cn
cmd1.CommandType = CommandType.Text
cmd1.CommandText = "update flight_details set total_seat=total_seat-1
where flight_cd=" & cmbfcd.Text
cmd1.ExecuteNonQuery()
ds.Clear()
ad.Fill(ds, "BOOK_DETAILS")
DG.DataSource = ds.Tables("BOOK_DETAILS")
cleartxt()
BTN_ADD.Enabled = True
BTN_FIRST.Enabled = True
BTN_PRV.Enabled = True
BTN_NEXT.Enabled = True
BTN_LAST.Enabled = True
BTN_CLR.Enabled = False
BTN_SAVE.Enabled = False
End Sub
Private Sub BTN_FIRST_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_FIRST.Click
cnt = 0
TXTACD.Text = ds.Tables("customer_details").Rows(cnt).Item(0)
txtdt.Text = ds.Tables("customer_details").Rows(cnt).Item(1)
cmbcid.Text = ds.Tables("customer_details").Rows(cnt).Item(2)
TXTnm.Text = ds.Tables("customer_details").Rows(cnt).Item(3)
cmbfcd.Text = ds.Tables("customer_details").Rows(cnt).Item(4)
TXTfno.Text = ds.Tables("customer_details").Rows(cnt).Item(5)
TXTchr.Text = ds.Tables("customer_details").Rows(cnt).Item(6)
txtsno.Text = ds.Tables("customer_details").Rows(cnt).Item(7)

End Sub
Private Sub BTN_PRV_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_PRV.Click
cnt = cnt - 1
If cnt = -1 Then
cnt = 0
End If
TXTACD.Text = ds.Tables("customer_details").Rows(cnt).Item(0)
txtdt.Text = ds.Tables("customer_details").Rows(cnt).Item(1)
cmbcid.Text = ds.Tables("customer_details").Rows(cnt).Item(2)

68

AIRLINE RESERVATION SYSTEM


TXTnm.Text = ds.Tables("customer_details").Rows(cnt).Item(3)
cmbfcd.Text = ds.Tables("customer_details").Rows(cnt).Item(4)
TXTfno.Text = ds.Tables("customer_details").Rows(cnt).Item(5)
TXTchr.Text = ds.Tables("customer_details").Rows(cnt).Item(6)
txtsno.Text = ds.Tables("customer_details").Rows(cnt).Item(7)
End Sub
Private Sub BTN_NEXT_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_NEXT.Click
cnt = cnt + 1
If cnt = ds.Tables("customer_details").Rows.Count Then
cnt = cnt - 1
End If
TXTACD.Text = ds.Tables("customer_details").Rows(cnt).Item(0)
txtdt.Text = ds.Tables("customer_details").Rows(cnt).Item(1)
cmbcid.Text = ds.Tables("customer_details").Rows(cnt).Item(2)
TXTnm.Text = ds.Tables("customer_details").Rows(cnt).Item(3)
cmbfcd.Text = ds.Tables("customer_details").Rows(cnt).Item(4)
TXTfno.Text = ds.Tables("customer_details").Rows(cnt).Item(5)
TXTchr.Text = ds.Tables("customer_details").Rows(cnt).Item(6)
txtsno.Text = ds.Tables("customer_details").Rows(cnt).Item(7)
End Sub
Private Sub BTN_LAST_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_LAST.Click
cnt = ds.Tables("customer_details").Rows.Count - 1
TXTACD.Text = ds.Tables("customer_details").Rows(cnt).Item(0)
txtdt.Text = ds.Tables("customer_details").Rows(cnt).Item(1)
cmbcid.Text = ds.Tables("customer_details").Rows(cnt).Item(2)
TXTnm.Text = ds.Tables("customer_details").Rows(cnt).Item(3)
cmbfcd.Text = ds.Tables("customer_details").Rows(cnt).Item(4)
TXTfno.Text = ds.Tables("customer_details").Rows(cnt).Item(5)
TXTchr.Text = ds.Tables("customer_details").Rows(cnt).Item(6)
txtsno.Text = ds.Tables("customer_details").Rows(cnt).Item(7)
End Sub

Private Sub DG_CellContentClick(ByVal sender As System.Object, ByVal e As


System.Windows.Forms.DataGridViewCellEventArgs) Handles DG.CellContentClick
End Sub
Private Sub DG_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Handles DG.Click
Dim R
R = DG.CurrentRow.Index
TXTACD.Text = DG.Item(0, R).Value
txtdt.Text = DG.Item(1, R).Value
cmbcid.Text = DG.Item(2, R).Value
TXTnm.Text = DG.Item(3, R).Value
cmbfcd.Text = DG.Item(4, R).Value
TXTfno.Text = DG.Item(5, R).Value
TXTchr.Text = DG.Item(6, R).Value
txtsno.Text = DG.Item(7, R).Value

69

AIRLINE RESERVATION SYSTEM

End Sub
Private Sub BTN_CLR_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_CLR.Click
cleartxt()
BTN_ADD.Enabled = True
BTN_FIRST.Enabled = True
BTN_PRV.Enabled = True
BTN_NEXT.Enabled = True
BTN_LAST.Enabled = True
BTN_CLR.Enabled = False
BTN_SAVE.Enabled = False
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.Close()
End Sub
Private Sub cmbcid_SelectedIndexChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles cmbcid.SelectedIndexChanged
Dim adf As New OleDbDataAdapter("select * from customer_details where
cust_id='" & cmbcid.Text & "'", cn)
Dim dsf As New DataSet
dsf.Clear()
adf.Fill(dsf, "customer_details")
TXTnm.Text = dsf.Tables("customer_details").Rows(0).Item(1)
End Sub
Private Sub cmbfcd_SelectedIndexChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles cmbfcd.SelectedIndexChanged
Dim adf As New OleDbDataAdapter("select * from flight_details where
flight_cd=" & cmbfcd.Text, cn)
Dim dsf As New DataSet
dsf.Clear()
adf.Fill(dsf, "flight_details")
TXTfno.Text = dsf.Tables("flight_details").Rows(0).Item(2)
lblfnm.Text = dsf.Tables("flight_details").Rows(0).Item(3)
TXTchr.Text = dsf.Tables("flight_details").Rows(0).Item(9)
End Sub
End Class

70

AIRLINE RESERVATION SYSTEM

PAYMENT
DETAILS

71

AIRLINE RESERVATION SYSTEM


Imports System.Data.OleDb
Imports System.Data
Public Class FRMPAY
Dim ad As New OleDbDataAdapter("select * from PAYMENT", cn)
Dim ds As New DataSet
Dim cnt As Integer
Private Sub FRMPAY_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
conndb()
cnt = 0
ds.Clear()
ad.Fill(ds, "PAYMENT")
DG.DataSource = ds.Tables("PAYMENT")
BTN_ADD.Enabled = True
BTN_FIRST.Enabled = True
BTN_PRV.Enabled = True
BTN_NEXT.Enabled = True
BTN_LAST.Enabled = True
BTN_CLR.Enabled = False
BTN_SAVE.Enabled = False
Dim adf As New OleDbDataAdapter("select * from BOOK_DETAILS ", cn)
Dim dsf As New DataSet
dsf.Clear()
adf.Fill(dsf, "BOOK_DETAILS")
Dim i
cmbbid.Items.Clear()
For i = 0 To dsf.Tables("BOOK_DETAILS").Rows.Count - 1
cmbbid.Items.Add(dsf.Tables("BOOK_DETAILS").Rows(i).Item(0))
Next
End Sub
Public Sub cleartxt()
cmbbid.Text = ""
txtcid.Text = ""
txtfno.Text = ""
txtamt.Text = ""
cmbptp.Text = ""
txtchno.Text = ""
txtcdt.Text = ""
txtcard.Text = ""
cmbctp.Text = ""
End Sub
Private Sub BTN_ADD_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_ADD.Click
cleartxt()
BTN_ADD.Enabled = False
BTN_FIRST.Enabled = False
BTN_PRV.Enabled = False
BTN_NEXT.Enabled = False
BTN_LAST.Enabled = False

72

AIRLINE RESERVATION SYSTEM


BTN_CLR.Enabled = True
BTN_SAVE.Enabled = True
'auto numbnber
BTN_SAVE.Text = "SAVE"
End Sub
Private Sub BTN_SAVE_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_SAVE.Click
Dim sql As String
Dim cmd As New OleDbCommand
cmd.Connection = cn
cmd.CommandType = CommandType.Text
sql = "INSERT INTO PAYMENT VALUES('" _
& cmbbid.Text & "','" _
& txtcid.Text & "'," _
& txtfno.Text & "," _
& txtamt.Text & ",'" _
& cmbptp.Text & "','" _
& txtchno.Text & "','" _
& txtcdt.Text & "','" _
& txtcard.Text & "','" _
& cmbctp.Text & "')"
cmd.CommandText = sql
cmd.ExecuteNonQuery()
ds.Clear()
ad.Fill(ds, "PAYMENT")
DG.DataSource = ds.Tables("PAYMENT")
cleartxt()
BTN_ADD.Enabled = True
BTN_FIRST.Enabled = True
BTN_PRV.Enabled = True
BTN_NEXT.Enabled = True
BTN_LAST.Enabled = True
BTN_CLR.Enabled = False
BTN_SAVE.Enabled = False
End Sub
Private Sub BTN_FIRST_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_FIRST.Click
cnt = 0
cmbbid.Text = ds.Tables("customer_details").Rows(cnt).Item(0)
txtcid.Text = ds.Tables("customer_details").Rows(cnt).Item(1)
txtfno.Text = ds.Tables("customer_details").Rows(cnt).Item(2)
txtamt.Text = ds.Tables("customer_details").Rows(cnt).Item(3)
cmbptp.Text = ds.Tables("customer_details").Rows(cnt).Item(4)
txtchno.Text = ds.Tables("customer_details").Rows(cnt).Item(5)

73

AIRLINE RESERVATION SYSTEM


txtcdt.Text = ds.Tables("customer_details").Rows(cnt).Item(6)
txtcard.Text = ds.Tables("customer_details").Rows(cnt).Item(7)
cmbctp.Text = ds.Tables("customer_details").Rows(cnt).Item(8)

End Sub
Private Sub BTN_PRV_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_PRV.Click
cnt = cnt - 1
If cnt = -1 Then
cnt = 0
End If
cmbbid.Text = ds.Tables("customer_details").Rows(cnt).Item(0)
txtcid.Text = ds.Tables("customer_details").Rows(cnt).Item(1)
txtfno.Text = ds.Tables("customer_details").Rows(cnt).Item(2)
txtamt.Text = ds.Tables("customer_details").Rows(cnt).Item(3)
cmbptp.Text = ds.Tables("customer_details").Rows(cnt).Item(4)
txtchno.Text = ds.Tables("customer_details").Rows(cnt).Item(5)
txtcdt.Text = ds.Tables("customer_details").Rows(cnt).Item(6)
txtcard.Text = ds.Tables("customer_details").Rows(cnt).Item(7)
cmbctp.Text = ds.Tables("customer_details").Rows(cnt).Item(8)
End Sub
Private Sub BTN_NEXT_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_NEXT.Click
cnt = cnt + 1
If cnt = ds.Tables("customer_details").Rows.Count Then
cnt = cnt - 1
End If
cmbbid.Text = ds.Tables("customer_details").Rows(cnt).Item(0)
txtcid.Text = ds.Tables("customer_details").Rows(cnt).Item(1)
txtfno.Text = ds.Tables("customer_details").Rows(cnt).Item(2)
txtamt.Text = ds.Tables("customer_details").Rows(cnt).Item(3)
cmbptp.Text = ds.Tables("customer_details").Rows(cnt).Item(4)
txtchno.Text = ds.Tables("customer_details").Rows(cnt).Item(5)
txtcdt.Text = ds.Tables("customer_details").Rows(cnt).Item(6)
txtcard.Text = ds.Tables("customer_details").Rows(cnt).Item(7)
cmbctp.Text = ds.Tables("customer_details").Rows(cnt).Item(8)
End Sub
Private Sub BTN_LAST_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_LAST.Click
cnt = ds.Tables("customer_details").Rows.Count - 1
cmbbid.Text = ds.Tables("customer_details").Rows(cnt).Item(0)
txtcid.Text = ds.Tables("customer_details").Rows(cnt).Item(1)
txtfno.Text = ds.Tables("customer_details").Rows(cnt).Item(2)
txtamt.Text = ds.Tables("customer_details").Rows(cnt).Item(3)
cmbptp.Text = ds.Tables("customer_details").Rows(cnt).Item(4)
txtchno.Text = ds.Tables("customer_details").Rows(cnt).Item(5)
txtcdt.Text = ds.Tables("customer_details").Rows(cnt).Item(6)
txtcard.Text = ds.Tables("customer_details").Rows(cnt).Item(7)
cmbctp.Text = ds.Tables("customer_details").Rows(cnt).Item(8)

74

AIRLINE RESERVATION SYSTEM


End Sub

Private Sub DG_CellContentClick(ByVal sender As System.Object, ByVal e As


System.Windows.Forms.DataGridViewCellEventArgs) Handles DG.CellContentClick
End Sub
Private Sub DG_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Handles DG.Click
Dim R
R = DG.CurrentRow.Index
cmbbid.Text = DG.Item(0, R).Value
txtcid.Text = DG.Item(1, R).Value
txtfno.Text = DG.Item(2, R).Value
txtamt.Text = DG.Item(3, R).Value
cmbptp.Text = DG.Item(4, R).Value
txtchno.Text = DG.Item(5, R).Value
txtcdt.Text = DG.Item(6, R).Value
txtcard.Text = DG.Item(7, R).Value
cmbctp.Text = DG.Item(8, R).Value

End Sub
Private Sub BTN_CLR_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles BTN_CLR.Click
cleartxt()
BTN_ADD.Enabled = True
BTN_FIRST.Enabled = True
BTN_PRV.Enabled = True
BTN_NEXT.Enabled = True
BTN_LAST.Enabled = True
BTN_CLR.Enabled = False
BTN_SAVE.Enabled = False
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.Close()
End Sub
Private Sub cmbbid_SelectedIndexChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles cmbbid.SelectedIndexChanged
Dim adf As New OleDbDataAdapter("select * from BOOK_DETAILS where
B_ID='" & cmbbid.Text & "'", cn)
Dim dsf As New DataSet
dsf.Clear()
adf.Fill(dsf, "Book_details")
txtcid.Text = dsf.Tables("book_details").Rows(0).Item(2)
txtfno.Text = dsf.Tables("book_details").Rows(0).Item(4)
txtamt.Text = dsf.Tables("book_details").Rows(0).Item(6)

75

AIRLINE RESERVATION SYSTEM


End Sub
Private Sub cmbptp_SelectedIndexChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles cmbptp.SelectedIndexChanged
Dim i
i = cmbptp.SelectedIndex
If i = 0 Then
txtcdt.Text = "-"
txtchno.Text = "-"
txtcard.Text = "-"
cmbctp.Text = "-"
txtcdt.Enabled = False
txtchno.Enabled = False
txtcard.Enabled = False
cmbctp.Enabled = False
ElseIf i = 1 Then
txtcdt.Text = ""
txtchno.Text = ""
txtcard.Text = "-"
cmbctp.Text = "-"
txtcdt.Enabled = True
txtchno.Enabled = True
txtcard.Enabled = False
cmbctp.Enabled = False

Else

txtcdt.Text = ""
txtchno.Text = ""
txtcard.Text = ""
cmbctp.Text = ""
txtcdt.Enabled = False
txtchno.Enabled = False
txtcard.Enabled = True
cmbctp.Enabled = True
End If
End Sub
End Class

76

AIRLINE RESERVATION SYSTEM

FORM SEARCH FOR


AIRLINES

77

AIRLINE RESERVATION SYSTEM


Imports System.Data.OleDb
Imports System.Data
Public Class frmsearch
Dim ad As New OleDbDataAdapter("select * from " & tb, cn)
Dim ds As New DataSet
Dim fld As String
Dim sql
Dim tp As String
Private Sub frmsearch_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
conndb()
ds.Clear()
ad.Fill(ds, tb)
cmbfl.Items.Clear()
cmbtp.Items.Clear()
Dim i
If mitm = 1 Then
For i = 0 To ds.Tables(tb).Columns.Count - 1
cmbfl.Items.Add(ds.Tables(tb).Columns(i).ToString)
cmbtp.Items.Add(ds.Tables(tb).Columns(i).DataType)
Next
cmbfld.Items.AddRange(ardet)
ElseIf mitm = 2 Then
For i = 0 To ds.Tables(tb).Columns.Count - 1
cmbfl.Items.Add(ds.Tables(tb).Columns(i).ToString)
cmbtp.Items.Add(ds.Tables(tb).Columns(i).DataType)
Next
cmbfld.Items.AddRange(fldet)
ElseIf mitm = 3 Then
For i = 0 To ds.Tables(tb).Columns.Count - 1
cmbfl.Items.Add(ds.Tables(tb).Columns(i).ToString)
cmbtp.Items.Add(ds.Tables(tb).Columns(i).DataType)
Next
cmbfld.Items.AddRange(cstdet)
ElseIf mitm = 4 Then
For i = 0 To ds.Tables(tb).Columns.Count - 1
cmbfl.Items.Add(ds.Tables(tb).Columns(i).ToString)
cmbtp.Items.Add(ds.Tables(tb).Columns(i).DataType)
Next
cmbfld.Items.AddRange(bokdet)
ElseIf mitm = 5 Then
For i = 0 To ds.Tables(tb).Columns.Count - 1
cmbfl.Items.Add(ds.Tables(tb).Columns(i).ToString)
cmbtp.Items.Add(ds.Tables(tb).Columns(i).DataType)
Next
cmbfld.Items.AddRange(paydet)
End If
End Sub
Private Sub cmbfld_SelectedIndexChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles cmbfld.SelectedIndexChanged
fld = cmbfl.Items(cmbfld.SelectedIndex).ToString
tp = cmbtp.Items(cmbfld.SelectedIndex).ToString
End Sub

78

AIRLINE RESERVATION SYSTEM


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
If tp = "System.Int32" Then
sql = "select * from " & tb & " where " & fld & cmbop.Text &
txtval.Text
Else
If cmbop.Text = "Like" Then
sql = "select * from " & tb & " where " & fld & " " &
cmbop.Text & " '" & txtval.Text & "%'"
Else
sql = "select * from " & tb & " where " & fld & cmbop.Text &
"'" & txtval.Text & "'"
End If
End If
lblqry.Text = sql
Dim adf As New OleDbDataAdapter(sql, cn)
Dim ds As New DataSet
ds.Clear()
adf.Fill(ds, tb)
dg.DataSource = ds.Tables(tb)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Dim adf As New OleDbDataAdapter("select * from " & tb, cn)
Dim ds As New DataSet
ds.Clear()
adf.Fill(ds, tb)
dg.DataSource = ds.Tables(tb)
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
Me.Close()
End Sub
Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
End Sub
Private Sub btnPreview_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
End Sub
End Class

79

AIRLINE RESERVATION SYSTEM

FORM SEARCH
FOR FLIGHTS

80

AIRLINE RESERVATION SYSTEM


Imports System.Data.OleDb
Imports System.Data
Public Class frmsearch
Dim ad As New OleDbDataAdapter("select * from " & tb, cn)
Dim ds As New DataSet
Dim fld As String
Dim sql
Dim tp As String
Private Sub frmsearch_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
conndb()
ds.Clear()
ad.Fill(ds, tb)
cmbfl.Items.Clear()
cmbtp.Items.Clear()
Dim i
If mitm = 1 Then
For i = 0 To ds.Tables(tb).Columns.Count - 1
cmbfl.Items.Add(ds.Tables(tb).Columns(i).ToString)
cmbtp.Items.Add(ds.Tables(tb).Columns(i).DataType)
Next
cmbfld.Items.AddRange(ardet)
ElseIf mitm = 2 Then
For i = 0 To ds.Tables(tb).Columns.Count - 1
cmbfl.Items.Add(ds.Tables(tb).Columns(i).ToString)
cmbtp.Items.Add(ds.Tables(tb).Columns(i).DataType)
Next
cmbfld.Items.AddRange(fldet)
ElseIf mitm = 3 Then
For i = 0 To ds.Tables(tb).Columns.Count - 1
cmbfl.Items.Add(ds.Tables(tb).Columns(i).ToString)
cmbtp.Items.Add(ds.Tables(tb).Columns(i).DataType)
Next
cmbfld.Items.AddRange(cstdet)
ElseIf mitm = 4 Then
For i = 0 To ds.Tables(tb).Columns.Count - 1
cmbfl.Items.Add(ds.Tables(tb).Columns(i).ToString)
cmbtp.Items.Add(ds.Tables(tb).Columns(i).DataType)
Next
cmbfld.Items.AddRange(bokdet)
ElseIf mitm = 5 Then
For i = 0 To ds.Tables(tb).Columns.Count - 1
cmbfl.Items.Add(ds.Tables(tb).Columns(i).ToString)
cmbtp.Items.Add(ds.Tables(tb).Columns(i).DataType)
Next
cmbfld.Items.AddRange(paydet)
End If
End Sub
Private Sub cmbfld_SelectedIndexChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles cmbfld.SelectedIndexChanged
fld = cmbfl.Items(cmbfld.SelectedIndex).ToString
tp = cmbtp.Items(cmbfld.SelectedIndex).ToString
End Sub

81

AIRLINE RESERVATION SYSTEM


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
If tp = "System.Int32" Then
sql = "select * from " & tb & " where " & fld & cmbop.Text &
txtval.Text
Else
If cmbop.Text = "Like" Then
sql = "select * from " & tb & " where " & fld & " " &
cmbop.Text & " '" & txtval.Text & "%'"
Else
sql = "select * from " & tb & " where " & fld & cmbop.Text &
"'" & txtval.Text & "'"
End If
End If
lblqry.Text = sql
Dim adf As New OleDbDataAdapter(sql, cn)
Dim ds As New DataSet
ds.Clear()
adf.Fill(ds, tb)
dg.DataSource = ds.Tables(tb)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Dim adf As New OleDbDataAdapter("select * from " & tb, cn)
Dim ds As New DataSet
ds.Clear()
adf.Fill(ds, tb)
dg.DataSource = ds.Tables(tb)
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
Me.Close()
End Sub
Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
End Sub
Private Sub btnPreview_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
End Sub
End Class

82

AIRLINE RESERVATION SYSTEM

FORM SEARCH
FOR CUSTOMERS

83

AIRLINE RESERVATION SYSTEM


Imports System.Data.OleDb
Imports System.Data
Public Class frmsearch
Dim ad As New OleDbDataAdapter("select * from " & tb, cn)
Dim ds As New DataSet
Dim fld As String
Dim sql
Dim tp As String
Private Sub frmsearch_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
conndb()
ds.Clear()
ad.Fill(ds, tb)
cmbfl.Items.Clear()
cmbtp.Items.Clear()
Dim i
If mitm = 1 Then
For i = 0 To ds.Tables(tb).Columns.Count - 1
cmbfl.Items.Add(ds.Tables(tb).Columns(i).ToString)
cmbtp.Items.Add(ds.Tables(tb).Columns(i).DataType)
Next
cmbfld.Items.AddRange(ardet)
ElseIf mitm = 2 Then
For i = 0 To ds.Tables(tb).Columns.Count - 1
cmbfl.Items.Add(ds.Tables(tb).Columns(i).ToString)
cmbtp.Items.Add(ds.Tables(tb).Columns(i).DataType)
Next
cmbfld.Items.AddRange(fldet)
ElseIf mitm = 3 Then
For i = 0 To ds.Tables(tb).Columns.Count - 1
cmbfl.Items.Add(ds.Tables(tb).Columns(i).ToString)
cmbtp.Items.Add(ds.Tables(tb).Columns(i).DataType)
Next
cmbfld.Items.AddRange(cstdet)
ElseIf mitm = 4 Then
For i = 0 To ds.Tables(tb).Columns.Count - 1
cmbfl.Items.Add(ds.Tables(tb).Columns(i).ToString)
cmbtp.Items.Add(ds.Tables(tb).Columns(i).DataType)
Next
cmbfld.Items.AddRange(bokdet)
ElseIf mitm = 5 Then
For i = 0 To ds.Tables(tb).Columns.Count - 1
cmbfl.Items.Add(ds.Tables(tb).Columns(i).ToString)
cmbtp.Items.Add(ds.Tables(tb).Columns(i).DataType)
Next
cmbfld.Items.AddRange(paydet)
End If
End Sub
Private Sub cmbfld_SelectedIndexChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles cmbfld.SelectedIndexChanged
fld = cmbfl.Items(cmbfld.SelectedIndex).ToString
tp = cmbtp.Items(cmbfld.SelectedIndex).ToString
End Sub

84

AIRLINE RESERVATION SYSTEM


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
If tp = "System.Int32" Then
sql = "select * from " & tb & " where " & fld & cmbop.Text &
txtval.Text
Else
If cmbop.Text = "Like" Then
sql = "select * from " & tb & " where " & fld & " " &
cmbop.Text & " '" & txtval.Text & "%'"
Else
sql = "select * from " & tb & " where " & fld & cmbop.Text &
"'" & txtval.Text & "'"
End If
End If
lblqry.Text = sql
Dim adf As New OleDbDataAdapter(sql, cn)
Dim ds As New DataSet
ds.Clear()
adf.Fill(ds, tb)
dg.DataSource = ds.Tables(tb)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Dim adf As New OleDbDataAdapter("select * from " & tb, cn)
Dim ds As New DataSet
ds.Clear()
adf.Fill(ds, tb)
dg.DataSource = ds.Tables(tb)
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
Me.Close()
End Sub
Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
End Sub
Private Sub btnPreview_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
End Sub
End Class

85

AIRLINE RESERVATION SYSTEM

FORM SEARCH
FOR BOOKING

86

AIRLINE RESERVATION SYSTEM

Imports System.Data.OleDb
Imports System.Data
Public Class frmsearch
Dim ad As New OleDbDataAdapter("select * from " & tb, cn)
Dim ds As New DataSet
Dim fld As String
Dim sql
Dim tp As String
Private Sub frmsearch_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
conndb()
ds.Clear()
ad.Fill(ds, tb)
cmbfl.Items.Clear()
cmbtp.Items.Clear()
Dim i
If mitm = 1 Then
For i = 0 To ds.Tables(tb).Columns.Count - 1
cmbfl.Items.Add(ds.Tables(tb).Columns(i).ToString)
cmbtp.Items.Add(ds.Tables(tb).Columns(i).DataType)
Next
cmbfld.Items.AddRange(ardet)
ElseIf mitm = 2 Then
For i = 0 To ds.Tables(tb).Columns.Count - 1
cmbfl.Items.Add(ds.Tables(tb).Columns(i).ToString)
cmbtp.Items.Add(ds.Tables(tb).Columns(i).DataType)
Next
cmbfld.Items.AddRange(fldet)
ElseIf mitm = 3 Then
For i = 0 To ds.Tables(tb).Columns.Count - 1
cmbfl.Items.Add(ds.Tables(tb).Columns(i).ToString)
cmbtp.Items.Add(ds.Tables(tb).Columns(i).DataType)
Next
cmbfld.Items.AddRange(cstdet)
ElseIf mitm = 4 Then
For i = 0 To ds.Tables(tb).Columns.Count - 1
cmbfl.Items.Add(ds.Tables(tb).Columns(i).ToString)
cmbtp.Items.Add(ds.Tables(tb).Columns(i).DataType)
Next
cmbfld.Items.AddRange(bokdet)
ElseIf mitm = 5 Then
For i = 0 To ds.Tables(tb).Columns.Count - 1
cmbfl.Items.Add(ds.Tables(tb).Columns(i).ToString)
cmbtp.Items.Add(ds.Tables(tb).Columns(i).DataType)
Next
cmbfld.Items.AddRange(paydet)
End If
End Sub
Private Sub cmbfld_SelectedIndexChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles cmbfld.SelectedIndexChanged

87

AIRLINE RESERVATION SYSTEM


fld = cmbfl.Items(cmbfld.SelectedIndex).ToString
tp = cmbtp.Items(cmbfld.SelectedIndex).ToString
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
If tp = "System.Int32" Then
sql = "select * from " & tb & " where " & fld & cmbop.Text &
txtval.Text
Else
If cmbop.Text = "Like" Then
sql = "select * from " & tb & " where " & fld & " " &
cmbop.Text & " '" & txtval.Text & "%'"
Else
sql = "select * from " & tb & " where " & fld & cmbop.Text &
"'" & txtval.Text & "'"
End If
End If
lblqry.Text = sql
Dim adf As New OleDbDataAdapter(sql, cn)
Dim ds As New DataSet
ds.Clear()
adf.Fill(ds, tb)
dg.DataSource = ds.Tables(tb)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Dim adf As New OleDbDataAdapter("select * from " & tb, cn)
Dim ds As New DataSet
ds.Clear()
adf.Fill(ds, tb)
dg.DataSource = ds.Tables(tb)
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
Me.Close()
End Sub
Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
End Sub
Private Sub btnPreview_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
End Sub
End Class

88

AIRLINE RESERVATION SYSTEM

FORM SEARCH
FOR PAYMENT

89

AIRLINE RESERVATION SYSTEM

90

AIRLINE RESERVATION SYSTEM


Imports System.Data.OleDb
Imports System.Data
Public Class frmsearch
Dim ad As New OleDbDataAdapter("select * from " & tb, cn)
Dim ds As New DataSet
Dim fld As String
Dim sql
Dim tp As String
Private Sub frmsearch_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
conndb()
ds.Clear()
ad.Fill(ds, tb)
cmbfl.Items.Clear()
cmbtp.Items.Clear()
Dim i
If mitm = 1 Then
For i = 0 To ds.Tables(tb).Columns.Count - 1
cmbfl.Items.Add(ds.Tables(tb).Columns(i).ToString)
cmbtp.Items.Add(ds.Tables(tb).Columns(i).DataType)
Next
cmbfld.Items.AddRange(ardet)
ElseIf mitm = 2 Then
For i = 0 To ds.Tables(tb).Columns.Count - 1
cmbfl.Items.Add(ds.Tables(tb).Columns(i).ToString)
cmbtp.Items.Add(ds.Tables(tb).Columns(i).DataType)
Next
cmbfld.Items.AddRange(fldet)
ElseIf mitm = 3 Then
For i = 0 To ds.Tables(tb).Columns.Count - 1
cmbfl.Items.Add(ds.Tables(tb).Columns(i).ToString)
cmbtp.Items.Add(ds.Tables(tb).Columns(i).DataType)
Next
cmbfld.Items.AddRange(cstdet)
ElseIf mitm = 4 Then
For i = 0 To ds.Tables(tb).Columns.Count - 1
cmbfl.Items.Add(ds.Tables(tb).Columns(i).ToString)
cmbtp.Items.Add(ds.Tables(tb).Columns(i).DataType)
Next
cmbfld.Items.AddRange(bokdet)
ElseIf mitm = 5 Then
For i = 0 To ds.Tables(tb).Columns.Count - 1
cmbfl.Items.Add(ds.Tables(tb).Columns(i).ToString)
cmbtp.Items.Add(ds.Tables(tb).Columns(i).DataType)
Next
cmbfld.Items.AddRange(paydet)
End If
End Sub
Private Sub cmbfld_SelectedIndexChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles cmbfld.SelectedIndexChanged
fld = cmbfl.Items(cmbfld.SelectedIndex).ToString
tp = cmbtp.Items(cmbfld.SelectedIndex).ToString
End Sub

91

AIRLINE RESERVATION SYSTEM


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
If tp = "System.Int32" Then
sql = "select * from " & tb & " where " & fld & cmbop.Text &
txtval.Text
Else
If cmbop.Text = "Like" Then
sql = "select * from " & tb & " where " & fld & " " &
cmbop.Text & " '" & txtval.Text & "%'"
Else
sql = "select * from " & tb & " where " & fld & cmbop.Text &
"'" & txtval.Text & "'"
End If
End If
lblqry.Text = sql
Dim adf As New OleDbDataAdapter(sql, cn)
Dim ds As New DataSet
ds.Clear()
adf.Fill(ds, tb)
dg.DataSource = ds.Tables(tb)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Dim adf As New OleDbDataAdapter("select * from " & tb, cn)
Dim ds As New DataSet
ds.Clear()
adf.Fill(ds, tb)
dg.DataSource = ds.Tables(tb)
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
Me.Close()
End Sub
Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
End Sub
Private Sub btnPreview_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
End Sub
End Class

92

AIRLINE RESERVATION SYSTEM

CUSTOMERWISE
MONTH REPORT

93

AIRLINE RESERVATION SYSTEM


Imports System.Data.OleDb
Imports System.Data
Public Class frmcust
Dim ad As New OleDbDataAdapter("select cust_id,cust_name from
customer_details", cn)
Dim ds As New DataSet
Private Sub frmcust_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
conndb()
ds.Clear()
ad.Fill(ds, "customer_details")
DataGridView1.DataSource = ds.Tables("customer_details")
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim m
Dim cid
Dim r
r = DataGridView1.CurrentRow.Index
cid = DataGridView1.Rows(r).Cells(0).Value
m = ComboBox1.Text
frmrep.cr.SelectionFormula = "{BOOK_DETAILS.C_ID}='" & cid & "' and
month({BOOK_DETAILS.B_DATE})=" & m
frmrep.cr.ReportSource = Application.StartupPath & "\bookinglist.rpt"
frmrep.Show()
End Sub
End Class

94

AIRLINE RESERVATION SYSTEM

REPORT FOR
CUSTOMER
LIST

95

AIRLINE RESERVATION SYSTEM

Private Sub CustomerListToolStripMenuItem_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles CustomerListToolStripMenuItem.Click
frmrep.cr.ReportSource = Application.StartupPath & "\customerlist.rpt"
frmrep.MdiParent = Me
frmrep.WindowState = FormWindowState.Maximized
frmrep.Show()
End Sub

96

AIRLINE RESERVATION SYSTEM

REPORT FOR
AIRLINE DETAILS

97

AIRLINE RESERVATION SYSTEM

Private Sub AirlinesListToolStripMenuItem_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles AirlinesListToolStripMenuItem.Click
frmrep.cr.ReportSource = Application.StartupPath & "\airlist.rpt"
frmrep.MdiParent = Me
frmrep.WindowState = FormWindowState.Maximized
frmrep.Show()
End Sub

98

AIRLINE RESERVATION SYSTEM

REPORT FOR
FLIGHT
DETAILS

99

AIRLINE RESERVATION SYSTEM

Private Sub FlightListToolStripMenuItem_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles FlightListToolStripMenuItem.Click
frmrep.cr.ReportSource = Application.StartupPath & "\flightlist.rpt"
frmrep.MdiParent = Me
frmrep.WindowState = FormWindowState.Maximized
frmrep.Show()
End Sub

100

AIRLINE RESERVATION SYSTEM

REPORT FOR
BOOKING LIST

101

AIRLINE RESERVATION SYSTEM

Private Sub BookingToolStripMenuItem1_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles BookingToolStripMenuItem1.Click
frmrep.cr.ReportSource = Application.StartupPath & "\bookinglist.rpt"
frmrep.MdiParent = Me
frmrep.WindowState = FormWindowState.Maximized
frmrep.Show()

102

AIRLINE RESERVATION SYSTEM


End Sub

REPORT FOR
CUSTOMERWISE
BOOKING

103

AIRLINE RESERVATION SYSTEM

Private Sub CustomerWiseBookingToolStripMenuItem_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
CustomerWiseBookingToolStripMenuItem.Click
frmrep.cr.ReportSource = Application.StartupPath & "\cust_book.rpt"
frmrep.MdiParent = Me
frmrep.WindowState = FormWindowState.Maximized
frmrep.Show()
End Sub

104

AIRLINE RESERVATION SYSTEM

REPOERT FOR
PAYMENT

105

AIRLINE RESERVATION SYSTEM

Private Sub PaymentToolStripMenuItem2_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
PaymentToolStripMenuItem2.Click
frmrep.cr.ReportSource = Application.StartupPath & "\book_pay.rpt"
frmrep.MdiParent = Me
frmrep.WindowState = FormWindowState.Maximized
frmrep.Show()
End Sub

106

AIRLINE RESERVATION SYSTEM

TESTING

Testing is just like quality assurance to review products


and related documents for correctness, completeness,
reliabilities and maintainability. And it includes assurance
that system meets the specifications and requirement for
its intended use and performance. The common view of
testing is to prove that there are no errors.
Considering the importance of testing the system for its
performance and efficiency in managing database, before
it is actually delivered to its users, the testing of the system
developed was carried in two phases:
1.The first phase in the system is to prepare a test that will
test the system before it is implemented because testing is
the key for better work. A test plan was checked
107

AIRLINE RESERVATION SYSTEM

independently. This was done so as to ensure that the


modules accept only the valid data and the desired
processing was done on the data accepted from the user
and is stored in the correct manner in the database and its
retrieval is done easily as and when required and that too
desired format.

2.In the second phase the modules that have proved their
efficiency in the first phase of testing were combined
together response to form one single main module and
this main module was checked to ensure that the modules
so linked together response to each other in the desired.

108

AIRLINE RESERVATION SYSTEM

System was tested for the following aspects:

Unit testing:
During the development stage each modules was
complied, tested and actual output was compared with the
expected output in form of reports.
Program testing:
Testing was done with arbitrarily chosen data like arbitary
characters entered for name, characters entered for
numeric fields and some of the fields left blank. Actual out
put of the program was then verified against the expected
output.

109

AIRLINE RESERVATION SYSTEM

Process validation and output processing:

In this al calculation and computations done on figures by


the system were checked for their correctness. The
computed values were checked against the value manually
worked out. In output processing, the outputs generated
on account of the processing on these transactions were
checked in the sense that correct figures are printed on the
report.
Integrated testing:
This testing each such program modules is connected to
its respective menu option in the main menu of the system
and the system as a whole is checked ensuring its
reliability and efficiency.

110

AIRLINE RESERVATION SYSTEM

CONCLUSION
We are the T.Y.B.C.A students of Dolat Usha
Institute Of Applied Sciences Dhiru- Sarla Institute Of
Management & Commerce Valsad. and we are made on
line website on the 6th semester. In this semester, NAIK
RIDDHI R & PATEL ANKITA R arranged the project
AIRLINE RESERVATION SYSTEM.
We are happy to make this website.

111

AIRLINE RESERVATION SYSTEM

BIBLIOGRAPHY

Visual Basic Programming (Black Book)

Steven Holzner

Software Engineering

Pankaj Jalote

112

Anda mungkin juga menyukai