3. ACKNOWLEDGEMENT
I wish to express my deep sense of gratitude to our guide and respected MISS SHAISTA RAEES for her valuable guidance to prepare the project and in assembling the project material.
I am very thankful for his faithful blessings and for providing necessary and related facilities required for our computer project file.
In last I also want to thank those directly or indirectly took interest to complete my project file.
4. SUBMISSION
A
Project report on âAirline Reservation Systemâ
Submitted of the computer practical
2014
Of
Class BSCS-II
For the practical fulfillment of the
requirement for the syllabus.
Submitted by: Unsa Jawaid
5. CERTIFICATE
Certified that unsa jawaid have undertaken the project entitled,
âAirline Reservation Systemâ
the project submitted by her is the outcome of the work carried out by her during the academic session.
This is to further certify that she have work genuinely conducting the experiment and work put by her is the original and outcome of her own efforts.
Miss Shaista Raees
(OOP lect.)
6. ABSTRACT
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.
7. INTRODUCTION
Existing System :
In few countries if a person wants to book a flight ticket, he use to follow one of these things:
ï Manually goes to the Airport and book his ticket.
ï Downloading the ticket form as paper document, filling it manually and submitting it at Airport.
ï Fill the Ticket form on system and get the print out as paper documents to submit it at Airport.
ï Booking the Ticket at some particular registered ticket counters in online.
ï Even above approaches make a ticket booking online, it was not completely done on online. Passenger may not have much freedom over this approach.
ï Hence the Passenger may or may not be satisfied with this approach as it includes manual intervention like travelling to Airport for booking his ticket.
Proposed System:
The Proposed system ensures the complete freedom for users, where user can book his ticket. Our proposed system allows users to book the tickets, view timings and cancel their tickets.
In this Proposal the entire work is done on online and ticket with id is also provided for passengers as a print document. Here passengers can able to see the booking details
8. FEATURES:
ï Enter the details of the traveler.
ï Check for availability of tickets.
ï Inform the traveler the position of the available seat.
ï Ask his/her decision whether to reserve the ticket or not.
ï Positive reply-book ticket after receiving the amount for the cost of ticket.
ï Issue the ticket.
ï Ask the traveler to check in time so that he/she doesnât miss the plan because of delay.
ï Update the database before the next booking is to be done.
ï Show bookings detail to the traveler.
ï Cancel ticket if travelerâs want to cancel his/her ticket.
9. Operating Environment:
Hard ware Specification
ï· Processor : Intel Pentium3
ï· RAM : 512MB
ï· Hard disk : 2GB
Software Requirements
ï· Front end : .Net Framework 2.0
ï· Back end : SQL Server 2005
ï· Operating System : Windows XP/7
Reservation Modules:
ï Ticket Reservation: This module handles air ticket reservation process, which is user friendly and user can access easily.
ï View Reservation: This module handles processes of view reservation of passengers. User can easily view his/her flight schedule and seat numbers by filling few information.
ï Cancellation: This module handles the cancellation process of reservation of passengers.
15. CODING
PROGRAM.CS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
MAIN.CS
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WindowsFormsApplication1.airlineDataSetTableAdapters;
namespace WindowsFormsApplication1
{
public partial class main : Form
{
public main()
{
InitializeComponent();
}
16. private void label4_Click(object sender, EventArgs e)
{
}
private void main_Load(object sender, EventArgs e)
{
// TODO: This line of code loads data into the 'airlineDataSet.place' table. You can move, or remove it, as needed.
this.placeTableAdapter.Fill(this.airlineDataSet.place);
button2.Hide();
}
private void toolStripLabel1_Click(object sender, EventArgs e)
{
}
private void toolStripButton1_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void toolStripButton2_Click(object sender, EventArgs e)
{
showbooking sb = new showbooking();
sb.Show();
this.Hide();
}
private void button1_Click(object sender, EventArgs e)
{
if (comboBox1.SelectedValue == comboBox2.SelectedValue)
{
MessageBox.Show("Select Correct Destination");
}
else
{
string query = "select count(*) from reserved_flights where date='" + dateTimePicker1.Value.ToString("yyyy-MM-dd") + "'";
SqlConnection con = new SqlConnection("Data Source=ANNS-LAPPY;Initial Catalog=airline;Integrated Security=True");
SqlCommand command = new SqlCommand(query, con);
SqlDataReader reader = null;
con.Open();
reader = command.ExecuteReader();
int reserved = 0;
if (reader.HasRows)
{
while (reader.Read())
{
reserved = reader.GetInt32(0);
}
}
else
{
17. label7.Text = "No rows found.";
}
con.Close();
string totalseats = "select total_seats from available_flights where source=" + comboBox1.SelectedValue + "and destination=" + comboBox2.SelectedValue;
command = new SqlCommand(totalseats, con);
SqlDataReader myreader = null;
con.Open();
myreader = command.ExecuteReader();
int total = 0;
if (myreader.HasRows)
{
while (myreader.Read())
{
total = myreader.GetInt32(0);
}
}
else
{
label7.Text = "No rows found.";
}
label7.Text = total.ToString() + reserved.ToString();
if (reserved <= total)
{
label7.Text = "Seat is Available";
button1.Hide();
button2.Show();
}
else
{
label7.Text = "All Seats are reserved";
}
con.Close();
}
}
private void button2_Click(object sender, EventArgs e)
{
SqlConnection mycon = new SqlConnection("Data Source=ANNS-LAPPY;Initial Catalog=airline;Integrated Security=True");
mycon.Open();
string strquery = "insert into reserved_flights([customer_name],[date],[source],[destination])values('" + textBox1.Text + "','" + dateTimePicker1.Value.Date+ "'," + int.Parse(comboBox1.SelectedValue.ToString()) + "," + int.Parse(comboBox2.SelectedValue.ToString()) + ")";
SqlCommand cmd = new SqlCommand(strquery, mycon);
cmd.ExecuteNonQuery();
mycon.Close();
Bill b = new Bill(textBox1.Text, dateTimePicker1.Value.Date, int.Parse(comboBox1.SelectedValue.ToString()), int.Parse(comboBox2.SelectedValue.ToString()));
b.Show();
18. }
private void toolStripButton3_Click(object sender, EventArgs e)
{
cancel c = new cancel();
c.Show();
}
}
}
BILL.DESIGNER.CS
namespace WindowsFormsApplication1
{
partial class Bill
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
21. /// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(cancel));
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.toolStripLabel3 = new System.Windows.Forms.ToolStripLabel();
this.toolStripTextBox1 = new System.Windows.Forms.ToolStripTextBox();
this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.toolStrip1.SuspendLayout();
this.SuspendLayout();
//
// toolStrip1
//
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripLabel1,
this.toolStripButton1,
this.toolStripLabel2,
this.toolStripButton2,
this.toolStripLabel3,
this.toolStripTextBox1,
this.toolStripButton3});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(487, 25);
this.toolStrip1.TabIndex = 0;
this.toolStrip1.Text = "toolStrip1";
//
// toolStripLabel1
23. this.toolStripButton3.Click += new System.EventHandler(this.toolStripButton3_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(59, 60);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(70, 25);
this.label1.TabIndex = 1;
this.label1.Text = "label1";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.Location = new System.Drawing.Point(59, 105);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(70, 25);
this.label2.TabIndex = 2;
this.label2.Text = "label2";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label3.Location = new System.Drawing.Point(246, 105);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(70, 25);
this.label3.TabIndex = 3;
this.label3.Text = "label3";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.Location = new System.Drawing.Point(59, 155);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(70, 25);
this.label4.TabIndex = 4;
this.label4.Text = "label4";
//
// button1
//
this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button1.ForeColor = System.Drawing.Color.Red;
this.button1.Location = new System.Drawing.Point(64, 210);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(357, 72);
this.button1.TabIndex = 5;
this.button1.Text = "Cancel This Reservation";
this.button1.UseVisualStyleBackColor = true;
24. this.button1.Click += new System.EventHandler(this.button1_Click);
//
// cancel
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(487, 314);
this.Controls.Add(this.button1);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.toolStrip1);
this.Name = "cancel";
this.Text = "cancel";
this.Load += new System.EventHandler(this.cancel_Load);
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.ToolStrip toolStrip1;
private System.Windows.Forms.ToolStripLabel toolStripLabel1;
private System.Windows.Forms.ToolStripButton toolStripButton1;
private System.Windows.Forms.ToolStripLabel toolStripLabel2;
private System.Windows.Forms.ToolStripButton toolStripButton2;
private System.Windows.Forms.ToolStripLabel toolStripLabel3;
private System.Windows.Forms.ToolStripTextBox toolStripTextBox1;
private System.Windows.Forms.ToolStripButton toolStripButton3;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Button button1;
}
}
CONCLUSION:
In the existing system there is no provision for senior citizen concession and there is no facility for viewing single passenger record. The purpose of developing the specified software is to describe the analysis involved in the reservation of air ticket.