SlideShare a Scribd company logo
1
ONLINE BUS TICKET BOOKING SYSTEM
2
Project Report on
Online Bus Ticket Booking
Submitted by
Name University Roll No.
Sudhanshu Shekhar 15500211047
Arup Chandra Dawn 15500211007
Nawal Kishor Sharma 15500211023
Gautam Kumar 15500210034
In partial fulfillment of requirements of VII Semester,
Bachelor of Technology (Information Technology)
(2014)
Under the Project Guidance of
Mr. Tushar Kanti Dey
(Information Technology)
INFORMATION TECHNOLOGY DEPARTMENT
DURGAPUR INSTITUTE OF ADVANCED TECHNOLOGY
AND MANAGEMENT
RAJBANDH, DURGAPUR - 713212.
3
ACKNOWLEDGEMENTS
We wish to express our thanks and gratitude to our project guide Mr.Tushar Kanti Dey for being
a constant source of encouragement inspiration and motivation.
Our profound gratitude goes to the head of the department, Sankar Mukherjee for his
support and guidance throughout the project.
We would also like to thank Mr.Tushar Kanti Dey, Sankar Mukherjee for helping us
during our project.
Our special thanks goes to the teaching and non teaching staff of Information Technology
department as well as computer science and engineering department for their support.
Finally we would also like to take the opportunity to thank all our friends, classmates
who have helped us in gathering all the relevant information regarding this project.
Place:
Rajbandh, Durgapur
Project Members
Sudhanshu Shekhar
Arup Chandra Dawn
Nawal Kishor Sharma
Gautam Kumar
4
CONTENTS
TOPIC PAGE NO.
1 ABSTRACT 5
2 INTRODUCTION 6
3 DESIGN
3.1 DATA FLOW DIAGRAM 7
3.2 ER DIAGRAM 9
4
5
SOFTWARE REQUIREMENT SPECIFICATION
CODING
10
12
5.1 SNAPSHOTS OF PROJECT 17
6 REFERENCES 20
5
ABSTRACT
In this report, we describe the design and implementation of Online Bus Ticket Booking .
It is named as Online Bus Ticket Booking , because it can help Passengers to see available buses
for their Journey.
Bus reservation system consists of collection of buses customers book tickets for their
journey according to the bus number and departure time of the bus. According to its name it
manages the details of all tickets, rental details, and timing details and so on. It also manages the
updating of the objects.
This section also contains the details of booking time of the seat(s) or collecting time of
the tickets, this section also contain the booking date and the name of agent which is optional, by
which the customer can reserve the seats for his journey.
In seats specification it gives the list of given issued and currently available seats and
contain the information about seats like sleeper, cabin etc.
The main objective of this project to provide the better work efficiency, security,
accuracy, reliability, feasibility. The error occurred could be reduced to nil and working
conditions can be improved.
6
INTRODUCTION
“Online bus ticket booking system” makes it easier for a customer to book tickets online. It
reduces the time as they don’t have to stand in long queues or search ticket at different bus ticket
counter. Thus it provides better work efficiency, security, reliability and feasibility in the field of
“Online bus ticket booking system”.
User can Register, sign in and manage his/her own account, book tickets by viewing bus
details such as bus type, bus no, name, fare, number of seats etc. It also consists of Route details
and time table.
Admin can manage customer’s details, update fare of tickets according to the type of bus as
well as ac/non-ac type, manage bus details, manage route of trip, manage time-table.
In billing module, account details of customers are fetched such as Card Type, Card no. ,
card holder name, pin, Expiry date, cvv from bank account database.
Online bus reservation system is simpler and smarter. It provides the customer a wide range
of facilities, right from choosing their pickup point to their preferred choice of seat (for instance,
luxury buses with sleeper berths).
They can also choose from the widest range of available buses like Volvo, Volvo AC, AC
luxury, Deluxe, Sleeper, Express and other private buses. The payment options are easier too
customer can use either debit/credit card facility . Not just that, in case of any change in their
travel plan, bus tickets can be cancelled online.
7
ENTITY-RELATIONSHIP DIAGRAM (ERD)
8
THE ENTITIES ARE
 Bus
 Route
 Admin
 Booking
 Billing
 Customer
ATTRIBUTES
ENTIY
NAME
ATTRIBUTES
Bus
Route
Admin
Bookig
Billing
Customer
RegistrationNo,BusName,Category,NoOfSeats,OwnerName,DepTime,ArrivalTime
,RouteId,Fare
RouteId,Source,Through,Distance,Destination
AdminId,Password
BookingId,Username,Gender,Age,EmailId,Mobile
BillingId,CardHolderName,CardNumber,ValidDate,Cvv,pin
UserId,Name,Gender,Dob,EmailId,Mobile,Password,Address,SecQuestion,Answer
9
DATA FLOW DIAGRAM--(DFD)
10
SOFTWARE REQUIREMENT SPECIFICATION (SRS)
OVERVIEW
This SRS contains a user level description of the project, along with a detailed list of prioritized
requirements
PRODUCT PERSPECTIVE
This project is that part of the online bus reservation system, which allows passengers to
update information, while the online bus reservation system receives information and
manipulates reports from given information, and makes them a user friendly system. Our UI,
design is accompanied by a set of .aspx files and a database for the system.
SOFTWARE INTERFACES
Operating System: Windows XP and above
Back End Technology: SQL server 2008
Front End Technology: DOTNET framework 4.0 using C#
HARDWARE INTERFACES:
RAM: 512MB and above
Hard-disk: 40 GB and above
Processor: Pentium 4 and above
COMMUNICATION INTERFACES
None
PRODUCT FUNCTIONS
1. All changes to systems must be stored, along with an indication as to who stored
them.
2. Only authorized users are allowed to make changes the system.
3. There must be a way to right a report for a future study has still does not exist in
the system.
11
ASSUMPTIONS AND DEPENDENCIES
1. It’s hard to judge the usability without testing the product in the field with the end
clients.
2. Safety and security must be maintained by the larger Information System, and the
design team will not be responsible for security breaches.
3. System assumes that the parameters it takes as input are valid.
12
CODING
LOGIN.ASPX
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
public partial class _Default : System.Web.UI.Page
{
SqlConnection con;
SqlDataAdapter Adpr;
DataTable Dtab;
protected void Page_Load(object sender, EventArgs e)
{
Session["EmailId"] = TxtUname.Text;
}
protected void TxtUname_TextChanged(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
con = new SqlConnection("Data Source=.sqlexpress;Initial
Catalog=Sang_Travels;Integrated Security=True;Pooling=False");
con.Open();
Adpr = new SqlDataAdapter("select * from Customer where EmailId=@Username and
Password=@pwd", con);
Dtab = new DataTable();
Adpr.SelectCommand.Parameters.AddWithValue("@pwd", TxtPwd.Text);
Adpr.SelectCommand.Parameters.AddWithValue("@Username", TxtUname.Text);
Adpr.Fill(Dtab);
if (Dtab.Rows.Count > 0)
{
Response.Write("Logged in succesfully");
if (TxtUname.Text == "admin@gmail.com")
{
Response.Redirect("Admin.aspx");
return;
}
else
{
13
Response.Redirect("User.aspx");
return;
}
}
else
{
Response.Write("Incorect UserName Or Password");
TxtUname.Text = "";
TxtPwd.Text = "";
}
}
}
REGISTER.ASPX
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
public partial class Register : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
//string rdbtn;
SqlConnection con = new SqlConnection("Data Source=.sqlexpress;Initial
Catalog=Sang_Travels;Integrated Security=True;Pooling=False");
con.Open();
SqlCommand cmd = new SqlCommand("insert into Customer
values(@email,@name,@gender,@dob,@mobile,@Pwd,@address,@sec_question,@answer)", con);
//if (RdbtnMale.Checked)
// rdbtn = "Male";
//else
//rdbtn = "Female";
//Session["Password"] = TxtPwd.Text;
cmd.Parameters.AddWithValue("@Email", TxtEmailId.Text);
cmd.Parameters.AddWithValue("@name", TxtName.Text);
cmd.Parameters.AddWithValue("@gender", Rdnbtnmf.SelectedValue.ToString());
cmd.Parameters.AddWithValue("@dob", TxtDob.Text);
cmd.Parameters.AddWithValue("@mobile", TxtMobile.Text);
cmd.Parameters.AddWithValue("@Pwd", TxtPwd.Text.ToString());
cmd.Parameters.AddWithValue("@address", TxtAddress.Text);
cmd.Parameters.AddWithValue("@sec_question",
DDLSecQuest.SelectedValue.ToString());
cmd.Parameters.AddWithValue("@answer", TxtAnswer.Text);
14
cmd.ExecuteNonQuery();
Response.Redirect("Thankyou.aspx");
//Label1.Text = "Thank you for Register with us.";
TxtEmailId.Text = "";
TxtName.Text = "";
TxtDob.Text = "";
TxtMobile.Text = "";
TxtAddress.Text = "";
TxtAnswer.Text = "";
con.Close();
}
}
Change Password.aspx
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
public partial class Change_password : System.Web.UI.Page
{
string emailid;
protected void Page_Load(object sender, EventArgs e)
{
emailid = Session["EmailId"].ToString();
}
protected void Button1_Click(object sender, EventArgs e)
{
int res = 0;
SqlConnection con = new SqlConnection("Data Source=.sqlexpress;Initial
Catalog=Sang_Travels;Integrated Security=True;Pooling=False");
con.Open();
SqlCommand cmd = new SqlCommand("update Customer set Password=@Npwd where
EmailId=@Email and Password=@OPwd", con);
cmd.Parameters.AddWithValue("@Npwd", TxtNPwd.Text);
cmd.Parameters.AddWithValue("@Opwd", TxtOPwd.Text);
cmd.Parameters.AddWithValue("@Email", emailid);
res = cmd.ExecuteNonQuery();
if (res > 0)
Label2.Text="Password changed succesfully";
else
Label2.Text="Incorrect UserName or Old Password";
con.Close();
}
15
protected void TextBox1_TextChanged(object sender, EventArgs e)
{
}
}
Add_Route.aspx
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
public partial class Add_Route : System.Web.UI.Page
{
private int RouteId;
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection("Data Source=.sqlexpress;Initial
Catalog=Sang_Travels;Integrated Security=True;Pooling=False");
con.Open();
SqlDataAdapter adp = new SqlDataAdapter("select max(RouteId)+1 from Route", con);
DataTable dtab = new DataTable();
adp.Fill(dtab);
RouteId = Convert.ToInt32(dtab.Rows[0][0].ToString());
SqlCommand cmd = new SqlCommand("insert into Route
values(@routeid,@source,@through,@distance,@destination)", con);
LabRoute.Text = RouteId.ToString();
//Session["Password"] = TxtPwd.Text;
cmd.Parameters.AddWithValue("@routeid",LabRoute.Text);
cmd.Parameters.AddWithValue("@source",TextBox1.Text);
cmd.Parameters.AddWithValue("@through",TextBox2.Text);
cmd.Parameters.AddWithValue("@distance",TextBox3.Text);
cmd.Parameters.AddWithValue("@destination",TextBox4.Text);
cmd.ExecuteNonQuery();
Response.Write("Route added successfully");
//Label1.Text = "Thank you for Register with us.";
con.Close();
}
}
16
Add Bus.aspx
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
public partial class Addbus : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
SqlConnection con = new SqlConnection("Data Source=.sqlexpress;Initial
Catalog=Sang_Travels;Integrated Security=True;Pooling=False");
con.Open();
SqlDataAdapter adp = new SqlDataAdapter("select * from Route",con);
DataTable dtab = new DataTable();
adp.Fill(dtab);
ddlrouteid.DataSource = dtab;
ddlrouteid.DataTextField = "RouteId";
ddlrouteid.DataValueField = "RouteId";
ddlrouteid.DataBind();
con.Close();
}
}
protected void Button1_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection("Data Source=.sqlexpress;Initial
Catalog=Sang_Travels;Integrated Security=True;Pooling=False");
con.Open();
// SqlDataAdapter adp = new SqlDataAdapter("select max(BusId)+1 from Bus_Info",
con);
// DataTable dtab = new DataTable();
// adp.Fill(dtab);
// BusId = Convert.ToInt32(dtab.Rows[0][0].ToString());
SqlCommand cmd = new SqlCommand("insert into Bus_Info
values(@regid,@busname,@cat,@noofseats,@ownername,@dep,@arrival,@routeid,@fare)", con);
//LabRoute.Text = RouteId.ToString();
//Session["Password"] = TxtPwd.Text;
cmd.Parameters.AddWithValue("@regid",TextBox1.Text);
cmd.Parameters.AddWithValue("@busname", TextBox2.Text);
cmd.Parameters.AddWithValue("@cat",rdbtncat.SelectedItem.Text);
cmd.Parameters.AddWithValue("@noofseats", TextBox3.Text);
cmd.Parameters.AddWithValue("@ownername", TextBox4.Text);
cmd.Parameters.AddWithValue("@dep",TextBox5.Text);
cmd.Parameters.AddWithValue("@arrival",TextBox6.Text);
cmd.Parameters.AddWithValue("routeid",ddlrouteid.SelectedItem.Text);
cmd.Parameters.AddWithValue("@fare", TextBox7.Text);
17
cmd.ExecuteNonQuery();
Response.Write("Bus added successfully");
//Label1.Text = "Thank you for Register with us.";
con.Close();
}
protected void ddlrouteid_SelectedIndexChanged(object sender, EventArgs e)
{
filldata();
}
void filldata()
{
}
}
SNAPSHOTS OF WEB PAGES
REGISTER
18
LOG IN
CHANGE PASSWORD
19
ADD BUS
ADD ROUTE
20
REFERENCES
WEBSITES VISITED
 WWW.GOOGLE.COM
 HTTP://EN.WIKIPEDIA.ORG
 WWW.REDBUS.IN
21

More Related Content

What's hot

Railway reservation system
Railway reservation systemRailway reservation system
Railway reservation system
Abhishek Yadav
 
us reservation System Report
us reservation System Reportus reservation System Report
us reservation System Report
Rajat Tripathi
 
Online bus ticket booking
Online bus ticket bookingOnline bus ticket booking
Online bus ticket booking
Gaurav kumar rai - student
 
Railway reservation system
Railway reservation systemRailway reservation system
Railway reservation system
KOYELMAJUMDAR1
 
Online Railway Reservation System
Online Railway Reservation SystemOnline Railway Reservation System
Online Railway Reservation System
Prince Kumar
 
Online Bus Reservation System
Online Bus Reservation SystemOnline Bus Reservation System
Online Bus Reservation System
Siva Rushi
 
Documentation of railway reservation system
Documentation of railway reservation systemDocumentation of railway reservation system
Documentation of railway reservation systemSandip Murari
 
Report on online bus management
Report on online bus managementReport on online bus management
Report on online bus management
Naeem Ahmad
 
Bus Ticket Management System
Bus Ticket Management SystemBus Ticket Management System
Bus Ticket Management System
SM. Aurnob
 
srs for railway reservation system
 srs for railway reservation system srs for railway reservation system
srs for railway reservation system
khushi kalaria
 
Online Railway Reservation System
Online Railway Reservation SystemOnline Railway Reservation System
Online Railway Reservation System
Sanjay Saluth
 
railway reservation software documentaion
railway reservation software documentaionrailway reservation software documentaion
railway reservation software documentaion
Joveria Beg
 
online bus ticket booking system
online bus ticket booking systemonline bus ticket booking system
online bus ticket booking system
Umme habiba
 
Online Bus Service
Online Bus ServiceOnline Bus Service
Online Bus Service
saurabh kumar
 
Process control system of bus ticket booking (closed loop)
Process control system of bus ticket booking (closed loop)Process control system of bus ticket booking (closed loop)
Process control system of bus ticket booking (closed loop)
Jigar Nayak
 
Online Bus ticket reservation
Online Bus ticket reservationOnline Bus ticket reservation
Online Bus ticket reservation
Smit Patel
 
Bus Booking Management System
Bus Booking Management SystemBus Booking Management System
Bus Booking Management System
Mike Marshall
 
Online reservation system project report(web development)
Online reservation system project report(web development)Online reservation system project report(web development)
Online reservation system project report(web development)
Prachiverma50
 
Online Bus Ticketing System
Online Bus Ticketing SystemOnline Bus Ticketing System
Online Bus Ticketing System
Kiran Shahi
 

What's hot (20)

Railway reservation system
Railway reservation systemRailway reservation system
Railway reservation system
 
us reservation System Report
us reservation System Reportus reservation System Report
us reservation System Report
 
Online bus ticket booking
Online bus ticket bookingOnline bus ticket booking
Online bus ticket booking
 
Online Railway reservation
Online Railway reservationOnline Railway reservation
Online Railway reservation
 
Railway reservation system
Railway reservation systemRailway reservation system
Railway reservation system
 
Online Railway Reservation System
Online Railway Reservation SystemOnline Railway Reservation System
Online Railway Reservation System
 
Online Bus Reservation System
Online Bus Reservation SystemOnline Bus Reservation System
Online Bus Reservation System
 
Documentation of railway reservation system
Documentation of railway reservation systemDocumentation of railway reservation system
Documentation of railway reservation system
 
Report on online bus management
Report on online bus managementReport on online bus management
Report on online bus management
 
Bus Ticket Management System
Bus Ticket Management SystemBus Ticket Management System
Bus Ticket Management System
 
srs for railway reservation system
 srs for railway reservation system srs for railway reservation system
srs for railway reservation system
 
Online Railway Reservation System
Online Railway Reservation SystemOnline Railway Reservation System
Online Railway Reservation System
 
railway reservation software documentaion
railway reservation software documentaionrailway reservation software documentaion
railway reservation software documentaion
 
online bus ticket booking system
online bus ticket booking systemonline bus ticket booking system
online bus ticket booking system
 
Online Bus Service
Online Bus ServiceOnline Bus Service
Online Bus Service
 
Process control system of bus ticket booking (closed loop)
Process control system of bus ticket booking (closed loop)Process control system of bus ticket booking (closed loop)
Process control system of bus ticket booking (closed loop)
 
Online Bus ticket reservation
Online Bus ticket reservationOnline Bus ticket reservation
Online Bus ticket reservation
 
Bus Booking Management System
Bus Booking Management SystemBus Booking Management System
Bus Booking Management System
 
Online reservation system project report(web development)
Online reservation system project report(web development)Online reservation system project report(web development)
Online reservation system project report(web development)
 
Online Bus Ticketing System
Online Bus Ticketing SystemOnline Bus Ticketing System
Online Bus Ticketing System
 

Similar to Hard copy of proj doc

Train ticket reservation
Train ticket reservationTrain ticket reservation
Train ticket reservation
sazzadur rahman
 
Case study of spiral process model
Case study of spiral process  modelCase study of spiral process  model
Case study of spiral process modelminal kumar soni
 
Bus Pass.pptx
Bus Pass.pptxBus Pass.pptx
Bus Pass.pptx
DonnelBravo
 
E-TICKETING ON RAILWAY TICKET RESERVATION
E-TICKETING ON RAILWAY TICKET RESERVATIONE-TICKETING ON RAILWAY TICKET RESERVATION
E-TICKETING ON RAILWAY TICKET RESERVATION
Nandana Priyanka Eluri
 
1-i2ct_submission_1036
1-i2ct_submission_10361-i2ct_submission_1036
1-i2ct_submission_1036Vikrant Sapkal
 
Online Ticket Reservation System-SRS, ERD, DFD, Structured Charts
Online Ticket Reservation System-SRS, ERD, DFD, Structured ChartsOnline Ticket Reservation System-SRS, ERD, DFD, Structured Charts
Online Ticket Reservation System-SRS, ERD, DFD, Structured Charts
grandhiprasuna
 
PBL2.0.pptx
PBL2.0.pptxPBL2.0.pptx
PBL2.0.pptx
siddhantchandre
 
PBL2.0.pptx
PBL2.0.pptxPBL2.0.pptx
PBL2.0.pptx
siddhantchandre
 
A Review on Smart Bus Ticketing System using QR-Code
A Review on Smart Bus Ticketing System using QR-CodeA Review on Smart Bus Ticketing System using QR-Code
A Review on Smart Bus Ticketing System using QR-Code
IRJET Journal
 
bus reservation.pptx
bus reservation.pptxbus reservation.pptx
bus reservation.pptx
SachinPatil722931
 
Online bus ticket management
Online bus ticket managementOnline bus ticket management
Online bus ticket management
Daffodil International University
 
IRJET - Android Application to Generate Auto Renewal Bus Pass System
IRJET - Android Application to Generate Auto Renewal Bus Pass SystemIRJET - Android Application to Generate Auto Renewal Bus Pass System
IRJET - Android Application to Generate Auto Renewal Bus Pass System
IRJET Journal
 
H017545662
H017545662H017545662
H017545662
IOSR Journals
 
294670037-airline-reservation-system-documentation.doc
294670037-airline-reservation-system-documentation.doc294670037-airline-reservation-system-documentation.doc
294670037-airline-reservation-system-documentation.doc
yashgaming17
 
A PROJECT REPORT ON Online Bus Reservation System
A PROJECT REPORT ON Online Bus Reservation SystemA PROJECT REPORT ON Online Bus Reservation System
A PROJECT REPORT ON Online Bus Reservation System
Joe Osborn
 
Railway Reservation System - Requirement Engineering
Railway Reservation System - Requirement EngineeringRailway Reservation System - Requirement Engineering
Railway Reservation System - Requirement Engineering
Danish Javed
 
Software Engineering ppt
Software Engineering pptSoftware Engineering ppt
Software Engineering pptshruths2890
 
Android application for s park system
Android application for s park systemAndroid application for s park system
Android application for s park system
eSAT Journals
 
Bus reservationsystemppt
Bus reservationsystempptBus reservationsystemppt
Bus reservationsystemppt
tejaswini alone
 
Online railway reservation system
Online railway reservation systemOnline railway reservation system
Online railway reservation system
PIYUSH Dubey
 

Similar to Hard copy of proj doc (20)

Train ticket reservation
Train ticket reservationTrain ticket reservation
Train ticket reservation
 
Case study of spiral process model
Case study of spiral process  modelCase study of spiral process  model
Case study of spiral process model
 
Bus Pass.pptx
Bus Pass.pptxBus Pass.pptx
Bus Pass.pptx
 
E-TICKETING ON RAILWAY TICKET RESERVATION
E-TICKETING ON RAILWAY TICKET RESERVATIONE-TICKETING ON RAILWAY TICKET RESERVATION
E-TICKETING ON RAILWAY TICKET RESERVATION
 
1-i2ct_submission_1036
1-i2ct_submission_10361-i2ct_submission_1036
1-i2ct_submission_1036
 
Online Ticket Reservation System-SRS, ERD, DFD, Structured Charts
Online Ticket Reservation System-SRS, ERD, DFD, Structured ChartsOnline Ticket Reservation System-SRS, ERD, DFD, Structured Charts
Online Ticket Reservation System-SRS, ERD, DFD, Structured Charts
 
PBL2.0.pptx
PBL2.0.pptxPBL2.0.pptx
PBL2.0.pptx
 
PBL2.0.pptx
PBL2.0.pptxPBL2.0.pptx
PBL2.0.pptx
 
A Review on Smart Bus Ticketing System using QR-Code
A Review on Smart Bus Ticketing System using QR-CodeA Review on Smart Bus Ticketing System using QR-Code
A Review on Smart Bus Ticketing System using QR-Code
 
bus reservation.pptx
bus reservation.pptxbus reservation.pptx
bus reservation.pptx
 
Online bus ticket management
Online bus ticket managementOnline bus ticket management
Online bus ticket management
 
IRJET - Android Application to Generate Auto Renewal Bus Pass System
IRJET - Android Application to Generate Auto Renewal Bus Pass SystemIRJET - Android Application to Generate Auto Renewal Bus Pass System
IRJET - Android Application to Generate Auto Renewal Bus Pass System
 
H017545662
H017545662H017545662
H017545662
 
294670037-airline-reservation-system-documentation.doc
294670037-airline-reservation-system-documentation.doc294670037-airline-reservation-system-documentation.doc
294670037-airline-reservation-system-documentation.doc
 
A PROJECT REPORT ON Online Bus Reservation System
A PROJECT REPORT ON Online Bus Reservation SystemA PROJECT REPORT ON Online Bus Reservation System
A PROJECT REPORT ON Online Bus Reservation System
 
Railway Reservation System - Requirement Engineering
Railway Reservation System - Requirement EngineeringRailway Reservation System - Requirement Engineering
Railway Reservation System - Requirement Engineering
 
Software Engineering ppt
Software Engineering pptSoftware Engineering ppt
Software Engineering ppt
 
Android application for s park system
Android application for s park systemAndroid application for s park system
Android application for s park system
 
Bus reservationsystemppt
Bus reservationsystempptBus reservationsystemppt
Bus reservationsystemppt
 
Online railway reservation system
Online railway reservation systemOnline railway reservation system
Online railway reservation system
 

Hard copy of proj doc

  • 1. 1 ONLINE BUS TICKET BOOKING SYSTEM
  • 2. 2 Project Report on Online Bus Ticket Booking Submitted by Name University Roll No. Sudhanshu Shekhar 15500211047 Arup Chandra Dawn 15500211007 Nawal Kishor Sharma 15500211023 Gautam Kumar 15500210034 In partial fulfillment of requirements of VII Semester, Bachelor of Technology (Information Technology) (2014) Under the Project Guidance of Mr. Tushar Kanti Dey (Information Technology) INFORMATION TECHNOLOGY DEPARTMENT DURGAPUR INSTITUTE OF ADVANCED TECHNOLOGY AND MANAGEMENT RAJBANDH, DURGAPUR - 713212.
  • 3. 3 ACKNOWLEDGEMENTS We wish to express our thanks and gratitude to our project guide Mr.Tushar Kanti Dey for being a constant source of encouragement inspiration and motivation. Our profound gratitude goes to the head of the department, Sankar Mukherjee for his support and guidance throughout the project. We would also like to thank Mr.Tushar Kanti Dey, Sankar Mukherjee for helping us during our project. Our special thanks goes to the teaching and non teaching staff of Information Technology department as well as computer science and engineering department for their support. Finally we would also like to take the opportunity to thank all our friends, classmates who have helped us in gathering all the relevant information regarding this project. Place: Rajbandh, Durgapur Project Members Sudhanshu Shekhar Arup Chandra Dawn Nawal Kishor Sharma Gautam Kumar
  • 4. 4 CONTENTS TOPIC PAGE NO. 1 ABSTRACT 5 2 INTRODUCTION 6 3 DESIGN 3.1 DATA FLOW DIAGRAM 7 3.2 ER DIAGRAM 9 4 5 SOFTWARE REQUIREMENT SPECIFICATION CODING 10 12 5.1 SNAPSHOTS OF PROJECT 17 6 REFERENCES 20
  • 5. 5 ABSTRACT In this report, we describe the design and implementation of Online Bus Ticket Booking . It is named as Online Bus Ticket Booking , because it can help Passengers to see available buses for their Journey. Bus reservation system consists of collection of buses customers book tickets for their journey according to the bus number and departure time of the bus. According to its name it manages the details of all tickets, rental details, and timing details and so on. It also manages the updating of the objects. This section also contains the details of booking time of the seat(s) or collecting time of the tickets, this section also contain the booking date and the name of agent which is optional, by which the customer can reserve the seats for his journey. In seats specification it gives the list of given issued and currently available seats and contain the information about seats like sleeper, cabin etc. The main objective of this project to provide the better work efficiency, security, accuracy, reliability, feasibility. The error occurred could be reduced to nil and working conditions can be improved.
  • 6. 6 INTRODUCTION “Online bus ticket booking system” makes it easier for a customer to book tickets online. It reduces the time as they don’t have to stand in long queues or search ticket at different bus ticket counter. Thus it provides better work efficiency, security, reliability and feasibility in the field of “Online bus ticket booking system”. User can Register, sign in and manage his/her own account, book tickets by viewing bus details such as bus type, bus no, name, fare, number of seats etc. It also consists of Route details and time table. Admin can manage customer’s details, update fare of tickets according to the type of bus as well as ac/non-ac type, manage bus details, manage route of trip, manage time-table. In billing module, account details of customers are fetched such as Card Type, Card no. , card holder name, pin, Expiry date, cvv from bank account database. Online bus reservation system is simpler and smarter. It provides the customer a wide range of facilities, right from choosing their pickup point to their preferred choice of seat (for instance, luxury buses with sleeper berths). They can also choose from the widest range of available buses like Volvo, Volvo AC, AC luxury, Deluxe, Sleeper, Express and other private buses. The payment options are easier too customer can use either debit/credit card facility . Not just that, in case of any change in their travel plan, bus tickets can be cancelled online.
  • 8. 8 THE ENTITIES ARE  Bus  Route  Admin  Booking  Billing  Customer ATTRIBUTES ENTIY NAME ATTRIBUTES Bus Route Admin Bookig Billing Customer RegistrationNo,BusName,Category,NoOfSeats,OwnerName,DepTime,ArrivalTime ,RouteId,Fare RouteId,Source,Through,Distance,Destination AdminId,Password BookingId,Username,Gender,Age,EmailId,Mobile BillingId,CardHolderName,CardNumber,ValidDate,Cvv,pin UserId,Name,Gender,Dob,EmailId,Mobile,Password,Address,SecQuestion,Answer
  • 10. 10 SOFTWARE REQUIREMENT SPECIFICATION (SRS) OVERVIEW This SRS contains a user level description of the project, along with a detailed list of prioritized requirements PRODUCT PERSPECTIVE This project is that part of the online bus reservation system, which allows passengers to update information, while the online bus reservation system receives information and manipulates reports from given information, and makes them a user friendly system. Our UI, design is accompanied by a set of .aspx files and a database for the system. SOFTWARE INTERFACES Operating System: Windows XP and above Back End Technology: SQL server 2008 Front End Technology: DOTNET framework 4.0 using C# HARDWARE INTERFACES: RAM: 512MB and above Hard-disk: 40 GB and above Processor: Pentium 4 and above COMMUNICATION INTERFACES None PRODUCT FUNCTIONS 1. All changes to systems must be stored, along with an indication as to who stored them. 2. Only authorized users are allowed to make changes the system. 3. There must be a way to right a report for a future study has still does not exist in the system.
  • 11. 11 ASSUMPTIONS AND DEPENDENCIES 1. It’s hard to judge the usability without testing the product in the field with the end clients. 2. Safety and security must be maintained by the larger Information System, and the design team will not be responsible for security breaches. 3. System assumes that the parameters it takes as input are valid.
  • 12. 12 CODING LOGIN.ASPX using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Data.SqlClient; public partial class _Default : System.Web.UI.Page { SqlConnection con; SqlDataAdapter Adpr; DataTable Dtab; protected void Page_Load(object sender, EventArgs e) { Session["EmailId"] = TxtUname.Text; } protected void TxtUname_TextChanged(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { con = new SqlConnection("Data Source=.sqlexpress;Initial Catalog=Sang_Travels;Integrated Security=True;Pooling=False"); con.Open(); Adpr = new SqlDataAdapter("select * from Customer where EmailId=@Username and Password=@pwd", con); Dtab = new DataTable(); Adpr.SelectCommand.Parameters.AddWithValue("@pwd", TxtPwd.Text); Adpr.SelectCommand.Parameters.AddWithValue("@Username", TxtUname.Text); Adpr.Fill(Dtab); if (Dtab.Rows.Count > 0) { Response.Write("Logged in succesfully"); if (TxtUname.Text == "admin@gmail.com") { Response.Redirect("Admin.aspx"); return; } else {
  • 13. 13 Response.Redirect("User.aspx"); return; } } else { Response.Write("Incorect UserName Or Password"); TxtUname.Text = ""; TxtPwd.Text = ""; } } } REGISTER.ASPX using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Data.SqlClient; public partial class Register : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { //string rdbtn; SqlConnection con = new SqlConnection("Data Source=.sqlexpress;Initial Catalog=Sang_Travels;Integrated Security=True;Pooling=False"); con.Open(); SqlCommand cmd = new SqlCommand("insert into Customer values(@email,@name,@gender,@dob,@mobile,@Pwd,@address,@sec_question,@answer)", con); //if (RdbtnMale.Checked) // rdbtn = "Male"; //else //rdbtn = "Female"; //Session["Password"] = TxtPwd.Text; cmd.Parameters.AddWithValue("@Email", TxtEmailId.Text); cmd.Parameters.AddWithValue("@name", TxtName.Text); cmd.Parameters.AddWithValue("@gender", Rdnbtnmf.SelectedValue.ToString()); cmd.Parameters.AddWithValue("@dob", TxtDob.Text); cmd.Parameters.AddWithValue("@mobile", TxtMobile.Text); cmd.Parameters.AddWithValue("@Pwd", TxtPwd.Text.ToString()); cmd.Parameters.AddWithValue("@address", TxtAddress.Text); cmd.Parameters.AddWithValue("@sec_question", DDLSecQuest.SelectedValue.ToString()); cmd.Parameters.AddWithValue("@answer", TxtAnswer.Text);
  • 14. 14 cmd.ExecuteNonQuery(); Response.Redirect("Thankyou.aspx"); //Label1.Text = "Thank you for Register with us."; TxtEmailId.Text = ""; TxtName.Text = ""; TxtDob.Text = ""; TxtMobile.Text = ""; TxtAddress.Text = ""; TxtAnswer.Text = ""; con.Close(); } } Change Password.aspx using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Data.SqlClient; public partial class Change_password : System.Web.UI.Page { string emailid; protected void Page_Load(object sender, EventArgs e) { emailid = Session["EmailId"].ToString(); } protected void Button1_Click(object sender, EventArgs e) { int res = 0; SqlConnection con = new SqlConnection("Data Source=.sqlexpress;Initial Catalog=Sang_Travels;Integrated Security=True;Pooling=False"); con.Open(); SqlCommand cmd = new SqlCommand("update Customer set Password=@Npwd where EmailId=@Email and Password=@OPwd", con); cmd.Parameters.AddWithValue("@Npwd", TxtNPwd.Text); cmd.Parameters.AddWithValue("@Opwd", TxtOPwd.Text); cmd.Parameters.AddWithValue("@Email", emailid); res = cmd.ExecuteNonQuery(); if (res > 0) Label2.Text="Password changed succesfully"; else Label2.Text="Incorrect UserName or Old Password"; con.Close(); }
  • 15. 15 protected void TextBox1_TextChanged(object sender, EventArgs e) { } } Add_Route.aspx using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.SqlClient; using System.Data; public partial class Add_Route : System.Web.UI.Page { private int RouteId; protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection("Data Source=.sqlexpress;Initial Catalog=Sang_Travels;Integrated Security=True;Pooling=False"); con.Open(); SqlDataAdapter adp = new SqlDataAdapter("select max(RouteId)+1 from Route", con); DataTable dtab = new DataTable(); adp.Fill(dtab); RouteId = Convert.ToInt32(dtab.Rows[0][0].ToString()); SqlCommand cmd = new SqlCommand("insert into Route values(@routeid,@source,@through,@distance,@destination)", con); LabRoute.Text = RouteId.ToString(); //Session["Password"] = TxtPwd.Text; cmd.Parameters.AddWithValue("@routeid",LabRoute.Text); cmd.Parameters.AddWithValue("@source",TextBox1.Text); cmd.Parameters.AddWithValue("@through",TextBox2.Text); cmd.Parameters.AddWithValue("@distance",TextBox3.Text); cmd.Parameters.AddWithValue("@destination",TextBox4.Text); cmd.ExecuteNonQuery(); Response.Write("Route added successfully"); //Label1.Text = "Thank you for Register with us."; con.Close(); } }
  • 16. 16 Add Bus.aspx using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using System.Data.SqlClient; public partial class Addbus : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { SqlConnection con = new SqlConnection("Data Source=.sqlexpress;Initial Catalog=Sang_Travels;Integrated Security=True;Pooling=False"); con.Open(); SqlDataAdapter adp = new SqlDataAdapter("select * from Route",con); DataTable dtab = new DataTable(); adp.Fill(dtab); ddlrouteid.DataSource = dtab; ddlrouteid.DataTextField = "RouteId"; ddlrouteid.DataValueField = "RouteId"; ddlrouteid.DataBind(); con.Close(); } } protected void Button1_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection("Data Source=.sqlexpress;Initial Catalog=Sang_Travels;Integrated Security=True;Pooling=False"); con.Open(); // SqlDataAdapter adp = new SqlDataAdapter("select max(BusId)+1 from Bus_Info", con); // DataTable dtab = new DataTable(); // adp.Fill(dtab); // BusId = Convert.ToInt32(dtab.Rows[0][0].ToString()); SqlCommand cmd = new SqlCommand("insert into Bus_Info values(@regid,@busname,@cat,@noofseats,@ownername,@dep,@arrival,@routeid,@fare)", con); //LabRoute.Text = RouteId.ToString(); //Session["Password"] = TxtPwd.Text; cmd.Parameters.AddWithValue("@regid",TextBox1.Text); cmd.Parameters.AddWithValue("@busname", TextBox2.Text); cmd.Parameters.AddWithValue("@cat",rdbtncat.SelectedItem.Text); cmd.Parameters.AddWithValue("@noofseats", TextBox3.Text); cmd.Parameters.AddWithValue("@ownername", TextBox4.Text); cmd.Parameters.AddWithValue("@dep",TextBox5.Text); cmd.Parameters.AddWithValue("@arrival",TextBox6.Text); cmd.Parameters.AddWithValue("routeid",ddlrouteid.SelectedItem.Text); cmd.Parameters.AddWithValue("@fare", TextBox7.Text);
  • 17. 17 cmd.ExecuteNonQuery(); Response.Write("Bus added successfully"); //Label1.Text = "Thank you for Register with us."; con.Close(); } protected void ddlrouteid_SelectedIndexChanged(object sender, EventArgs e) { filldata(); } void filldata() { } } SNAPSHOTS OF WEB PAGES REGISTER
  • 20. 20 REFERENCES WEBSITES VISITED  WWW.GOOGLE.COM  HTTP://EN.WIKIPEDIA.ORG  WWW.REDBUS.IN
  • 21. 21