Professional Documents
Culture Documents
ON
Submitted in partial fulfillment of the requirement
for the award of Degree of
BACHELOR OF COMPUTER
APPLICATION (BCA)
SUBMITTED TO
Department of Computer Science
SUBMITTED TO
SUBMITTED BY
MR. PRAMOD SHARMA
TAYAL
SHARMA
SAKSHI
SAURABH
ANKIT
SHARMA
SUBMITTED AT
DECLARATION
CERTIFICATE
This is to certify that the Project Report entitled AIRWAYS
RESERVATION is the bona fide project work carried out by Mr.,
students of BCA, SHRI RAM COLLEGE, Muzaffarnagar during the
year 2009, in partial fulfillment of the requirements for the award of
the Degree of Bachelor of Computer Application and that the project
report has not formed the basic for the award previously of any
degree, diploma or any other similar title.
Place: MUZAFFARNAGAR
Date:
Introduction
System Objectives
Problem Definition
Project Analysis
Feasibility study
Cost & benefit analysis
Project Design
System Analysis
Design Hints & Guidelines
System Design & Development
System Design
System Development
Data Structure Diagram
Tables Description
Coding
System Evaluation and Testing
System Implementation
System Maintenance
System Documentation
GLOSSARY
CONCLUSION
BIBLOGRAPHY
1.1
1.2
The definition of our problem lies in manual system and a fully automated
system.
Manual system :
The system is very time consuming and lazy. This system is more prone to
errors and sometimes the approach to various problems is unstructured.
Technical system :
With the advent of latest technology if we do not update our system then
our business result in losses gradually with time. The technical systems
contains the tools of latest trend i.e. computers printers, fax, Internet etc.
The systems with this technology are very fast, accurate, user-friendly and
reliable..
AIRWAYS SYSTEM
RESERVATION
CANCELLATION
UPDATION
a) Economical
b) Technical
c) Duration
Economical :This study about the software basically give the suggestion like if we
develop software for our organization than how much it will forfeitable,
workable as well as economical. If we developing a software which very
economical but not profitable there it is also wrong decision. So for we
economical study about the system table following of the point.
How much costing of the software?
What is the output of the customization?
What are the advantages in c0ompression manual we check
whether it is time or not?
Whether it is use friendly or not?
Technical :We also consider some technical points about development of software.
We see whether the software is reliable or not.
Whether it is work time for long time or not.
What are the languages as well as OS is used for development of
software.
It provides security or not.
Software is reusable or not.
Software is updated or not.
Software is flexible or not whether software can maintain.
Duration :It is also a major point when we develop software. We also consider about
time, how much time software place to complete because for a big
organization time factor is money for full successful of the software also
Tax some times so we have consider from starting to last that means
beginning to software.
Customer Request
BOOKING DEPARTMENT
Receiver
Flight Maintenance,
Request
Booking , Cancellling
PASSENGER
Data Storage
Ticket
Reservation
Cancellation , Request
For enquiry
Database
Receiver Customer
Passenger List
Confirmed List
REPORTS
Data Access
Passenger List,
Fleet info
Cancellation
Flight information
Fare details
Hardware Cost :Hardware cost relate to the actual purchase or lease of the computer &
peripherals Ex. Printer, disk, floppy drive, the best way to control for this
cost is to treat it as an operating cost.
Personnel Cost :This includes staff salaries & benefits (health insurance, vocation time, sick
pay etc.) as well as pay for those involved in developing system. Costs
incurred during the development of a system are one time costs & are
labeled developmental costs. Once the system is installed the costs of
operating &maintaining the system become recurring costs.
Facility Costs :Facility costs are expenses incurred in the preparation of the physical site
where the application or the computer will be i operation. This includes
wiring, flooring, acoustics, lighting & air conditioning. These costs are
treated as one time costs.
Operating Cost :Operating costs include all costs associated with the day to day operating
system.The amount depends on the number of sifts the nature of the
application & the caliber of the operating staff. There are various ways of
covering operating costs to overhead. Another approach is to change each
authorized user for the amount of processing they request from the system.
The amount charged is based on the computer time, staff time & the volume
of output produced.
Supply Cost :These costs are variable costs that increase with increased use of paper,
ribbon, disks & the like they should be estimated & include in the overall
cost of the system.
Equipment Cost :Equipment costs include rental & annual deprecation of any equipment such
as typewriter, copies, computer terminals & microcomputers used in
connection with the system. Other costs associated with the equipment,
such as insurance & maintenance should also be included.
SYSTEM DEVELOPMENT :-
Unique Identification, UID :A unique identification is required to be identified and associated with each
other at this stage.
Function Hierarchy :Function hierarchy Is used for grouping related functions under a parent
function. The hierarchy is balanced so that all elementary functions comes in
the same level of hierarchy. A good hierarchy drawn at this stage helped in
menu generation at a later stage.
The Basic Objective :The basic objective of the system design was the system being developed
should be able to fit into the existing system, that is it become a part of
the system and it should not lead to any changes which can adversely
affect the existing system. The airways having many activities which
effect one another so the approach of airways reservation is generated
for the simplification of data handling.
The approach would bring in the following benefits :-
Completely menu drive interface with the provision of initiating even the
batch jobs by the user himself.
On Line help
Strong documentation
The design stages takes the final specification of the system from the
analysis stages and finds the best way of fulfilling them, given the technical
environment and previous decision on required level of automation
Detailed Design
ARCHITECTURAL DESIGN :The high level design maps the business system described in the program
requirement specification to logical data structure, it involves:
Identification of the entities that constitutes the system :All the entities related to the module were identified, checked and
consolidated
Identifying the Relationships :The relationships between the entities, within and outside the system
were identified.
Attribute definition:The pertaining of the entities was identified and their field
characteristics were specified.
Normalization :The entities were normalization, after first and the second normalization
was achieved for all the entities.
Interface :Interface with the other systems were done and attributes related to
external entities identified.
DETAILED DESIGN :The low level design maps the logical model of the system to a physical
database design.
Table Mapping :The Table was created for the system using the design view, which is the
part of the MS_ACCESS. This has provision to create the entities and
attributes into the Tables. The name of the entity is taken as the table
name.
Default Database Design :In Access we can create the tables very easily. The tables divide into two
parts. These names are as follow: ROWS
COLUMNS
The steps involved here were :1. Generation of table
2. Check Validation Rule
3. Check Validation Text
4. Primary Keys
5. Unique Keys
6. Foreign Keys
Relationship :-
Program specifications :The program specifications were written for the master, transactions,
reports and queries. The logic for each field, block and form were
written so that anyone who does not know the system will be able to code
the logic. Field validations and user-friendly error messages were written
as part of the program specification.
and
efficient
processing.
These
constructs
include
For.next
Do.loop
Selectcase
Withend with
If.then.else
Visual Basic helps of creation Menus, Master-Details
Form.
DATA TYPE
Text
Text
DATA TYPE
Number
Number
Text
Number
Number
Text
Number
Number
Text
Number
DATA TYPE
Number
Number
Number
Text
Text
Date
Number
DATA TYPE
Text
Text
Number
Number
Number
Number
Number
Text
Date
FIELDS NAME
LOGIN_NAME
PASSWORD
PROJECT PASSWORD :-
DATA TYPE
Text
Text
FIELDS NAME
PASSENGER_NAME
PASSENGER_AGE
PASSENGER_PHONE
RESERVATION_DATE
RESERVATION_SECTOR
RESERVATION_CLASS
TICKET_NUMBER
RESERVATION_STATUS
PNR_NUMBER
DATA TYPE
Text
Number
Number
Date
Text
Text
Number
Text
Text
PASSENGER_ADDRESS
RESERVATION :-
Text
SPALSH FORM
LOGIN FORM
This is login form. In this form we login to enter the new form. It has
two attributes i.e. user name and password and two option button OK
and CANCLE through which we confirm or cancel the login form.
AIRWAYS RESERVATION
FORM
COUNTER ASSISTANT
RESERVATION FORM
This is the ticket detail form. In this form we can the ticket
information like name of passenger, pnr no., ticket no. , no. of seats,
total fare, sector, class, date, flight no. also we take the printout of
ticket.
DATA REPORT OF
RESERVATION FORM
In this form we can see the reservation slip of passenger and take
printout of ticket by applying print command.
This is the flight detail form .In this form we can save , new, find,
update and close the record. The attributes are flight no. , reservation
sector, departure time, class of travel , travelling fare, number of
seats.
FIND FORM
This is the form of find. In this form we can find the flight detail by
giving the flight number of the related flight.
This is the ticket detail form .In this form we can see the ticket detail
like sector flight no. , date, class, ticket no. , no. of seats, fare. If
we want to cancel the reservation then we can cancel the reservation by
clicking YES/NO.
CHANGE ADMIN
PASSWORD FORM
This is the change admin password form .In this form we can change the
admin password by giving new user name,old password, new password
,and confirm password.
This is the change user password form .In this form we can change the
user password by giving new user name,old password, new password ,and
confirm password
ABOUT US FORM
SPLASH FORM
Option Explicit
Private Sub Timer1_Timer()
Unload SPLASH
'aboutus.Show
USERPWD.Show
End Sub
LOGIN FORM
Option Explicit
Dim CN As New Connection
Dim LRS As New Recordset
Dim MYPWD As String
Public LoginSucceeded As Boolean
Private Sub Form_Activate()
txtPassword.SetFocus
End Sub
Private Sub Form_Load()
CN.Provider = "MICROSOFT.JET.OLEDB.3.51"
CN.ConnectionString = "C:\Program files\Microsoft Visual
Studio\VB98\RESERVATION.mdb"
CN.Open
LRS.Open "projectpassword", CN, adOpenDynamic
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As
Single)
lblok.ForeColor = Label1.ForeColor
lblcancel.ForeColor = Label1.ForeColor
End Sub
Private Sub lblcancel_Click()
LoginSucceeded = False
Unload USERPWD
End Sub
Private Sub lblcancel_MouseMove(Button As Integer, Shift As Integer, X As Single, Y
As Single)
lblcancel.ForeColor = vbYellow
End Sub
Private Sub lblok_Click()
MYPWD = LRS("PASSWORD")
If txtPassword.Text = MYPWD Then
LoginSucceeded = True
Unload USERPWD
AIRWAYSRESERVATION.Show
Else
MsgBox "Invalid Password, try again!", vbSystemModal + vbExclamation, "USER
PASSWORD"
txtPassword.SetFocus
SendKeys "{Home}+{End}"
End If
End Sub
Private Sub lblok_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As
Single)
lblok.ForeColor = vbYellow
End Sub
Private Sub txtusername_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txtPassword.SetFocus
End If
End Sub
AIRWAYS
RESERVATION
Private Sub MNUABOUTUS_Click()
aboutus.Show
End Sub
Private Sub MNUADMIN_Click()
ADMINPWD.Show
End Sub
Private Sub MNUCA_Click()
COUNTERASSISTANT.Show
End Sub
Private Sub MNUCANCEL_Click()
CANCELLATION.Show
End Sub
Private Sub MNUCHANGEADMIN_Click()
CHANGEADMIN.Show
End Sub
Private Sub MNUCHANGEUSER_Click()
CHANGEUSER.Show
End Sub
Private Sub MNUEXIT_Click()
End
End Sub
COUNTER ASSISTANT
Dim CN As New Connection
Dim rs1 As New Recordset
Dim totalseats As Integer
Dim RS As New Recordset
Private Sub cmbflightno_Click()
Set rs1 = CN.Execute("select res_sector from flightdetails where
flight_no=" & " '" & cmbflightno.Text & "'")
TXTSECTOR.Text = rs1("res_sector")
rs1.Close
End Sub
Private Sub cmbflightno_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
CMBRESCLASS.SetFocus
End If
End Sub
Private Sub CMBRESCLASS_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
TXTSEATS.SetFocus
End If
End Sub
Private Sub Form_Activate()
rs1.CursorLocation = adUseClient
rs1.Open "flightdetails", CN, adOpenDynamic
For i = 1 To rs1.RecordCount
cmbflightno.AddItem rs1("flight_no")
rs1.MoveNext
Next
CMBRESCLASS.AddItem "EXECUTIVE"
CMBRESCLASS.AddItem "ECONOMIC"
rs1.Close
End Sub
Private Sub Form_Load()
On Error GoTo BLANK
CN.Provider = "Microsoft.Jet.OLEDB.3.51"
CN.ConnectionString = "C:\Program Files\Microsoft Visual
Studio\VB98\RESERVATION.mdb"
CN.Open
OPTCANCEL.Value = False
BLANK:
If Err.Number = 3021 Then
MsgBox "There is no record.", vbInformation + vbSystemModal, "RECORD
NOT AVAILABLE"
OPTCANCEL.Value = False
End If
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
ok.ForeColor = Label1.ForeColor
OPTCANCEL.ForeColor = Label1.ForeColor
End Sub
Private Sub ok_Click()
Dim STORE As Integer
Dim mystore As Integer
rs1.Open "flightdetails", CN, adOpenDynamic
Set rs1 = CN.Execute("select bal_seats from flightdetails where flight_no=
" & " '" & cmbflightno & "' ")
mystore = rs1("bal_seats")
STORE = rs1("bal_seats") - TXTSEATS.Text
CN.Execute ("update flightdetails set bal_seats= " & " '" & STORE & "'
where flight_no=" & " '" & cmbflightno.Text & "' ")
If STORE >= Val(TXTSEATS.Text) Then
MsgBox "Your seats are confirmed.", vbSystemModal + vbInformation,
"CONFIRMED/WAITING SEATS"
End Sub
Private Sub TXTSEATS_LostFocus()
If TXTSEATS.Text = "" Then
MsgBox "Enter the seats.", vbInformation + vbSystemModal,
"CONFIRMATION SEATS"
TXTSEATS.SetFocus
ElseIf TXTSEATS.Text > 6 Then
MsgBox "More than six seats are not allowed.", vbSystemModal +
vbInformation, "CONFIRMATION SEATS"
TXTSEATS.SetFocus
ElseIf TXTSEATS.Text <= 6 And TXTSEATS.Text > 0 Then
ok.Enabled = True
ElseIf TXTSEATS.Text = 0 Then
MsgBox "Enter seats greater than 0.", vbSystemModal + vbInformation,
"CONFIRMATION SEATS"
ok.Enabled = False
TXTSEATS.SetFocus
End If
End Sub
Public Function BLANKFIELDS()
TXTRESDATE.Text = ""
TXTSECTOR.Text = "SECTOR"
TXTSEATS.Text = ""
End Function
RESERVATION
Dim CN As New Connection
Dim RS As New Recordset
Dim flightRS As New Recordset
Dim ticketrs As New Recordset
Dim X As Integer
Private Sub Form_Activate()
MsgBox "Enter details of passengers.", vbInformation + vbSystemModal,
"DETAIL INFORMATION"
DISPFIELDS
TXTNAME.SetFocus
TXTNAME.Locked = False
txtage.Locked = False
txtphoneno.Locked = False
txtaddress.Locked = False
txtpnrno.Text = ""
txtticketno.Text = ""
BLANKFIELDS
End Sub
Private Sub Form_Deactivate()
equalseats = 0
X=0
End Sub
Private Sub Form_Load()
CN.Provider = "MicroSoft.Jet.OLEDB.3.51"
CN.ConnectionString = "C:\Program files\Microsoft Visual
Studio\VB98\RESERVATION.mdb"
CN.Open
RS.CursorLocation = adUseClient
End Sub
Public Function DISPFIELDS()
TXTRESDATE.Text = COUNTERASSISTANT.TXTRESDATE.Text
txtressector.Text = COUNTERASSISTANT.TXTSECTOR.Text
TXTCLASS.Text = COUNTERASSISTANT.CMBRESCLASS.Text
End Function
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
LBLPRINT.ForeColor = Label1.ForeColor
LBLSAVE.ForeColor = Label1.ForeColor
End Sub
Private Sub LBLDELETE_MouseMove(Button As Integer, Shift As Integer,
X As Single, Y As Single)
LBLDELETE.ForeColor = vbYellow
End Sub
Private Sub Form_QueryUnload(cancel As Integer, UnloadMode As Integer)
If UnloadMode = 0 Then
MsgBox "Please enter details", vbInformation + vbSystemModal,
"Reservation"
cancel = 1
RESERVATION.Show
End If
End Sub
Private Sub LBLPRINT_Click()
Dim J As Integer
Dim X As Integer
Dim Y As Integer
RS.CursorLocation = adUseClient
Set ticketrs = CN.Execute("select
no_of_seats,total_fare,flight_no,ticket_no from ticketdetails where
ticket_no=" & "'" & txtticketno.Text & "'")
With TICKET
.TXTFARE.Text = ticketrs("total_fare")
.TXTFLIGHTNO.Text = ticketrs("flight_no")
.TXTSEATS.Text = ticketrs("no_of_seats")
.txtticketno.Text = ticketrs("ticket_no")
End With
TICKET.Show
J=0
RS.Open ("select res_class,res_date,res_sector,pnr_no,pas_name from
reservation where TICKET_NO=" & "'" & txtticketno.Text & "'")
With TICKET
.TXTCLASS.Text = RS("res_class")
.TXTDATE.Text = RS("res_date")
.TXTSECTOR.Text = RS("res_sector")
End With
For i = 0 To RS.RecordCount - 1
If i >= COUNTERASSISTANT.TXTSEATS Then
Exit For
Else
TICKET.txtpnrno(i).Visible = True
TICKET.TXTNAME(i).Visible = True
TICKET.txtpnrno(i).Text = RS("pnr_no")
TICKET.TXTNAME(i).Text = RS("pas_name")
Load TICKET.txtpnrno(i + 1)
Load TICKET.TXTNAME(i + 1)
Y = Y + 600
TICKET.txtpnrno(i + 1).Top = TICKET.txtpnrno(i).Top + Y
TICKET.TXTNAME(i + 1).Top = TICKET.TXTNAME(i).Top + Y
RS.MoveNext
End If
Next i
TICKET.Show
RESERVATION.Hide
ticketrs.Close
RS.Close
End Sub
Private Sub lblsave_Click()
Dim J As Integer
Dim A, count As Integer
Dim i As Integer
Dim TAKE As Integer
Dim take1 As Integer
Dim STR As String
Dim STR1 As String
Dim STORE As Integer
Dim check As Integer
Dim myval As Integer
Dim myphoneno$
Static equalseats As Integer
Dim totalfare As Single
RS.Open "RESERVATION", CN, adOpenDynamic, adLockOptimistic
flightRS.Open "flightdetails", CN, adOpenDynamic
For k = 1 To CLENGTH
X = Mid(STR2, k, 1)
Y = Asc(X)
If Y < 48 Or Y > 57 Then
MsgBox "Enter correct code.", vbSystemModal + vbInformation,
"PHONE NUMBER ERROR"
txtcode.SetFocus
Exit Sub
End If
If CLENGTH < 3 Then
MsgBox "Enter correct code.", vbInformation + vbSystemModal,
"CODE ERROR"
txtcode.SetFocus
Exit Sub
ElseIf txtcode.Text = "00000" Or txtcode.Text = "0000" Or
txtcode.Text = "000" Or txtcode.Text = "000000" Then
MsgBox "Enter correct code.", vbInformation + vbSystemModal,
"CODE ERROR"
txtcode.SetFocus
Exit Sub
End If
Next
RAK:
If Err.Number = 13 Then
MsgBox "Enter correct code.", vbSystemModal + vbInformation, "CODE
ERROR"
txtcode.SetFocus
End If
End Sub
Public Function BLANKFIELDS()
TXTNAME.Text = ""
txtage.Text = ""
txtaddress.Text = ""
txtphoneno.Text = ""
txtcode.Text = ""
End Function
Public Function SHOWFIELDS()
With TICKET
.TXTCLASS.Text = RS("RES_CLASS")
.TXTDATE.Text = RS("RES_DATE")
.TXTSECTOR.Text = RS("res_sector")
.txtticketno.Text = RS("ticket_no")
End With
End Function
Private Sub txtname_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txtaddress.SetFocus
End If
End Sub
Private Sub TXTNAME_LostFocus()
BLANK
End Sub
Public Function BLANK()
Dim X As String
Dim length As Integer
Dim STR1 As String
Dim Y As Integer
Dim z As String
Dim J As Integer
STR1 = TXTNAME.Text
z = Trim(STR1)
length = Len(z)
For J = 1 To length
X = Mid(z, J, 1)
Y = Asc(X)
If Y < 31 Or Y > 33 And Y < 65 Or Y > 90 And Y < 97 Or Y > 122 Then
MsgBox "Enter correct name.", vbSystemModal + vbInformation,
"NAME ERROR"
TXTNAME.SetFocus
Exit Function
End If
Next
TXTNAME = z
TXTNAME = StrConv(TXTNAME, vbProperCase)
End Function
Private Sub txtphoneno_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txtage.SetFocus
End If
End Sub
Private Sub txtphoneno_LostFocus()
Dim X As String
Dim length As Integer
Dim i As Integer
Dim Y As Integer
Dim J As String
J = txtphoneno.Text
length = Len(J)
For i = 1 To length
X = Mid(J, i, 1)
Y = Asc(X)
If Y < 48 Or Y > 57 Then
MsgBox "Enter correct phone number.", vbSystemModal +
vbInformation, "PHONE NUMBER ERROR"
txtphoneno.SetFocus
Exit Sub
End If
If length < 6 Then
MsgBox "Enter the correct phone no. minimum upto 4 numbers and
maximum upto 7.", vbSystemModal + vbInformation, "PHONE NUMBER
ERROR"
txtphoneno.SetFocus
Exit Sub
ElseIf txtphoneno.Text = "000000" Or txtphoneno.Text =
"0000000" Or txtphoneno.Text = "00000000" Then
MsgBox "Enter correct phone number.", vbSystemModal +
vbInformation, "PHONE NUMBER ERROR"
txtphoneno.SetFocus
Exit Sub
End If
Next
End Sub
TICKET
Dim resrs As New Recordset
Public rescn As New Connection
Private Sub Form_Load()
rescn.Provider = "Microsoft.Jet.OLEDB.3.51"
rescn.ConnectionString = "C:\Program Files\Microsoft Visual
Studio\VB98\RESERVATION.mdb"
rescn.Open
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
LBLPRINT.ForeColor = Label1.ForeColor
End Sub
Private Sub LBLPRINT_Click()
Set resrs = rescn.Execute("select * from TICKETDETAILS where
TICKET_NO= " & " '" & txtticketno & "' ")
Set DataReport1.DataSource = resrs
DataReport1.DataMember = ""
With DataReport1.Sections("section1").Controls
.Item(22).DataField = "FLIGHT_NO"
.Item(17).DataField = "TICKET_NO"
.Item(18).DataField = "NO_OF_SEATS"
.Item(20).DataField = "RES_SECTOR"
.Item(19).DataField = "RES_CLASS"
.Item(21).DataField = "RES_DATE"
.Item(23).DataField = "TOTAL_FARE"
For i = 0 To TICKET.txtpnrno.count - 2
.Item(i + 1).Caption = TICKET.txtpnrno(i).Text
.Item(i + 1).Visible = True
.Item(i + 7).Caption = TICKET.TXTNAME(i)
.Item(i + 7).Visible = True
Next i
End With
DataReport1.Show
Unload TICKET
End Sub
DATA REPORT 1
Private Sub DataReport_Terminate()
TICKET.rescn.Close
COUNTERASSISTANT.Show
End Sub
ADMINISTRATOR
PASSWORD
Option Explicit
Dim CN As New Connection
Dim ARS As New Recordset
Dim MYPWD As String
Public LoginSucceeded As Boolean
Private Sub Form_Activate()
txtPassword.SetFocus
End Sub
Private Sub Form_Load()
CN.Provider = "MICROSOFT.JET.OLEDB.3.51"
CN.ConnectionString = "C:\PROGRAM FILES\MICROSOFT VISUAL
STUDIO\VB98\RESERVATION.mdb"
CN.Open
ARS.Open "ADMINPASSWORD", CN, adOpenDynamic
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
lblok.ForeColor = Label1.ForeColor
lblcancel.ForeColor = Label1.ForeColor
End Sub
Private Sub Form_QueryUnload(cancel As Integer, UnloadMode As Integer)
CN.Close
End Sub
Private Sub lblcancel_Click()
LoginSucceeded = False
Unload Me
End Sub
Private Sub lblcancel_MouseMove(Button As Integer, Shift As Integer, X
As Single, Y As Single)
lblcancel.ForeColor = vbWhite
End Sub
Private Sub lblok_Click()
MYPWD = ARS!PASSWORD
If txtPassword = MYPWD Then
LoginSucceeded = True
Unload Me
FLIGHT.Show
Else
MsgBox "Invalid Password, try again!", vbExclamation + vbSystemModal,
"ADMINISTRATOR PASSWORD"
txtPassword.SetFocus
SendKeys "{Home}+{End}"
End If
End Sub
Private Sub lblok_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
lblok.ForeColor = vbWhite
End Sub
Private Sub txtusername_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txtPassword.SetFocus
End If
End Sub
FLIGHT DETAIL
Dim CN As New Connection
Dim RS As New Recordset
Private Sub cmbflightno_Click()
Set RS = CN.Execute("select * from flightdetails where flight_no=" & " '" &
cmbflightno.Text & "' ")
DISPFIELDS
lblupdate.Enabled = True
RS.Close
End Sub
Private Sub Form_Load()
CN.Provider = "Microsoft.Jet.OLEDB.3.51"
CN.ConnectionString = "C:\Program Files\Microsoft Visual
Studio\VB98\RESERVATION.mdb"
CN.Open
RS.CursorLocation = adUseClient
End Sub
Private Sub Form_Unload(cancel As Integer)
CN.Close
End Sub
Private Sub Frame4_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
lblfind.ForeColor = Label1.ForeColor
lblmodify.ForeColor = Label1.ForeColor
lblsave.ForeColor = Label1.ForeColor
lblupdate.ForeColor = Label1.ForeColor
lblcancel.ForeColor = Label1.ForeColor
lblclose.ForeColor = Label1.ForeColor
End Sub
Private Sub Image1_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
lblfind.ForeColor = Label1.ForeColor
lblmodify.ForeColor = Label1.ForeColor
lblsave.ForeColor = Label1.ForeColor
lblupdate.ForeColor = Label1.ForeColor
lblcancel.ForeColor = Label1.ForeColor
lblclose.ForeColor = Label1.ForeColor
End Sub
Private Sub lblcancel_Click()
lblnew.Visible = True
lblsave.Visible = True
lblfind.Visible = True
lblcancel.Visible = False
lblupdate.Visible = False
lblmodify.Visible = True
BLANKFIELDS
cmbflightno.Visible = False
txtflightno.Visible = True
txtfare1.Locked = True
txtfare2.Locked = True
TXTDEPTTIME.Locked = True
txtseats1.Locked = True
txtseats2.Locked = True
lblclose.Visible = True
End Sub
Private Sub lblcancel_MouseMove(Button As Integer, Shift As Integer, X
As Single, Y As Single)
lblcancel.ForeColor = vbGreen
End Sub
Private Sub lblclose_Click()
If lblclose.Caption = "Cancel" Then
lblfind.Enabled = True
lblmodify.Enabled = True
lblclose.Caption = "Close"
lblsave.Enabled = False
lblnew.ForeColor = Label1.ForeColor
Exit Sub
End If
If lblclose.Caption = "Close" Then
Unload FLIGHT
AIRWAYSRESERVATION.Show
End If
End Sub
Private Sub lblclose_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
lblclose.ForeColor = vbGreen
End Sub
Private Sub lblfind_Click()
FLIGHT.Hide
FIND.Show
End Sub
Private Sub lblfind_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
lblfind.ForeColor = vbGreen
End Sub
Private Sub lblmodify_Click()
Dim i As Integer
RS.Open "flightdetails", CN, adOpenDynamic
cmbflightno.Visible = True
txtflightno.Visible = False
cmbflightno.SetFocus
For i = 1 To RS.RecordCount
cmbflightno.AddItem RS("flight_no")
RS.MoveNext
Next i
lblnew.Visible = False
lblsave.Visible = False
lblfind.Visible = False
lblupdate.Visible = True
lblupdate.Enabled = False
lblcancel.Visible = True
lblmodify.Visible = False
TXTDEPTTIME.Locked = False
txtfare1.Locked = False
txtfare2.Locked = False
txtseats1.Locked = False
txtseats2.Locked = False
lblclose.Visible = False
RS.Close
End Sub
Private Sub lblmodify_MouseMove(Button As Integer, Shift As Integer, X
As Single, Y As Single)
lblmodify.ForeColor = vbGreen
End Sub
Private Sub lblnew_Click()
BLANKFIELDS
cmbflightno.Visible = False
txtflightno.Visible = True
TXTDEPTTIME.Locked = False
txtsector.Locked = False
txtfare1.Locked = False
txtfare2.Locked = False
txtseats1.Locked = False
txtseats2.Locked = False
txtsector.SetFocus
lblsave.Enabled = True
lblclose.Caption = "Cancel"
lblfind.Enabled = False
lblmodify.Enabled = False
lblclose.Enabled = True
End Sub
Private Sub lblnew_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
lblnew.ForeColor = vbGreen
End Sub
Private Sub lblsave_Click()
Dim i, k As Integer
Dim length As Integer
Dim STORE As Integer
Dim TAKE As Integer
Dim STR As String
Dim STR1 As String
Dim myflight As String
Dim seats As Integer
If txtsector.Text = "" Then
txtfare2.Locked = True
txtseats1.Locked = True
txtseats2.Locked = True
lblclose.Caption = "Close"
lblfind.Enabled = True
lblmodify.Enabled = True
lblsave.Enabled = False
Exit Sub
ElseIf STORE = vbYes Then
length = Len(txtsector.Text)
STR = Mid(txtsector.Text, 1, 1)
For i = 1 To length
If (Mid(txtsector.Text, i, 1) = Chr(32)) Then
STR = UCase(STR + Mid(txtsector.Text, i + 1, 1))
End If
Next i
RS.Open "FLIGHTDETAILS", CN, adOpenDynamic, adLockOptimistic
For k = 1 To RS.RecordCount
If STR = Mid(RS("flight_no"), 1, 3) Then
myflight = RS("flight_no")
End If
RS.MoveNext
Next
If myflight = "" Then
STR1 = STR + "000"
Else
STR1 = myflight
End If
TAKE = Val(Right(STR1, 3))
TAKE = TAKE + 1
If TAKE >= 1 And TAKE < 10 Then
STR1 = STR & "00" & TAKE
ElseIf TAKE >= 10 And TAKE < 100 Then
STR1 = STR & "0" & TAKE
End If
txtflightno.Text = STR1
seats = Val(txtseats1) + Val(txtseats2)
txtseats1.Text = RS("NO_OF_SEATS1")
txtseats2.Text = RS("NO_OF_SEATS2")
End Function
Private Sub lblupdate_Click()
CN.Execute ("update flightdetails set travelling_fare1=" & " '" &
txtfare1.Text & "',travelling_fare2='" & txtfare2.Text & "',dept_time='" &
TXTDEPTTIME.Text & "',no_of_seats1='" & txtseats1.Text &
"',no_of_seats2='" & txtseats2.Text & "' where flight_no=" & " '" &
txtflightno.Text & "' ")
MsgBox "The record has been updated.", vbSystemModal + vbInformation,
"UPDATION CONFIRMED"
lblnew.Visible = True
lblsave.Visible = True
lblfind.Visible = True
lblcancel.Visible = False
lblupdate.Visible = False
lblmodify.Visible = True
lblclose.Visible = True
txtfare1.Locked = True
txtfare2.Locked = True
TXTDEPTTIME.Locked = True
txtseats1.Locked = True
txtseats2.Locked = True
lblclose.Visible = T
End Sub
Private Sub lblupdate_MouseMove(Button As Integer, Shift As Integer, X
As Single, Y As Single)
lblupdate.ForeColor = vbGreen
End Sub
Private Sub TXTDEPTTIME_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txtfare1.SetFocus
End If
End Sub
txtseats1.SetFocus
Exit For
End If
Next
End Sub
If KeyAscii = 13 Then
TXTDEPTTIME.SetFocus
End If
End Sub
Private Sub txtsector_LostFocus()
Dim i As Integer
Dim length As Integer
Dim STR2 As String
Dim X As String
Dim Y As Integer
Dim z As String
str4 = txtsector.Text
z = Trim(str4)
length = Len(z)
For i = 1 To length
X = Mid(z, i, 1)
Y = Asc(X)
If Y < 31 Or Y > 33 And Y < 65 Or Y > 90 And Y < 97 Or Y > 122 Then
MsgBox "Enter correct sector.", vbSystemModal + vbInformation,
"SECTOR ERROR"
txtsector.SetFocus
Exit For
End If
Next i
txtsector = z
txtsector = StrConv(txtsector, vbProperCase)
End Sub
FIND
Dim CN As New Connection
Dim RS As New Recordset
Dim myvar As Integer
End Sub
Private Sub lblcancel_MouseMove(Button As Integer, Shift As Integer, X
As Single, Y As Single)
lblcancel.ForeColor = vbWhite
End Sub
Private Sub lblok_Click()
On Error GoTo RAK
Set RS = CN.Execute("select * from flightdetails where flight_no=" & " '" &
cmbfind.Text & "' ")
DISPFIELDS
myvar = 1
FLIGHT.Show
Unload Me
RAK:
If Err.Number = 3021 Then
MsgBox "Flight No. does not exist", vbInformation + vbSystemModal,
"FIND ERROR"
End If
End Sub
Private Sub lblok_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
lblok.ForeColor = vbWhite
End Sub
Public Function DISPFIELDS()
FLIGHT.txtflightno.Text = RS("FLIGHT_NO")
FLIGHT.txtsector.Text = RS("res_sector")
FLIGHT.TXTDEPTTIME.Text = RS("DEPT_TIME")
FLIGHT.txtfare1.Text = RS("TRAVELLING_FARE1")
FLIGHT.txtfare2.Text = RS("TRAVELLING_FARE2")
FLIGHT.txtseats1.Text = RS("NO_OF_SEATS1")
FLIGHT.txtseats2.Text = RS("NO_OF_SEATS2")
FLIGHT.txtflightno.Locked = True
FLIGHT.txtsector.Locked = True
FLIGHT.TXTDEPTTIME.Locked = True
FLIGHT.txtfare1.Locked = True
FLIGHT.txtfare2.Locked = True
FLIGHT.txtseats1.Locked = True
FLIGHT.txtseats2.Locked = True
End Function
FLIGHT NUMBER
Dim CN As New Connection
Dim flightRS As New Recordset
Dim ticketrs As New Recordset
Dim resrs As New Recordset
Dim FRS As New Recordset
Dim MYTICKET As String
Dim ourTICKET As String
Private Sub cancelprint_Click()
Dim i As Integer
Dim myf As Integer
Dim fare As Integer
FRS.CursorLocation = adUseClient
FRS.Open "FLIGHTNUMBER", CN, adOpenDynamic
FRS.MoveFirst
If cmbpnrno.Visible = False Then
Set FRS = CN.Execute("SELECT * FROM FLIGHTNUMBER WHERE
TICKET_NO=" & "'" & MYTICKET & "'")
DISPFIELDS
cancel.TXTPNRNO(J).Visible = False
cancel.TXTNAME(J).Visible = False
cancel.Label2.Visible = False
cancel.Label3.Visible = False
cancel.Show
FLIGHTNUMBER.Hide
ElseIf cmbpnrno.Visible = True Then
Label8.Visible = True
TXTNAME.Visible = True
FRS.Close
FRS.Open ("SELECT * FROM FLIGHTNUMBER WHERE TICKET_NO=" &
"'" & MYTICKET & "'")
fare = FRS("Total_fare") / FRS("no_of_seats")
myf = FRS("no_of_seats")
myf = myf - cmbpnrno.ListCount
fare = fare * myf
FRS.MoveFirst
DISPFIELDS
cancel.Label2.Visible = True
cancel.Label3.Visible = True
J=0
For i = 0 To FRS.RecordCount - 1
cancel.TXTPNRNO(i).Visible = True
cancel.TXTNAME(i).Visible = True
cancel.TXTPNRNO(i).Text = FRS("pnr_no")
cancel.TXTNAME(i).Text = FRS("name")
J=J+1
Load cancel.TXTPNRNO(i + 1)
Load cancel.TXTNAME(i + 1)
Y = Y + 600
cancel.TXTPNRNO(i + 1).Top = cancel.TXTPNRNO(i).Top + Y
cancel.TXTNAME(i + 1).Top = cancel.TXTNAME(i).Top + Y
FRS.MoveNext
Next i
cancel.Show
cancel.TXTSEATS.Text = myf
cancel.TXTFARE = fare
storeticket = TXTTICKETNO.Text
FLIGHTNUMBER.Hide
End If
CN.Execute ("DELETE FROM TICKETDETAILS WHERE TICKET_NO=" & "'"
& ourTICKET & "'")
FRS.Close
End Sub
Private Sub cancelprint_MouseMove(Button As Integer, Shift As Integer, X
As Single, Y As Single)
cancelprint.ForeColor = vbGreen
End Sub
Private Sub cmbpnrno_Click()
Set ticketrs = CN.Execute("SELECT
NO_OF_SEATS,FLIGHT_NO,TOTAL_FARE FROM TICKETDETAILS
WHERE TICKET_NO=" & "'" & ticketno1.TXTTICKETNO & "'")
TXTSEATS.Text = ticketrs("NO_OF_SEATS")
TXTFARE.Text = ticketrs("TOTAL_FARE")
TXTFLIGHTNO.Text = ticketrs("FLIGHT_NO")
ticketrs.Close
Set resrs = CN.Execute("SELECT
RES_DATE,RES_SECTOR,RES_CLASS,TICKET_NO,PAS_NAME FROM
RESERVATION WHERE PNR_NO=" & "'" & cmbpnrno.Text & "'")
TXTTICKETNO.Text = resrs("TICKET_NO")
txtdate.Text = resrs("RES_DATE")
TXTSECTOR.Text = resrs("RES_SECTOR")
TXTCLASS.Text = resrs("RES_CLASS")
TXTNAME.Text = resrs("PAS_NAME")
resrs.Close
End Sub
Private Sub Form_Activate()
CN.Provider = "MicroSoft.Jet.OLEDB.3.51"
CN.ConnectionString = "C:\Program files\Microsoft Visual
Studio\VB98\RESERVATION.mdb"
CN.Open
resrs.CursorLocation = adUseClient
resrs.Open " SELECT * from RESERVATION where ticket_no= " & " '" &
ticketno1.TXTTICKETNO & "' ", CN, adOpenDynamic
For i = 1 To resrs.RecordCount
cmbpnrno.AddItem resrs("PNR_NO")
resrs.MoveNext
Next
resrs.Close
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
NO.ForeColor = Label1.ForeColor
YES.ForeColor = Label1.ForeColor
LBLYES.ForeColor = Label1.ForeColor
LBLNO.ForeColor = Label1.ForeColor
cancelprint.ForeColor = Label1.ForeColor
End Sub
End Sub
Private Sub YES_Click()
Dim X As Integer
Dim Y As Integer
If cmbpnrno.Visible = False Then
flightRS.Open "FLIGHTDETAILS", CN, adOpenDynamic,
adLockOptimistic
ticketrs.Open "TICKETDETAILS", CN, adOpenDynamic, adLockOptimistic
FRS.Open "FLIGHTNUMBER", CN, adOpenDynamic
X = flightRS("BAL_SEATS") + Val(TXTSEATS.Text)
MYTICKET = TXTTICKETNO.Text
CN.Execute ("INSERT INTO
FLIGHTNUMBER(RES_CLASS,FLIGHT_NO,TICKET_NO,RES_SECTOR,RE
S_DATE,TOTAL_FARE,NO_OF_SEATS) VALUES(" & " '" &
TXTCLASS.Text & "','" & TXTFLIGHTNO.Text & "','" &
TXTTICKETNO.Text & "','" & TXTSECTOR.Text & "','" & txtdate.Text &
"','" & TXTFARE.Text & "','" & TXTSEATS.Text & "')")
CN.Execute ("DELETE FROM TICKETDETAILS WHERE TICKET_NO=" &
"'" & TXTTICKETNO.Text & "'")
CN.Execute ("UPDATE FLIGHTDETAILS SET BAL_SEATS=" & "' " & X &
"' WHERE FLIGHT_NO=" & "'" & TXTFLIGHTNO.Text & "'")
CN.Execute ("DELETE FROM RESERVATION WHERE TICKET_NO=" &
"'" & TXTTICKETNO.Text & "'")
BLANKFIELDS
'cancelprint.Visible = True
flightRS.Close
ticketrs.Close
FRS.Close
ElseIf cmbpnrno.Visible = True Then
ticketrs.Open "TICKETDETAILS", CN, adOpenDynamic
flightRS.Open "FLIGHTDETAILS", CN, adOpenDynamic, adLockOptimistic
X = flightRS("BAL_SEATS") + 1
Y = ticketrs("NO_OF_SEATS") - 1
ourTICKET = TXTTICKETNO.Text
MYTICKET = TXTTICKETNO.Text
CN.Execute ("INSERT INTO
FLIGHTNUMBER(RES_CLASS,FLIGHT_NO,TICKET_NO,RES_SECTOR,RE
S_DATE,TOTAL_FARE,NO_OF_SEATS,PNR_NO,NAME) VALUES(" & " '" &
End Sub
Public Function BLANKFIELDS()
TXTNAME.Text = ""
TXTFARE.Text = ""
TXTSECTOR.Text = ""
TXTCLASS.Text = ""
TXTFLIGHTNO.Text = ""
TXTSEATS.Text = ""
txtdate.Text = ""
TXTTICKETNO.Text = ""
End Function
Public Function DISPFIELDS()
With cancel
.TXTCLASS.Text = FRS("res_class")
.txtdate.Text = FRS("res_date")
.TXTFARE.Text = FRS("total_fare")
.TXTFLIGHTNO.Text = FRS("flight_no")
.TXTSEATS.Text = FRS("no_of_seats")
.TXTSECTOR.Text = FRS("res_sector")
.TXTTICKETNO.Text = FRS("ticket_no")
End With
End Function
CHANGE ADMINISTRATOR
PASSWORD
Dim CN As New Connection
Dim ARS As New Recordset
Dim MYPWD As String
Private Sub Form_Load()
CN.Provider = "MICROSOFT.JET.OLEDB.3.51"
CN.ConnectionString = "C:\PROGRAM FILES\MICROSOFT VISUAL
STUDIO\VB98\RESERVATION.mdb"
CN.Open
ARS.Open "ADMINPASSWORD", CN, adOpenDynamic
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
lblchange.ForeColor = Label1.ForeColor
lblcancel.ForeColor = Label1.ForeColor
End Sub
Private Sub Form_QueryUnload(cancel As Integer, UnloadMode As Integer)
CN.Close
End Sub
Private Sub lblcancel_Click()
Unload CHANGEADMIN
End Sub
Private Sub lblcancel_MouseMove(Button As Integer, Shift As Integer, X
As Single, Y As Single)
lblcancel.ForeColor = vbGreen
End Sub
Private Sub lblchange_Click()
If txtoldpwd.Text = "" Then
MsgBox "Enter old password.", vbSystemModal + vbInformation,
"PASSWORD ERROR"
txtoldpwd.SetFocus
Exit Sub
ElseIf txtnewpwd.Text = "" Then
ABOUT US
Private Sub Form_QueryUnload(cancel As Integer, UnloadMode As Integer)
Unload aboutus
End Sub
Private Sub Timer1_Timer()
Label2.Top = Label2.Top - 100
Label3.Top = Label3.Top - 100
Label4.Top = Label4.Top - 100
Label5.Top = Label5.Top - 100
If Label2.Top < aboutus.Top And Label3.Top < aboutus.Top And Label4.Top <
aboutus.Top And Label5.Top < aboutus.Top Then
Label2.Top = aboutus.Height
Label3.Top = aboutus.Height
Label4.Top = Label2.Top + 480
Label5.Top = Label4.Top + 360
End If
End Sub
UNIT TESTING
Unit testing is the testing of a single program module in an
isolated environment. The testing of the processing procedure is the main
focus. In this regard, all the modules were separately tested first as
isolated and complete entities. This helped a lot in discovering problems
related to a single module and rectifying them in the contest of the module
itself, rather than considering module-related problem in a global context.
INTEGRATION TESTING
Integration testing is the process of testing the interfaces among
system modules. Some testing ensures that data moves between system as
intended. In the regard of a particular module was obtained in correct
format, so that the next module could accept it appropriately. This could be
done either after the entire system was developed, or in stages than one
module was developed.
SYSTEM TESTING
System testing is the testing of the system against its initial
objectives. Such testing is done either in a simulated environment or in a
live environment.
In the case of the system which I developed, the testing was done in
a pseudo-real environment. The organization has an area called the
Development , where all development work is carried out, whereas the
Client is the area where all on-line work is undertaken. Since the kind of
work which I was involved dealt with insertion, updating and in tables, all the
work was developed in the Development area. I call the environment
pseudo-real since all data which is being used for on-line transaction can be
copied into the tables of the Development and live data can be worked on.
Thus whatever would be the output on the Client is reflected exactly on
the Development also. Thus, discovery of error became simpler in that the
errors which would occurs in the real-time environment were exactly
duplicated in the Development environment.
All the above types of testing were carried out and various
extreme cases were also introduced to check for whether the system
responded as expected. The various Forms, database packages, procedures,
function; visual basic programs and functions were tested to discover they
behaved in the manner expected of them and gave accurate results.
However, the factor, which helped most in the modification and rectification
of the system, was the user response. The user after using the system would
invariably come up with some idea to improve the system. Such ideas, if
feasible, were incorporated into the system, thus leading to an improvement
in the overall efficiency of the system.
Accuracy of Results,
Minimization of response Time,
Clarity and Simplicity of the code,
Minimization of Hard Coding i.e. (a generic approach was followed )
Minimization of amount of memory used.
INTERNAL DOCUMENTATION
Internal documentation in the code can be extremely useful in enhancing the
understandability of programs. Internal documentation of programs is done
by the use of comments. All the languages provide means of writing
comments in the programs. Comments are textual statements that are meant
for the reader and are not executed. Comments , if properly written, and if
kept consistent with the code, can be invaluable during maintenance.
The purpose of comments is not to explain the internal logic of the program
the program itself is the best documentation for the details of logic. The
comments should explain what the code is done is doing, and not how it is
done it.
Comments should be provided for the block of code, particularly those parts
of code which are hard to follow.
Providing comments for module is most useful as module form the unit
testing , compiling , verification and modification. Comments for a module are
often called prologue for the module. It is best to standardized the
structure of the prologue of the module. It is desirable that prologue
contains the following information :
a)
Module functionality or what the module is doing
b)
Parameters are their purpose
c)
Assumptions about the input, if any
d)
Global variable accessed and or modified in the module
As explanation of parameters ( whether they are input only, output only or
both input and output , why they are needed by the module and how the
parameters are modified ) can be quite useful during maintenance.
In addition to that given above , often information can be included,
depending on the local coding standards. Example include :
- Name of the author,
- Date of compilation
- Last date of modification.
Note that if the module is modified, then the prologue should also be
modified, if necessary. A prologue that is inconsistent with the internal logic
of the module is prologue worse than having no prologue at all.
While coding programs for the Station Coding System special
attention has been paid to the internal documentation of the system, in
addition to the external documentation. Each program/module has :
Apart from this comment lines have been inserted wherever it was felt that
they were necessary. Moreover meaningful variable names/constants have
been assigned to different variable/constants used in the programs.
other software i.e., users all the requirements will be fulfill by this
software and user can manage all the numeric data calculations.
S.No.
Terms
Description
BACK UP
DATA BASE
DBMS
DD
FLOW CHART
FLOW
CHART
depicts relation
between
entities in the system.
HARDWARE
ITD
which
different
MENU
MODULE
10
ON-LINE
11
PI
Preliminary Investigation
12
PROGRAM
13
PROTOTYPE
14
RDBMS
15
RSD
16
SCALABILITY
17
SOFTWARE
BOOK NAME
AUTHOR
1.
Techmedia
2.
C. J. Date
3.
4.
Tulec
5.
Programming in VB
P.K.M Bride
6.
Gary Cornell
7.
Mastering in VB
Steve
8.
VB with MS-Access
Rita Sahoo
9.
Smith
E M. Awad
A
ON
Submitted in partial fulfillment of the requirement for the
award of Degree of
BACHELOR OF COMPUTER
APPLICATION (BCA)
SUBMITTED TO
Department of Computer Science
SUBMITTED TO
SUBMITTED BY
AARTI
ASTHANA
ANUSHRI
AGGARWAL
VINAY
BHARDWAJ
SUBMITTED AT
I would like to take this opportunity to express my gratitude towards all the
people who have in various ways, helped in the successful completion of
my project.
I must convey my gratitude to Mr. PRAMOD SHARMA for giving
me the constant source of inspiration and help in preparing the project,
personally correcting my work and providing encouragement throughout
the project.
I also thank all my faculty members for steering me through the tough as
well as easy phases of the project in a result oriented manner with concern
attention.
DATE: 14-06-2007
AARTI
ASTHANA
ANUSHRI
AGGARWAL
VINAY
BHARDWAJ
DECLARATION
AARTI ASTHANA
ANUSHRI AGGARWAL
VINAY BHARDWAJ
CERTIFICATE
This is to certify that the Project Report entitled MULTIPLEX TICKET
BOOKING SYSTEM is the bona fide project work carried out by Mr.,
students of BCA, SHRI RAM COLLEGE, Muzaffarnagar during the
year 2009, in partial fulfillment of the requirements for the award of the
Degree of Bachelor of Computer Application and that the project report has
not formed the basic for the award previously of any degree, diploma or
any other similar title.
Place: MUZAFFARNAGAR
Date:
System Objectives
Problem Definition
Project Analysis
Feasibility study
Cost & benefit analysis
Project Design
System Analysis
Design Hints & Guidelines
System Design & Development
System Design
System Development
Data Structure Diagram
Tables Description
Coding
System Evaluation and Testing
System Implementation
System Maintenance
System Documentation
GLOSSARY
CONCLUSION
BIBLOGRAPHY
booking etc. To keep the details of the employees .It is easy to manage all
these things with the help of software instead of manually.
From the viewpoint of the Multiplex Proper arrangement of control on distribution of tickets.
Proper control of issuing of tickets.
Decrease in cost of manpower.
No investment of unnecessary capital
Moral effect on employees
The definition of our problem lies in manual system and a fully automated
system.
Manual system :
The system is very time consuming and lazy. This system is more prone to
errors and sometimes the approach to various problems is unstructured.
Technical system :
With the advent of latest technology if we do not update our system then our
business result in losses gradually with time. The technical systems contains
the tools of latest trend i.e. computers printers, fax, Internet etc. The systems
with this technology are very fast, accurate, user-friendly and reliable.
Need of Multiplex
A few factors that direct us to develop a new system are given below -:
1) Faster System
2) Accuracy
3) Reliability
4) Informative
5) Adding new movies detail.
MULITPLEX TICKET
BOOKING SYSTEM
ADVANCE
BOOKING
CURRENT
BOOKING
UPDATION
organization time factor is money for full successful of the software also Tax
some times so we have consider from starting to last that means beginning to
software.
Receiver
Customer Request
BOOKING
Flight Maintenance,
Request
Booking , Cancellling
DEPARTMENT
Receiver Customer
PASSENGER
Data Storage
Ticket
Reservation
Cancellation, Request
For enquiry
Database
Passenger List
Confirmed List
REPORTS
Data Access
Passenger List,
Fleet info
Cancellation
Flight information
Fare details
The amount charged is based on the computer time, staff time & the volume
of output produced.
Supply Cost:These costs are variable costs that increase with increased use of paper,
ribbon, disks & the like they should be estimated & include in the overall
cost of the system.
Equipment Cost:Equipment costs include rental & annual deprecation of any equipment such
as typewriter, copies, computer terminals & microcomputers used in
connection with the system. Other costs associated with the equipment, such
as insurance & maintenance should also be included.
SYSTEM DEVELOPMENT:Development Phase, translates a set of requirements into an operational system that we
call Software. At early stages of hardware development a hardware engineer does
not reach for a soldering iron, similarly the Software engineer should not reach the
compiler. Design is accomplished first.
The first phase of development concentrates on design. The design phase for
software with a description of architecture and data design. That is a modular structure is
developed first, interfaces are defined and data structure is established. Design criteria are
used for the assessment of quality. This preliminary design step is reviewed for
completeness and tractability to software requirements.
Procedural aspects of each modular component of the software design are
considered next, and is following by the CODING the generation of program using an
appropriate programming language or CASE tool occurs after the design is complete.
Software engineering methodology views coding as a consequence of good design. Code
is then reviewed for style and clarity, but should otherwise be directly traceable to a
detailed design description.
DETAILED ENTITY RELATIONSHIP DIAGRAM:Identification of all the Entities of importance for which data need to be stored
and defined their relationship with each other was a major task at this level. All the
identified entities were mapped on an E-R-diagram. It is of utmost importance to cover
all the necessary entities and defined their relationship with each other correctly because
any errors at this stage would result in the reworking in the further stages.
Unique Identification, UID:A unique identification is required to be identified and associated with each other at this
stage.
Function Hierarchy:Function hierarchy is used for grouping related functions under a parent function. The
hierarchy is balanced so that all elementary functions come in the same level of
hierarchy. A good hierarchy drawn at this stage helped in menu generation at a later stage.
The Basic Objective:The basic objective of the system design was the system being developed should be
able to fit into the existing system, that is it become a part of the system and it should
not lead to any changes which can adversely affect the existing system. The airways
having many activities which affect one another so the approach of airways
reservation is generated for the simplification of data handling.
The approach would bring in the following benefits:
Completely menu drive interface with the provision of initiating even the batch jobs
by the user himself.
On Line help
Strong documentation
Validation checks done by the system itself
Minimization of input to the system to produce maximum output.
Designing is the most important part of the software development. It requires a careful
planning and logical thinking on the system designer. Designing a software means to plan
how the various parts of the software are going to achieve the desired goal. It should done
with the utmost care because if this phase contains any errors then that will be going to
affect the performance of the system, as a result it may take more processing time, more
coding, extra work load etc.
As the software is to be designed in MS-ACCESS RDBMS, the concept of the
database is must for quality designing. It will be designing of the database, designing of
forms, designing of reports.
Separate tables have been created for each entity of the system. In order to make
the response time negligible, all the tables have been created in the Memory File System.
Moreover indexes have been created on the tables in the number of records have been
made random.
The design stages takes the final specification of the system from the
analysis stages and finds the best way of fulfilling them, given the technical
environment and previous decision on required level of automation
The system design is carried out in two phases:
Architectural Design
Detailed Design
ARCHITECTURAL DESIGN:The high level design maps the business system described in the program
requirement specification to logical data structure, it involves:
Identification of the entities that constitutes the system:All the entities related to the module were identified, checked and
consolidated
Identifying the Relationships:The relationships between the entities, within and outside the system
were identified.
Attribute definition:The pertaining of the entities was identified and their field characteristics
were specified.
Normalization :The entities were normalization, after first and the second normalization
was achieved for all the entities.
Interface :-
Interface with the other systems were done and attributes related to
external entities identified.
DETAILED DESIGN :The low level design maps the logical model of the system to a physical
database design.
Table Mapping :The Table was created for the system using the design view, which is the
part of the MS_ACCESS. This has provision to create the entities and
attributes into the Tables. The name of the entity is taken as the table
name.
Default Database Design :In Access we can create the tables very easily. The tables divide into two
parts. These names are as follow: ROWS
COLUMNS
The steps involved here were :7. Generation of table
8. Check Validation Rule
9. Check Validation Text
10.Primary Keys
11.Unique Keys
12.Foreign Keys
Relationship:Ms-Access allows many types of relationship between the tables. These
relationship names are as follow: One to One Relationship
Program specifications:The program specifications were written for the master, transactions,
reports and queries. The logic for each field, block and form were written
so that anyone who does not know the system will be able to code the
logic. Field validations and user-friendly error messages were written as
part of the program specification.
Selectcase
Withend with
If.then.else
Visual Basic helps of creation Menus, Master-Details Form.
ADMIN_PASSWORD:FIELDS NAME
PASSWORD
DATA TYPE
Text
MOVIES DETAIL:InDate
OutDate
MName
TheaterNo
Collection
5/6/2009
5/7/2009 RAAZ2
$0.00
5/6/2009
5/7/2009 DIL
$1,425.00
5/6/2009
5/7/2009 AWARAPAN
$0.00
5/6/2009
5/6/2009 DHOOM
$1,710.00
5/6/2009
5/6/2009 RAAZ
$570.00
5/7/2009
5/7/2009 AAA
$1,026.00
5/7/2009
5/7/2009 MAD
$855.00
5/7/2009
5/7/2009 WAQT
$0.00
TICKET DETAIL :-
THEATER DETAILS:
Theater
TheaterNo Capacity
Show1
Show2
Show3
Show4
Show5
12:00:00 AM
672
12:00:00 AM
672
12:00:00 AM
BOOKING DETAIL:
Booking
SeatNo
A000A001A002A003B003B004
1/29/2 8:45:0 A
007 0 AM
A000A001A002B000B001B002C000 1
C001C002
1/28/2 8:40:0 C
007 0 AM
F006F007
1/30/2 11:15: A
007 00 AM
P041P040
1/29/2 10:30: C
007 00 AM
I018I020A010A011
1/31/2 10:30: C
007 00 AM
A004A005A007A008A009A010B000 1
B001A011A012F000F001
1/31/2 10:15: C
007 00 AM
A000A001
2/20/2 10:15: A
007 00 AM
A005A007
2/19/2 10:00: C
007 00 AM
A005A007A000A001
2/19/2 10:00: C
007 00 AM
A000
12/7/2 10:15: C
008 00 AM
L000L001L003L002L004
1/16/2 10:00: C
002 00 AM
G000G009G010G007G003G002G00 2
1
4/20/2 12:00: A
009 00 PM
F000F001F003F002F004
1/18/2 12:00: C
002 00 PM
G000G005G006G009G011G015G01 2
8G023G025H029
6/5/20 12:00: C
09 00 PM
H001H003H007H009H013H016I018 3
6/5/20 12:00: C
09 00 PM
G000G002G005G006H011H014H01 3
9H026H035H039
6/5/20 12:00: C
09 00 PM
L000L001L002L003L005L004L006
7/5/20 12:00: C
09 00 PM
M002M004M006M009M013B000B00 1
3B008B011C026B031
7/5/20 12:00: C
09 00 PM
G002G007G012G024G031G036
7/5/20 9:00:0 C
09 0 AM
G003G009G014G019G023
8/5/20 12:00: A
Booking
SeatNo
00
00
SPALSH FORM
LOGIN FORM
This is login form. In this form we login to enter the new form. It has
two attributes i.e. user name and password and two option button OK
and CANCLE through which we confirm or cancel the login form.
AIRWAYS RESERVATION
FORM
COUNTER ASSISTANT
RESERVATION FORM
This is the ticket detail form. In this form we can the ticket
information like name of passenger, pnr no., ticket no. , no. of seats,
total fare, sector, class, date, flight no. also we take the printout of
ticket.
DATA REPORT OF
RESERVATION FORM
In this form we can see the reservation slip of passenger and take
printout of ticket by applying print command.
This is the flight detail form .In this form we can save , new, find,
update and close the record. The attributes are flight no. , reservation
sector, departure time, class of travel , travelling fare, number of
seats.
FIND FORM
This is the form of find. In this form we can find the flight detail by
giving the flight number of the related flight.
This is the ticket detail form .In this form we can see the ticket detail
like sector flight no. , date, class, ticket no. , no. of seats, fare. If
we want to cancel the reservation then we can cancel the reservation by
clicking YES/NO.
CHANGE ADMIN
PASSWORD FORM
This is the change admin password form .In this form we can change the
admin password by giving new user name,old password, new password
,and confirm password.
This is the change user password form .In this form we can change the
user password by giving new user name,old password, new password ,and
confirm password
ABOUT US FORM
SPLASH FORM
Option Explicit
Private Sub Timer1_Timer()
Unload SPLASH
'aboutus.Show
USERPWD.Show
End Sub
LOGIN FORM
Option Explicit
Dim CN As New Connection
Dim LRS As New Recordset
Dim MYPWD As String
Public LoginSucceeded As Boolean
Private Sub Form_Activate()
txtPassword.SetFocus
End Sub
Private Sub Form_Load()
CN.Provider = "MICROSOFT.JET.OLEDB.3.51"
CN.ConnectionString = "C:\Program files\Microsoft Visual
Studio\VB98\RESERVATION.mdb"
CN.Open
LRS.Open "projectpassword", CN, adOpenDynamic
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As
Single)
lblok.ForeColor = Label1.ForeColor
lblcancel.ForeColor = Label1.ForeColor
End Sub
Private Sub lblcancel_Click()
LoginSucceeded = False
Unload USERPWD
End Sub
Private Sub lblcancel_MouseMove(Button As Integer, Shift As Integer, X As Single, Y
As Single)
lblcancel.ForeColor = vbYellow
End Sub
Private Sub lblok_Click()
MYPWD = LRS("PASSWORD")
If txtPassword.Text = MYPWD Then
LoginSucceeded = True
Unload USERPWD
AIRWAYSRESERVATION.Show
Else
MsgBox "Invalid Password, try again!", vbSystemModal + vbExclamation, "USER
PASSWORD"
txtPassword.SetFocus
SendKeys "{Home}+{End}"
End If
End Sub
Private Sub lblok_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As
Single)
lblok.ForeColor = vbYellow
End Sub
Private Sub txtusername_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txtPassword.SetFocus
End If
End Sub
AIRWAYS
RESERVATION
Private Sub MNUABOUTUS_Click()
aboutus.Show
End Sub
Private Sub MNUADMIN_Click()
ADMINPWD.Show
End Sub
Private Sub MNUCA_Click()
COUNTERASSISTANT.Show
End Sub
Private Sub MNUCANCEL_Click()
CANCELLATION.Show
End Sub
Private Sub MNUCHANGEADMIN_Click()
CHANGEADMIN.Show
End Sub
Private Sub MNUCHANGEUSER_Click()
CHANGEUSER.Show
End Sub
Private Sub MNUEXIT_Click()
End
End Sub
COUNTER ASSISTANT
Dim CN As New Connection
Dim rs1 As New Recordset
Dim totalseats As Integer
Dim RS As New Recordset
Private Sub cmbflightno_Click()
Set rs1 = CN.Execute("select res_sector from flightdetails where
flight_no=" & " '" & cmbflightno.Text & "'")
TXTSECTOR.Text = rs1("res_sector")
rs1.Close
End Sub
Private Sub cmbflightno_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
CMBRESCLASS.SetFocus
End If
End Sub
Private Sub CMBRESCLASS_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
TXTSEATS.SetFocus
End If
End Sub
Private Sub Form_Activate()
rs1.CursorLocation = adUseClient
rs1.Open "flightdetails", CN, adOpenDynamic
For i = 1 To rs1.RecordCount
cmbflightno.AddItem rs1("flight_no")
rs1.MoveNext
Next
CMBRESCLASS.AddItem "EXECUTIVE"
CMBRESCLASS.AddItem "ECONOMIC"
rs1.Close
End Sub
Private Sub Form_Load()
On Error GoTo BLANK
CN.Provider = "Microsoft.Jet.OLEDB.3.51"
CN.ConnectionString = "C:\Program Files\Microsoft Visual
Studio\VB98\RESERVATION.mdb"
CN.Open
OPTCANCEL.Value = False
BLANK:
If Err.Number = 3021 Then
MsgBox "There is no record.", vbInformation + vbSystemModal, "RECORD
NOT AVAILABLE"
OPTCANCEL.Value = False
End If
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
ok.ForeColor = Label1.ForeColor
OPTCANCEL.ForeColor = Label1.ForeColor
End Sub
Private Sub ok_Click()
Dim STORE As Integer
Dim mystore As Integer
rs1.Open "flightdetails", CN, adOpenDynamic
Set rs1 = CN.Execute("select bal_seats from flightdetails where flight_no=
" & " '" & cmbflightno & "' ")
mystore = rs1("bal_seats")
STORE = rs1("bal_seats") - TXTSEATS.Text
CN.Execute ("update flightdetails set bal_seats= " & " '" & STORE & "'
where flight_no=" & " '" & cmbflightno.Text & "' ")
If STORE >= Val(TXTSEATS.Text) Then
MsgBox "Your seats are confirmed.", vbSystemModal + vbInformation,
"CONFIRMED/WAITING SEATS"
End Sub
Private Sub TXTSEATS_LostFocus()
If TXTSEATS.Text = "" Then
MsgBox "Enter the seats.", vbInformation + vbSystemModal,
"CONFIRMATION SEATS"
TXTSEATS.SetFocus
ElseIf TXTSEATS.Text > 6 Then
MsgBox "More than six seats are not allowed.", vbSystemModal +
vbInformation, "CONFIRMATION SEATS"
TXTSEATS.SetFocus
ElseIf TXTSEATS.Text <= 6 And TXTSEATS.Text > 0 Then
ok.Enabled = True
ElseIf TXTSEATS.Text = 0 Then
MsgBox "Enter seats greater than 0.", vbSystemModal + vbInformation,
"CONFIRMATION SEATS"
ok.Enabled = False
TXTSEATS.SetFocus
End If
End Sub
Public Function BLANKFIELDS()
TXTRESDATE.Text = ""
TXTSECTOR.Text = "SECTOR"
TXTSEATS.Text = ""
End Function
RESERVATION
Dim CN As New Connection
Dim RS As New Recordset
Dim flightRS As New Recordset
Dim ticketrs As New Recordset
Dim X As Integer
Private Sub Form_Activate()
MsgBox "Enter details of passengers.", vbInformation + vbSystemModal,
"DETAIL INFORMATION"
DISPFIELDS
TXTNAME.SetFocus
TXTNAME.Locked = False
txtage.Locked = False
txtphoneno.Locked = False
txtaddress.Locked = False
txtpnrno.Text = ""
txtticketno.Text = ""
BLANKFIELDS
End Sub
Private Sub Form_Deactivate()
equalseats = 0
X=0
End Sub
Private Sub Form_Load()
CN.Provider = "MicroSoft.Jet.OLEDB.3.51"
CN.ConnectionString = "C:\Program files\Microsoft Visual
Studio\VB98\RESERVATION.mdb"
CN.Open
RS.CursorLocation = adUseClient
End Sub
Public Function DISPFIELDS()
TXTRESDATE.Text = COUNTERASSISTANT.TXTRESDATE.Text
txtressector.Text = COUNTERASSISTANT.TXTSECTOR.Text
TXTCLASS.Text = COUNTERASSISTANT.CMBRESCLASS.Text
End Function
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
LBLPRINT.ForeColor = Label1.ForeColor
LBLSAVE.ForeColor = Label1.ForeColor
End Sub
Private Sub LBLDELETE_MouseMove(Button As Integer, Shift As Integer,
X As Single, Y As Single)
LBLDELETE.ForeColor = vbYellow
End Sub
Private Sub Form_QueryUnload(cancel As Integer, UnloadMode As Integer)
If UnloadMode = 0 Then
MsgBox "Please enter details", vbInformation + vbSystemModal,
"Reservation"
cancel = 1
RESERVATION.Show
End If
End Sub
Private Sub LBLPRINT_Click()
Dim J As Integer
Dim X As Integer
Dim Y As Integer
RS.CursorLocation = adUseClient
Set ticketrs = CN.Execute("select
no_of_seats,total_fare,flight_no,ticket_no from ticketdetails where
ticket_no=" & "'" & txtticketno.Text & "'")
With TICKET
.TXTFARE.Text = ticketrs("total_fare")
.TXTFLIGHTNO.Text = ticketrs("flight_no")
.TXTSEATS.Text = ticketrs("no_of_seats")
.txtticketno.Text = ticketrs("ticket_no")
End With
TICKET.Show
J=0
RS.Open ("select res_class,res_date,res_sector,pnr_no,pas_name from
reservation where TICKET_NO=" & "'" & txtticketno.Text & "'")
With TICKET
.TXTCLASS.Text = RS("res_class")
.TXTDATE.Text = RS("res_date")
.TXTSECTOR.Text = RS("res_sector")
End With
For i = 0 To RS.RecordCount - 1
If i >= COUNTERASSISTANT.TXTSEATS Then
Exit For
Else
TICKET.txtpnrno(i).Visible = True
TICKET.TXTNAME(i).Visible = True
TICKET.txtpnrno(i).Text = RS("pnr_no")
TICKET.TXTNAME(i).Text = RS("pas_name")
Load TICKET.txtpnrno(i + 1)
Load TICKET.TXTNAME(i + 1)
Y = Y + 600
TICKET.txtpnrno(i + 1).Top = TICKET.txtpnrno(i).Top + Y
TICKET.TXTNAME(i + 1).Top = TICKET.TXTNAME(i).Top + Y
RS.MoveNext
End If
Next i
TICKET.Show
RESERVATION.Hide
ticketrs.Close
RS.Close
End Sub
Private Sub lblsave_Click()
Dim J As Integer
Dim A, count As Integer
Dim i As Integer
Dim TAKE As Integer
Dim take1 As Integer
Dim STR As String
Dim STR1 As String
Dim STORE As Integer
Dim check As Integer
Dim myval As Integer
Dim myphoneno$
Static equalseats As Integer
Dim totalfare As Single
RS.Open "RESERVATION", CN, adOpenDynamic, adLockOptimistic
flightRS.Open "flightdetails", CN, adOpenDynamic
For k = 1 To CLENGTH
X = Mid(STR2, k, 1)
Y = Asc(X)
If Y < 48 Or Y > 57 Then
MsgBox "Enter correct code.", vbSystemModal + vbInformation,
"PHONE NUMBER ERROR"
txtcode.SetFocus
Exit Sub
End If
If CLENGTH < 3 Then
MsgBox "Enter correct code.", vbInformation + vbSystemModal,
"CODE ERROR"
txtcode.SetFocus
Exit Sub
ElseIf txtcode.Text = "00000" Or txtcode.Text = "0000" Or
txtcode.Text = "000" Or txtcode.Text = "000000" Then
MsgBox "Enter correct code.", vbInformation + vbSystemModal,
"CODE ERROR"
txtcode.SetFocus
Exit Sub
End If
Next
RAK:
If Err.Number = 13 Then
MsgBox "Enter correct code.", vbSystemModal + vbInformation, "CODE
ERROR"
txtcode.SetFocus
End If
End Sub
Public Function BLANKFIELDS()
TXTNAME.Text = ""
txtage.Text = ""
txtaddress.Text = ""
txtphoneno.Text = ""
txtcode.Text = ""
End Function
Public Function SHOWFIELDS()
With TICKET
.TXTCLASS.Text = RS("RES_CLASS")
.TXTDATE.Text = RS("RES_DATE")
.TXTSECTOR.Text = RS("res_sector")
.txtticketno.Text = RS("ticket_no")
End With
End Function
Private Sub txtname_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txtaddress.SetFocus
End If
End Sub
Private Sub TXTNAME_LostFocus()
BLANK
End Sub
Public Function BLANK()
Dim X As String
Dim length As Integer
Dim STR1 As String
Dim Y As Integer
Dim z As String
Dim J As Integer
STR1 = TXTNAME.Text
z = Trim(STR1)
length = Len(z)
For J = 1 To length
X = Mid(z, J, 1)
Y = Asc(X)
If Y < 31 Or Y > 33 And Y < 65 Or Y > 90 And Y < 97 Or Y > 122 Then
MsgBox "Enter correct name.", vbSystemModal + vbInformation,
"NAME ERROR"
TXTNAME.SetFocus
Exit Function
End If
Next
TXTNAME = z
TXTNAME = StrConv(TXTNAME, vbProperCase)
End Function
Private Sub txtphoneno_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txtage.SetFocus
End If
End Sub
Private Sub txtphoneno_LostFocus()
Dim X As String
Dim length As Integer
Dim i As Integer
Dim Y As Integer
Dim J As String
J = txtphoneno.Text
length = Len(J)
For i = 1 To length
X = Mid(J, i, 1)
Y = Asc(X)
If Y < 48 Or Y > 57 Then
MsgBox "Enter correct phone number.", vbSystemModal +
vbInformation, "PHONE NUMBER ERROR"
txtphoneno.SetFocus
Exit Sub
End If
If length < 6 Then
MsgBox "Enter the correct phone no. minimum upto 4 numbers and
maximum upto 7.", vbSystemModal + vbInformation, "PHONE NUMBER
ERROR"
txtphoneno.SetFocus
Exit Sub
ElseIf txtphoneno.Text = "000000" Or txtphoneno.Text =
"0000000" Or txtphoneno.Text = "00000000" Then
MsgBox "Enter correct phone number.", vbSystemModal +
vbInformation, "PHONE NUMBER ERROR"
txtphoneno.SetFocus
Exit Sub
End If
Next
End Sub
TICKET
Dim resrs As New Recordset
Public rescn As New Connection
Private Sub Form_Load()
rescn.Provider = "Microsoft.Jet.OLEDB.3.51"
rescn.ConnectionString = "C:\Program Files\Microsoft Visual
Studio\VB98\RESERVATION.mdb"
rescn.Open
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
LBLPRINT.ForeColor = Label1.ForeColor
End Sub
Private Sub LBLPRINT_Click()
Set resrs = rescn.Execute("select * from TICKETDETAILS where
TICKET_NO= " & " '" & txtticketno & "' ")
Set DataReport1.DataSource = resrs
DataReport1.DataMember = ""
With DataReport1.Sections("section1").Controls
.Item(22).DataField = "FLIGHT_NO"
.Item(17).DataField = "TICKET_NO"
.Item(18).DataField = "NO_OF_SEATS"
.Item(20).DataField = "RES_SECTOR"
.Item(19).DataField = "RES_CLASS"
.Item(21).DataField = "RES_DATE"
.Item(23).DataField = "TOTAL_FARE"
For i = 0 To TICKET.txtpnrno.count - 2
.Item(i + 1).Caption = TICKET.txtpnrno(i).Text
.Item(i + 1).Visible = True
.Item(i + 7).Caption = TICKET.TXTNAME(i)
.Item(i + 7).Visible = True
Next i
End With
DataReport1.Show
Unload TICKET
End Sub
DATA REPORT 1
Private Sub DataReport_Terminate()
TICKET.rescn.Close
COUNTERASSISTANT.Show
End Sub
ADMINISTRATOR
PASSWORD
Option Explicit
Dim CN As New Connection
Dim ARS As New Recordset
Dim MYPWD As String
Public LoginSucceeded As Boolean
Private Sub Form_Activate()
txtPassword.SetFocus
End Sub
Private Sub Form_Load()
CN.Provider = "MICROSOFT.JET.OLEDB.3.51"
CN.ConnectionString = "C:\PROGRAM FILES\MICROSOFT VISUAL
STUDIO\VB98\RESERVATION.mdb"
CN.Open
ARS.Open "ADMINPASSWORD", CN, adOpenDynamic
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
lblok.ForeColor = Label1.ForeColor
lblcancel.ForeColor = Label1.ForeColor
End Sub
Private Sub Form_QueryUnload(cancel As Integer, UnloadMode As Integer)
CN.Close
End Sub
Private Sub lblcancel_Click()
LoginSucceeded = False
Unload Me
End Sub
Private Sub lblcancel_MouseMove(Button As Integer, Shift As Integer, X
As Single, Y As Single)
lblcancel.ForeColor = vbWhite
End Sub
Private Sub lblok_Click()
MYPWD = ARS!PASSWORD
If txtPassword = MYPWD Then
LoginSucceeded = True
Unload Me
FLIGHT.Show
Else
MsgBox "Invalid Password, try again!", vbExclamation + vbSystemModal,
"ADMINISTRATOR PASSWORD"
txtPassword.SetFocus
SendKeys "{Home}+{End}"
End If
End Sub
Private Sub lblok_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
lblok.ForeColor = vbWhite
End Sub
Private Sub txtusername_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txtPassword.SetFocus
End If
End Sub
FLIGHT DETAIL
Dim CN As New Connection
Dim RS As New Recordset
Private Sub cmbflightno_Click()
Set RS = CN.Execute("select * from flightdetails where flight_no=" & " '" &
cmbflightno.Text & "' ")
DISPFIELDS
lblupdate.Enabled = True
RS.Close
End Sub
Private Sub Form_Load()
CN.Provider = "Microsoft.Jet.OLEDB.3.51"
CN.ConnectionString = "C:\Program Files\Microsoft Visual
Studio\VB98\RESERVATION.mdb"
CN.Open
RS.CursorLocation = adUseClient
End Sub
Private Sub Form_Unload(cancel As Integer)
CN.Close
End Sub
Private Sub Frame4_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
lblfind.ForeColor = Label1.ForeColor
lblmodify.ForeColor = Label1.ForeColor
lblsave.ForeColor = Label1.ForeColor
lblupdate.ForeColor = Label1.ForeColor
lblcancel.ForeColor = Label1.ForeColor
lblclose.ForeColor = Label1.ForeColor
End Sub
Private Sub Image1_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
lblfind.ForeColor = Label1.ForeColor
lblmodify.ForeColor = Label1.ForeColor
lblsave.ForeColor = Label1.ForeColor
lblupdate.ForeColor = Label1.ForeColor
lblcancel.ForeColor = Label1.ForeColor
lblclose.ForeColor = Label1.ForeColor
End Sub
Private Sub lblcancel_Click()
lblnew.Visible = True
lblsave.Visible = True
lblfind.Visible = True
lblcancel.Visible = False
lblupdate.Visible = False
lblmodify.Visible = True
BLANKFIELDS
cmbflightno.Visible = False
txtflightno.Visible = True
txtfare1.Locked = True
txtfare2.Locked = True
TXTDEPTTIME.Locked = True
txtseats1.Locked = True
txtseats2.Locked = True
lblclose.Visible = True
End Sub
Private Sub lblcancel_MouseMove(Button As Integer, Shift As Integer, X
As Single, Y As Single)
lblcancel.ForeColor = vbGreen
End Sub
Private Sub lblclose_Click()
If lblclose.Caption = "Cancel" Then
lblfind.Enabled = True
lblmodify.Enabled = True
lblclose.Caption = "Close"
lblsave.Enabled = False
lblnew.ForeColor = Label1.ForeColor
Exit Sub
End If
If lblclose.Caption = "Close" Then
Unload FLIGHT
AIRWAYSRESERVATION.Show
End If
End Sub
Private Sub lblclose_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
lblclose.ForeColor = vbGreen
End Sub
Private Sub lblfind_Click()
FLIGHT.Hide
FIND.Show
End Sub
Private Sub lblfind_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
lblfind.ForeColor = vbGreen
End Sub
Private Sub lblmodify_Click()
Dim i As Integer
RS.Open "flightdetails", CN, adOpenDynamic
cmbflightno.Visible = True
txtflightno.Visible = False
cmbflightno.SetFocus
For i = 1 To RS.RecordCount
cmbflightno.AddItem RS("flight_no")
RS.MoveNext
Next i
lblnew.Visible = False
lblsave.Visible = False
lblfind.Visible = False
lblupdate.Visible = True
lblupdate.Enabled = False
lblcancel.Visible = True
lblmodify.Visible = False
TXTDEPTTIME.Locked = False
txtfare1.Locked = False
txtfare2.Locked = False
txtseats1.Locked = False
txtseats2.Locked = False
lblclose.Visible = False
RS.Close
End Sub
Private Sub lblmodify_MouseMove(Button As Integer, Shift As Integer, X
As Single, Y As Single)
lblmodify.ForeColor = vbGreen
End Sub
Private Sub lblnew_Click()
BLANKFIELDS
cmbflightno.Visible = False
txtflightno.Visible = True
TXTDEPTTIME.Locked = False
txtsector.Locked = False
txtfare1.Locked = False
txtfare2.Locked = False
txtseats1.Locked = False
txtseats2.Locked = False
txtsector.SetFocus
lblsave.Enabled = True
lblclose.Caption = "Cancel"
lblfind.Enabled = False
lblmodify.Enabled = False
lblclose.Enabled = True
End Sub
Private Sub lblnew_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
lblnew.ForeColor = vbGreen
End Sub
Private Sub lblsave_Click()
Dim i, k As Integer
Dim length As Integer
Dim STORE As Integer
Dim TAKE As Integer
Dim STR As String
Dim STR1 As String
Dim myflight As String
Dim seats As Integer
If txtsector.Text = "" Then
txtfare2.Locked = True
txtseats1.Locked = True
txtseats2.Locked = True
lblclose.Caption = "Close"
lblfind.Enabled = True
lblmodify.Enabled = True
lblsave.Enabled = False
Exit Sub
ElseIf STORE = vbYes Then
length = Len(txtsector.Text)
STR = Mid(txtsector.Text, 1, 1)
For i = 1 To length
If (Mid(txtsector.Text, i, 1) = Chr(32)) Then
STR = UCase(STR + Mid(txtsector.Text, i + 1, 1))
End If
Next i
RS.Open "FLIGHTDETAILS", CN, adOpenDynamic, adLockOptimistic
For k = 1 To RS.RecordCount
If STR = Mid(RS("flight_no"), 1, 3) Then
myflight = RS("flight_no")
End If
RS.MoveNext
Next
If myflight = "" Then
STR1 = STR + "000"
Else
STR1 = myflight
End If
TAKE = Val(Right(STR1, 3))
TAKE = TAKE + 1
If TAKE >= 1 And TAKE < 10 Then
STR1 = STR & "00" & TAKE
ElseIf TAKE >= 10 And TAKE < 100 Then
STR1 = STR & "0" & TAKE
End If
txtflightno.Text = STR1
seats = Val(txtseats1) + Val(txtseats2)
txtseats1.Text = RS("NO_OF_SEATS1")
txtseats2.Text = RS("NO_OF_SEATS2")
End Function
Private Sub lblupdate_Click()
CN.Execute ("update flightdetails set travelling_fare1=" & " '" &
txtfare1.Text & "',travelling_fare2='" & txtfare2.Text & "',dept_time='" &
TXTDEPTTIME.Text & "',no_of_seats1='" & txtseats1.Text &
"',no_of_seats2='" & txtseats2.Text & "' where flight_no=" & " '" &
txtflightno.Text & "' ")
MsgBox "The record has been updated.", vbSystemModal + vbInformation,
"UPDATION CONFIRMED"
lblnew.Visible = True
lblsave.Visible = True
lblfind.Visible = True
lblcancel.Visible = False
lblupdate.Visible = False
lblmodify.Visible = True
lblclose.Visible = True
txtfare1.Locked = True
txtfare2.Locked = True
TXTDEPTTIME.Locked = True
txtseats1.Locked = True
txtseats2.Locked = True
lblclose.Visible = T
End Sub
Private Sub lblupdate_MouseMove(Button As Integer, Shift As Integer, X
As Single, Y As Single)
lblupdate.ForeColor = vbGreen
End Sub
Private Sub TXTDEPTTIME_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txtfare1.SetFocus
End If
End Sub
txtseats1.SetFocus
Exit For
End If
Next
End Sub
If KeyAscii = 13 Then
TXTDEPTTIME.SetFocus
End If
End Sub
Private Sub txtsector_LostFocus()
Dim i As Integer
Dim length As Integer
Dim STR2 As String
Dim X As String
Dim Y As Integer
Dim z As String
str4 = txtsector.Text
z = Trim(str4)
length = Len(z)
For i = 1 To length
X = Mid(z, i, 1)
Y = Asc(X)
If Y < 31 Or Y > 33 And Y < 65 Or Y > 90 And Y < 97 Or Y > 122 Then
MsgBox "Enter correct sector.", vbSystemModal + vbInformation,
"SECTOR ERROR"
txtsector.SetFocus
Exit For
End If
Next i
txtsector = z
txtsector = StrConv(txtsector, vbProperCase)
End Sub
FIND
Dim CN As New Connection
Dim RS As New Recordset
Dim myvar As Integer
End Sub
Private Sub lblcancel_MouseMove(Button As Integer, Shift As Integer, X
As Single, Y As Single)
lblcancel.ForeColor = vbWhite
End Sub
Private Sub lblok_Click()
On Error GoTo RAK
Set RS = CN.Execute("select * from flightdetails where flight_no=" & " '" &
cmbfind.Text & "' ")
DISPFIELDS
myvar = 1
FLIGHT.Show
Unload Me
RAK:
If Err.Number = 3021 Then
MsgBox "Flight No. does not exist", vbInformation + vbSystemModal,
"FIND ERROR"
End If
End Sub
Private Sub lblok_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
lblok.ForeColor = vbWhite
End Sub
Public Function DISPFIELDS()
FLIGHT.txtflightno.Text = RS("FLIGHT_NO")
FLIGHT.txtsector.Text = RS("res_sector")
FLIGHT.TXTDEPTTIME.Text = RS("DEPT_TIME")
FLIGHT.txtfare1.Text = RS("TRAVELLING_FARE1")
FLIGHT.txtfare2.Text = RS("TRAVELLING_FARE2")
FLIGHT.txtseats1.Text = RS("NO_OF_SEATS1")
FLIGHT.txtseats2.Text = RS("NO_OF_SEATS2")
FLIGHT.txtflightno.Locked = True
FLIGHT.txtsector.Locked = True
FLIGHT.TXTDEPTTIME.Locked = True
FLIGHT.txtfare1.Locked = True
FLIGHT.txtfare2.Locked = True
FLIGHT.txtseats1.Locked = True
FLIGHT.txtseats2.Locked = True
End Function
FLIGHT NUMBER
Dim CN As New Connection
Dim flightRS As New Recordset
Dim ticketrs As New Recordset
Dim resrs As New Recordset
Dim FRS As New Recordset
Dim MYTICKET As String
Dim ourTICKET As String
Private Sub cancelprint_Click()
Dim i As Integer
Dim myf As Integer
Dim fare As Integer
FRS.CursorLocation = adUseClient
FRS.Open "FLIGHTNUMBER", CN, adOpenDynamic
FRS.MoveFirst
If cmbpnrno.Visible = False Then
Set FRS = CN.Execute("SELECT * FROM FLIGHTNUMBER WHERE
TICKET_NO=" & "'" & MYTICKET & "'")
DISPFIELDS
cancel.TXTPNRNO(J).Visible = False
cancel.TXTNAME(J).Visible = False
cancel.Label2.Visible = False
cancel.Label3.Visible = False
cancel.Show
FLIGHTNUMBER.Hide
ElseIf cmbpnrno.Visible = True Then
Label8.Visible = True
TXTNAME.Visible = True
FRS.Close
FRS.Open ("SELECT * FROM FLIGHTNUMBER WHERE TICKET_NO=" &
"'" & MYTICKET & "'")
fare = FRS("Total_fare") / FRS("no_of_seats")
myf = FRS("no_of_seats")
myf = myf - cmbpnrno.ListCount
fare = fare * myf
FRS.MoveFirst
DISPFIELDS
cancel.Label2.Visible = True
cancel.Label3.Visible = True
J=0
For i = 0 To FRS.RecordCount - 1
cancel.TXTPNRNO(i).Visible = True
cancel.TXTNAME(i).Visible = True
cancel.TXTPNRNO(i).Text = FRS("pnr_no")
cancel.TXTNAME(i).Text = FRS("name")
J=J+1
Load cancel.TXTPNRNO(i + 1)
Load cancel.TXTNAME(i + 1)
Y = Y + 600
cancel.TXTPNRNO(i + 1).Top = cancel.TXTPNRNO(i).Top + Y
cancel.TXTNAME(i + 1).Top = cancel.TXTNAME(i).Top + Y
FRS.MoveNext
Next i
cancel.Show
cancel.TXTSEATS.Text = myf
cancel.TXTFARE = fare
storeticket = TXTTICKETNO.Text
FLIGHTNUMBER.Hide
End If
CN.Execute ("DELETE FROM TICKETDETAILS WHERE TICKET_NO=" & "'"
& ourTICKET & "'")
FRS.Close
End Sub
Private Sub cancelprint_MouseMove(Button As Integer, Shift As Integer, X
As Single, Y As Single)
cancelprint.ForeColor = vbGreen
End Sub
Private Sub cmbpnrno_Click()
Set ticketrs = CN.Execute("SELECT
NO_OF_SEATS,FLIGHT_NO,TOTAL_FARE FROM TICKETDETAILS
WHERE TICKET_NO=" & "'" & ticketno1.TXTTICKETNO & "'")
TXTSEATS.Text = ticketrs("NO_OF_SEATS")
TXTFARE.Text = ticketrs("TOTAL_FARE")
TXTFLIGHTNO.Text = ticketrs("FLIGHT_NO")
ticketrs.Close
Set resrs = CN.Execute("SELECT
RES_DATE,RES_SECTOR,RES_CLASS,TICKET_NO,PAS_NAME FROM
RESERVATION WHERE PNR_NO=" & "'" & cmbpnrno.Text & "'")
TXTTICKETNO.Text = resrs("TICKET_NO")
txtdate.Text = resrs("RES_DATE")
TXTSECTOR.Text = resrs("RES_SECTOR")
TXTCLASS.Text = resrs("RES_CLASS")
TXTNAME.Text = resrs("PAS_NAME")
resrs.Close
End Sub
Private Sub Form_Activate()
CN.Provider = "MicroSoft.Jet.OLEDB.3.51"
CN.ConnectionString = "C:\Program files\Microsoft Visual
Studio\VB98\RESERVATION.mdb"
CN.Open
resrs.CursorLocation = adUseClient
resrs.Open " SELECT * from RESERVATION where ticket_no= " & " '" &
ticketno1.TXTTICKETNO & "' ", CN, adOpenDynamic
For i = 1 To resrs.RecordCount
cmbpnrno.AddItem resrs("PNR_NO")
resrs.MoveNext
Next
resrs.Close
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
NO.ForeColor = Label1.ForeColor
YES.ForeColor = Label1.ForeColor
LBLYES.ForeColor = Label1.ForeColor
LBLNO.ForeColor = Label1.ForeColor
cancelprint.ForeColor = Label1.ForeColor
End Sub
End Sub
Private Sub YES_Click()
Dim X As Integer
Dim Y As Integer
If cmbpnrno.Visible = False Then
flightRS.Open "FLIGHTDETAILS", CN, adOpenDynamic,
adLockOptimistic
ticketrs.Open "TICKETDETAILS", CN, adOpenDynamic, adLockOptimistic
FRS.Open "FLIGHTNUMBER", CN, adOpenDynamic
X = flightRS("BAL_SEATS") + Val(TXTSEATS.Text)
MYTICKET = TXTTICKETNO.Text
CN.Execute ("INSERT INTO
FLIGHTNUMBER(RES_CLASS,FLIGHT_NO,TICKET_NO,RES_SECTOR,RE
S_DATE,TOTAL_FARE,NO_OF_SEATS) VALUES(" & " '" &
TXTCLASS.Text & "','" & TXTFLIGHTNO.Text & "','" &
TXTTICKETNO.Text & "','" & TXTSECTOR.Text & "','" & txtdate.Text &
"','" & TXTFARE.Text & "','" & TXTSEATS.Text & "')")
CN.Execute ("DELETE FROM TICKETDETAILS WHERE TICKET_NO=" &
"'" & TXTTICKETNO.Text & "'")
CN.Execute ("UPDATE FLIGHTDETAILS SET BAL_SEATS=" & "' " & X &
"' WHERE FLIGHT_NO=" & "'" & TXTFLIGHTNO.Text & "'")
CN.Execute ("DELETE FROM RESERVATION WHERE TICKET_NO=" &
"'" & TXTTICKETNO.Text & "'")
BLANKFIELDS
'cancelprint.Visible = True
flightRS.Close
ticketrs.Close
FRS.Close
ElseIf cmbpnrno.Visible = True Then
ticketrs.Open "TICKETDETAILS", CN, adOpenDynamic
flightRS.Open "FLIGHTDETAILS", CN, adOpenDynamic, adLockOptimistic
X = flightRS("BAL_SEATS") + 1
Y = ticketrs("NO_OF_SEATS") - 1
ourTICKET = TXTTICKETNO.Text
MYTICKET = TXTTICKETNO.Text
CN.Execute ("INSERT INTO
FLIGHTNUMBER(RES_CLASS,FLIGHT_NO,TICKET_NO,RES_SECTOR,RE
S_DATE,TOTAL_FARE,NO_OF_SEATS,PNR_NO,NAME) VALUES(" & " '" &
End Sub
Public Function BLANKFIELDS()
TXTNAME.Text = ""
TXTFARE.Text = ""
TXTSECTOR.Text = ""
TXTCLASS.Text = ""
TXTFLIGHTNO.Text = ""
TXTSEATS.Text = ""
txtdate.Text = ""
TXTTICKETNO.Text = ""
End Function
Public Function DISPFIELDS()
With cancel
.TXTCLASS.Text = FRS("res_class")
.txtdate.Text = FRS("res_date")
.TXTFARE.Text = FRS("total_fare")
.TXTFLIGHTNO.Text = FRS("flight_no")
.TXTSEATS.Text = FRS("no_of_seats")
.TXTSECTOR.Text = FRS("res_sector")
.TXTTICKETNO.Text = FRS("ticket_no")
End With
End Function
CHANGE ADMINISTRATOR
PASSWORD
Dim CN As New Connection
Dim ARS As New Recordset
Dim MYPWD As String
Private Sub Form_Load()
CN.Provider = "MICROSOFT.JET.OLEDB.3.51"
CN.ConnectionString = "C:\PROGRAM FILES\MICROSOFT VISUAL
STUDIO\VB98\RESERVATION.mdb"
CN.Open
ARS.Open "ADMINPASSWORD", CN, adOpenDynamic
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
lblchange.ForeColor = Label1.ForeColor
lblcancel.ForeColor = Label1.ForeColor
End Sub
Private Sub Form_QueryUnload(cancel As Integer, UnloadMode As Integer)
CN.Close
End Sub
Private Sub lblcancel_Click()
Unload CHANGEADMIN
End Sub
Private Sub lblcancel_MouseMove(Button As Integer, Shift As Integer, X
As Single, Y As Single)
lblcancel.ForeColor = vbGreen
End Sub
Private Sub lblchange_Click()
If txtoldpwd.Text = "" Then
MsgBox "Enter old password.", vbSystemModal + vbInformation,
"PASSWORD ERROR"
txtoldpwd.SetFocus
Exit Sub
ElseIf txtnewpwd.Text = "" Then
ABOUT US
Private Sub Form_QueryUnload(cancel As Integer, UnloadMode As Integer)
Unload aboutus
End Sub
Private Sub Timer1_Timer()
Label2.Top = Label2.Top - 100
Label3.Top = Label3.Top - 100
Label4.Top = Label4.Top - 100
Label5.Top = Label5.Top - 100
If Label2.Top < aboutus.Top And Label3.Top < aboutus.Top And Label4.Top <
aboutus.Top And Label5.Top < aboutus.Top Then
Label2.Top = aboutus.Height
Label3.Top = aboutus.Height
Label4.Top = Label2.Top + 480
Label5.Top = Label4.Top + 360
End If
End Sub
UNIT TESTING
Unit testing is the testing of a single program module in an
isolated environment. The testing of the processing procedure is the main
focus. In this regard, all the modules were separately tested first as
isolated and complete entities. This helped a lot in discovering problems
related to a single module and rectifying them in the contest of the module
itself, rather than considering module-related problem in a global context.
INTEGRATION TESTING
Integration testing is the process of testing the interfaces among
system modules. Some testing ensures that data moves between system as
intended. In the regard of a particular module was obtained in correct
format, so that the next module could accept it appropriately. This could be
done either after the entire system was developed, or in stages than one
module was developed.
SYSTEM TESTING
System testing is the testing of the system against its initial
objectives. Such testing is done either in a simulated environment or in a
live environment.
In the case of the system which I developed, the testing was done in
a pseudo-real environment. The organization has an area called the
Development , where all development work is carried out, whereas the
Client is the area where all on-line work is undertaken. Since the kind of
work which I was involved dealt with insertion, updating and in tables, all the
work was developed in the Development area. I call the environment
pseudo-real since all data which is being used for on-line transaction can be
copied into the tables of the Development and live data can be worked on.
Thus whatever would be the output on the Client is reflected exactly on
the Development also. Thus, discovery of error became simpler in that the
errors which would occurs in the real-time environment were exactly
duplicated in the Development environment.
All the above types of testing were carried out and various
extreme cases were also introduced to check for whether the system
responded as expected. The various Forms, database packages, procedures,
function; visual basic programs and functions were tested to discover they
behaved in the manner expected of them and gave accurate results.
However, the factor, which helped most in the modification and rectification
of the system, was the user response. The user after using the system would
invariably come up with some idea to improve the system. Such ideas, if
feasible, were incorporated into the system, thus leading to an improvement
in the overall efficiency of the system.
Accuracy of Results,
Minimization of response Time,
Clarity and Simplicity of the code,
Minimization of Hard Coding i.e. (a generic approach was followed )
Minimization of amount of memory used.
INTERNAL DOCUMENTATION
Internal documentation in the code can be extremely useful in enhancing the
understandability of programs. Internal documentation of programs is done
by the use of comments. All the languages provide means of writing
comments in the programs. Comments are textual statements that are meant
for the reader and are not executed. Comments , if properly written, and if
kept consistent with the code, can be invaluable during maintenance.
The purpose of comments is not to explain the internal logic of the program
the program itself is the best documentation for the details of logic. The
comments should explain what the code is done is doing, and not how it is
done it.
Comments should be provided for the block of code, particularly those parts
of code which are hard to follow.
Providing comments for module is most useful as module form the unit
testing , compiling , verification and modification. Comments for a module are
often called prologue for the module. It is best to standardized the
structure of the prologue of the module. It is desirable that prologue
contains the following information :
e)
Module functionality or what the module is doing
f)
Parameters are their purpose
g)
Assumptions about the input, if any
h)
Global variable accessed and or modified in the module
As explanation of parameters ( whether they are input only, output only or
both input and output , why they are needed by the module and how the
parameters are modified ) can be quite useful during maintenance.
In addition to that given above , often information can be included,
depending on the local coding standards. Example include :
- Name of the author,
- Date of compilation
- Last date of modification.
Note that if the module is modified, then the prologue should also be
modified, if necessary. A prologue that is inconsistent with the internal logic
of the module is prologue worse than having no prologue at all.
While coding programs for the Station Coding System special
attention has been paid to the internal documentation of the system, in
addition to the external documentation. Each program/module has :
Apart from this comment lines have been inserted wherever it was felt that
they were necessary. Moreover meaningful variable names/constants have
been assigned to different variable/constants used in the programs.
other software i.e., users all the requirements will be fulfill by this
software and user can manage all the numeric data calculations.
S.No.
Terms
Description
BACK UP
DATA BASE
DBMS
DD
FLOW CHART
FLOW
CHART
depicts relation
between
entities in the system.
HARDWARE
ITD
which
different
MENU
MODULE
10
ON-LINE
11
PI
Preliminary Investigation
12
PROGRAM
13
PROTOTYPE
14
RDBMS
15
RSD
16
SCALABILITY
17
SOFTWARE
BOOK NAME
AUTHOR
10.
Techmedia
11.
C. J. Date
12.
13.
Tulec
14.
Programming in VB
P.K.M Bride
15.
Gary Cornell
16.
Mastering in VB
Steve
17.
VB with MS-Access
Rita Sahoo
18.
Smith
E M. Awad