Вы находитесь на странице: 1из 57

A

Project Report
On

“AIRLINES”

Submitted in partial fulfillment of the requirements for the award of degree

Post Graduate Diploma in Computer Application


From
Pt. Ravishankar Shukla University, Raipur (C.G.)

Year: 2018-19

Guide by: Submitted By:


Mr. Vikas sharma preeti pagwani
(Dept.of computer science)

Submitted to
Agrasen Mahavidhyalay, purani basti , Raipur
Pt.RaviShankar Shukla University,Raipur(C.G)
CERTIFICATE OF APPROVAL

This is to certify that the project work entitled “AIRLINES” is carried out by preeti pagwani,
a student of PGDCA II Sem at Agarsen Mahavidyalaya Purani Basti is here by approved as
a credible work in the degree of Post Graduation Diploma In Computer Application during
the year 2018-19 From Pt. Ravishankar Shukla University, Raipur (CG).

Mr.Vikas Sharma
H.O.D
(Dept. of Comp. Sci.)
CERTIFICATE

This is to certify that the project work entitled “AIRLINES” Submitted to the Agarsen
Mahavidyalaya by preeti pagwani ,in partial fulfillment for the requirement relating to
nature and standard of the award of Post Graduation Diploma In Computer Application
degree by, Pt. Ravishankar Shukla University, Raipur (CG) for the academic year
2018-19.This project work has been carried out under my guidance.

(Guide Name)
Mr. Vikas Sharma
Mr. Vaibhav Ingle
CERTIFICATE OF EVALUATION

This is to certify that the project work entitled “AIRLINES” is carried out by preeti pagwani,
a student of PGDCA II Semester at Agarsen Mahavidyalaya, after proper evaluation and
examination, is hereby approved as a credible work in the discipline of computer science
and is done in a satisfactory manner for its acceptance as a requisite for the award of Post
Graduation Diploma In Computer Application II Semester during the year 2018-2019
from Pt. Ravishankar Shukla University, Raipur (CG)

Internal Examiner External Examiner


DECLARATION

This is to certify that the project work entitled “AIRLINES” which is submitted by me in the
partial fulfillment for the award of the degree of Post Graduation Diploma In Computer
Application, Agrasen Mahavidyalaya Purani Basti, comprises the original work carried
out by me. I further declare that the work reported in this project has not been submitted
and will not be submitted, either in part or in full for the award of any other degree or
diploma in this institute or any other institute or University.
Place: Raipur preeti pagwani
Date: PGDCA II Semester
ACKNOWLEDGEMENT

This project is an inspiration, support, guidance, corporation and facilities


that were extended to us at their best and by person at all levels. We were
indebted to all of them.

We wish to acknowledgement our profound sense of gratitude to the project


guide Mr. Vikas Sharma for their remarkable guidance and continued
encouragement during the development of project. It was a matter of great felicity
and privilege for us to work under the aegis. We would like to extend our special
thanks to (Principal of- Agrasen Mahavidyalaya Purani Basti) for boosting our
confidence when we were lacking so.

We offer our sincere thanks to Department staff members. Finally we would also
like to thank our entire classmate for their corporation and support. We would like
to pay our everlasting regards to our “Agrasen Mahavidyalaya Purani Basti”
Where this project gets completed.
CONTENT

 OBJECTIVE AND SCOPE OF THE PROJECT


 THEORETICAL BACKGROUND
 DEFINITION OF PROBLEM
 SYSTEM ANALYSIS AND DESIGN
 SYSTEM PLANNING (PERT CHART)

 METHODOLOGY ADOPTED,SYSTEM IMPLEMENTATION & DETAIL OF HARDWARE AND


SOFTWARE USED
 SYSTEM MAINTENANCE AND EVALUATION
 COST AND BENEFIT ANALYSIS
 DETAILED LIFE CYCLE OF THE PROJECT
 ERD,
 INPUT AND OUTPUT SCREEN DESIGN
 PROCESS INVOLVED
 METHODOLOGY USED FOR TESTING
 TEST REPORT
 USER/OPERATIONAL MANUAL-INCLUDING SECURITY ASPECTS,ACCESS
RIGHTS,BACK UP,CONTROLS ETC.
 CONCLUSION
 REFRENCES
OBJECTIVE

Airline Reservation System contains the details about flight schedules and its fare tariffs,
passenger reservations and ticket records. An airline‟s inventory contains all flights with their
available seats. The inventory of an airline service is generally divided into three category of
classes (e.g. First, Business or Economy class) and each category is having seats up to 26
bookings, along with prices and booking conditions. Inventory data is imported and maintained
through a Schedule Distribution System over standardized interfaces. One of the core functions
of the inventory management of airline reservations is the inventory control. Inventory control
steers how many seats are available for the different booking classes, by opening and closing
individual booking classes for sale. In combination with the fares and booking conditions stored
in the Fare Quote System the price for each sold seat is determined.
PROJECT INTRODUCTION
The “Airline Reservation Management” is an ultimate tool for any reservation
management. It helps the management to maintain the database or details of “Airline
Reservation Management” This software is extremely user friendly and has a very good
interface.

The front end of the software is Visual Basic and backend is Microsoft Access. We have
kept the source code so flexible and easy to understand that any changes are easy to implement
or possible to add any extra field related to student or course details. If the data stored in the
database is modified after some time then the modified data will overwrite the previous data.
This software is also helpful in searching any details of vehicle or information related to its
features.

Also the proper documentation of the coding enables any programmer to understand the
logic behind the program. The software is a reflection of an extremely advantageous utility as it
incorporates the features of good software plus it allows reusability to client details plus the
coding and presentation.

The choice of this software was a plus point as the product is in great demand because the
youth has developed a great interest in bank sector and want to create something new for
software industry. Hope that this software prepares all bank users to manage their business
better and we‟ll also be looking for feedback from them.
PURPOSE OF PROJECT

 Airline Reservation System contains the details about flight schedules and its fare tariffs,
passenger reservations and ticket records.
 The inventory of an airline service is generally divided into three category of classes (e.g.
First, Business or Economy class) and each category is having seats up to 26 bookings,
along with prices and booking conditions.

In the arena of Information Technology (I.T.) where the information and maintenance is of
significance, the worlds is at the threshold of minimizing manual labor and automate the hectic
procedures to the best possible extent and utilize the information in a way that can really
provide a thrust to the business development.Maintenance provides best manageable system to
the user and/or clients to working easily and sufficiently.

In previous days the management not so increase at that time all work are done on paper. But
now a day‟smarket is change. Today these is a huge things thousands of Plane,
Passengerand.are come on a day. For maintaining these record is not quite easily this program
help to maintain

SCOPES

Thisprogramhelps us to record directly the Plane,Passengerand detail.

The following are the modules:

Region:-
The main region is to creating this program is to safely record details of Plane, Passengerand..

Purpose:-
Fast work with safety and maintain secure records when we need we watch it
PROBLEM IN THE EXISTING SYSTEM

• The existing system is very slow.


• This system isn‟t providing the feature of getting proper information.
• Existing system do not maintain Plane, Passenger‟srecords properly.
• The existing system isn‟t providing the Plane, Passenger anddescription.
• System doesn‟t provide to update existing information.

SOLUTION OF THESE PROBLEMS

• The system should be flexible enough and made in a manner that it can be customized at
any moment of time.

• It provides the feature of inserting the information in the project and get proper information
according to submitting.

• Those Plane, Passengerand.recordscan be maintained properly through this project.

• It provides report on information about existing system and about submitting problems.

• It is also provide the features of updating information of existing system.

SYSTEM ANALYSIS

Airline Reservation Managemet:- Our proposed system there is a scope for the
users to place their new innovative ideas to present any information. Apart from giving
the feedbacks there is also a separate module for the registered users to share their new
concepts and also awarded for better ideas presented. So the shops are optimized
according to the users wish and after having good feedback that they can use easily.
H/W & S/W SPECIFICATION

Title: Computer Shop MANAGEMENT

Software Requirements:-

Language used :- Visual Basic


Platform :- Operating System (Windows 98,XP or Later).
Software :- 6.0 versions
Front end :- Visual Basic
Back end :- MS-Access (2002-2003)

Hardware Requirements : -

Processor :- Intel Celeron class Processor with 233 MHz


RAM :- 128 MB or above.
Hard Disk :- 512MB.
Keyboard :- Having 102 keys or more and window based.
Mouse :- Two button and scroll wheel.
Graphics Card :- Supported by mother board.

SOFTWARE REQUIREMENT SPECIFICATION

The models such as DFDs, data dictionary, objects diagram etc. generally focus on the
problem structure, not on the external behavior such as user interface, performance
constraints, design constraints that contain the clear specification of the functional,
performance, design and interface requirements of the proposed system.
FUNCTIONAL REQUIREMENTS

This requirement is typically expressed in relational and state oriented notations


that specify relationship among input, action, and output. These requirements should
specify the given input, validation and corresponding outputs of operations, equation, or
logical operations that must be used to transformed inputs into outputs. In addition, some
abnormal inputs, system behavior for invalid input must be specified.
Here we use the validation on the field of Computer Code where we input only
numbers, we can‟t use characters. We use also the range of the numbers for any
users/admin/or faculty. This is the validation which is the most important part of the
functional requirements. Here the user interface is also the important part for that system.
We design the interface using swing java is user friendly and easy to handle. Illiterate
person can also be used this system.

PERFORMANCE REQUIREMENTS

There are two types of performance requirements:- Static and Dynamic. SStatic
requirements are required number of terminal to be supported, number of simultaneous
users to be supported, the number of the files system has to process and their sizes etc.
The Dynamic requirements include execution time behavior of the system such as
throughout, response time; execution time for the compilation of the operation acceptable
ranges of different performance should be specified
Our project is not a big size so that is easy to install, less response time, and we can
use easily and period of time specified and this will be using very low memory of the
system.

SELECTED SOFTWARE

Microsoft Visual Basic 6.0(Front End)

The Microsoft is a complete software kit which comprises of all the tools required to make a
good project. The visual Basic works on the windows platform. The best feature of the visual
basic is that by the use of it „.exe‟ file of the project can also be created.

Ms-Access [Back End]

MS Access is a RDBMS (Relational Database Management System) from Microsoft that


combines the relational Microsoft Jet Database Engine into Graphical User Interface & software
development tools.
We have used MS-ACCESS as a back end for our project. All data are stored in MS ACCESS
as our record which is required for translation. We have provided connectivity between our
interface and Ms-Access Relational Database.
OBJECTIVE OF THE STUDY

Information plays key role as the horizons of knowledge keep on expanding. Since
this project has an effort to convert the present manual system into a computer based system,
a thorough knowledge of the day- to- day functioning of the present system mandatory. The
objective of the study comprises of:

A) Specification
B) Input
C) Output
D) Intermediate Process
E) User Involvement

SYSTEM ANALYSIS

System analysis is the process of gathering and interpreting facts, diagnosing problems
and using the information to recommend improvements on the system. System analysis is a
problem solving activity that requires intensive communication between the system users and
system developers.
System analysis or study is an important phase of any system development process. The
system is studied to the minutest detail and analyzed. The system analyst plays the role of an
interrogator and dwells deep into the working of the present system. The system is viewed as
a whole and the inputs to the system are identified. The outputs from the organization are
traced through the various processing that the inputs phase through in the organization.
A detailed study of these processes must be made by various techniques like Interviews,
Questionnaires etc. The data collected by these sources must be scrutinized to arrive to a
conclusion. The conclusion is an understanding of how the system functions. This system is
called the existing system. Now, the existing system is subjected to close study and the
problem areas are identified. The designer now functions as a problem solver and tries to sort
out the difficulties that the enterprise faces. The solutions are given as a proposal. The
proposal is then weighed with the existing system analytically and the best one is selected. The
proposal is presented to the user for an endorsement by the user. The proposal is reviewed on
user request and suitable changes are made. This loop ends as soon as the user is satisfied
with the proposal.
PRELIMINARY INVESTIGATION
The first step in the system development life cycle was the preliminary investigation to
determine the feasibility of the system. The purpose of the preliminary investigation was to
evaluate the merits of the project and I made an informal judgment about the feasibility of the
proposed project.

The following objectives were achieved during the preliminary investigation:

a) Classified and understood the project request.


b) Determine size of the project.
c) Determined the technical and operational feasibility of the alternative approaches
d) Reported the finding to management, with recommendations outlining the acceptance
or the rejection of the proposal.

CONDUCTING THE INVESTIGATION

The data collected during the preliminary investigation was gathered using the
primary methods, review of the existing organization records, on-site observation etc.
FEASIBILITY STUDY
A feasibility analysis involves a detailed assessment of the need, value and practicality of
a proposed enterprise, such as systems development. The process of designing and
implementing record-keeping systems has sufficient accountability and resource implications
for an organization. Feasibility analysis will help you make inform and transparent decision at
crucial points during the developmental process to determine whether it is operationally,
economically and technically realistic to produce with a particular course of action. Various
types of feasibility were studied, like:

 Technical Feasibility
 Operational Feasibility
 Economic Feasibility
 Social Feasibility
 Management Feasibility
 Time Feasibility

Fact Finding

Fact-finding means learning about the existing system as much as possible. The various
methods that were employed to find facts are:

a) Interviewing
b) Observing the current system
c) Gathering information from existing documents
d) Defining the system requirements
Steps in feasibility analysis:

1. Form a project team and appoint a project leader:


The concept behind the project team is that future system users should be involved in its
design and implementation. Their knowledge and experience in the operation area are
essential to the success of the system. For small projects, the analyst and an assistant
usually suffice; however, more complex studies require a project team. The team consists
of analysis and user staff-enough collective expertise to devise a solution to the problem.
Even many times, an outside consultant and an information specialist join the team until
the job is completed. Projects are planned to occupy a specific time period, ranging from
several weeks to months. The senior system analyst is appointed as project leader.
2. Prepare system flowcharts: Information oriented charts and dataflow diagrams prepared
in the initial investigation are reviewed at this time. The charts bring up the importance of
the input, output and dataflow among key points in the existing system. All other
flowcharts needed for detailed evaluation are completed at this point.
3. Enumerate potential candidate systems: This step identifies the candidate system that is
capable of producing the outputs included in the generalized flowcharts. This requires a
transformation from logical to physical system models. Another aspect of this step is
consideration of the hardware that can handle total system requirements.
4. Describe and identify characteristics of candidate system:
From the candidate systems considered, the team begins a preliminary evaluation in an
attempt to reduce them to a manageable number. The information along with additional
data available through the vendor highlights the positive and negative features of the
system. The constraints unique to each system are also specified.
5. Determine and evaluate performance and cost-effectiveness of each candidate system:
Each candidate system’s performance is evaluated against the system
performance requirements set prior to the feasibility study. Whatever the Criteria, there
has to be as close a match as practicable, although trade-off are often necessary to select
the best system.

The cost encompasses both designing and installing the system. It includes user
training, updating the physical facilities & documenting. System Performance criteria are
evaluated against the cost of each system to determine which system is likely to be the
most cost effective and also meets the performance requirements. Cost are most easily
determine when the receipts if the systems are tangible and measurable. An additional
factor to consider is the cost of the study design and -requirements.

6. Weight system performance and cost data:


In this step each candidate system is weighted by its performance and cost data by
applying a rating figure. Then the candidate system with the highest total score is
selected.

The procedure for weighing candidate system is simple:

(a) Assign a weighing factor to each evaluation criterion based on the


criteria’s effect on the success of the system.

(b) Assign a quantitative rating to each criterion qualitative rating.

7. Select the best candidate system:


The system with the highest total score is judged the best system. This assumes the
weighing factors are fair and rating of each evaluating criteria is accurate. Most feasibility
study select from more candidate systems. The criteria chosen and the constraints are
also more complex. In any case, management cooperation and comments, however, are
encouraged.

8. Feasibility report:
The feasibility report is a formal document for management use, brief enough and
sufficiently non-technical to be understandable, yet detailed enough to provide the basic
for system design. There is no standard format for preparing feasibility reports. Analyst
usually decides on a format that suits the particular user and the system.

Generally, the report contains the following sections

a. Cover letter.

b. Table of contents.

C. Overview.

d. Detailed findings.

e. Economic justification.

f. Recommendations and conclusions.

g. Appendixes.
SOFTWARE REQUIREMENTS

Software is list of instructions to be executed by computer. Software is that part of


computer system which enables the hardware to operate. Software is an essential
requirement of the computer system.

Operating System : Windows XP (Professional).


Frontend Tool : VB.NET 2008
Backend Tool : MS Access2003.

HARDWARE REQUIREMENTS
Hardware is the physical components of a computer, which includes CPU, internal
storage units, I/O units, other peripherals of any other device that can be used in conjunction
with these units. Broadly, hardware can be termed as the electronic circuits used in building
the computer that executes the software.

Processor : Min Pentium 2.4 GHz or above


Memory : Min 256 MB RAM or above
Cache Memory : Min 128 KB or above
Hard Disk : Min 3 GB or above [at least 3 MB free space
Required
System design is the solution to the creation of a new system. This phase is
composed of several systems. This phase focuses on the detailed implementation of the
feasible system. It emphasizes on translating design specifications to performance
specification. System design has two phases of development logical and physical design.
During logical design phase the analyst describes inputs (sources), outputs (destinations),
databases (data sores) and procedures (data flows) all in a format that meats the uses
requirements. The analyst also specifies the user needs and at a level that virtually determines
the information flow into and out of the system and the data resources. Here the logical
design is done through data flow diagrams and database design.
The physical design is followed by physical design or coding. Physical design produces the
working system by defining the design specifications, which tell the programmers exactly what
the candidate system must do. The programmers write the necessary programs that accept
input from the user, perform necessary processing on accepted data through call and produce
the required report on a hardcopy or display it on the screen.

Input design is the process of converting user-oriented input to a computer based


format. Input design is a part of overall system design, which requires very careful attention
.Often the collection of input data is the most expensive part of the system. The main
objectives of the input design are …

1. Produce cost effective method of input

2. Achieve highest possible level of accuracy

3. Ensure that the input is acceptable to and understood by the staff.

Input Data

The goal of designing input data is to make entry easy, logical and free from errors as
possible. The entering data entry operators need to know the allocated space for each field;
field sequence and which must match with that in the source document. The format in which
the data fields are entered should be given in the input form .Here data entry is online; it
makes use of processor that accepts commands and data from the operator through a key
board. The input required is analyzed by the processor. It is then accepted or rejected. Input
stages include the following processes

 Data Recording
 Data Transcription
 Data Conversion
 Data Verification
 Data Control
 Data Transmission
 Data Correction

One of the aims of the system analyst must be to select data capture method and
devices, which reduce the number of stages so as to reduce both the changes of errors and the
cost .Input types, can be characterized as.

 External
 Internal
 Operational
 Computerized
 Interactive

Input files can exist in document form before being input to the computer. Input design
is rather complex since it involves procedures for capturing data as well as inputting it to the
computer.

Outputs from computer systems are required primarily to communicate the results of
processing to users. They are also used to provide a permanent copy of these result for latter
consultation .Computer output is the most important and direct source of information to the
users. Designing computer output should proceed in an organized well throughout the
manner. The right output must be available for the people who find the system easy o use.
The outputs have been defined during the logical design stage. If not, they should defined at
the beginning of the output designing terms of types of output connect, format, response etc.
Various types of outputs are

 External outputs
 Internal outputs
 Operational outputs
 Interactive outputs
 Turn around outputs

All screens are informative and interactive in such a way that the user can full fill his
requirements through asking queries.

The general theme behind a database is to handle information as an integrated whole. A


database is a collection of interrelated data stored with minimum redundancy to serve
many users quickly and effectively. After designing input and output, the analyst must
concentrate on database design or how data should be organized around user
requirements. The general objective is to make information access, easy quick, inexpensive
and flexible for other users. During database design the following objectives are
concerned:-

 Controlled Redundancy
 Data independence
 Accurate and integrating
 More information at low cost
 Recovery from failure
 Privacy and security
 Performance
 Ease of learning and use
STUDEN
ER- DIAGRAM
T-ID
NAME

FATHERNAME

MOTHER NAME

DETAILS
ADMISSION MANAGE

SECTION

GENDESR

MOBLE NO
DATE OF BIRTH
ADDRESS

Student STORES

detail
PASSENGERTABLE

PLANESTABLE
PLANESSCHEDULESTABLE

TRANSACTIONSHISTORYSTABLE
LOGINFROM

MDI (MAIN)FORM
PASSENGERSENTRYFORM

ADD PLANESNEWDETAILSFORM
BOOKINGDETAILSFORM

ADDINGNEWPLANESINFORMATIONFORM
TRANSACTOINSHISTORYFORM

PLANESSCHEDULESFORM
PASSENGERSREPORT

PLANESDETAILSREPORT
TRANSACTIONSREPORT

PLANES SCHEDULES REPORT


COADING
Private Sub Command1_Click()

If txtpn.Text = Empty Or txtFair.Text = Empty Or txtfrom.Text = Empty Or txtd.Text =


Empty Or txtpno.Text = Empty Or txtsc.Text = Empty Then

MsgBox "Please don't leave any field empty", vbInformation

Exit Sub

End IfDim rs As New ADODB.Recordset

If mode = 1 Then

rs.Open "select count(*) from planes where planeNm = '" & txtpn.Text & "'", adocn

If rs.Fields(0) > 0 Then

MsgBox "Record already exists", vbCritical, "Cable Network"

txtpn.SetFocus

Exit Sub

Else

Add

frmnpre.loadlist

Unload Me

End If

End If

Private Sub Command1_Click()


'check for correct password

If txtPassword = "12345" And txtUserName = "pravesh" Then

'place code to here to pass the

'success to the calling sub

'setting a global var is the easiest

LoginSucceeded = True

Me.Hide

TRANS_HISTORY.Show

Else

MsgBox "Invalid Password, try again!", , "Login"

txtPassword.SetFocus

SendKeys "{Home}+{End}"

End If

End Sub

Private Sub Command2_Click()

End

End Sub

If mode = 2 Then Edit

End Sub

Private Sub Command2_Click()

Unload Me

End Sub

Public mode As Integer

Public PassPortNo As String


Private Sub cboNewPlane_Click()

If cboNewPlane.Text = Empty Then Exit Sub

Dim rs As New ADODB.Recordset

rs.Open "select * from planes where planenm = '" & cboNewPlane.Text & "'", adocn

txtd.Text = rs.Fields("dest")

txtFrom.Text = rs.Fields("from")

txtfair.Text = rs.Fields("fair")

txtFlightNo.Text = rs.Fields("planeNo")

txtFlightTime.Text = rs.Fields("time")

rs.Close

Set rs = Nothing

End Sub

Private Sub cboNewPlane_KeyPress(KeyAscii As Integer)

KeyAscii = 0

End Sub

Private Sub cmdCancel_Click()

Unload Me

End Sub

Private Sub cmdOK_Click()

If txtPassNo.Text = Empty Or txtpn.Text = Empty Or cboNewPlane.Text = Empty Or


txtFlightNo.Text = Empty Or txtFlightTime.Text = Empty Then

MsgBox "please don't leave any field empty", vbInformation

Exit Sub
End If

Dim rs As New ADODB.Recordset

If mode = 1 Then

rs.Open "select count(*) from JetAirways where passportno = '" & txtPassNo.Text & "'
AND flightTime = #" & txtFlightTime.Text & "# AND FLightdt = #" & DTPicker1.Value
& "#", adocn

If rs.Fields(0) > 0 Then

MsgBox "Record already exists", vbCritical, "Cable Network"

txtPassNo.SetFocus

Exit Sub

Else

Add

frmmain.loadlist

Unload Me

End If

End If

If mode = 2 Then Edit

End Sub

Private Sub Add()

Dim rs As New ADODB.Recordset

rs.Open "select * from JetAirways", adocn, adOpenKeyset, adLockOptimistic

rs.AddNew

rs.Fields("passportNo") = txtPassNo.Text

rs.Fields("passNm") = txtpn.Text
rs.Fields("SeatNo") = txtsn.Text

If cboNewPlane.ListIndex < 0 Then

MsgBox "Please choose the Plane Name", vbInformation

Exit Sub

Else

rs.Fields("PlaneNo") = cboNewPlane.ItemData(cboNewPlane.ListIndex)

End If

rs.Fields("flightNo") = txtFlightNo.Text & 0

rs.Fields("FlightTime") = txtFlightTime.Text

rs.Fields("luggagewght") = txtWeight.Text

rs.Fields("FlightDt") = DTPicker1.Value

rs.Update

MsgBox "Record Added", vbInformation

rs.Close

Set rs = Nothing

End Sub

Private Sub Form_Load()

LoadNewplane

DTPicker1.Value = Date

If mode = 2 Then Display

End Sub
Private Sub Display()

Dim rs As New ADODB.Recordset, rs1 As New ADODB.Recordset

rs.Open "select * from JetAirways where passportNo = '" & PassPortNo & "'", adocn,
adOpenKeyset, adLockOptimistic

txtPassNo.Text = rs.Fields("passportNo")

txtpn.Text = rs.Fields("passNm")

txtsn.Text = rs.Fields("SeatNo")

txtFlightNo.Text = rs.Fields("flightNo")

txtFlightTime.Text = rs.Fields("FlightTime")

txtWeight.Text = rs.Fields("luggagewght")

DTPicker1.Value = rs.Fields("FlightDt")

rs1.Open "select * from planes where planeno = " & rs.Fields("planeno"), adocn

cboNewPlane.Text = rs1.Fields("PlaneNm")

txtd.Text = rs1.Fields("dest")

txtFrom.Text = rs1.Fields("from")

txtfair.Text = rs1.Fields("fair")

rs1.Close

Set rs1 = Nothing

rs.Close

Set rs = Nothing

End Sub

Private Sub LoadNewplane()

Dim rs As New ADODB.Recordset


rs.Open "select * from planes", adocn, adOpenDynamic, adLockOptimistic

Do While Not rs.EOF

cboNewPlane.AddItem rs.Fields("PlaneNm")

cboNewPlane.ItemData(cboNewPlane.NewIndex) = rs.Fields("PlaneNo")

rs.MoveNext

Loop

rs.Close

Set rs = Nothing

End Sub

Private Sub Edit()

If cboNewPlane.ListIndex < 0 Then

MsgBox "Please choose Plane ", vbInformation

cboNewPlane.Text = ""

Exit Sub

End If

Dim rs As New ADODB.Recordset

rs.Open "select * from JetAirways where passportNo = '" & PassPortNo & "'", adocn,
adOpenKeyset, adLockOptimistic

rs.Fields("PassportNo") = txtPassNo.Text
rs.Fields("passNm") = txtpn.Text

rs.Fields("SeatNo") = txtsn.Text

If cboNewPlane.ListIndex < 0 Then

MsgBox "Please choose the Plane Name", vbInformation

cboNewPlane.Text = ""

cboNewPlane.SetFocus

Exit Sub

Else

rs.Fields("PlaneNo") = cboNewPlane.ItemData(cboNewPlane.ListIndex)

End If

rs.Fields("flightNo") = txtFlightNo.Text & 0

rs.Fields("FlightTime") = txtFlightTime.Text

rs.Fields("luggagewght") = txtWeight.Text

rs.Fields("FlightDt") = DTPicker1.Value

rs.Update

MsgBox "Record Updated", vbInformation

rs.Close

Set rs = Nothing

frmmain.loadlist

Unload Me

End Sub
Option Explicit

Public LoginSucceeded As Boolean

Private Sub cmdCancel_Click()

'set the global var to false

'to denote a failed login

' LoginSucceeded = False

Me.Hide

End Sub

Private Sub cmdOK_Click()

'check for correct password

If txtPassword = "12345" And txtUserName = "priya" Then

'place code to here to pass the

'success to the calling sub

'setting a global var is the easiest

LoginSucceeded = True

Me.Hide

MDIForm1.Show

Else

MsgBox "Invalid Password, try again!", , "Login"

txtPassword.SetFocus

SendKeys "{Home}+{End}"
End If

End Sub

Private Sub cmdadd_Click()

frmbook.mode = 1

frmbook.Show 1, Me

End Sub

Private Sub cmdcan_Click()

Unload Me

End Sub

Private Sub cmddel_Click()

If LVBooking.SelectedItem Is Nothing Then Exit Sub

Dim STRSQL As String

STRSQL = "DELETE FROM jetairways WHERE passportNo = '" &


LVBooking.SelectedItem.Tag & "'"

If MsgBox("ARE YOU SURE YOU WANT TO DELETE THE RECORD", vbYesNo +


vbQuestion, "DELETE") = vbYes Then

adocn.Execute STRSQL

loadlist

Else

MsgBox "RECORD NOT DELETED", vbInformation

End If

End Sub
Private Sub cmdmod_Click()

If LVBooking.SelectedItem Is Nothing Then Exit Sub

frmbook.PassPortNo = LVBooking.SelectedItem.Tag

frmbook.mode = 2

frmbook.Show 1, Me

End Sub

Private Sub Form_Load()

loadlist

End Sub

Public Sub loadlist()

LVBooking.ListItems.Clear

Dim rs1 As New ADODB.Recordset, litem As ListItem

rs1.Open "select *,(select planeNm from planes where Planes.planeNo = Jetairways.planeNo)as


PlaneName from Jetairways order by FlightDt desc", adocn

Do While Not rs1.EOF

Set litem = LVBooking.ListItems.Add(, , rs1.Fields("passportNo"))

litem.SubItems(1) = rs1.Fields("passNm")

litem.SubItems(2) = rs1.Fields("seatNo")

litem.SubItems(3) = rs1.Fields("planename")

litem.SubItems(4) = rs1.Fields("FlightNo")

litem.SubItems(5) = rs1.Fields("FlightTime")

litem.SubItems(6) = rs1.Fields("luggagewght")

litem.SubItems(7) = Format(rs1.Fields("flightDt"), "dd-MMM-yyyy")


litem.Tag = rs1.Fields("passportNo")

rs1.MoveNext

Loop

rs1.Close

Set rs1 = Nothing

End Sub

Public mode As Integer

Public Planeno As Integer, PlaneName As String

Private Sub cmdadd_Click()

If txtpn.Text = Empty Or txtFair.Text = Empty Or txtfrom.Text = Empty Or txtd.Text = Empty


Or txtpno.Text = Empty Or txtsc.Text = Empty Then

MsgBox "Please don't leave any field empty", vbInformation

Exit Sub

End If

Dim rs As New ADODB.Recordset

If mode = 1 Then

rs.Open "select count(*) from planes where planeNm = '" & txtpn.Text & "'", adocn

If rs.Fields(0) > 0 Then

MsgBox "Record already exists", vbCritical, "Cable Network"

txtpn.SetFocus
Exit Sub

Else

Add

frmnpre.loadlist

Unload Me

End If

End If

If mode = 2 Then Edit

End Sub

Private Sub cmdcan_Click()

Unload Me

End Sub

Private Sub Form_Load()

LoadPlaneNo

If mode = 2 Then Display

End Sub

Private Sub Display()

Dim rs As New ADODB.Recordset


rs.Open "select * from planes where planeNo = " & Planeno, adocn, adOpenKeyset,
adLockOptimistic

txtpn.Text = rs.Fields("planeNm")

txtpno.Text = rs.Fields("PlaneNo")

txtd.Text = rs.Fields("Dest")

txtfrom.Text = rs.Fields("From")

txtsc.Text = rs.Fields("seats")

txtFair.Text = rs.Fields("Fair")

Text1.Text = rs.Fields("time")

rs.Close

Set rs = Nothing

End Sub

Private Sub Add()

Dim rs As New ADODB.Recordset

rs.Open "select * from planes", adocn, adOpenKeyset, adLockOptimistic

rs.AddNew

rs.Fields("planeNm") = txtpn.Text

rs.Fields("dest") = txtd.Text

rs.Fields("from") = txtfrom.Text

rs.Fields("Seats") = txtsc.Text

rs.Fields("Fair") = txtFair.Text

rs.Fields("time") = Text1.Text
rs.Update

MsgBox "Record Added", vbInformation

rs.Close

Set rs = Nothing

End Sub

Private Sub LoadPlaneNo()

Dim rs As New ADODB.Recordset

rs.Open "select max(Planeno) from planes", adocn

If IsNull(rs.Fields(0)) = True Then

txtpno.Text = 1

Else

txtpno.Text = rs.Fields(0) + 1

End If

rs.Close

Set rs = Nothing

End Sub

Private Sub Edit()

Dim rs As New ADODB.Recordset


rs.Open "select * from planes where PlaneNo = " & Planeno, adocn, adOpenKeyset,
adLockOptimistic

rs.Fields("PlaneNm") = txtpn.Text

rs.Fields("dest") = txtd.Text

rs.Fields("From") = txtfrom.Text

rs.Fields("seats") = txtsc.Text

rs.Fields("fair") = txtFair.Text

rs.Update

rs.Close

Set rs = Nothing

frmnpre.loadlist

Unload Me

End Sub

Private Sub cmdad_Click()

frmnp.mode = 1

frmnp.Show 1, Me

End Sub

Private Sub cmdClose_Click()

Unload Me

End Sub
Private Sub cmdDelete_Click()

If LVPlane.SelectedItem Is Nothing Then Exit Sub

Dim STRSQL As String, StrSql1 As String

STRSQL = "DELETE FROM planes WHERE PlaneNo =" & LVPlane.SelectedItem.Tag

StrSql1 = "DELETE FROM JetAirways Where PlaneNo =" & LVPlane.SelectedItem.Tag

If MsgBox("ARE YOU SURE YOU WANT TO DELETE THE RECORD," & vbCrLf &
"ALL THE TICKETS FOR THAT FLIGHT WILL BE CANCELED ", vbYesNo + vbQuestion,
"DELETE") = vbYes Then

adocn.Execute STRSQL

adocn.Execute StrSql1

loadlist

Else

MsgBox "RECORD NOT DELETED", vbInformation

End If

End Sub

Private Sub cmdmod_Click()

If LVPlane.SelectedItem Is Nothing Then Exit Sub

frmnp.Planeno = LVPlane.SelectedItem.Tag

frmnp.PlaneName = LVPlane.SelectedItem.ListSubItems(1)

frmnp.mode = 2

frmnp.Show 1, Me

End Sub
Private Sub Form_Load()

loadlist

End Sub

Public Sub loadlist()

LVPlane.ListItems.Clear

Dim rs1 As New ADODB.Recordset, litem As ListItem

rs1.Open "select * from planes order by PlaneNo", adocn

Do While Not rs1.EOF

Set litem = LVPlane.ListItems.Add(, , rs1.Fields("planeNo"))

litem.SubItems(1) = rs1.Fields("planeNm")

litem.SubItems(2) = rs1.Fields("Dest")

litem.SubItems(3) = rs1.Fields("From")

litem.SubItems(4) = rs1.Fields("Seats")

litem.SubItems(5) = rs1.Fields("Fair")

litem.Tag = rs1.Fields("planeNo")

rs1.MoveNext

Loop

rs1.Close

Set rs1 = Nothing

End Sub

Private Sub Form_Resize()

Me.Left = MDIForm1.Width / 2 - Me.Width / 2

Me.Top = MDIForm1.Height / 2 - Me.Height / 2


End Sub

Private Sub LVPlane_DblClick()

cmdmod_Click

End Sub
CONCLUSION

It has been a great pleasure for me to work on this existing and challenging project.

This project is small module of large software, which is for “AIRWAY RESERVATION
MANAGEMENT”.

This project proved good for me as it provided practical knowledge of not only about
programming but also get information about wonders of the world.

This will provided opportunities and guideline in developing projects independently.


All the users in the organization have appreciated the project.

User-friendly screens are provided.

The usage of software increases the efficiency, decreases the effort.

It also provides the user with variable options for viewing.

It has been thoroughly tested and implemented.

This “ AIRWAY RESERVATION MANAGEMENT “ project is platform dependent,


because it can be executed only Microsoft Windows Opereating System.
LIMITATION AND FUTURE SCOPE

Benefits

PERT is useful because it provides the following information:

 Expected project completion time.


 Probability of completion before a specified date.
 The critical path activities that directly impact the completion time.
 The activities that have slack time and that can lend resources to critical path activities.
 Activity start and end dates.

Limitations

The following are some of PERT's weaknesses:

 The activity time estimates are somewhat subjective and depend on judgement. In cases where there is
little experience in performing an activity, the numbers may be only a guess. In other cases, if the person
or group performing the activity estimates the time there may be bias in the estimate.
 Even if the activity times are well-estimated, PERT assumes a beta distribution for these time estimates,
but the actual distribution may be different.
 Even if the beta distribution assumption holds, PERT assumes that the probability distribution of the
project completion time is the same as the that of the critical path. Because other paths can become the
critical path if their associated activities are delayed, PERT consistently underestimates the expected
project completion time.
BIBLIOGRAPHY

REFRENCES:-

1. VB.Net Black Book- Steven Holzner

2. Mastering VB.Net- EvangelosPetroutsos

3. Internet

4. College Faculties

Вам также может понравиться