Professional Documents
Culture Documents
Introductio
n
1
Railway reservation system
INTRODUCTION
2
Railway reservation system
Reservation,
Modification,
Cancellation,
SDLC
Model
3
Railway reservation system
SDLC MODEL
5
Railway reservation system
Requirements/Analysis
and Specifications
Design
Implementation and
unit testing
6
Railway reservation system
Integration and
system testing
Operation and
maintainance
Design
7
Railway reservation system
10
Railway reservation system
12
Railway reservation system
System
13
Railway reservation system
Analysis
SYSTEM ANALYSIS
What is System?
Feasibility Study:
Feasibility study is done after
preliminary investigation. The feasibility
study means to check the feasibility of new
system. There may be other alternative to
15
Railway reservation system
17
Railway reservation system
Improved-Service-Level-benefit: These
benefits are those where the performance
of a system is improved by new system.
Since there is manual system in the
existing system, after implementation of
new computer based system the
performance of process will increases.
Improved-information-Benefit: This is
the benefit where computer based methods
leads to better information for decision-
making. This system generates reports
automatically, thus processing speed
increased. Now more volume of transaction
can be handled easily.
20
Railway reservation system
21
Railway reservation system
23
Railway reservation system
24
Railway reservation system
25
Railway reservation system
26
Railway reservation system
27
Railway reservation system
Existing System
28
Railway reservation system
Proposed System
Security of data.
Ensure data accuracy’s.
Proper control of the higher officials.
Minimize manual data entry.
Minimum time needed for the various
processing.
Greater efficiency.
Better service.
User friendliness and interactive.
29
Railway reservation system
30
Railway reservation system
31
Railway reservation system
32
Railway reservation system
33
Railway reservation system
34
Railway reservation system
OBJECTIVE
35
Railway reservation system
36
Railway reservation system
User Interface
Hardware Interfaces
37
Railway reservation system
Software Interfaces
38
Railway reservation system
Communication Interfaces
40
Railway reservation system
504 MB RAM
Feasibility study
42
Railway reservation system
ANALYSIS OF COST
43
Railway reservation system
ANALYSIS OF BENEFIT
46
Railway reservation system
System
Design
47
Railway reservation system
DESIGN
Design Principles
The design should be traceable to the
analysis model.
48
Railway reservation system
49
Railway reservation system
ENTITY-RELATIONSHIP DIAGRAM
OF THE PROJECT
ADDRESS
NAME
TIC_NO
ID
PH_NO.
PASSENGER
RESERVE
TICKET
DESTINATION
TRAIN
TRAIN_NO
50 TRAIN
DATE
Railway reservation system
Passenger
Train
51
Railway reservation system
52
Railway reservation system
53
Railway reservation system
54
Railway reservation system
External entities represents any entity that supplies or receives information from
information from one part of the system to another part. Flows represents data
in motion.
55
Railway reservation system
(3) Process :
Process shows a part of the system that transforms inputs into outputs. That is, it
shows how one or more inputs are changed into outputs.
(4) Storage :
The data store is used to model a collection of data packets at rest. Any place
accumulates is a data store.
VALID
REQUEST
ISSUE
QUERY
TICKET
RAILWAY
PASSENGER RESERVATION
SYSTEM
INVALID
56 REJECT
REQUEST
REQUEST
Railway reservation system
Interact
with user
(atten-
Resultant data
dant)
Review
and
approva
l
DATA
ENTRY &
Approved
VERIFICA result
-TIONS
ISSUE
Reports
TICKET
TRAIN
TIMETABL
Train
E
Analyzed data
Transactio
Add
n
Reserve passenge
occur
r
detail
57
Railway reservation system
58
Railway reservation system
59
Railway reservation system
LOGIN SCREEN
SPLASH SCREEN
61
Railway reservation system
MDIFORM
RESERVATION
63
Railway reservation system
QUERY
64
Railway reservation system
REPORT
65
Railway reservation system
SUCCESS
66
Railway reservation system
CANCEL
67
Railway reservation system
QUIT
68
Railway reservation system
69
Railway reservation system
Coding
CODING
70
Railway reservation system
LOGIN SCREEN
71
Railway reservation system
SPLASH SCREEN
72
Railway reservation system
QUERY
73
Railway reservation system
74
Railway reservation system
Else
Set MSHFlexGrid1.Recordset = RS
End If
End If
If LIST1.Text = "RESERVATION DETAILS" Then
If rs1.RecordCount = 0 Then
MsgBox "NO RECORD FOUND"
Else
Set MSHFlexGrid1.Recordset = rs1
End If
End If
End Sub
numfield = rs1.Fields.Count
For I = 0 To numfield - 1
COMFIELD.AddItem rs1.Fields(I).Name
Next
End If
End Sub
RESERVATION
78
Railway reservation system
79
Railway reservation system
.ListField = "T_NO"
Set .RowSource = RS
If Not RS.EOF Then
RS.MoveFirst
.Text = RS("T_NO")
End If
End With
rs1.Open "select * from reserve", connect,
adOpenKeyset, adLockBatchOptimistic
Datatno_Change
End Sub
Function ADDFUNCTION()
BUTTONHANDLER ("00000110")
ADDCHECK = True
Datatno.Enabled = True
pname.Enabled = True
pclass.Enabled = True
pticno.Enabled = True
pname.Text = " "
pticno.Text = " "
pclac2.Value = False
pclfc.Value = False
pclsc.Value = False
'rs1.AddNew
81
Railway reservation system
End Function
Function SAVEFUNCTION()
Set RS = connect.Execute("SELECT * FROM train
where t_no=" & Datatno.Text)
If pname.Text = " " Or _
(pclac2.Value = False And pclfc.Value = False
And pclsc.Value = False) Or _
pticno.Text = " " Then
MsgBox "FIELD CAN'T BE LEFT BLANK"
BUTTONHANDLER ("00000110")
Exit Function
End If
If ADDCHECK = True Then
If pclac2.Value = True Then
MCLASS = "AC2"
ElseIf pclfc.Value = True Then
MCLASS = "FC"
ElseIf pclsc.Value = True Then
MCLASS = "SC"
End If
connect.Execute ("INSERT INTO RESERVE
VALUES('" & Datatno.Text & "' , '" & pticno.Text
& "' , '" & pname.Text & "' , '" & tstfr.Text & "' , '"
82
Railway reservation system
& tstto.Text & "' , '" & pjdt.Text & "' , '" &
MCLASS & "')")
If MCLASS = "AC2" Then
connect.Execute ("UPDATE TRAIN SET
AC2_TOT=AC2_TOT-1,AC2_BK=AC2_BK+1
WHERE T_NO=" & Datatno.Text)
End If
If MCLASS = "FC" Then
connect.Execute ("UPDATE TRAIN SET
FC_TOT=FC_TOT-1,FC_BK=FC_BK+1 WHERE
T_NO=" & Datatno.Text)
End If
If MCLASS = "SC" Then
connect.Execute ("UPDATE TRAIN SET
SC_TOT=SC_TOT-1,SC_BK=SC_BK+1 WHERE
T_NO=" & Datatno.Text)
End If
Success.show
End If
If MODCHECK = True Then
If pclac2.Value = True Then
MCLASS = "AC2"
ElseIf pclfc.Value = True Then
MCLASS = "FC"
83
Railway reservation system
ADDCHECK = False
MODCHECK = False
Datatno.Enabled = False
pname.Enabled = False
pclass.Enabled = False
pticno.Enabled = False
pname.Text = " "
85
Railway reservation system
Function SRHFUNCTION()
MTICNO = InputBox("ENTER TICKET NUMBER")
Set rs1 = connect.Execute("SELECT * FROM
RESERVE WHERE TIC_NO='" & MTICNO & "'")
If rs1.RecordCount = 0 Then
MsgBox "DATA NOT FOUND"
BUTTONHANDLER ("11000001")
Else
Datatno.Text = rs1("T_NO")
Datatno_Change
pname.Text = rs1("NAME")
pticno.Text = rs1("TIC_NO")
LTICNO = rs1("TIC_NO")
pjdt.Text = Format(rs1!J_DT, "DD-MMM-
YYYY")
LCLASS = rs1("CLASS")
If rs1("Class") = "AC2" Then
86
Railway reservation system
pclac2.Value = True
ElseIf rs1("CLASS") = "FC" Then
pclfc.Value = True
ElseIf rs1("CLASS") = "SC" Then
pclsc.Value = True
End If
BUTTONHANDLER ("00111001")
End If
End Function
Function CLRFUNCTION()
pname.Text = " "
pticno.Text = " "
pclac2.Value = False
pclfc.Value = False
pclsc.Value = False
BUTTONHANDLER ("11000001")
End Function
Function MODFUNCTION()
MODCHECK = True
pname.Enabled = True
pclass.Enabled = True
87
Railway reservation system
pticno.Enabled = True
BUTTONHANDLER ("00000110")
End Function
Function DELFUNCTION()
Set RS = connect.Execute("SELECT * FROM train
where t_no=" & Datatno.Text)
If pclac2.Value = True Then
MCLASS = "AC2"
ElseIf pclfc.Value = True Then
MCLASS = "FC"
ElseIf pclsc.Value = True Then
MCLASS = "SC"
End If
connect.Execute ("DELETE FROM RESERVE
WHERE TIC_NO='" & pticno.Text & "'")
' UPDATE TRAIN WITH THE OLD VALUES
If LCLASS = "AC2" Then
connect.Execute ("UPDATE TRAIN SET
AC2_TOT=AC2_TOT+1,AC2_BK=AC2_BK-1
WHERE T_NO=" & Datatno.Text)
End If
If LCLASS = "FC" Then
88
Railway reservation system
Function CANFUNCTION()
ADDCHECK = False
MODCHECK = False
Datatno.Enabled = False
pname.Enabled = False
pclass.Enabled = False
pticno.Enabled = False
pname.Text = " "
pticno.Text = " "
pclac2.Value = False
pclfc.Value = False
89
Railway reservation system
pclsc.Value = False
BUTTONHANDLER ("11000001")
End Function
90
Railway reservation system
REPORT
91
Railway reservation system
Else
REPORT.Show
End If
End Sub
MDIFORM
BUTTONHANDLER ("11000001")
reserve.Show
End Sub
FRM.DELFUNCTION
Case "SAVEREC"
FRM.SAVEFUNCTION
Case "CANREC"
FRM.CANFUNCTION
Case "CLSFRM"
Unload FRM
End Select
ERRHANDLER:
Exit Sub
End Sub
94
Railway reservation system
CANCEL
95
Railway reservation system
SUCCESS
96
Railway reservation system
QUIT
MODULE
Sub MAIN()
STRCONNECTION =
"Provider=MSDAORA.1;Password=TIGER;User
ID=SCOTT;Persist Security Info=True"
OPENDATA
LOGIN.Show
'MDIForm1.Show
'Unload USER
End Sub
Function OPENDATA()
On Error Resume Next
CLOSEDATA
SECONNECT.Open STRCONNECTION
End Function
Function CLOSEDATA()
On Error Resume Next
SECONNECT.Close
End Function
98
Railway reservation system
99
Railway reservation system
Testing
100
Railway reservation system
TESTING
Testing Objectives:
101
Railway reservation system
102
Railway reservation system
Testing
Screen
LOGIN SCREEN
103
Railway reservation system
Wrong password
RESERVATION
104
Railway reservation system
105
Railway reservation system
QUERY
106
Railway reservation system
107
Railway reservation system
No record found
108
Railway reservation system
Reservation details
109
Railway reservation system
Reservation confirmed
110
Railway reservation system
Reservation cancelled
111
Railway reservation system
Reports
Report 1
112
Railway reservation system
Report 2
113
Railway reservation system
Report 3
114
Railway reservation system
CONCLUSION
115
Railway reservation system
116
Railway reservation system
Scope of project
The main benefit of this project is that it
facilitate user to communicate in a faster
manner in comparison of manual system.
Through this system the current status of the
reservation can be known easily whereas in
manual system it is a difficult task.
117
Railway reservation system
functionality.
118
Railway reservation system
BIBLIOGRAPHY
Software Engineering
By K. K. Aggarwal
Yogesh Singh
Oracle PL/SQL
119
Railway reservation system
By Ivan Bayross
120