You are on page 1of 27

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION MUMBAI

A PROJECT REPORT ON

AIRLINE RESERVATION SYSTEM


UNDER THE GUIDANCE
OF Mrs. S. R. SALOKHE

DEPARTMENT OF COMPUTER ENGINEERING


DR. D. Y. PATIL POLYTECHNIC,
KASABA BAWADA, KOLHAPUR.

SEMESTER – IV

YEAR: - 2023-24
SUBMITTED BY: -

1. Abhinandan Sutar Roll No.2171


2. Vrukshali Sonawane Roll No.2172

3. Jaydeep Medshinge Roll No.2273

4. Shreya Bhat Roll No.2174


Certificate

This is to certify that Mr./Ms………………………………………………………………

Roll NNo 2171 to 2173..of ……. Semester of Diploma in…………………………………

… ........................... of Institute, Dr. D. Y. Patil Polytechnic (Code: 0539) has completed

The Micro Project satisfactorily in Subject -……………………. ( ) for the

academic year 20…. -20..........as prescribed in the curriculum.

Place: ……………………. Enrollment No: …………………………………….

Date: ……………………… Exam. Seat No: …………………………………….

Subject Teacher Head of the Department Principal


ACKNOWLEDGMENT

The success & find outcome of this project required a lot of guidance &
assistance from many people and I am extremely privileged to have got all
along the completion of our project. All that we have done is only due to
such supervision & assistance & I would not forget to thank them.

I owe my deep gratitude to our project guide, Ms. S. S. SALOKHE Who


took keen interest on our project work & guided us all along, till the
completion of our project work by providing all the necessary Information
for developing a good system.

I am thankful to & fortunate enough to get constant encouragement, support &


guidance form all teaching staffs of Computer Engineering which help us in
successful completing our project work.
INDEX

SR.NO CONTENT PAGE NO

1. INTRODUCTION 1

2. COURSE OUTCOME 2

3. ACTUAL METHODOLOGY 3
AND IMPLEMENTATION

4. OUTPUTS OF M.S. 5
ACCESS
DATABASE
5. PROGRAM CODE 6

6. OTHER OUTPUTS 20

7. CONSLUSION 22

8. LITERATURE REVIEW 23
AIRLINE RESERVATION SYSTEM

1. INTRODUCTION

VB.Net is the programming language based on Object Oriented Concepts which is


prominently used to develop GUI based Applications. Graphical User Interface
(GUI) based application includes various user friendly controls to accept or display
data. This course will us an in-depth understanding of the concepts used in VB.NET
and necessary skills to use programming techniques to develop .NET based
applications and deploy the same.

VB.NET was introduced by Microsoft in 2002 as part of the .NET Framework. It is


designed to be an easy-to-learn language for beginners, while still being powerful
enough to handle complex programming tasks.

VB.NET Framework : VB.NET Framework is a programming framework


developed by Microsoft that allows developers to create software applications using
the Visual Basic .NET programming language. It provides a set of libraries, classes,
and tools that developers can use to build desktop, web, and mobile applications for
the Windows operating system.

Developers can use VB.NET to create a wide range of applications, from simple
console applications to complex enterprise-level systems. The framework includes a
rich set of libraries for tasks such as data access, network communication, and user
interface design, making it easier for developers to build robust and scalable
applications.

Overall, VB.NET Framework is a powerful and versatile tool for developing


Windows applications, and its popularity among developers has made it a widely
used technology in the software development industry

1
AIRLINE RESERVATION SYSTEM

2. COURSE OUTCOME

1. Use Visual studio IDE to design application.


2. Develop GUI Application using Form controls and its events.
3. Use data access controls to store data in Database and retrieve it.

2
AIRLINE RESERVATION SYSTEM

3. Actual Methodology and Implementation

A system has been designed which contains login of user, reservation of seats. In this,
the username and password will be accepted from the user in windows form
application and that inputted data will be stored in the database. Later the user will
choose source location and destination location and reserve his/her seat and that
reservation seat’s data again will be stored in another database.
Different Events used in the Project:
• Form_load Event
• Button1_click Event
• Button2_click Event

❖ Different Database Connectivity tools used:

1. OleDbConnection Object
An OleDbConnection object represents an unique connection to a data source. With
client/server database system, it is equivalent to a network connection to the server.

2. OleDbDataAdapter
The OleDbDataAdapter serves as a bridge between a DataSet and Data source for
retrieving and saving data. The OleDbDataAdapter provides this bridge by using Fill
to load data from the data source into the dataset, and using Update to send changes
made in the dataset back to the database.
3. OleDbDataSet
The DataSet contains the copy of the data we requested through the SQL statement.
We can use Dataset in combination with OleDbDataAdapter class. The
OleDbDataAdapter object allows us to populate Data Tables in a DataSet. We can
use Fill method in the OleDbDataAdapter for populating data in a Dataset.

3
AIRLINE RESERVATION SYSTEM

4. OleDbCommand Object
Represents a set of data commands and a database connection that are used to fill the
DataSet and update the data source.

5. OleDbDataRow
 A DataRow contains an individual row of data. It narrows the data
abstraction to the level of the row. The DataRow type provides ways to add,
remove, or read cells from the enclosing data structure.

 Actual Resources Used :

Sr.no. Name of Specification


Resource

1. Computer system Intel core computer @2.27 GHz

2 Operating system Windows (7 Ultimate Standard Version)

Microsoft Visual VS Express 2012


3.
Studio Express
2012

4
AIRLINE RESERVATION SYSTEM

4. OUTPUTS OF MICROSOFT ACCESS DATABASE

5
AIRLINE RESERVATION SYSTEM

5. PROGRAM CODE
Main:
Public Class main

Private Sub CreateANewAccountToolStripMenuItem_Click(sender As Object, e


As EventArgs)
Handles
CreateANewAccountToolStripMe
nuItem.Click sineup.Show()
End Sub

Private Sub AlreadyHaveAnAccountToolStripMenuItem_Click(sender As


Object, e As EventArgs)
Handles
AlreadyHaveAnAccountToolStripM
enuItem.Click login.Show()
End Sub

Private Sub ExitToolStripMenuItem_Click(sender As Object, e As


EventArgs) Handles
ExitToolStripMenuItem
.Click
admin_login.Sho
w()
End Sub

Private Sub ReserveSeatsToolStripMenuItem_Click(sender As Object, e As


EventArgs) Handles
ReserveSeatsToolStripM
enuItem.Click login.Show()
End Sub

6
AIRLINE RESERVATION SYSTEM

Private Sub CancleSeatsToolStripMenuItem_Click(sender As Object, e


As EventArgs) Handles
CancleSeatsToolStripM
enuItem.Click login.Show()
End Sub

Private Sub ExitToolStripMenuItem1_Click(sender As Object,


e As EventArgs) Handles ExitToolStripMenuItem1.Click
Me.Close()
End Sub End
Class

Login
:
Imports System.Data Imports
System.Data.OleDb

Public Class login


Dim con As OleDbConnection Dim
cmd As OleDbCommand Dim adpt
As OleDbDataAdapter Dim ds As
New DataSet
Dim dr As DataRow

Private Sub Form1_Load(sender As Object, e As EventArgs)


Handles MyBase.Load

con = New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data


Source=D:\airline.accdb") con.Open()

7
AIRLINE RESERVATION SYSTEM

cmd = New OleDbCommand("select * from lg", con) adpt =


New OleDbDataAdapter(cmd)
adpt.Fill(ds, "airline")
End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs)


Handles Button1.Click
If TextBox1.Text = Nothing Or TextBox2.Text = Nothing Then
MsgBox("Enter Credentials", MsgBoxStyle.Exclamation)
Else
If con.State = ConnectionState.Closed Then
con.Open() End If
Dim cmd As New OleDbCommand("select count(*) from lg
where username=? and password=?", con)
cmd.Parameters.AddWithValue("@1", OleDbType.VarChar).Value
= TextBox1.Text cmd.Parameters.AddWithValue("@2",
OleDbType.VarChar).Value = TextBox2.Text Dim count =
Convert.ToInt32(cmd.ExecuteScalar())
If (count > 0) Then choice.Show()
MsgBox("Login Succeeded!", MsgBoxStyle.Information, ) Else
MsgBox("Account not found, Check Credentials",
MsgBoxStyle.Critical)
End If
End If
End Sub
End Class
Reservation:
Imports System.Data Imports
System.Data.OleDb

8
AIRLINE RESERVATION SYSTEM

Public Class reservation

Dim con As OleDbConnection Dim


cmd As OleDbCommand Dim adpt
As OleDbDataAdapter Dim dread As
OleDbDataReader Dim ds As New
DataSet
Dim dr As DataRow
Dim icount As Integer
Private Sub Form2_Load(sender As Object, e As
EventArgs) Handles MyBase.Load con = New
OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.
0;Data
Source=D:\a
irline.accdb")
con.Open()
cmd = New
OleDbCommand("select * from
reserve", con) adpt = New
OleDbDataAdapter(cmd)
adpt.Fill(ds, "reserve")
DataGridView1.DataSource = ds
DataGridView1.DataMember = "reserve"
End Sub

Private Sub Button2_Click(sender As Object, e As EventArgs)


Handles Button2.Click
If ListBox1.SelectedItem = "Mumbai" Then If
ListBox2.SelectedItem = "Pune" Then
Amount.Text = 2000

9
AIRLINE RESERVATION SYSTEM

End If
If ListBox2.SelectedItem = "Surat" Then Amount.Text =
5000

End If
If ListBox2.SelectedItem = "Bangalore" Then
Amount.Text = 7500

End If
If ListBox2.SelectedItem = "Kolkata" Then
Amount.Text = 9000

End If
If ListBox2.SelectedItem = "Hyderabad" Then
Amount.Text = 8500

End If

End If

If ListBox1.SelectedItem = "Pune" Then


If ListBox2.SelectedItem = "Mumbai" Then
Amount.Text = 2000

End If
If ListBox2.SelectedItem = "Surat" Then Amount.Text =
6000

End If

10
AIRLINE RESERVATION SYSTEM

If ListBox2.SelectedItem = "Bangalore" Then


Amount.Text = 7500

End If
If ListBox2.SelectedItem = "Kolkata" Then
Amount.Text = 8000

End If
If ListBox2.SelectedItem = "Hyderabad" Then
Amount.Text = 9000

End If
End If

If ListBox1.SelectedItem = "Surat" Then


If ListBox2.SelectedItem = "Mumbai" Then
Amount.Text = 7500

End If
If ListBox2.SelectedItem = "Pune" Then Amount.Text =
7500

End If
If ListBox2.SelectedItem = "Bangalore" Then
Amount.Text = 7000

End If
If ListBox2.SelectedItem = "Kolkata" Then
Amount.Text = 10000

11
AIRLINE RESERVATION SYSTEM

End If
If ListBox2.SelectedItem = "Hyderabad" Then
Amount.Text = 2500

End If
End If

If ListBox1.SelectedItem = "Bangalore" Then If


ListBox2.SelectedItem = "Mumbai" Then
Amount.Text = 2500

End If
If ListBox2.SelectedItem = "Surat" Then Amount.Text =
3500
End If
If ListBox2.SelectedItem = "Pune" Then Amount.Text =
7000

End If
If ListBox2.SelectedItem = "Surat" Then Amount.Text =
4000

End If
If ListBox2.SelectedItem = "Hyderabad" Then
Amount.Text = 10000

End If
End If

12
AIRLINE RESERVATION SYSTEM

If ListBox1.SelectedItem = "Hyderabad" Then If


ListBox2.SelectedItem = "Mumbai" Then
Amount.Text = 8000

End If
If ListBox2.SelectedItem = "Surat" Then Amount.Text =
6000

End If
If ListBox2.SelectedItem = "Bangalore" Then
Amount.Text = 7500

End If
If ListBox2.SelectedItem = "Kolkata" Then
Amount.Text = 4000

End If
If ListBox2.SelectedItem = "Pune" Then Amount.Text =
7500

End If
End If

If ListBox1.SelectedItem = "Kolkata" Then


If ListBox2.SelectedItem = "Mumbai" Then
Amount.Text = 6000

End If
If ListBox2.SelectedItem = "Surat" Then

13
AIRLINE RESERVATION SYSTEM

Amount.Text = 5000

End If
If ListBox2.SelectedItem = "Bangalore" Then
Amount.Text = 7500

End If
If ListBox2.SelectedItem = "Pune" Then Amount.Text =
7500

End If
If ListBox2.SelectedItem = "Hyderabad" Then
Amount.Text = 5500

End If
End If
End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs)


Handles Button1.Click
Dim idd
As Integer idd
=
CInt(TextBox
3.Text) * 123
dr =
ds.Tables("res
erve").NewRo w
dr("ID") = idd
dr("pname") =
TextBox1.Text

14
AIRLINE RESERVATION SYSTEM

dr("source") =
ListBox1.SelectedIt
em dr("destination")
= ListBox2.SelectedIt
em dr("time")
= TextBox3.Text
dr("fdate") =
TextBox2.Text dr("price")
= Amount.Text
ds.Tables("reserve")
.Rows.Add(dr)
cmd = New OleDbCommand("insert into reserve values(" & idd &
",'" & TextBox1.Text & "','" &
ListBox1.SelectedItem & "','" & ListBox2.SelectedItem & "','" &
TextBox3.Text & "','" &
TextBox2.Text & "','" &
Amount.Text & "')", con)
icount =
cmd.ExecuteNonQuery
MsgBox(icount & "Record added
successfully", , "Insert Record") End
Sub

End Class
Admin Login:

Imports System.Data.OleDb
Imports System.Data

Public Class admin_login


Private Sub Button1_Click(sender As Object, e As
EventArgs) Handles Button1.Click If
TextBox1.Text
= "Airadmin" And TextBox2.Text = "1212Admin" Then all_reservation_sheet.Show()
Me.Close()

15
AIRLINE RESERVATION SYSTEM

End If

End Sub

Private Sub admin_login_Load(sender As Object, e As


EventArgs) Handles MyBase.Load

End Sub
End Class
Cancel:
Imports System.Data Imports
System.Data.OleDb

Public Class cancle


Dim con As OleDbConnection Dim
cmd As OleDbCommand Dim adpt
As OleDbDataAdapter Dim dread As
OleDbDataReader Dim ds As New
DataSet
Dim dr As DataRow
Dim icount As Integer
Private Sub cancle_Load(sender As Object, e As
EventArgs) Handles MyBase.Load con = New
OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0
;Data
Source=D:\a
irline.accdb")
con.Open()
cmd = New
OleDbCommand("select * from
reserve", con) adpt = New

16
AIRLINE RESERVATION SYSTEM

OleDbDataAdapter(cmd)
adpt.Fill(ds, "reserve")
End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs)


Handles Button1.Click

Dim del
As
Integer
del =
CInt(T
extBox
1.Text)
cmd = New OleDbCommand("delete from
reserve where ID=" & del, con) icount =
cmd.ExecuteNonQuery()
MsgBox(icount & " Record Deleted", , "Delete Record")
ds.Tables("reserve").Rows.Clear()
End Sub
End Class
Sign up:

Imports System.Data Imports


System.Data.OleDb

Public Class Signup


Dim con As OleDbConnection Dim
cmd As OleDbCommand Dim adpt
As OleDbDataAdapter Dim ds As
New DataSet
Dim dr As DataRow

17
AIRLINE RESERVATION SYSTEM

Dim icount As Integer


Private Sub sineup_Load(sender As Object, e As
EventArgs) Handles MyBase.Load con = New
OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0
;Data
Source=D:\airline.accdb")
con.Open()
cmd = New
OleDbCommand("select * from
lg", con) adpt = New
OleDbDataAdapter(cmd)
adpt.Fill(ds, "lg") End
Sub

Private Sub CheckBox1_CheckedChanged(sender As Object, e As


EventArgs) Handles
CheckBox1.CheckedChanged
If TextBox1.Text = Nothing Or TextBox2.Text = Nothing
Or TextBox3.Text = Nothing Then MsgBox("Enter all the
Credintials", MsgBoxStyle.Exclamation)
Else
Button1.Enabled =
True End If

End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs)


Handles Button1.Click
If TextBox1.Text = Nothing Or TextBox2.Text = Nothing Or TextBox3.Text
= Nothing Or
CheckBox1.Checked = False Then

18
AIRLINE RESERVATION SYSTEM

MsgBox("Enter all the Credintials and Accept the Terms


and Policies", MsgBoxStyle.Exclamation)
Else
dr = ds.Tables("lg").NewRow dr("username") =
TextBox1.Text dr("Email") = TextBox2.Text
dr("password") = TextBox3.Text
ds.Tables("lg").Rows.Add(dr) cmd = New OleDbCommand("insert into lg
values('" & TextBox1.Text & "','" & TextBox2.Text
& "','" &
TextBox3.Text & "')",
con) icount =
cmd.ExecuteNonQuery
MsgBox(icount &
"Account Has Been
Sucessfully Created",
MsgBoxStyle.Informati
on, "Account
Created")

End If
End Sub
End Class

19
AIRLINE RESERVATION SYSTEM

6. OUTPUTS

20
AIRLINE RESERVATION SYSTEM

21
AIRLINE RESERVATION SYSTEM

7. CONCLUSION

The project E-Ticketing is completed, satisfying the required design specifications.


The system provides a user-friendly interface. The software is developed with modular
approach. All modules in the system have been tested with valid data and invalid data
and everything work successfully. Thus the system has fulfilled all the objectives
identified and is able to replace the existing system. The constraints are met and
overcome successfully. The system is designed as like it was decided in the design
phase. This software has a user- friendly screen that enables the user to use without any
inconvenience. It would also help in providing adequate data to the corporation,
particularly with regard to the boarding of passengers from fare stages and important
points. Besides, it would provide data on concessions given to various sections.
Another additional feature is that the data in the ticket could be fed into the computer.

22
AIRLINE RESERVATION SYSTEM

8. LITERATURE REVIEW

❖ www.wikipedia.com
The information received from this website is well organized and provided with
right research. This is mainly because of how well known this website is and the
legitimate information they provide with the right formatting and the appropriate
amount you need to know of the info.

❖ www.studocu.com
Here, they provide you with the step by step information of the topic with the
highlighted and important parts of any of the topic. Therefore, your work and
process that turns out to be completed in mere steps. They also provide you with
relevant theory on that topic which is being shown as they have develop Student
Management System to perform such practical.

❖ www.cisco.com
The website is the base for any projects diagram and many of the are representation
of tables and charts. They even label them appropriately and they have a simplistic
way of providing the diagram. The material they provide you with can never be too
little or too much. They provide representation content for many subjects may it be
technical or not

23

You might also like