Tải bản đầy đủ

Eproject title online railway reservation

CNC-APTECH COMPUTER EDUCATION

Eproject document
Eproject Title:Online Railway Reservation

Instructor:
Semester : III
Class : 1308
Group Member:
Instructor Signature:

-

1.Nguyen Hoai Nam
-

2. Huynh Le Quoc Bao

-

3. Van Tuan Kiet


Ho Chi Minh city , 03 - 03 - 2015


INDIAN RAILWAY RESERVATION PROJECT



INDIAN RAILWAY
ONLINE
This is to certify that the following students have completed the project Railway
Reservation System under the guidancefor the fulfillment as prescribed by CNCAptech in the SEM3
STUDENTS:
NGUYEN HOAI NAM

605121

HUYNH LE QUOC BAO

756918

VAN TUAN KIET

761724

[2015]
2


INDIAN RAILWAY RESERVATION PROJECT

CONTENTS:
Prefix a : task sheet........................................................4
1.About project...................................................5
2.problem definition............................................5
3.Customer requirement specification..............6
3.1. hardware:request hardware........................6
3.2.Software: user software...............................6
3.3. System requirement....................................6
4. Use case diagram...........................................7

4.1 activity diagram for booking ticket..............9
4.2 activity diagram for cancel ticket................10
4.3 system view: use case for guest.................11
4.4 system view: use case for clerk..................12
4.5 system view: use case for admin................13
5. entity relationship diagram............................14
5.1 list of entity types.........................................14
5.2 List of relationships......................................14
5.3 entity relationship diagram..........................14
5.4 Mapping of ERD to relational model............16
5.5 normalizaton.................................................19
5.6 table design and structure...........................19
3


INDIAN RAILWAY RESERVATION PROJECT

5.7 queries...........................................................30
6. form design.....................................................29

4


INDIAN RAILWAY RESERVATION PROJECT

Project Ref.No:

Date of Preparation of Activity Plan:

eP/TECHBOOKS/01
Sr.No

Task

Project
Title:

Activity Plan
Prepared
By:

Actual

Actual

Start Date

Days

Team
Member
Names

1.

Font-end
interface design

Indian
railway
reservations

Huynh Le
Quoc Bao

2.

Design Database

Indian
railway
reservations

Nguyen
Hoai Nam

Indian
railway
reservations

Van Tuan
Kiet

Document
3.

Back-end
interface design

Status

5


INDIAN RAILWAY RESERVATION PROJECT

1. About project
This system is basically concerned with the reservation and cancellation of
railway tickets to the passenger. The need of this this system arouse because as
is the know fact that India has the largest railway network in the whole world and
it is not nossible to handle such a large system manually. By computerizing it, it
became possible to overcome the limitations and make the system operations
more efficient. The complexity in handling data and records of such a vast
system got reduced and became easier by computerizing the system.
Being more specific, this online railway reservation systemcan perform the basic
functions like reservation and cancellation. The users are requied to register on
the server for getting access to the database and query result retrieval. Upon
registration completion, each user has an account which is essentially referred to
as the ‘view level’ of the customer. The account contains comprehensive
information of the user entered during the registration and allows the user to
access their past reservation, cancellations, enquire about trains and train
schedule, seat availability and make afresh reservations. The user will also be
able to update their account details, etc.
The master user of this system is the Railway Administrator who can login using
a master password and once a user is authenticated as the admin, he/she can
access and modify information stored in the database of this system. This
includes adding and updating of train, station, train routes and also managing the
user and the passenger details.

2. Problem Definition
The railway network is a very vast system to be handled manually and its
computerization with prove to be of great help to both the employess and the
passengers. The customer and the admin are the two paries which are allowed to have
access to the database of the system and have different view level schemas to the
database information.
The customers are privileged with the following services:
- register as a customer by providing certain personel details.
- Make fresh reservations and book one or more ticks.
- View past booking and can even do cancellation of booked ticket.
- See trains between a pair of stations, check seat availability in trains and get
the fare details.
Administrator is privileged with the following services:
- Login as the master user using a master password.
- Add train, route, station…
- Add reservation informations and confirm these one by clerk users.
The system’s sercurity has been kept into consideration well. The database of the
system cannot be accessed by any user either admin or clerk users without being
6


INDIAN RAILWAY RESERVATION PROJECT

authenticated by correct username and password. The password set can also modified
and in case if the user forgets the password, it can be recovered by giving a correct
answer to a security question.This project has been designed in such a way so that it
overcomes problems like data redundancy.

3. Customer requirement Specification
3.1.Hardware: Request hardware
Client
Processor: Intell pentiumIII
800 Mhz
Memory: 128 MB
Hard disk drive:10 Gb

Server
Intel Xeon MP Dual Core 7140N
3.3GHz - 667MHz / 2x 2Gb PC2 ECC
DDR2-SDRAM/ 4 GB / 73GB HotSwap 3.5" 15K RPM Ultra320 SAS
HDD / 8X DVDROM / Dual Gigabit
10/100/1000 / 1300W HS 2/2 Rack
3U ...

Modem 56K
Monitor: 14 inch, colors

3.2.Software: Use software:
Client
Microsoft Windows 2000/Me or
XP
IE 6.0 or more

Server
Windows 2000 Advance Server
Application: Microsoft Office 2000
Jrun 4.0 or Tomcat
SQL 2000 Advance Server…

3.3 System requirement

No
1
2

Items
Operating System
Database

Description
Windows 2000,Xp or higher
MS SQL sever 2005 of higher
7


INDIAN RAILWAY RESERVATION PROJECT

3

SoftWare

Microsoft Visual Studio 2005 or
higher

4. use case diagram.
This diagram description all task of reservation and buy a ticket generally. And so on,
we two another diagrams for 2 main tasks in resavation operation(4.1; 4.2). In the real
world, we just need to know how to get ticket. So these diagram will answer for that
thing.

8


INDIAN RAILWAY RESERVATION PROJECT

4.1 ACTIVITY DIAGRAM FOR BOOKING TICKET

9


INDIAN RAILWAY RESERVATION PROJECT

4.2 ACTIVITY DIAGRAM FOR CANCEL TICKET

10


INDIAN RAILWAY RESERVATION PROJECT

4.3 SYSTEM VIEW: USER CASE FOR GUEST
11


INDIAN RAILWAY RESERVATION PROJECT

4.4 SYSTEM VIEW: USER CASE FOR CLERK
12


INDIAN RAILWAY RESERVATION PROJECT

4.5 SYSTEM VIEW : USE CASE FOR ADMIN

13


INDIAN RAILWAY RESERVATION PROJECT

5. ENTITY RELATIONSHIP DIAGRAM
5.1 List of entity types:
14


INDIAN RAILWAY RESERVATION PROJECT

s.no

Entity

Attributes

1

User

Email_ID, password, fullname, gender, age,
mobile, city, state

2

Passenger

PNR, passenger, name, age, gender,
reservation_status, booked_by

3

Train

Train_ID, train_name, train_type, available_days,
seat_available

4

Route

Source_distance, stop_number, arrival_time,
departure_time

5

Station

Station_ID, station_name

6

Tran_status

Available_date, Booked_seatAC1,
waiting_seatsAC1, available_seatsAC1,….

5.2 List of relationships:
S.no

Relation type

Entity types involved

1

Enquires

User, train

2

Consists of

Station, route

3

Has

Train, train_status

4

Checks

User, train_status

5

Has

Train, route

6

Starts from/ ends on

Train, stations

7

Assigns

User, passenger

15


INDIAN RAILWAY RESERVATION PROJECT

5.3 entity relationship drigram

16


INDIAN RAILWAY RESERVATION PROJECT

5.4 Mapping of ERD to relational model
Step 1 : mapping of strong entity type
S.no

Entity type

Relation

1

User

User( email_ID, username, gender, age,
mobile, password)

2

Passenger

Passenger(PNR, gender, passenger_name,
age, booked_by)

3

Train

Train(Train_id, train_name, days_available,
train_type)

4

Station

Station(station_id, station_name)

Step 2: Mapping of weak entity type:
S.no

Entity type

Relation

1

Route

Route(Train_id, stop_number, Source_distance,
arrial_time, departure_time)

2

Train_status

Train_status( Train_id, available_date,
booked_seatsAC1, Waiting_seatsAC1,
Available_seatsAC1,…)

Step 3 : mapping of 1:M relationship
Relation

Entities

Approach

Relation

Starts

Train, station

Foreign key

Train( train_id, train_name,
days_available, train_type,
fare_classAC1, seats_classAC1,…)

Ends at

Train, Station

Foreign key

Train( train_id, train_name,
days_available, train_type,
fare_AC1, seats_AC1,…)

Show

Station, passenger

Foreign key

Passenger(PNR, seat_number,
class, name, age, gender, fare,

From

17


INDIAN RAILWAY RESERVATION PROJECT

Source
Show

soure_id)
Station, passenger

Destinatio
n

Foreign key

Passenger(PNR, seat_number,
class, name, age, gender, fare,
destination_id

5.5 normalization
18


INDIAN RAILWAY RESERVATION PROJECT

5.6 TABLE DESIGN & STRUCTURE
19


INDIAN RAILWAY RESERVATION PROJECT

TRAIN

TRAIN_CLASS

TRAIN_STATUS

20


INDIAN RAILWAY RESERVATION PROJECT

STATION

ROUTE

21


INDIAN RAILWAY RESERVATION PROJECT

RESERVATION

PASSENGER_TICKET

PASSENGER

22


INDIAN RAILWAY RESERVATION PROJECT

DAY_AVAILABLE

ADMIN

23


INDIAN RAILWAY RESERVATION PROJECT

USER

5.7 QUERIES
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].
[DAYS_AVAILABLE]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[DAYS_AVAILABLE](
[TRAIN_ID] [int] NOT NULL,
[AVAILABLE_DAYS] [varchar](20) NOT NULL,
CONSTRAINT [PK_DAYS_AVAILABLE] PRIMARY KEY CLUSTERED
(
[TRAIN_ID] ASC
)WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].
[STATION]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[STATION](
[STATION_ID] [varchar](8) NOT NULL,
[STATION_NAME] [varchar](30) NOT NULL,
CONSTRAINT [PK_STATION] PRIMARY KEY CLUSTERED
(
[STATION_ID] ASC
)WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]

24


INDIAN RAILWAY RESERVATION PROJECT
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].
[USER]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[USER](
[EMAILID] [varchar](30) NOT NULL,
[PASSWORD] [varchar](15) NOT NULL,
[FULLNAME] [varchar](30) NOT NULL,
[GENDER] [varchar](8) NOT NULL,
[AGE] [int] NOT NULL,
[MOBILE] [varchar](12) NOT NULL,
[CITY] [varchar](20) NOT NULL,
[STATE] [varchar](25) NOT NULL,
[SECURITY_QUESTION] [varchar](40) NOT NULL,
[SECURITY_ANSWER] [varchar](20) NOT NULL
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].
[ADMIN]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[ADMIN](
[USERID] [varchar](20) NOT NULL,
[PASSWORD] [varchar](15) NOT NULL,
CONSTRAINT [PK_ADMIN] PRIMARY KEY CLUSTERED
(
[USERID] ASC
)WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].
[TRAIN_CLASS]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[TRAIN_CLASS](
[TRAIN_ID] [int] NOT NULL,
[FARE_AC1] [int] NOT NULL,
[SEAT_AC1] [int] NOT NULL,
[FARE_AC2] [int] NOT NULL,
[SEAT_AC2] [int] NOT NULL,
[FARE_AC3] [int] NOT NULL,
[SEAT_AC3] [int] NOT NULL,
[FARE_SLEEPER] [int] NOT NULL,

25


Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Tải bản đầy đủ ngay

×