SlideShare a Scribd company logo
1 of 45
A Project Report on
ONLINE BUS RESERVATION SYSTEM
Submitted as partial fulfillment of the requirement
for M.Sc. IT - Semester IV
Prepared for Subject: PROJECT WORK (P401)
Prepared By
2012
PROJECT
WORK P401
Semester-IV
2016
Name of Student : Patel Astha J.
Enrollment No.:1416it22025
Exam No.:425
Shri Maneklal M. Patel Institute of Sciences and Research,
Department of M.Sc. (IT), Gandhinagar.
Shri Maneklal M. Patel Institute of Sciences and Research,
Department of M.Sc. (IT) Gandhinagar.
Date:
PROJECT WORK CERTIFICATE
This is to certify that the project report submitted by Astha Patel, having
enrollment no. 1416it22025 , a student of M.Sc. IT Semester- IV, has completed
his/her project titled Online Bus Reservation System satisfactorily during the
academic year 2015-16.
We appreciate the enthusiasm & dedication towards work submitted.
ACKNOWLEDGMENT
I am grateful to my internal guide Dinkan Patel for providing me valuable guidance for the
PROJECT WORK and other domain related information.
I would like to express my endless thanks to Mr. Sunil Panchal, for giving invaluable
advice, direction, support and transferring knowledge throughout the project work.
Also my hearty gratitude to Head of Department, Prof. (Dr.) B. R. Pandya for giving me
an opportunity for learning through the process of project work by which I can improve my
technical skills along with practical exposure and its applicability in the industry.
Internal Project Guide
Mr. /Ms. Dinkan Patel
Asst. Professor
Department of M.Sc. IT
Prof. (Dr.). B. R. Pandya
Head of Department, M.Sc. IT
Name of Student: Signature of Student:
Astha Patel
Enrollment No.:1416it22025
Index
Sr.no Title
1 Scope & Objective 1
2 Functional Requirement 2
3 System Architecture, Tools & Technology 3
4 System Design 5
- ER Diagram
- Data Dictionary
5 Coding 14
6 Testing 17
7 Screen Layout 20
8 Bibliogrphy 38
1) Scope:
 The scope of the online Bus Reservation System is : A Person should be able to
 Registration and then Login into the system through the application
 Change password after logging into the system and view booking
 Able to choose the seats which are available
2) Objective:
 Bus Information, route Information
 Select seats , date and departure place
 Generate ticket and print ticket and cancellation ticket with Cancellation charge
3) Functional And Non -Functional Requirement:
 Functional Requirement:
• A functionality to manage routs and buses by admin.
• User can easily manage their profile.
• A facility to cancel already booked ticket at any time via system.
• Facilitate admin to analyst the business by providing different types of
reports.
 Non – Functional Requirement:
• A less time consuming process in compare to other booking process.
• Save user time and reduce the complication of payment option process.
 Admin Requirement:
• Manage for Bus, Time, route
• Cancellation charge.
• Change ticket price , update route , bus
• View and manage report
• In present bus type is Seater & Sleeper
• In present there are 49 seater bus.
• Sleeper 20 seater bus.
 User Requirement:
• Registration
• Login
• Search and View New added bus and route
• Book ticket
• Cancel ticket
• Manage his/her account
• View print ticket
• View welcome mail
4) System Architecture, Tools And Technology
• Code Building language:-
- Web Developer 2012
• Scripting Language:-
- Css3
- HTML5
- JAVA Script
• Application Browser:-
- Chrome (preferable) or any other
• Front end:-
- ASP.NET MVC
• Back end:-
- Sqlserver 2012
 Hardware Requirement
• Server side:-
- 160 GB available hard disk space
- 2 GB RAM
- Intel Pentium 4 processer
• Client side:-
- 256 MB RAM
- Intel Pentium 4 processer
 Software Requirement
• Server side-
- Operating system:-Windows 7
- Front end: - Web Developer 2012
- Back end: - SQL server 2012
- Web browser: Chrome, Mozila any preferable
• Client Side
- Web Browser:-Chrome, Mozila any preferable
- Operating System:-Windows 7
5) System Design:
 E-R Diagram
 Data Dictionary:
1) City:
Field Name Data Type Size Constraint
city_id Int 5 Primary Key
city_name Varchar 50 Not null
2) Bus:
Field Name Data Type Size Constraint
bus_id Int 5 Primary Key
bus_name Varchar 50 Not null
Bus_type Varchar 50 Not Null
Bno Varchar 50 Not null
3) Route
Field Name Data Type Size Constraint
Route_id Int 5 Primary Key
Bus_id int 5 Foreign Key
Dep_time Varchar 50 Not Null
Dep_station Int 5 Foreign Key
Arr_station Int 5 Foreign Key
Fare Varchar 50 Not null
4) Registration
Field Name Data Type Size Constraint
Reg_id Int 5 Primary Key
Firstname Varchar 50 Not Null
Lastname Varchar 50 Not Null
Contect_no Varchach 50 Not null
Address Varchar 50 Not null
email Varchar 50 Not null
Images Varchar 50 Not null
5) Book
Field Name Data Type Size Constraint
Book_id Int 5 Primary Key
Route_id Int 5 Foreign Key
Reg_id Int 5 Foreign Key
Contect_no Varchach 50 Not null
Date Varchar 50 Not null
Seat Varchar 50 Not null
Total_rate Numeric 18 Not null
Status(is_deleted) smallInt - Not null
6) Cancel:
Field Name Data Type Size Constraint
Cancel_id Int 5 Primary Key
Min_hr Varchar 50 Not null
Max_hr Varchar 50 Not null
Charge Int 5 Not null
7) Cancel Detail:
Field Name Data Type Size Constraint
Canceldetail_id Int 5 Primary Key
Book_id Int 5 Foreign Key
Reg_id Int 5 Foreign Key
Total_fare Int 5 Not Null
Charge Int 5 Not Null
Ref_amount Int 5 Not Null
6) Coding:
SearBus.aspx:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using OBR.Model;
using OBR.Controller;
using System.Data;
using System.Data.SqlClient;
namespace OBR.View.User
{
public partial class Searchbus : System.Web.UI.Page
{
SqlConnection cn = new SqlConnection(@"Data
Source=(LocalDB)v11.0;AttachDbFilename=C:UsersuserDesktopOBROBROBROBRApp_
DataTravels.mdf;Integrated Security=True;MultipleActiveResultSets=True;Application
Name=EntityFramework");
RouteController rc = new RouteController();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["userid"] == null)
{
Response.Redirect("Login.aspx");
}
if (!IsPostBack)
{
fordepstationb();
forarrstation();
}
}
private void forarrstation()
{
DropDownList2.DataTextField = "cname";
DropDownList2.DataValueField = "c_id";
DropDownList2.DataSource = rc.getarr();
DropDownList2.DataBind();
DropDownList2.Items.Insert(0, "---- Select Arrival ---- ");
}
private void fordepstationb()
{
DropDownList1.DataTextField = "cname";
DropDownList1.DataValueField = "c_id";
DropDownList1.DataSource = rc.getdep();
DropDownList1.DataBind();
DropDownList1.Items.Insert(0, "---- Select Departure ---- ");
}
protected void Button1_Click(object sender, EventArgs e)
{
TravelsEntities2 db = new TravelsEntities2();
RouteController rc = new RouteController();
route r = new route();
if (db.routes.Any(c => c.dep_station == DropDownList1.SelectedIndex & c.arr_station ==
DropDownList2.SelectedIndex))
{
int seats = Convert.ToInt16(DropDownList3.SelectedValue);
Session["seats"] = seats.ToString();
Session["date"] = txtdate.Text;
Response.Redirect("Buslist.aspx?dep_station=" + DropDownList1.SelectedValue +
"&arr_station=" + DropDownList2.SelectedValue + "&seats=" + DropDownList3.SelectedValue);
}
else
{
Response.Write("<script>alert('Sorry!!! Route No Avilabel')</script>");
}
}
protected void txtdate_TextChanged(object sender, EventArgs e)
{
try
{
if (txtdate.Text != "")
{
DateTime dt = DateTime.Now;
DateTime dt1 = Convert.ToDateTime(txtdate.Text);
if (dt1 <= dt)
{
Label2.Text = "Date Not Valid";
Label2.Visible = true;
txtdate.Text = "";
return;
}
else
{
Label2.Visible = false;
}
}
}
catch (Exception ex)
{
Label2.Text = ex.Message.ToString();
Label2.Visible = true;
txtdate.Text = "";
return;
}
}
}
}
7) Testing:
Test Case: Registration
1. User Name
1.1. email Must be Unique
2. E-Mail
2.1. E-mail Must be in proper format like(abc@example.com)
Project : Online Bus Reservation Group No. - 15 Date :
Reviewer : Date :
Module : registration Stage :
TC
id
Requ
ireme
nts/
Scen
ario/
Use
case
ID
Pre-
condition
Test
case
Descri
ption
Steps
Test
Data
Expected
Result
Actual
Result
Smoke (Yes/No)
TC_1 1.1 User’s
username
is required
This
test
case for
use for
the
user’s
registra
tion
form.
1) Enter
mail in
“signup.a
spx” page.
2) Check
validation
of
username
1)
Email
=”pate
lastha2
13@g
mail.
com
IF email
is
registered
then
MSG
(“email is
not
valid”)
Else
success
Yes
2)
Userna
me
=”pate
lastha2
13”
IF
username
is
registered
then
MSG
(“email is
not
valid”)
Else
success
YES
TC_2 2.1 User’s
email is
required
Checki
ng of
E-Mail
format
for
Registr
ation.
1)Enter E-
mail in
“txtemail
”’ box
2)check
validation
of
“txtemail
”’
1)
“txte
mail”’
=
abc@e
xampl
e
MSG
(“Invalid
Email ”)
Yes
2)
“txte
mail”’
=
abc@e
MSG
(“Valid
Email”)
Yes
xampl
e.com
Test Case: Seat Booking
1. Select Seat
1.1. Select (If You Select 1 Seat Then Booked only 1 Seat)
Project : Online Bus
Reservation
Author: Group No. – 15 Date :
Reviewer : Date :
Module : seat Stage :
TC
id
Requir
ements
Pre-
condit
Test case Steps Test Data Expected Actual Smoke
(Yes/No
Regre
ssion
Passed / F
/
Scenar
io/
Use
case ID
ion Description Result Result )
(Yes /
No)
TC_1 1.1 Select
seat
And
journy
date
Th
is
tes
t
ca
se
us
e
for
the
sel
ect
pe
rti
cul
er
se
at
An
d
dat
e
selectseat
“seat”
select show
“Journy
date”
1)Seat=1,2
Date=12-4-
2016
(Departure
time:”09:00
AM)
MSG
(“You
Can not
select
more
then
select”
Yes Fail
2)
Seat=1
Date=13-4-
2016
(Departure
time:”09:45
AM)
MSG (“”) Yes Pass
8) Screen Layout
Admin
Login:
Default:
Add City:
Add Route:
View Register User
View Booking
View Cancel Booking
Send Mail
User
9) Bibliogrphy
 www.Google.com
 www.redbus.in
 www.w3schools.com

More Related Content

What's hot

online bus ticket booking system
online bus ticket booking systemonline bus ticket booking system
online bus ticket booking systemUmme habiba
 
Online bus reservation system
Online bus reservation systemOnline bus reservation system
Online bus reservation systemSannanGulzar
 
online bus ticket booking system
online bus ticket booking systemonline bus ticket booking system
online bus ticket booking systemUmme habiba
 
Train ticket reservation
Train ticket reservationTrain ticket reservation
Train ticket reservationsazzadur rahman
 
Bus Ticket Management System Documentation
Bus Ticket Management System DocumentationBus Ticket Management System Documentation
Bus Ticket Management System Documentationmuzammil siddiq
 
Report on online bus management
Report on online bus managementReport on online bus management
Report on online bus managementNaeem Ahmad
 
Online Bus Reservatiom System
Online Bus Reservatiom SystemOnline Bus Reservatiom System
Online Bus Reservatiom SystemNikhil Vyas
 
Feasibility studytemplate
Feasibility studytemplateFeasibility studytemplate
Feasibility studytemplateUmair Sarwer
 
Bus Booking Management System
Bus Booking Management SystemBus Booking Management System
Bus Booking Management SystemMike Marshall
 
Bus Management System
Bus Management SystemBus Management System
Bus Management SystemAl Mamun
 
Railway Reservation System
Railway Reservation SystemRailway Reservation System
Railway Reservation SystemRoccers
 
Airline reservation system
Airline reservation systemAirline reservation system
Airline reservation systemaswath babu
 
Online travel booikng
Online travel booikngOnline travel booikng
Online travel booikngsanket shah
 
Database Management System of Travel Co.
Database Management System of Travel Co.Database Management System of Travel Co.
Database Management System of Travel Co.Awais Ali
 
Bus management system
Bus management systemBus management system
Bus management systemShamim Ahmed
 
Scope Definition of Online Ticketing System
Scope Definition of Online Ticketing SystemScope Definition of Online Ticketing System
Scope Definition of Online Ticketing SystemShahriar Parvez
 
Online Bus Ticketing System
Online Bus Ticketing SystemOnline Bus Ticketing System
Online Bus Ticketing SystemKiran Shahi
 

What's hot (20)

online bus ticket booking system
online bus ticket booking systemonline bus ticket booking system
online bus ticket booking system
 
ONLINE BUS BOOKING SYSTEM
ONLINE BUS BOOKING SYSTEMONLINE BUS BOOKING SYSTEM
ONLINE BUS BOOKING SYSTEM
 
Online bus reservation system
Online bus reservation systemOnline bus reservation system
Online bus reservation system
 
online bus ticket booking system
online bus ticket booking systemonline bus ticket booking system
online bus ticket booking system
 
Train ticket reservation
Train ticket reservationTrain ticket reservation
Train ticket reservation
 
Bus Ticket Management System Documentation
Bus Ticket Management System DocumentationBus Ticket Management System Documentation
Bus Ticket Management System Documentation
 
Report on online bus management
Report on online bus managementReport on online bus management
Report on online bus management
 
Online Bus Reservatiom System
Online Bus Reservatiom SystemOnline Bus Reservatiom System
Online Bus Reservatiom System
 
Feasibility studytemplate
Feasibility studytemplateFeasibility studytemplate
Feasibility studytemplate
 
Bus Booking Management System
Bus Booking Management SystemBus Booking Management System
Bus Booking Management System
 
Online bus ticket booking
Online bus ticket bookingOnline bus ticket booking
Online bus ticket booking
 
Online railway reservation system
Online railway reservation systemOnline railway reservation system
Online railway reservation system
 
Bus Management System
Bus Management SystemBus Management System
Bus Management System
 
Railway Reservation System
Railway Reservation SystemRailway Reservation System
Railway Reservation System
 
Airline reservation system
Airline reservation systemAirline reservation system
Airline reservation system
 
Online travel booikng
Online travel booikngOnline travel booikng
Online travel booikng
 
Database Management System of Travel Co.
Database Management System of Travel Co.Database Management System of Travel Co.
Database Management System of Travel Co.
 
Bus management system
Bus management systemBus management system
Bus management system
 
Scope Definition of Online Ticketing System
Scope Definition of Online Ticketing SystemScope Definition of Online Ticketing System
Scope Definition of Online Ticketing System
 
Online Bus Ticketing System
Online Bus Ticketing SystemOnline Bus Ticketing System
Online Bus Ticketing System
 

Viewers also liked

SIMPLIFIED SECURED WIRELESS RAILWAY / AIRWAY FOR RESERVATION
SIMPLIFIED SECURED WIRELESS RAILWAY / AIRWAY FOR RESERVATIONSIMPLIFIED SECURED WIRELESS RAILWAY / AIRWAY FOR RESERVATION
SIMPLIFIED SECURED WIRELESS RAILWAY / AIRWAY FOR RESERVATIONRicky Drk
 
Feasibility report
Feasibility reportFeasibility report
Feasibility reportnithishpro
 
Feasibility Report Powerpoint
Feasibility Report PowerpointFeasibility Report Powerpoint
Feasibility Report Powerpointachastings
 
GPS based Bus management system
GPS based Bus management systemGPS based Bus management system
GPS based Bus management systemNeeraj Kansal
 
Online railway reservation system
Online railway reservation systemOnline railway reservation system
Online railway reservation systemPIYUSH Dubey
 
Project planning and feasibility study
Project planning and feasibility studyProject planning and feasibility study
Project planning and feasibility studyMars Mfyam
 

Viewers also liked (7)

SIMPLIFIED SECURED WIRELESS RAILWAY / AIRWAY FOR RESERVATION
SIMPLIFIED SECURED WIRELESS RAILWAY / AIRWAY FOR RESERVATIONSIMPLIFIED SECURED WIRELESS RAILWAY / AIRWAY FOR RESERVATION
SIMPLIFIED SECURED WIRELESS RAILWAY / AIRWAY FOR RESERVATION
 
Feasibility report
Feasibility reportFeasibility report
Feasibility report
 
Feasibility Report Powerpoint
Feasibility Report PowerpointFeasibility Report Powerpoint
Feasibility Report Powerpoint
 
GPS based Bus management system
GPS based Bus management systemGPS based Bus management system
GPS based Bus management system
 
Dbms project list
Dbms project listDbms project list
Dbms project list
 
Online railway reservation system
Online railway reservation systemOnline railway reservation system
Online railway reservation system
 
Project planning and feasibility study
Project planning and feasibility studyProject planning and feasibility study
Project planning and feasibility study
 

Similar to Online Bus Reservation

Bus transportation query report
Bus transportation query reportBus transportation query report
Bus transportation query reportSudhanshu Moolya
 
COMPUTER SCIENCE PROJECT OF RAILWAY RESERVATION SYSTEM PYTHON PROGRAMMING.pdf
COMPUTER SCIENCE PROJECT OF RAILWAY RESERVATION SYSTEM PYTHON PROGRAMMING.pdfCOMPUTER SCIENCE PROJECT OF RAILWAY RESERVATION SYSTEM PYTHON PROGRAMMING.pdf
COMPUTER SCIENCE PROJECT OF RAILWAY RESERVATION SYSTEM PYTHON PROGRAMMING.pdfAkshatTiwari530170
 
srs for railway reservation system
 srs for railway reservation system srs for railway reservation system
srs for railway reservation systemkhushi kalaria
 
Airlineppt 160621085220 (1)
Airlineppt 160621085220 (1)Airlineppt 160621085220 (1)
Airlineppt 160621085220 (1)ISAH BABAYO
 
Airline Reservation System - Software Engineering
Airline Reservation System - Software EngineeringAirline Reservation System - Software Engineering
Airline Reservation System - Software EngineeringDrishti Bhalla
 
E-TICKETING ON RAILWAY TICKET RESERVATION
E-TICKETING ON RAILWAY TICKET RESERVATIONE-TICKETING ON RAILWAY TICKET RESERVATION
E-TICKETING ON RAILWAY TICKET RESERVATIONNandana Priyanka Eluri
 
Software Engineering ppt
Software Engineering pptSoftware Engineering ppt
Software Engineering pptshruths2890
 
Scope definition of ticketing automation bangladesh
Scope definition of ticketing automation bangladeshScope definition of ticketing automation bangladesh
Scope definition of ticketing automation bangladeshShakil Mahmood
 
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptxBUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptxalwaysnagaraju26
 
Online Railway Reservation System
Online Railway Reservation SystemOnline Railway Reservation System
Online Railway Reservation SystemPrince Kumar
 

Similar to Online Bus Reservation (20)

Online final report
Online final reportOnline final report
Online final report
 
Bus transportation query report
Bus transportation query reportBus transportation query report
Bus transportation query report
 
COMPUTER SCIENCE PROJECT OF RAILWAY RESERVATION SYSTEM PYTHON PROGRAMMING.pdf
COMPUTER SCIENCE PROJECT OF RAILWAY RESERVATION SYSTEM PYTHON PROGRAMMING.pdfCOMPUTER SCIENCE PROJECT OF RAILWAY RESERVATION SYSTEM PYTHON PROGRAMMING.pdf
COMPUTER SCIENCE PROJECT OF RAILWAY RESERVATION SYSTEM PYTHON PROGRAMMING.pdf
 
Presentation of Turbo C++ || Railway Reservation System project || B.Sc. student
Presentation of Turbo C++ || Railway Reservation System project || B.Sc. studentPresentation of Turbo C++ || Railway Reservation System project || B.Sc. student
Presentation of Turbo C++ || Railway Reservation System project || B.Sc. student
 
Hr management
Hr managementHr management
Hr management
 
srs for railway reservation system
 srs for railway reservation system srs for railway reservation system
srs for railway reservation system
 
Visual c
Visual cVisual c
Visual c
 
Airlineppt 160621085220 (1)
Airlineppt 160621085220 (1)Airlineppt 160621085220 (1)
Airlineppt 160621085220 (1)
 
Airline Reservation System - Software Engineering
Airline Reservation System - Software EngineeringAirline Reservation System - Software Engineering
Airline Reservation System - Software Engineering
 
E-TICKETING ON RAILWAY TICKET RESERVATION
E-TICKETING ON RAILWAY TICKET RESERVATIONE-TICKETING ON RAILWAY TICKET RESERVATION
E-TICKETING ON RAILWAY TICKET RESERVATION
 
Software
SoftwareSoftware
Software
 
PBL2.0.pptx
PBL2.0.pptxPBL2.0.pptx
PBL2.0.pptx
 
PBL2.0.pptx
PBL2.0.pptxPBL2.0.pptx
PBL2.0.pptx
 
Srs mine
Srs mineSrs mine
Srs mine
 
Software Engineering ppt
Software Engineering pptSoftware Engineering ppt
Software Engineering ppt
 
Scope definition of ticketing automation bangladesh
Scope definition of ticketing automation bangladeshScope definition of ticketing automation bangladesh
Scope definition of ticketing automation bangladesh
 
Atm project
Atm projectAtm project
Atm project
 
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptxBUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
 
Ip bus Akshay
Ip bus AkshayIp bus Akshay
Ip bus Akshay
 
Online Railway Reservation System
Online Railway Reservation SystemOnline Railway Reservation System
Online Railway Reservation System
 

Recently uploaded

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxdhanalakshmis0310
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxAmita Gupta
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 

Recently uploaded (20)

Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 

Online Bus Reservation

  • 1. A Project Report on ONLINE BUS RESERVATION SYSTEM Submitted as partial fulfillment of the requirement for M.Sc. IT - Semester IV Prepared for Subject: PROJECT WORK (P401) Prepared By 2012 PROJECT WORK P401 Semester-IV 2016
  • 2. Name of Student : Patel Astha J. Enrollment No.:1416it22025 Exam No.:425 Shri Maneklal M. Patel Institute of Sciences and Research, Department of M.Sc. (IT), Gandhinagar. Shri Maneklal M. Patel Institute of Sciences and Research, Department of M.Sc. (IT) Gandhinagar. Date: PROJECT WORK CERTIFICATE This is to certify that the project report submitted by Astha Patel, having enrollment no. 1416it22025 , a student of M.Sc. IT Semester- IV, has completed
  • 3. his/her project titled Online Bus Reservation System satisfactorily during the academic year 2015-16. We appreciate the enthusiasm & dedication towards work submitted. ACKNOWLEDGMENT I am grateful to my internal guide Dinkan Patel for providing me valuable guidance for the PROJECT WORK and other domain related information. I would like to express my endless thanks to Mr. Sunil Panchal, for giving invaluable advice, direction, support and transferring knowledge throughout the project work. Also my hearty gratitude to Head of Department, Prof. (Dr.) B. R. Pandya for giving me an opportunity for learning through the process of project work by which I can improve my technical skills along with practical exposure and its applicability in the industry. Internal Project Guide Mr. /Ms. Dinkan Patel Asst. Professor Department of M.Sc. IT Prof. (Dr.). B. R. Pandya Head of Department, M.Sc. IT
  • 4. Name of Student: Signature of Student: Astha Patel Enrollment No.:1416it22025 Index Sr.no Title 1 Scope & Objective 1 2 Functional Requirement 2 3 System Architecture, Tools & Technology 3 4 System Design 5 - ER Diagram - Data Dictionary
  • 5. 5 Coding 14 6 Testing 17 7 Screen Layout 20 8 Bibliogrphy 38 1) Scope:  The scope of the online Bus Reservation System is : A Person should be able to  Registration and then Login into the system through the application  Change password after logging into the system and view booking  Able to choose the seats which are available
  • 6. 2) Objective:  Bus Information, route Information  Select seats , date and departure place  Generate ticket and print ticket and cancellation ticket with Cancellation charge 3) Functional And Non -Functional Requirement:  Functional Requirement: • A functionality to manage routs and buses by admin. • User can easily manage their profile.
  • 7. • A facility to cancel already booked ticket at any time via system. • Facilitate admin to analyst the business by providing different types of reports.  Non – Functional Requirement: • A less time consuming process in compare to other booking process. • Save user time and reduce the complication of payment option process.  Admin Requirement: • Manage for Bus, Time, route • Cancellation charge. • Change ticket price , update route , bus • View and manage report • In present bus type is Seater & Sleeper • In present there are 49 seater bus. • Sleeper 20 seater bus.  User Requirement: • Registration • Login • Search and View New added bus and route • Book ticket
  • 8. • Cancel ticket • Manage his/her account • View print ticket • View welcome mail 4) System Architecture, Tools And Technology • Code Building language:- - Web Developer 2012 • Scripting Language:- - Css3 - HTML5 - JAVA Script • Application Browser:- - Chrome (preferable) or any other • Front end:- - ASP.NET MVC • Back end:- - Sqlserver 2012
  • 9.  Hardware Requirement • Server side:- - 160 GB available hard disk space - 2 GB RAM - Intel Pentium 4 processer • Client side:- - 256 MB RAM - Intel Pentium 4 processer  Software Requirement • Server side- - Operating system:-Windows 7 - Front end: - Web Developer 2012 - Back end: - SQL server 2012 - Web browser: Chrome, Mozila any preferable
  • 10. • Client Side - Web Browser:-Chrome, Mozila any preferable - Operating System:-Windows 7 5) System Design:  E-R Diagram
  • 12. 1) City: Field Name Data Type Size Constraint city_id Int 5 Primary Key city_name Varchar 50 Not null
  • 13. 2) Bus: Field Name Data Type Size Constraint bus_id Int 5 Primary Key bus_name Varchar 50 Not null Bus_type Varchar 50 Not Null Bno Varchar 50 Not null 3) Route
  • 14. Field Name Data Type Size Constraint Route_id Int 5 Primary Key Bus_id int 5 Foreign Key Dep_time Varchar 50 Not Null Dep_station Int 5 Foreign Key Arr_station Int 5 Foreign Key Fare Varchar 50 Not null 4) Registration Field Name Data Type Size Constraint
  • 15. Reg_id Int 5 Primary Key Firstname Varchar 50 Not Null Lastname Varchar 50 Not Null Contect_no Varchach 50 Not null Address Varchar 50 Not null email Varchar 50 Not null Images Varchar 50 Not null 5) Book Field Name Data Type Size Constraint
  • 16. Book_id Int 5 Primary Key Route_id Int 5 Foreign Key Reg_id Int 5 Foreign Key Contect_no Varchach 50 Not null Date Varchar 50 Not null Seat Varchar 50 Not null Total_rate Numeric 18 Not null Status(is_deleted) smallInt - Not null 6) Cancel: Field Name Data Type Size Constraint Cancel_id Int 5 Primary Key Min_hr Varchar 50 Not null
  • 17. Max_hr Varchar 50 Not null Charge Int 5 Not null 7) Cancel Detail: Field Name Data Type Size Constraint Canceldetail_id Int 5 Primary Key Book_id Int 5 Foreign Key
  • 18. Reg_id Int 5 Foreign Key Total_fare Int 5 Not Null Charge Int 5 Not Null Ref_amount Int 5 Not Null 6) Coding: SearBus.aspx: using System;
  • 19. using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using OBR.Model; using OBR.Controller; using System.Data; using System.Data.SqlClient; namespace OBR.View.User { public partial class Searchbus : System.Web.UI.Page { SqlConnection cn = new SqlConnection(@"Data Source=(LocalDB)v11.0;AttachDbFilename=C:UsersuserDesktopOBROBROBROBRApp_ DataTravels.mdf;Integrated Security=True;MultipleActiveResultSets=True;Application Name=EntityFramework"); RouteController rc = new RouteController(); protected void Page_Load(object sender, EventArgs e) { if (Session["userid"] == null) { Response.Redirect("Login.aspx"); } if (!IsPostBack) { fordepstationb(); forarrstation(); } } private void forarrstation() { DropDownList2.DataTextField = "cname"; DropDownList2.DataValueField = "c_id"; DropDownList2.DataSource = rc.getarr(); DropDownList2.DataBind(); DropDownList2.Items.Insert(0, "---- Select Arrival ---- "); } private void fordepstationb() {
  • 20. DropDownList1.DataTextField = "cname"; DropDownList1.DataValueField = "c_id"; DropDownList1.DataSource = rc.getdep(); DropDownList1.DataBind(); DropDownList1.Items.Insert(0, "---- Select Departure ---- "); } protected void Button1_Click(object sender, EventArgs e) { TravelsEntities2 db = new TravelsEntities2(); RouteController rc = new RouteController(); route r = new route(); if (db.routes.Any(c => c.dep_station == DropDownList1.SelectedIndex & c.arr_station == DropDownList2.SelectedIndex)) { int seats = Convert.ToInt16(DropDownList3.SelectedValue); Session["seats"] = seats.ToString(); Session["date"] = txtdate.Text; Response.Redirect("Buslist.aspx?dep_station=" + DropDownList1.SelectedValue + "&arr_station=" + DropDownList2.SelectedValue + "&seats=" + DropDownList3.SelectedValue); } else { Response.Write("<script>alert('Sorry!!! Route No Avilabel')</script>"); } } protected void txtdate_TextChanged(object sender, EventArgs e) { try { if (txtdate.Text != "") { DateTime dt = DateTime.Now; DateTime dt1 = Convert.ToDateTime(txtdate.Text); if (dt1 <= dt) { Label2.Text = "Date Not Valid"; Label2.Visible = true; txtdate.Text = "";
  • 21. return; } else { Label2.Visible = false; } } } catch (Exception ex) { Label2.Text = ex.Message.ToString(); Label2.Visible = true; txtdate.Text = ""; return; } } } }
  • 22. 7) Testing: Test Case: Registration 1. User Name 1.1. email Must be Unique 2. E-Mail 2.1. E-mail Must be in proper format like(abc@example.com) Project : Online Bus Reservation Group No. - 15 Date : Reviewer : Date : Module : registration Stage : TC id Requ ireme nts/ Scen ario/ Use case ID Pre- condition Test case Descri ption Steps Test Data Expected Result Actual Result Smoke (Yes/No)
  • 23. TC_1 1.1 User’s username is required This test case for use for the user’s registra tion form. 1) Enter mail in “signup.a spx” page. 2) Check validation of username 1) Email =”pate lastha2 13@g mail. com IF email is registered then MSG (“email is not valid”) Else success Yes 2) Userna me =”pate lastha2 13” IF username is registered then MSG (“email is not valid”) Else success YES TC_2 2.1 User’s email is required Checki ng of E-Mail format for Registr ation. 1)Enter E- mail in “txtemail ”’ box 2)check validation of “txtemail ”’ 1) “txte mail”’ = abc@e xampl e MSG (“Invalid Email ”) Yes 2) “txte mail”’ = abc@e MSG (“Valid Email”) Yes
  • 24. xampl e.com Test Case: Seat Booking 1. Select Seat 1.1. Select (If You Select 1 Seat Then Booked only 1 Seat) Project : Online Bus Reservation Author: Group No. – 15 Date : Reviewer : Date : Module : seat Stage : TC id Requir ements Pre- condit Test case Steps Test Data Expected Actual Smoke (Yes/No Regre ssion Passed / F
  • 25. / Scenar io/ Use case ID ion Description Result Result ) (Yes / No) TC_1 1.1 Select seat And journy date Th is tes t ca se us e for the sel ect pe rti cul er se at An d dat e selectseat “seat” select show “Journy date” 1)Seat=1,2 Date=12-4- 2016 (Departure time:”09:00 AM) MSG (“You Can not select more then select” Yes Fail 2) Seat=1 Date=13-4- 2016 (Departure time:”09:45 AM) MSG (“”) Yes Pass
  • 33.
  • 34. User
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45. 9) Bibliogrphy  www.Google.com  www.redbus.in  www.w3schools.com