Professional Documents
Culture Documents
Ducumant
Ducumant
Sr. no
Title
Introduction and Background.
1.1 Background.
1.2 Problem Definition.
Project Description.
2.1 Functions Performed.
2.1.1 Limitation & Restrictions
2 2.1.2 User Interface Design (Layouts).
2.1.3 System data Files (Database).
3
4
5
6
Coding
Conclusion.
References.
Experts Opinions.
Page No
02
03
04
05
07
08
09
27
35
36
40
41
47
48
62
63
103
104
105
Introduction
&
Background
Background
This project gives information about the "AIRPORT MANAGAMENT". From
this project we can understand the real concept of 'Airport Management' & we can
also know that how to manage all the details of data through this project, the data are
stored in sophisticated form. The database gives information about flight timing,
passenger details etc.
The database is very easy to handle, user can insert the record, delete the record
update the record and search the record. All forms are connected with the database
tables but the user can not directly make changes in the structure of database and
cannot do some operation like update, delete and insert etc. The user can do this
operation using the front end application only.
Airport is an organization where the records of passengers are changing every
day. Sometimes it is difficult to maintain record of passengers details. There airport
management project is needed which helps manager/user to maintain computerized
records which fulfill all the details of airport. Previously all the records were kept
manually, all details were stored in register and it was very difficult to maintain each
passengers details in one register. In our project we have normalized and simplified
the records in one database using Visual Basic as front end and MS Access as back
end tool.
Problem Statement
In the current working system all the details are manually stored in register so
there are many chances of misuse or loss of information. The information is written
manually in registers which is very time consuming and if there is any mistake in
writing then the whole data is rewritten on a new page.
If a person wants even small information then he has to search in many registers
and there is no surety that the information will be available there.
Project
Description
Functional
Specification
Functions performed
The management of the project includes lot of positive changes in the existing
system. Apart from ease thatll be achieved in storing records and information, it also
helps in smooth management allowing flexibility in accessing and modifying the
previous records without hazels. It maintains records of passengers and flights. It also
helps to eliminate the errors in manual entries.
This project helps the airport manager and its user to save their precious time and
energy. It provides security for vital information of management. It provides standard
and uniform environment for the different procedures.
The problem of space is eliminated as it provides large amount of memory space
to store information. The daily reports maintain the record of passengers, flights etc. It
also saves money and papers.
USER
INTERFACE
DESIGN
LOGIN
10
HOME PAGE
11
FLIGHT SEARCH
12
FLIGHT FOUND
13
AIRLINES RESERVAION
14
TICKET
15
AIRPORT CHECK IN
16
BOARDING PASS
17
18
CHECK OUT
19
PASSENGER DETAIL
20
AIRPORT SERVICES
21
HOTEL RESERVATION
22
SHOPPING BILL
23
FOREIGN EXCHANGE
24
FLIGHT MAINTENANCE
25
RUNWAY MANTENANCE
26
SYSTEM
DATABASE
FILES
27
1. FLIGHT SEARCH:Sr No
Field Name
Data Type
Description
One Way
Yes / No
Round Trip
Yes / No
Date
Date / Time
To select date
Departure
Text
To select departure
Destination
Text
To select destination
2.
FLIGHT FOUND:-
Sr No
Field Name
Data Type
Description
Flight No
Text
To enter flight no
Airline
Text
To enter airlines
Departure
Text
Departure Time
Text
Arrival
Text
Arrival Time
Text
Seats Available
Text
To search seats
Fare
Text
3. RESERVATION:28
Sr No
1
2
3
4
5
6
7
8
9
10
11
12
13
Field Name
Name Of Passenger
One Way
Round Trip
Select Airline
From
To
Departure
Return
Gender
Age
Class
Adult
Children
Data Type
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text
Description
To enter name of passenger
To enter ticket option one way
To enter ticket option round trip
To enter airlines
To enter departure city
To enter destination city
To enter departure date
To enter return date
To enter gender
To enter age
To enter seat class
To enter no of adults
To enter no of children's
4. TICKET:Sr No
1
2
3
4
5
6
7
8
9
10
Field Name
Passport Number
Passenger Name
Departure Date
Destination City
Time
Departure City
Flight No
Ticket Option
Seat Number
Seat Class
Data Type
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text
Description
To enter passport number
To enter passenger name
To enter departure date
To enter destination city
To enter departure time
To enter departure city
To enter flight no
To enter ticket option
To enter seat number
To enter seat class
29
5. CHECK IN:Sr No
Field Name
Data
Type
Text
Passenger Identification
Registration(passport)
Text
Text
Text
Seating Registration
Text
Text
Passenger Name
Text
Flight No
Text
Passport No
Text
10
From
Text
11
To
Text
Description
To enter passenger
identification
registration
To enter passenger
identification
registration
To enter baggage
registration
To enter baggage
registration
To enter seating
registration
To enter special
service request
To enter passenger
name
To enter flight no l
To enter passport
no
To enter departure
city
To enter destination
city
6.BORDING PASS:Sr No
1
2
3
4
5
6
7
8
9
Field Name
Name
Seat No
Flight No
Date
From
To
Boarding Time
Am / Pm
Gate No
Data Type
Text
Text
Text
Date / Time
Text
Text
Text
Text
Text
Description
To enter passenger name
To enter seat no
To enter flight no
To enter date
To enter departure city
To enter destination city
To enter boarding time
To enter am or pm
To enter gate no
Sr No
1
Field Name
Destination City
Data Type
Text
Whether Maximum
Text
Whether Minimum
Text
Text
Text
Description
To give detail about
destination
To give whether
information
To give whether
information
To give information air
traffic control
frequency
To give information
radar
8. CHECK OUT:Sr No
1
2
3
4
5
6
7
Field Name
Name Of Passenger
Passenger
Identification
Registration (passport)
Passenger
identification
Registration (ticket)
Baggage Registration
(security)
Baggage Registration
(weight limit)
Special Service
Request
Car Rental
Data Type
Text
Text
Description
To enter name of passenger
To enter passenger
identification registration
Text
To enter passenger
identification
Text
Text
Text
Text
9. PASSENGER DETAIL:-
31
Sr No
1
2
3
4
5
6
7
8
9
10
11
Field Name
Name
Airlines
Flight No
Departure date
Departure Time
Arrival Date
Arrival Time
Departure City
Destination City
Ticket Option
Seat Class
Data Type
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text
Description
To enter name of passenger
To enter name of airlines
To enter flight no
To enter departure date
To enter departure time
To enter arrival date
To enter arrival time
To enter departure city
To enter destination city
To enter ticket option
To enter seat class
Field Name
Data Type
Description
Sr no
Text
To generate serial no
Customer Name
Text
Address
Text
To enter customer
name
To enter address
Phone No
Text
To enter phone no
Mobile No
Text
To enter mobile no
Reservation No
Text
Period Of Reservation
Text
Room Type
Text
To enter reservation
no
To enter period of
reservation
To enter room type
Sr No
Field Name
Data Type
Description
Sr No
Text
To generate serial no
Date
Text
To enter date
Payment
Text
Select Product
Text
To pay payment by
customer choice
To select product
Quantity
Text
To enter quantity
Rate
Text
To enter rate
Total
Text
To enter total
33
Field name
Data Type
Description
Order No
Text
To enter order no
Cold Drink
Text
Soup
Text
Ice Cream
Text
Snaks
Text
Hot Drinks
Text
Total
Number
Payment
Text
To pay payment
Field Type
Data Type
Description
Flight No
Text
To enter flight no
Airline Type
Text
Airframe Structure
Text
Electrical System
Text
To check Electrical
Text
Text
Radio Communication
System
Engine System
Text
Radar System
Text
34
DESIGN
SPECIFICATION
35
Flight fond
Flight Search
Check out
Airline Reservation
Check In
AirPort
Management
Ticket
Passenger detail
Airport Services
Boarding pass
Flight Maintains
Flight Information
Runway Maintains
Reports
1 LEVEL
36
Ticker Option
Flight No.
Via
Departure
Airlines
Flight
Search
Departure
Arrival
Destination
Fare
1.1 LEVEL
Passenger Personal
Detail
Boarding pass
Flight Number
Check In
Check Out
Emigration
1.2 LEVEL
Report
37
Report
Passenger Personal
Detail
Airline
Airline
Reservation
Ticker Option
Ticket
1.3 LEVEL
Hotel
Foreign Exchange
Passenger
Needs
Meals and
Refreshment
Airport Services
Shopping
Report
1.4 LEVEL
38
Destination
Air Traffic
Control
Whether Information
Radar Information
Report
1.5 LEVEL
Airframe Structure
Flight Number
Electrical System
Flight
Maintenanc
e
Flight Type
Radar system
1.6 LEVEL
39
40
IMPLEMENTATION
LANGUAGES
41
Its productivity
You can have multiple windows on screen. These windows have full access to
the clipboard and you the information in most other windows application running at
the same time.
You can use Visual Basic to communicate with other application running same
windows, using the most modern version of Microsofts COM/OLE technology. The
front-end application use in the project is Microsoft Visual Basic 6.0.
Visual refers to method used to create Graphical User
uses illustration rather than writing numerous lines of code to describe the appearance,
function and location of interface elements. Basic refer to the basic programming
language. Widely preferred language by many programmers for its simplicity Visual
Basic evolved from the original basic language and now contains several hundred
statements, function and keywords many of which relate directly to the window GUI.
Visual Basic is most popular language in the world today. Visual Basic is an
easy yet powerful tool for developing windows application. In basic it has added some
long desired language feature Visual Basic is another structured language.
The most notable enhancement includes dynamic HTML support DHTML
application is Visual Basic application that combines VB code with DHTML to create
a browser on the whole Visual Basic is generally on target in predicting the future of
software development.
Perhaps even more important than the look of Microsoft windows application
is the feel that the applications developed for window have windows interface. This
means that user can spend more time mastering the application and less worrying
about which keystrokes do what within means and dialogue boxes.
43
44
INTRODUCTION TO MS-ACCESS
MS-ACCESS
database file. Within this you can spilt your data and store name in table.
The database in the file table can be viewed reports. You can find and retrieve data
that meets criteria using a query.
MS-Access is the RELATIONAL DATABASE MANAGEMENT SYSTEM or
RDBMS. It is set of two dimensional tables in which the data is represented in rows
& columns. A relationship between the tables can be built. When a report has to be
generated a relationship can be built in table. Also the find from different tables can
combines together to from reports. In this manner only the database which contain
the data forms, queries and reports. These objects are used to manage the data in the
database.
A Database
45
46
IMPLEMENTATION
PLAN
47
DELIEVERABLE
ITEMS
48
49
50
Ticket Report
51
52
53
54
55
60
61
FUTURE PLAN
This project is small software which helps to user to maintain the records about hotel
but it does not fulfill all the requirements of people. In future we will try to make this
software more reliable and user friendly for use. We will add the login form as per
user define (user can change user name and password as they like). We will try to
overcome the limitations in next version.
62
CODING
Login
Dim a As Integer
Private Sub Command3_Click()
If Text1.Text = "naim" And Text2.Text = "rahim" Then
frmmain.Show
Unload Me
Else
MsgBox "You have enter wrong password or user name plase enter right
passwor and user name and try again."
End If
End Sub
Private Sub Command4_Click()
Unload Me
End Sub
Private Sub Form_Load()
End Sub
MDI Form
Private Sub AbUs_Click()
frmAboutUs.Show
End Sub
Private Sub aci_Click()
Rptacin.Show
End Sub
Private Sub aircheck_Click()
frmAC.Show
End Sub
Private Sub airres_Click()
frmTRes.Show
63
End Sub
Private Sub airsercives_Click()
frmAS.Show
End Sub
Private Sub arr_Click()
rptair_res.Show
End Sub
Private Sub atc_Click()
rptATC.Show
End Sub
Private Sub borpass_Click()
frmBP.Show
End Sub
Private Sub bp_Click()
rptBordingPass.Show
End Sub
Private Sub chout_Click()
frmCO.Show
End Sub
Private Sub co_Click()
rptCheckOut.Show
End Sub
Private Sub exi_Click()
Unload Me
End Sub
Private Sub exit_Click()
End
End Sub
Private Sub fd_Click()
frmflfo.Show
End Sub
64
frmRM.Show
End Sub
Private Sub sb_Click()
rptShop.Show
End Sub
Private Sub tc_Click()
rptTicket.Show
End Sub
Private Sub tic_Click()
frmTP.Show
End Sub
Private Sub tracon_Click()
frmATC.Show
End Sub
FLIGHT SEARCH
Private Sub cmdcan_Click()
Unload Me
End Sub
Private Sub cmdclr_Click()
Call clrTxt(frmFS)
End Sub
Private Sub cmdsub_Click()
frmflfo.Show
End Sub
Private Sub comdep_KeyPress(KeyAscii As Integer)
If KeyAscii >= vbKey0 And KeyAscii <= vbKey9 Then
Else
KeyAscii = 0
End If
If KeyAscii >= vbKey0 And KeyAscii <= vbKey9 Then
KeyAscii = 0
End If
End Sub
66
FLIGHT FOUND
Private Sub Command1_Click()
End Sub
Private Sub cmdext_Click()
Unload Me
End Sub
Private Sub Form_Load()
Fg.FormatString = "FlightNo|
Airline
Time | Arrival | Arrival Time |
Fare
"
i=1
With Adodc1.Recordset
.MoveFirst
While .EOF = False
Fg.TextMatrix(i, 0) = .Fields(0)
Fg.TextMatrix(i, 1) = .Fields(1)
Fg.TextMatrix(i, 2) = .Fields(2)
Fg.TextMatrix(i, 3) = .Fields(3)
| Depature | Depature
| Seats Aviable | Via
67
Fg.TextMatrix(i, 4) = .Fields(4)
Fg.TextMatrix(i, 5) = .Fields(5)
Fg.TextMatrix(i, 6) = .Fields(6)
Fg.TextMatrix(i, 7) = .Fields(7)
Fg.TextMatrix(i, 8) = .Fields(8)
i=i+1
Fg.Rows = Fg.Rows + 1
.MoveNext
Wend
End With
End Sub
AIRLINE RESERVATION
Private Sub cmdcan_Click()
Unload Me
End Sub
Private Sub cmdclr_Click()
Call clrTxt(frmTRes)
End Sub
Private Sub cmdDel_Click()
Dim con As ADODB.Connection
Dim strName As String
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
strName = InputBox("Enter Passenger Name to Delete...")
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from air_res", con, adOpenDynamic, adLockOptimistic
.MoveFirst
While .EOF = False
If strName = .Fields("n_of_p") Then
.Delete
MsgBox "Record Deleted..."
Exit Sub
Else
.MoveNext
End If
Wend
68
End With
End Sub
Private Sub cmdsav_Click()
Dim con As ADODB.Connection
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from air_res", con, adOpenDynamic, adLockOptimistic
.AddNew
.Fields("n_of_p") = txtn_of_p.Text
.Fields("o_w") = opto_w.Value
.Fields("r_w") = optr_w.Value
.Fields("s_a") = Coms_a.Text
.Fields("f") = comf.Text
.Fields("t") = Comt.Text
.Fields("dep") = DTPicker1.Value
.Fields("ret") = DTPicker2.Value
.Fields("gen") = Comret.Text
.Fields("age") = Comage.Text
.Fields("cla") = Comcla.Text
.Fields("adu") = Comadu.Text
.Fields("chil") = Comchil.Text
.Update
.Close
MsgBox "Record Saved..."
End With
End Sub
Private Sub cmdupd_Click()
'n_of_p
Dim con As ADODB.Connection
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
69
.Open "Select * from air_res where n_of_p='" & txtn_of_p.Text & "'", con,
adOpenDynamic, adLockOptimistic
.AddNew
.Fields("n_of_p") = txtn_of_p.Text
.Fields("o_w") = opto_w.Value
.Fields("r_w") = optr_w.Value
.Fields("s_a") = Coms_a.Text
.Fields("f") = comf.Text
.Fields("t") = Comt.Text
.Fields("dep") = DTPicker1.Value
.Fields("ret") = DTPicker2.Value
.Fields("gen") = Comret.Text
.Fields("age") = Comage.Text
.Fields("cla") = Comcla.Text
.Fields("adu") = Comadu.Text
.Fields("chil") = Comchil.Text
.Update
.Close
MsgBox "Record Updated..."
End With
End Sub
Private Sub Form_Load()
loadCboData ("frmTRes")
End Sub
Private Sub Label3_Click()
End Sub
Private Sub opto_w_Click()
If opto_w.Value = True Then
Frame2.Visible = False
Else
Frame2.Visible = True
End If
End Sub
Private Sub optr_w_Click()
If optr_w.Value = True Then
Frame2.Visible = True
Else
Frame2.Visible = False
70
End If
End Sub
Private Sub txtn_of_p_KeyPress(KeyAscii As Integer)
If KeyAscii >= vbKey0 And KeyAscii <= vbKey9 Or KeyAscii = vbKeyBack
Then
KeyAscii = 0
End If
End Sub
TICKET
Private Sub cmdcan_Click()
Unload Me
End Sub
Private Sub cmdpri_Click()
rptTicket.Show
End Sub
Private Sub Form_Load()
loadCboData ("frmTP")
End Sub
MODULES (mdlCboData)
Public Sub loadCboData(frm As String)
Dim a As Integer
Select Case frm
Case "frmTRes"
With frmTRes
.Comret.AddItem "Select"
.Comret.AddItem "Male"
.Comret.AddItem "Female"
.Comret.ListIndex = 0
.Comcla.AddItem "Select"
.Comcla.AddItem "Business"
.Comcla.AddItem "Ecomoic"
.Comcla.ListIndex = 0
.comf.AddItem "Select"
.comf.AddItem "Cairo"
.comf.AddItem "Dubai"
71
.comf.AddItem "Karachi"
.comf.AddItem "Melbourne"
.comf.AddItem "Mumbai"
.comf.AddItem "New York"
.comf.ListIndex = 0
.Coms_a.AddItem "Select"
.Coms_a.AddItem "AIR AMERICA"
.Coms_a.AddItem "AIR INDIA"
.Coms_a.AddItem "AUSTRALIAN AIRLINES"
.Coms_a.AddItem "AIR EMRITES"
.Coms_a.AddItem "AIR EGYPT"
.Coms_a.AddItem "PAKISTAN AIRLINES"
.Coms_a.ListIndex = 0
.Comt.AddItem "Select"
.Comt.AddItem "Cairo"
.Comt.AddItem "Dubai"
.Comt.AddItem "Karachi"
.Comt.AddItem "Melbourne"
.Comt.AddItem "Mumbai"
.Comt.AddItem "New York"
.Comt.ListIndex = 0
.Comage.AddItem "Select"
For a = 1 To 95
.Comage.AddItem a
Next a
.Comage.ListIndex = 0
.Comchil.AddItem "Select"
For a = 1 To 5
.Comchil.AddItem a
Next a
.Comchil.ListIndex = 0
.Comadu.AddItem "Select"
For a = 1 To 5
.Comadu.AddItem a
Next a
.Comadu.ListIndex = 0
72
End With
Case "frmTP"
With frmTP
.Comfli.AddItem "Select"
.Comfli.AddItem "AIR AMERICA"
.Comfli.AddItem "AIR INDIA"
.Comfli.AddItem "AUSTRALIAN AIRLINES"
.Comfli.AddItem "AIR EMRITES"
.Comfli.AddItem "AIR EGYPT"
.Comfli.AddItem "PAKISTAN AIRLINES"
.Comfli.ListIndex = 0
.Comdes_c.AddItem "Select"
.Comdes_c.AddItem "Cairo"
.Comdes_c.AddItem "Dubai"
.Comdes_c.AddItem "Karachi"
.Comdes_c.AddItem "Melbourne"
.Comdes_c.AddItem "Mumbai"
.Comdes_c.AddItem "New York"
.Comdes_c.ListIndex = 0
.Comdep_c.AddItem "Select"
.Comdep_c.AddItem "Cairo"
.Comdep_c.AddItem "Dubai"
.Comdep_c.AddItem "Karachi"
.Comdep_c.AddItem "Melbourne"
.Comdep_c.AddItem "Mumbai"
.Comdep_c.AddItem "New York"
.Comdep_c.ListIndex = 0
.Coms_c.AddItem "Select"
.Coms_c.AddItem "Economy"
.Coms_c.AddItem "Busniss"
.Coms_c.ListIndex = 0
End With
Case "frmRM"
With frmRM
.comr_no.AddItem "Select"
.comr_no.AddItem "1"
.comr_no.AddItem "2"
.comr_no.ListIndex = 0
73
.Comsur.AddItem "Select"
.Comsur.AddItem "Asphalt"
.Comsur.AddItem "Concrete"
.Comsur.ListIndex = 0
End With
End Select
End Sub
Private Sub Cmdde_Click()
Dim con As ADODB.Connection
Dim strName As String
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
strName = InputBox("Enter Passenger Name to Delete...")
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from air_c_in", con, adOpenDynamic, adLockOptimistic
.MoveFirst
While .EOF = False
If strName = .Fields("p_n") Then
.Delete
MsgBox "Record Deleted..."
Exit Sub
Else
.MoveNext
End If
Wend
End With
End Sub
CHECK IN
Private Sub Com1_KeyPress(KeyAscii As Integer)
If KeyAscii >= 0 And KeyAscii <= 9 Then
Else
KeyAscii = 0
End If
End Sub
74
End If
If chkWLmt.Value = vbChecked Then
.Fields("b_r_Whgt_Lmt") = chkWLmt.Caption
End If
.Fields("s_r") = com4.Text
.Fields("s_s_r") = Com3.Text
.Fields("p_n") = Text5.Text
.Fields("f_n") = Text8.Text
.Fields("p_no") = Text7.Text
.Fields("f") = CoM1.Text
.Fields("t") = Com2.Text
.Fields("f_n") = Text8.Text
.Fields("f_n") = Text8.Text
.Update
.Close
MsgBox "Record Saved..."
End With
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Command3_Click()
Call clrTxt(frmAC)
End Sub
Private Sub Form_Load()
CoM1.AddItem "Select"
CoM1.AddItem "Cairo"
CoM1.AddItem "Dubai"
CoM1.AddItem "Karachi"
CoM1.AddItem "Melbourne"
CoM1.AddItem "Mumbai"
CoM1.AddItem "New York"
CoM1.ListIndex = 0
Com2.AddItem "Select"
Com2.AddItem "Cairo"
Com2.AddItem "Dubai"
Com2.AddItem "Karachi"
Com2.AddItem "Melbourne"
Com2.AddItem "Mumbai"
76
BORDING PASS
Private Sub Cmdde_Click()
Dim con As ADODB.Connection
Dim strName As String
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
strName = InputBox("Enter Name to Delete...")
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from bor_pass", con, adOpenDynamic, adLockOptimistic
77
.MoveFirst
While .EOF = False
If strName = .Fields("n") Then
.Delete
MsgBox "Record Deleted..."
Exit Sub
Else
.MoveNext
End If
Wend
End With
End Sub
Private Sub cmdsav_Click()
Dim con As ADODB.Connection
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from bor_pass", con, adOpenDynamic, adLockOptimistic
.AddNew
.Fields("n") = txtn.Text
.Fields("s_n") = txts_n.Text
.Fields("f_n") = txtf_n.Text
.Fields("f") = comf.Text
.Fields("t") = Comt.Text
.Fields("b_t") = Txtb_t.Text
.Fields("b_tt") = Comb_tt.Text
.Fields("g_n") = Comg_n.Text
.Update
.Close
MsgBox "Record Saved..."
End With
End Sub
Private Sub cmdcan_Click()
Unload Me
End Sub
Private Sub cmdclr_Click()
Call clrTxt(frmBP)
End Sub
78
Comt.AddItem "Select"
Comt.AddItem "Cairo"
Comt.AddItem "Dubai"
Comt.AddItem "Karachi"
Comt.AddItem "Melbourne"
Comt.AddItem "Mumbai"
Comt.AddItem "New York"
Comt.ListIndex = 0
Comg_n.AddItem "Select"
Comg_n.AddItem "1"
Comg_n.AddItem "1A"
Comg_n.AddItem "1B"
Comg_n.AddItem "2"
Comg_n.AddItem "2A"
Comg_n.AddItem "2B"
Comg_n.ListIndex = 0
Comb_tt.AddItem "Select"
Comb_tt.AddItem "AM"
Comb_tt.AddItem "PM"
Comb_tt.ListIndex = 0
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii >= vbKey0 And KeyAscii <= vbKey9 Or KeyAscii = vbKeyBack
Then
KeyAscii = 0
End If
End Sub
Private Sub Txtb_t_KeyPress(KeyAscii As Integer)
If KeyAscii >= vbKey0 And KeyAscii <= vbKey9 Or KeyAscii = vbKeyBack
Then
Else
KeyAscii = 0
End If
End Sub
Private Sub txts_n_KeyPress(KeyAscii As Integer)
If KeyAscii >= vbKey0 And KeyAscii <= vbKey9 Or KeyAscii = vbKeyBack
Then
80
Else
KeyAscii = 0
End If
End Sub
Text1.Text = 42
Text2.Text = 30
Text3.Text = 76
End If
If CoM1.ListIndex = 2 Then
Text1.Text = 45
Text2.Text = 32
Text3.Text = 78
End If
If CoM1.ListIndex = 3 Then
Text1.Text = 42
Text2.Text = 30
Text3.Text = 79
End If
If CoM1.ListIndex = 4 Then
Text1.Text = 39
Text2.Text = 20
Text3.Text = 78
End If
If CoM1.ListIndex = 5 Then
Text1.Text = 45
Text2.Text = 25
Text3.Text = 79
End If
If CoM1.ListIndex = 6 Then
Text1.Text = 15
Text2.Text = 5
Text3.Text = 80
End If
If CoM1.ListIndex = 0 Then
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
End If
End Sub
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Command2_Click()
Dim con As ADODB.Connection
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
82
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from air_t_c", con, adOpenDynamic, adLockOptimistic
.AddNew
.Fields("d_r_m") = CoM1.Text
.Fields("w_m") = Text1.Text
.Fields("w_n") = Text2.Text
.Fields("a_t_c") = Text3.Text
.Fields("r_s_i") = Text4.Text
.Update
.Close
MsgBox "Record Saved..."
End With
End Sub
Private Sub Form_Load()
CoM1.AddItem "Select"
CoM1.AddItem "Cairo"
CoM1.AddItem "Dubai"
CoM1.AddItem "Karachi"
CoM1.AddItem "Melbourne"
CoM1.AddItem "Mumbai"
CoM1.AddItem "New york"
CoM1.ListIndex = 0
End Sub
Private Sub Text3_KeyPress(KeyAscii As Integer)
KeyAscii = KeyNum(KeyAscii)
End Sub
Private Sub Text4_KeyPress(KeyAscii As Integer)
KeyAscii = KeyNum(KeyAscii)
End Sub
CHECK OUT
Private Sub cmdclr_Click()
Call clrTxt(frmCO)
End Sub
Unload Me
End Sub
Private Sub Cmdl_Click()
Dim con As ADODB.Connection
Dim strName As String
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
strName = InputBox("Enter Passenger Name to Delete...")
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from c_out", con, adOpenDynamic, adLockOptimistic
.MoveFirst
While .EOF = False
If strName = .Fields("n_p") Then
.Delete
MsgBox "Record Deleted..."
Exit Sub
Else
.MoveNext
End If
Wend
End With
End Sub
Private Sub cmdsave_Click()
Dim con As ADODB.Connection
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from c_out", con, adOpenDynamic, adLockOptimistic
.AddNew
.Fields("n_p") = txtn_p.Text
.Fields("p_i_r_t") = chkp_i_r_t.Value
.Fields("p_i_r_p") = chkp_i_r_p.Value
.Fields("b_r_s") = Chkb_r_s.Value
84
.Fields("b_r_w") = chkb_r_w.Value
.Fields("s_s_r") = Coms_s_r.Text
.Fields("c_r") = Comc_r.Text
.Update
.Close
MsgBox "Record Saved..."
End With
End Sub
Private Sub Form_Load()
Coms_s_r.AddItem "Select"
Coms_s_r.AddItem "Wheel Chair"
Coms_s_r.AddItem "Baby Cradle"
Coms_s_r.AddItem "No"
Coms_s_r.ListIndex = 0
Comc_r.AddItem "Select"
Comc_r.AddItem "No"
Comc_r.AddItem "Estem"
Comc_r.AddItem "maruti"
Comc_r.AddItem "Indica"
Comc_r.ListIndex = 0
End Sub
Private Sub txtn_p_KeyPress(KeyAscii As Integer)
If KeyAscii >= vbKey0 And KeyAscii <= vbKey9 Or KeyAscii = vbKeyBack
Then
KeyAscii = 0
End If
End Sub
PASSENGER DETAIL
Private Sub cmdclr_Click()
Call clrTxt(frmPD)
End Sub
Private Sub cmdei_Click()
Dim con As ADODB.Connection
Dim strName As String
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
85
.Close
MsgBox "Record Saved..."
End With
End Sub
Private Sub cmdupd_Click()
'nam
Dim con As ADODB.Connection
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from pas_det where nam='" & txtname.Text & "'", con,
adOpenDynamic, adLockOptimistic
.AddNew
.Fields("nam") = txtname.Text
.Fields("air") = txtname.Text
.Fields("f_n") = txtf_n.Text
.Fields("d_d") = DTPicker1.Value
.Fields("d_t") = txtd_t.Text
.Fields("a_d") = DTPicker2.Value
.Fields("a_t") = txta_d.Text
.Fields("dep_c") = Comdep_c.Text
.Fields("des_c") = Comdes_c.Text
.Fields("t_o") = Comt_o.Text
.Fields("s_c") = Coms_c.Text
.Update
.Close
MsgBox "Record Updated..."
End With
End Sub
Private Sub Form_Load()
Comair.AddItem "Select"
Comair.AddItem "AIR AMERICA"
Comair.AddItem "AIR INDIA"
Comair.AddItem "AUSTRALIAN AIRLINES"
Comair.AddItem "AIR EMRITES"
Comair.AddItem "AIR EGYPT"
87
AIRPORT SERVICES
Dim s As Variant
88
1) HOTEL
Private Sub cmdcan_Click()
Unload Me
End Sub
Private Sub cmdcle_Click()
Call clrTxt(frmhot)
End Sub
Private Sub cmder_Click()
89
.Update
.Close
MsgBox "Record Saved..."
End With
End Sub
Private Sub Form_Load()
comr_t.AddItem "Select"
comr_t.AddItem "Ac"
comr_t.AddItem "Non Ac"
comr_t.ListIndex = 0
End Sub
2) SHOPPING
Dim i As Integer
Private Sub cmdAdd_Click()
With fgShopBill
.Rows = .Rows + 1
.TextMatrix(i, 0) = cboProduct.Text
.TextMatrix(i, 1) = txtQty.Text
.TextMatrix(i, 2) = txtRate.Text
.TextMatrix(i, 3) = txtTotal.Text
i=i+1
End With
End Sub
Private Sub cmdsave_Click()
Dim con As ADODB.Connection
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from shop", con, adOpenDynamic, adLockOptimistic
.AddNew
.Fields("sr_no") = txtsr.Text
.Fields("date") = DTPicker1.Value
91
.Fields("pay") = CoM1.Text
.Fields("s_p") = cboProduct.Text
.Fields("q") = txtQty.Text
.Fields("r") = txtRate.Text
.Fields("t") = txtTotal.Text
.Update
.Close
MsgBox "Record Saved..."
End With
End Sub
Private Sub Cmdt_Click()
Dim con As ADODB.Connection
Dim strName As String
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
strName = InputBox("Enter Serial no to Delete...")
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from shop", con, adOpenDynamic, adLockOptimistic
.MoveFirst
While .EOF = False
If strName = .Fields("sr_no") Then
.Delete
MsgBox "Record Deleted..."
Exit Sub
Else
.MoveNext
End If
Wend
End With
End Sub
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Form_Load()
i=1
92
3) FOREING EXCHANGE
Private Sub cmdclr_Click()
Call clrTxt(Me)
End Sub
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub cmdConvt_Click()
If cboFrom.Text = "Dollar(us)" And cboTo.Text = "Rupee(ind)" Then
txtTo.Text = Val(txtFrom.Text) * 48
End If
93
End Sub
txtcd.Text = "15"
ElseIf Comc_dr.Text = "Pepsi" Then
txtcd.Text = "15"
ElseIf Comc_dr.Text = "Fanta" Then
txtcd.Text = "15"
ElseIf Comc_dr.Text = "limca" Then
txtcd.Text = "15"
Else
txtcd.Text = "0"
End If
End Sub
Private Sub Comh_d_Click()
If Comh_d.Text = "Coffee" Then
txthd.Text = "20"
ElseIf Comh_d.Text = "Tea" Then
txthd.Text = "10"
Else
txthd.Text = "0"
End If
End Sub
Private Sub Comi_c_Click()
If Comi_c.Text = "Vanila" Then
txtic.Text = "20"
ElseIf Comi_c.Text = "Chocodip" Then
txtic.Text = "25"
ElseIf Comi_c.Text = "Strawbery" Then
txtic.Text = "30"
ElseIf Comi_c.Text = "chacobar" Then
txtic.Text = "15"
ElseIf Comi_c.Text = "mango" Then
txtic.Text = "30"
Else
txtic.Text = "0"
End If
txttot.Text = Val(txtSoup.Text) + Val(txtsn.Text) + Val(txthd.Text) +
Val(txtcd.Text) + Val(txtic.Text)
End Sub
Private Sub Comsn_Click()
If Comsn.Text = "Samosa" Then
96
txtsn.Text = "10"
ElseIf Comsn.Text = "Burger" Then
txtsn.Text = "12"
ElseIf Comsn.Text = "Sandwhich" Then
txtsn.Text = "15"
ElseIf Comsn.Text = "Piza" Then
txtsn.Text = "50"
Else
txtsn.Text = "0"
End If
End Sub
Private Sub Comso_Click()
If Comso.Text = "Tomato Soup" Then
txtSoup.Text = "15"
ElseIf Comso.Text = "Chiken Soup" Then
txtSoup.Text = "25"
Else
txtSoup.Text = "0"
End If
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Form_Load()
Comso.AddItem "Select"
Comso.AddItem "Tomato Soup"
Comso.AddItem "Chiken Soup"
Comso.ListIndex = 0
Comc_dr.AddItem "Select"
Comc_dr.AddItem "Sprit"
Comc_dr.AddItem "Coca cola"
Comc_dr.AddItem "Pepsi"
Comc_dr.AddItem "Fanta"
Comc_dr.AddItem "limca"
Comc_dr.ListIndex = 0
Comi_c.AddItem "Select"
Comi_c.AddItem "Vanila"
97
Comi_c.AddItem "Chocodip"
Comi_c.AddItem "Strawbery"
Comi_c.AddItem "chacobar"
Comi_c.AddItem "mango"
Comi_c.ListIndex = 0
Comsn.AddItem "Select"
Comsn.AddItem "Samosa"
Comsn.AddItem "Burger"
Comsn.AddItem "Sandwhich"
Comsn.AddItem "Piza"
Comsn.ListIndex = 0
Compay.AddItem "Select"
Compay.AddItem "Cash"
Compay.AddItem "Debit card"
Compay.AddItem "Credit card"
Compay.ListIndex = 0
Comh_d.AddItem "Select"
Comh_d.AddItem "Tea"
Comh_d.AddItem "Coffee"
Comh_d.ListIndex = 0
End Sub
Private Sub save_Click()
Dim con As ADODB.Connection
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from meals_ref", con, adOpenDynamic, adLockOptimistic
.AddNew
.Fields("o_no") = txto_n.Text
.Fields("c_dr") = Comc_dr.Text
.Fields("so") = Comso.Text
.Fields("i_c") = Comi_c.Text
.Fields("sn") = Comsn.Text
98
.Fields("tot") = txttot.Text
.Fields("h_d") = Comh_d.Text
.Fields("pay") = Compay.Text
.Update
.Close
MsgBox "Record Saved..."
End With
End Sub
FLIGHT MAINTENANCE
Private Sub exit_Click()
Unload Me
End Sub
Private Sub cmdclr_Click()
Call clrTxt(Frmfm)
End Sub
Private Sub Cmdel_Click()
Dim con As ADODB.Connection
Dim strName As String
Dim rs As ADODB.Recordset
Set con = New ADODB.Connection
strName = InputBox("Enter Flight no to Delete...")
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\PRO\DATABASE\AIRMAN.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
With rs
.Open "Select * from fli_man", con, adOpenDynamic, adLockOptimistic
.MoveFirst
While .EOF = False
If strName = .Fields("f_no") Then
.Delete
MsgBox "Record Deleted..."
Exit Sub
Else
.MoveNext
End If
Wend
End With
End Sub
99
RUNWAY MAINTENANCE
100
MODULES (mdlfun1)
Public Sub loadcbo(cbo As ComboBox)
cbo.AddItem "--Select--"
Select Case cbo.Name
Case "cboFrom"
cbo.AddItem "India"
cbo.AddItem "United state of Amarica"
End Select
cbo.ListIndex = 0
End Sub
Public Function KeyNum(kyas As Integer) As Integer
If kyas >= vbKey0 And kyas <= vbKey9 Or kyas = vbKeyBack Then
KeyNum = kyas
Else
KeyNum = 0
End If
End Function
Public Sub clrTxt(frm As Form)
Dim ctrl As Control
For Each ctrl In frm
If TypeOf ctrl Is TextBox Then
ctrl.Text = ""
End If
If TypeOf ctrl Is ComboBox Then
ctrl.Text = "Select"
End If
If TypeOf ctrl Is CheckBox Then
ctrl.Value = vbUnchecked
End If
101
Next ctrl
End Sub
CONCLUSION
GIVE YOUR BEST THEN BEST WILL COME TO
YOU.
At the beginning phase implementation of the system was difficult and the users
were unknown about the new systems, but when they came to know the miracles of
the systems, they became more interested in it. The reason for this is illiteracy of the
computer. Giving training and teaching about computer fundamentals to the user can
solve this problem.
When any system is implemented, the users satisfaction should be given first
priority for the system adapter. The Programmer gets satisfaction when the user gives
satisfied reports. We tried our level best in this project to reduce physical efforts of the
user and satisfy them. Now a days the projects are prepared so carefully that even the
wrong information is immediately detected and only correct entries are accepted.
102
References
1. MS-ACCESS
Author - IRON BAY ROSS
2. DATA SYSTEM CONCEPT
Author HENRY KORTH
3. VISUL BASIC 6.0
Author- GERG PERRY
103
104
EXPERTS OPINION
SIGNATURE
105