Documente Academic
Documente Profesional
Documente Cultură
INFORMATION TECHNOLOGY
DATABASE AND WEB DATABASE SYSTEMS
Module Code: CE00318-2
INDIVIDUAL PROJECT
Submitted By:
Prince Kumar
PT1082219 Level-2
COMPUTING
Submitted To:
Ms. Sulekh Sharma
(Module Lecturer)
CERTIFICATE
This is to certify that Prince Kumar of 6th Semester student (Computing Branch) of APIIT SD
INDIA have successfully completed her individual assignment of DWDS module on Online
Railway Reservation System with the complete guidance of Ms. Sulekh Sharma.
ACKNOWLEDGEMENT
Around a period of two months I was working hard to achieve my goal. I have strived hard to
complete my assignment. My goal was to give an exceptional and appreciating performance.
Though there were lots of problems I had faced but I moved on and on.
Firstly, I would like to thank APIIT SD INDIA to provide me the opportunity to do
such an assignment. I am very much thankful to my Module Lecturer Ms. Sulekh Sharma. For
her uninterrupted support in the development of the assignment and have enabled me to complete
my assignment on the given period of time. She was always there to listen and to give advice and
she also taught me how to express my ideas and views professionally. I greatly acknowledge the
effective contribution of Director R.K Choudhary, who encouraged me and provided me with all
kinds of conveniences including Ultra modern Library and Computer Lab. I would also like to
thank all our friends, family and everybody else who helped me anyways in our assignment.
Last but not the least; I want to acknowledge all my friends and colleagues who supported me in
my assignment.
Prince Kumar
Level 2
Computing
Table of Contents
CERTIFICATE............................................................................................................... 2
ACKNOWLEDGEMENT................................................................................................. 3
1.0.
2.0.
Abstract............................................................................................................... 5
3.0.
Problem Background............................................................................................... 6
4.0.
Proposed Solution................................................................................................... 6
5.0.
Programming Environment....................................................................................... 7
2.0. Abstract
Railway Reservation System is a complex online distributed transaction application based
on client server architecture. The salient features of the software include allowing user from
anywhere to do a booking for a journey in any train in any class from anywhere to anywhere;
handling reservation, modifications cancellation/refunds.
This project is all about the railway reservation online i.e., Software includes allowing
user from anywhere to do a booking for a journey in any train in any class from anywhere to
anywhere; handling reservation, modifications cancellation/refunds.
Visual Studio .Net is the rapid application development tool for BASIC. Visual Studio .Net offers
complete integration with ASP.NET and enables to drag and drop server controls and design Web
Forms as they should appear when user views them.
ASP.NET programming languages
ASP.NET has been designed to work seamlessly with WYSIWYG HTML editors and other programming
tools, including Microsoft Visual Studio .NET. Not only does this make Web development easier, but it
also provides all the benefits that these tools have to offer, including a GUI that developers can use to
drop server controls onto a Web page and fully integrated debugging support. Developers can choose
from the following two features when creating an ASP.NET application, Web Forms and Web services, or
combine these in any way they see fit.
Data integrity
Concurrency control
SQL Server is a Relational Database Management System. The SQL Server relational language
is called Transact-SQL.SQL is asset-oriented language. This means that SQL can query many
rows from one or more tables using just one statement. This feature allows the use of this
language at a logically higher level than procedural languages. Another important property of
SQL is its non- procedurally. SQL contains two sub languages DDL and DML.
S_name
Station
End
1
Status
Status
Start
T_no
Has
T_name
Book
Train
1
T_Class
Has
Booking_dat
e
Availibility
T_type
Seat_no
Passenger
Has
Book
P_name
user
P_age
Route
Route
P_gender
U_id
Stop_no
T_no
U_name
Booking
Date
password
Entity Type
Passenger
Attributes
ticket-id,
pssngr_name,pssngr_age,pssngr_sex,pssngr_seatno,train_id
Train_no, Train_name, source_id, destination_id, days, no of
seats
2.
Train
3.
Train Status
4.
5.
6.
Route
Station
User
8.0 Normalization
User_registration
User_id
User_name
User_address
User_passwor
d
User_Emai
l
User_Phone
Station
Station_id
Station_name
TRAIN_info
Train_no,
train_name
train_typ
Soucre_name
Destination_n
ame
Trninfo_days
Train_n
Sun
Mon
Tue
Wed
Thu
Fri
Sat
o
route
Train_no
Stop_no
Arrival_tim
e,
Deptaure_ti
me,
Distance
Station_id,
Station_route
Station_id
Stop_no
Train_no
Train_status
Train_n
o
journey_d
ate
booked_da
te
total_sea
ts,
A1
A
2
SL
W
1
W2
W3
Passerger
Ticket_id
Passngr_na
me
Passngr_ag
e
Passngr_gen
der
Passngr_sea
tno
Train_id
Passenger_info
Train_id
Ticket_id
Source_id
Destination_i
Class_type
Resrvtion_typ
e
Booking
Train_no
Ticket_id
User_id
Booking_steat
Available_dat
Date_sts
Trninfo_AC1
Train_id
Trainstatus_AC1 Trainnfr_AC1
Trninfo_AC2
Train_id
Trainsts_AC2
Trainfr_AC2
Trainsts_SL
Trnfr_SL
train_name
train_type
Trninfo_SL
Train_id
TRAIN_info
Train_no,
Source_name
Destination_n
ame
trainAC1_ status
date_available
train_no
sl_reserveseats
ticket_ resrv
date_available
sl_waitingseats
sl_availableseats
AC1_reserveseats
user_id
AC1_waitingseats
ticket_id
AC1_availableseats
train_no
date_avialable
date_status
station
user_ registration
station_id
trainAC2_ status
user_id
user_password
train_no
user_email
Ac2_fare
user_address
Ac2_seat
station_name
train_no
train_ Ac2
user_name
date_available
AC2_reserveseats
AC2_waitingseats
AC2_availableseats
user_phone
route
train_no
stop_no
arival_time
train_ rdays
train_no
train_name
Ac1_fare
source_sid
Ac1_seat
dest_sid
dist
sun
train_no
train_ Ac1
deprt_time
train_no
train
mon
tues
wed
thurs
train_type
passenger_ status
fri
ticket_id
sat
source_sid
dest_sid
ticket_class
pssngr_ticketstatus
train_id
passenger
ticket_id
station_ route
train_ sl
pssngr_name
station_id
train_no
pssngr_age
train_no
Sl_fare
pssngr_sex
stop_no
Sl_seat
pssngr_seatno
train_id
Passenger Status
Route
Station Route
Station
Ticket Reservation consist of User_id ,
ticket_id , train_no , Available_ date ,
date_status
Ticket Reservation
Train
User Registration
11.0 Toolbar
(For Logout) From this user can go back to login page. If user terminates session
then user can easily get on Login Form.
(Booking) For Reservation of ticket. User can book ticket by giving some
Details.
(Train between Stations)- To find no of running train with source id and destination
id.
Add Train
Fi
g: Registration Form
13.0 Report
Creation of Database
CREATE DATABASE, railway;
Creation Of Table
Ticket Reservation
CREATE TABLE [dbo].[ticket_resrv](
[user_id] [int] NOT NULL,
[ticket_id] [int] NOT NULL,
[train_no] [int] NOT NULL,
[date_avialable] [varchar](50) NOT NULL,
[date_status] [varchar](50) NOT NULL
) ON [PRIMARY]
Train
CREATE TABLE [dbo].[train](
[train_no] [int] NOT NULL,
[train_name] [varchar](50) NOT NULL,
[source_sid] [varchar](50) NOT NULL,
[dest_sid] [varchar](50) NOT NULL,
[train_type] [varchar](20) NOT NULL,
CONSTRAINT [PK_train] PRIMARY KEY CLUSTERED
(
[train_no] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY
= OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
Passenger
CREATE TABLE [dbo].[passenger](
[ticket_id] [int] NOT NULL,
[pssngr_name] [varchar](50) NOT NULL,
[pssngr_age] [ntext] NOT NULL,
[pssngr_sex] [varchar](50) NOT NULL,
[pssngr_seatno] [int] NOT NULL,
[train_id] [int] NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
Train AC2_Status
CREATE TABLE [dbo].[trainAC2_status](
[train_no] [int] NOT NULL,
[date_available] [varchar](50) NOT NULL,
[AC2_reserveseats] [int] NOT NULL,
[AC2_waitingseats] [int] NOT NULL,
[AC2_availableseats] [int] NOT NULL,
CONSTRAINT [PK_trainAC2_status] PRIMARY KEY CLUSTERED
(
[train_no] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY
= OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
User Registration
CREATE TABLE [dbo].[user_registration](
[user_id] [int] NOT NULL,
[user_name] [varchar](50) NOT NULL,
[user_password] [varchar](50) NOT NULL,
[user_email] [varchar](50) NOT NULL,
[user_address] [varchar](50) NOT NULL,
[user_phone] [int] NOT NULL,
CONSTRAINT [PK_user_registration] PRIMARY KEY CLUSTERED
(
[user_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY
= OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
End Try
End Sub
Private Sub Grid_Station_RowEditing(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.GridViewEditEventArgs) Handles
Grid_Station.RowEditing
Grid_Station.EditIndex = e.NewEditIndex
bindata()
End Sub
Private Sub Grid_Station_RowUpdating(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles
Grid_Station.RowUpdating
Dim row As GridViewRow = Grid_Station.Rows(e.RowIndex)
Dim station_id As String = CInt(CType(row.Cells(0).Controls(0),
TextBox).Text)
Dim station_name As String = CType(row.Cells(1).Controls(0),
TextBox).Text
con.Open()
Dim sql As String = ("update station set station_name='" &
station_name & "' where station_id='" & station_id & "'")
Dim cmd As New SqlCommand(sql, con)
cmd.ExecuteNonQuery()
con.Close()
Grid_Station.EditIndex = -1
bindata()
MsgBox("Details has been sucessfully updated !!!)")
End Sub
Protected Sub Grid_Station_SelectedIndexChanged(ByVal sender As Object,
ByVal e As EventArgs) Handles Grid_Station.SelectedIndexChanged
End Sub
Protected Sub TxtStnt_Id_TextChanged(ByVal sender As Object, ByVal e As
EventArgs) Handles TxtStnt_Id.TextChanged
End sub
End Class
16.0 Conclusion
The main aim of developing Reservation system is to provide all information that is required by
the users. User friendliness is a must that is the user must get the details without complicated searching
procedures. Other important requirements of software are data security, extensibility and maintainability.
All these features are included in this web application.
The project greatly helped in understanding the various phases in website development and
exposure to a new developer platform MS Visual Studio .Net and database MS SQL Server.