+ All Categories
Home > Education > Online Bus Reservation

Online Bus Reservation

Date post: 11-Apr-2017
Category:
Upload: astha-patel
View: 291 times
Download: 0 times
Share this document with a friend
49
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 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. PROJECT WORK P401 Semester-IV 2016
Transcript
Page 1: Online Bus Reservation

A Project Report on

ONLINE BUS RESERVATION SYSTEMSubmitted as partial fulfillment of the requirement

for M.Sc. IT - Semester IV

Prepared for Subject: PROJECT WORK (P401)

Prepared By

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.

2012

PROJECT WORK P401

Semester-IV2016

Page 2: Online Bus Reservation

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.

Internal Project Guide

Mr. /Ms. Dinkan PatelAsst. ProfessorDepartment of M.Sc. IT

Prof. (Dr.). B. R. Pandya

Head of Department, M.Sc. IT

Page 3: Online Bus Reservation

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.

Name of Student: Signature of Student:

Astha Patel

Enrollment No.:1416it22025

Index

Page 4: Online Bus Reservation

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

Page 5: Online Bus Reservation

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

Page 6: Online Bus Reservation

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 re-

ports.

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

Page 7: Online Bus Reservation

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

Page 8: Online Bus Reservation

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

Page 9: Online Bus Reservation

5) System Design:

E-R Diagram

Page 10: Online Bus Reservation

Data Dictionary:

1) City:

Field Name Data Type Size Constraint

city_id Int 5 Primary Key

city_name Varchar 50 Not null

Page 11: Online Bus Reservation

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

Page 12: Online Bus Reservation

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

Page 13: Online Bus Reservation

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

Page 14: Online Bus Reservation

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

Page 15: Online Bus Reservation

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

Page 16: Online Bus Reservation

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:

Page 17: Online Bus Reservation

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:\Users\user\Desktop\OBR\OBR\OBR\OBR\App_Data\Travels.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 ---- ");

Page 18: Online Bus Reservation

}

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)

Page 19: Online Bus Reservation

{ 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; } }

} }

Page 20: Online Bus Reservation

7) Testing:

Test Case: Registration

1. User Name1.1. email Must be Unique

2. E-Mail2.1. E-mail Must be in proper format like([email protected])

Project : Online Bus Reservation Group No. - 15 Date :

Reviewer : Date :

Module : registration Stage :

TC id

Requirements/

Scenario/

Use case ID

Pre-condition

Test case

Description

StepsTest Data

Expected Result

Actual Result

Smoke (Yes/No)

Page 21: Online Bus Reservation

TC_1

1.1 User’s username is required

This test case for use for the user’s

registration

form.

1) Enter mail in “signup.aspx” page.

2) Check validation of username

1) Email

=”patelastha213@gmail.

com

IF email is registered then MSG (“email is not valid”)

Else success

Yes

2) Username

=”patelastha213”

IF username is registered then MSG (“email is not valid”)

Else success

YES

TC_2

2.1 User’s email is required

Checking of E-Mail format for Registration.

1)Enter E-mail in “txtemail”’ box

2)check validation of “txtemail”’

1) “txtemail”’ = abc@example

MSG (“Invalid Email ”)

Yes

2) “txtemail”’ =

MSG (“Valid Email”)

Yes

Page 22: Online Bus Reservation

[email protected]

Test Case: Seat Booking

1. Select Seat1.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 Requir Pre- Test case Steps Test Data Expecte Actual Smoke Regre Passed / Failed

Page 23: Online Bus Reservation

id

ements/

Scenario/

Use case ID

condition

Description d Result Result(Yes/No

)

ssion (Yes / No)

TC_1

1.1 Select seat

And journy date

This test case use for the select perticuler seat

And date

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

MSG (“”)

Yes Pass

Page 24: Online Bus Reservation

time:”09:45 AM)

8) Screen Layout

Admin

Login:

Page 25: Online Bus Reservation

Default:

Page 26: Online Bus Reservation

Add City:

Page 27: Online Bus Reservation

Add Route:

Page 28: Online Bus Reservation

View Register User

Page 29: Online Bus Reservation

View Booking

View Cancel Booking

Page 30: Online Bus Reservation

Send Mail

Page 31: Online Bus Reservation
Page 32: Online Bus Reservation

User

Page 33: Online Bus Reservation
Page 34: Online Bus Reservation
Page 35: Online Bus Reservation
Page 36: Online Bus Reservation
Page 37: Online Bus Reservation
Page 38: Online Bus Reservation
Page 39: Online Bus Reservation
Page 40: Online Bus Reservation
Page 41: Online Bus Reservation
Page 42: Online Bus Reservation
Page 43: Online Bus Reservation

9) Bibliogrphy

www.Google.com www.redbus.in www.w3schools.com


Recommended