Hard copy of proj doc
-
Upload
nawaldiatm -
Category
Documents
-
view
48 -
download
1
Transcript of Hard copy of proj doc
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 == "[email protected]") { 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