et
\l
,w
:ii 13
e*q
ftqt-*rq riqa-{
ffi This is to certiff that Master Abhinav Kumar Sinha of Class )ilI-C (Commerce) of Kendryia Vidyalaya School, Jamnagar, has completed his project file under my supervision. He has taken proper care and shown uffiost sincerity in completion of this project. I certifr that this p*j"Iis up to my expectation and asper gurdelines issued by CBSE.
EXTERNAL EXAMINER
TNTERNAL EXAMINER
(SIGNATURE)
(STGNATURE)
(Mr K.K.Kumawat)
PRINCIPAL (SIGNATURE)
(Mr Shekhar Jakhoria)
*FI$NSYYLFKSF*IFNT I V/ould
Like To Express My Profound Gratitude Towards Many Individuals, As Without There Kind Support It Would Not Be Possible For Me To Complete This Project Report. I Would Like To Extend My Sincere Thanks To My Teacher Who Gave Me The Golden Opportunity In Enhancing My Hidden Capabilities. Unfortrmately, I Addressed Several Dfficulties In Coordinating The Activities Of The Project But I Am Highly Indebted To Mr K.ICKumawat For Their Guidance And Constant Supervision As Well As For Providing Necessary Information Regarding The Project.
I
Would Also Like To Express My Gratitude Towards My Parents For Their Kind Cooperation And Encour4gement As They Help Me A Lot In Completion Of This Project.
I Would Love If You Appreciate The Quatity And Performance Of This Work. At Last But Not Least, I End Up By Thanking All Who Helped Me A Lot In Finalizing The Projecl Within The Limited Time Frame.
ABIIINAY I(IMAR SII\HA
Nr'!
rS#SSNT*TTRIY RH
rsR-{#pTwg$#
TITLE OF
SCflOOL YEAR CLASS
ABSTRACT RATLSTAYS {rR} CAEBTES ABO{-rr 6.s LAKHS PASSENGERS IN RESERYED ACCOMMODATION EVERY DAY. THE
THE TNDTAN
coMPrrrERrsED PASSENGER RESERVATION SYSTEM (pRS) FACILATES THE BffiKN{G AND CANCETLA'TION OF TICKETS FROM ANY OF Tlm 4000'tER*rniArs (r.E. pRs BooKINc wrNDow ALL ovER THE COU$TRIES). TrtrSE TTCKETS CAN BE BOOKED OR CANCELLED FOR JOIIRT.TEYS COMMENCTNG rN {ryy PART OF rNDrA AND ENDING IN ANY OTTMR PART, WITH TR:A-\flEL TIME AS LING AS TzHOURS AND DISTANCEUPTO SEVERAL TTI.O.U.$ KILOAITETERS.
IN TIIE GrvEN **o*"r,'[",wILL ne np\rElsprNc A JAvA FoRM wHrcH wrtr HELr usERs'ro iruo rBA{N DETATLS, BooK AND CANCEL TICKETS AND TIIE ITS OF THEIR TICKETS TO THE DESTRED DESTINATION.
:: :. ,..,i, . ,
..,
.:.:',"
IWrTH THE rml,p O-r-oN[Jj\IE BOOKTNG pEOpLE C4N BOOK THEIR TICKETS ONLTNE IfryCUGIlSryffi$IET, SItrfrNG{N rrfirR HOME By A SINGLE CLrCK OF !,1iqUrSE.,USrNG THEIR CREpITOR DEBrr CARDS PEOPLE CAN EASILY GET TI#IR TICKETS DONE WITHIN MINUTES.
This project aims at de-velopment of an Java Railway Reservation Utility which facilitates the Railway customers to manage their reservations online, and the Railway adm4istrators to modi$ the backend databases in a User-Friendly manner. The Customers are required to register on the server for getting access to the database and query result retrieval. Upon regsffi.tion, each user
ryE h is essentially the 'view level' for the custourer. The account contains comprehensive information of the user entered
has an account
during registration and perqrits the customer to get access to his past reservatioffi, enqr{re aUout travel fare and aysilabittty sf seats, make afresh reservations, update his account details, etc.
The Railway Administrator is the second parL in the transactions. The adminishator is required to login using a master password, oilce authenticated as an adry,r-isistm{qr; one has access and right of modification to all the information,$tared in the dakbase at the server. This includes the account information of the custometrs, attributes and statistics of stations, description of the train stoppages and physical description of coaches, all the reservations that have been made, etc. The railway adminisfrator has the rigbt to modifo any information stored at the ssryer database.
DATAFLOWCIIART
3J DrtenpsDiaqsm 3J."1L+rcIO: q{}\"?rtf ,rrldc'*r\{ tre(b,erIO,
llcrr*a
Fgss{. Searnhrrain
3.2J
--f*--*"--
}
roioa"oa* .l'/ md boot tir*cr\ h\0-0/ \-/
Ls-l I DSD
i€$rlrr{dEitr-
B+ck pir:ket
s.:
[::T
iAdminr:uetor.i
I\SERTTFD.dTE,DELETT
fa{{sE
r*"*
a[T-{rts{H-*
FL]NCTIONALITY The Customer and the Railway Administrator are the fwo parties which interact with the database, who have different 'view level schemas' to the database information-
in real life
the reseryations
stations, add new railway
THERE ARE 8 DATABASE FOR EXECUT{NG THE PROJECT
Go..Trip.com_log Go..trip*coupons TRTP Seat cYv
Card_details Bank_Maaagement
PAYGO HTERARCT{YLY RE-PRESENTAION OF HOW DATABASE WOTK
1.
Lo5In
1. Coupons 1. Child.,Passenger
2. PNR 3. Passenger_petail
4. TRAIN,FARE 5. TRAIN_SEARCH 6. Ticket Reservation 7. Train AVAL
, r,.,'1,,,$!ppper Zi**iChair Car ' 3,Sirst A/c
4,,ffdseating s.First Class 6.,,Secound A/c
, ,F,,,' ird A/c l. Cw no
t. Caro-&tai1s 1. Cousfiner ..1
.PAYMENT
Notes: i- For each customer
/ user, there
is a file named
of the user which stores
the
PNR number of all
recent the user has made. The details of the reseryation can be obtained by performing a "natural join" with the global reservations table. The table is updated on new reservation being made and an existing reservation being cancelled.
ii. For each train, there are 2 tables which describe the train,
a. n - This stores the stations at which a train stops, the arrival times at the stations and the stop numbers of the stations. This is required to provide-the facility ts a customer of being able to make reservations for intermediate stops and need not bosk re ticket for the whole journey. Upon a request for showing trains to book a journey, a query is made to eq.cllrn table :
to match the stations and the stoppage number unsgs65fffi the train arrives at the starting station before the ending station. This can be updated only by the adrnini*tatpr. A new table of such type is created and the records are inserted upon the requ6 bV lteaOmin;*atAl ,ts.announce a new train route. To ensure the b,x for choosing stations to protect ;ntegrity of the table the administrator as pr:quid€d',rt&h a d$;'6*
fromtheaccidentalerrorofentenngJtqfixi,,.'.,1r.1.','r: .,
.r.:.: ,:.
.:.
iii. Each user is provided with an:accoun$ wtrich is used for sessbh fita13$fmf1*, the authentication table *ores the account information E-ea*user. The customer / user ls prgy"d .to View and make reseruations only when he enters a lggifimate,lese*rme and password pair. Upon a suecessful authentication, a php session is initiated. This tablejS':rrpdated upon registration of a new euStsidlq5: deregistration of an existing customer or by means of a charge in password request by an existing user. iv. The whole database is centred about the table 'global reservationd, thistahte$Ores the complete details
of
all recent reservations. It,storcs ttre'.lo;rding and de-boarding shtisns.,;n,t{tY l times, date of journey, passenger list, the coach and berths allotted, etc. To ensure the integrity of this table, the users are provided
whh drop down boxes to choqse,*tatiqls'an*rC$e.,,.Th*s,S-ble is rnodified'upon reservation, cancellation, update in reservation of,'existing'*iCru{S w*lith, r*gy be explieit'in:the fOrrn of Ch:tnging the passenger
m.,'\daitr$te {confiiined'; This,13,56 t's queried upon after being joined with the table'whenr'a:ti$to-fntt Wkhes to view his recent reservations- This is undoubtedly thecentral and the keY link1e!!rngdata entities in the datab:l:: details. or
implicit,drrito
ange in
resenmbn,
,'.. i.,.
-,.1;,1,,,','
r'ir::
.:, i .'!','
.'. -:'t.',:-,,'... ...,,,r:,
v. For making reservations, theitBl gtcballtraim consisB of the identification details of all existing trains and their routes. ln the query to".1nqlg,e&:q*, or. this table provtdesthe names of the tables whose station tist needs to be searched for finding the in-order station pairs of the journey' .
vi. Just as for trains, station detaiii are stored in the table named ,'stationinfo'- This is used when the adrninistrator tries to input new trains aF a,seruice to the cu1tgmeF. This constraints.the administrator to choose, the start and ending stations, from a drgp dourn menu and preventing accidental input of non existing
stations-
vii. Each train and date pair for a recent date, haye a table - describing the current reseryations that have been made in the train on date . For each coach, a string of length equal to the capacity of the coach denotes the status of the reservation in it. The string consists of 'o' and 'd, which essentially flag whether the berth / seat is occupied or empty. New instances are added automatically upon change of date and past tables are dropped. The attribute waiting is stored to store the current count of 'wait listed' reservations that have been booked for a particular coach type for the train on that date-
I
Ile.E0i$qrrjhbt
i,rt6;
,.kkdEr
l,-ry{''
l.- {efs.,,]
i
kdabt{nt (EAIEIIfr5-hcrla6rjfff?fitrI$Hfr?mlAtrXEf l{ft6ffiff{r HII}f;[l ffitrEI1mmq"Fd-!haE"lt{K}lA&"Fel-}bac. %m*&'@Jtm"**m{*e,}.rE[-]hm."ffrc{&1iild_l$m'flEHlq,"pd-!hG"1Hffil*[,'Filrt-lgc'l*E€q,-Fs4rgc'ilIEq "Fdd-*gr"ifitffi,-f"{|gfI*IEq,-F6$-{gt'mffi,"Fd-rgt"SfiEq.-prit[_HGfffigfAltrIt{-Fcl-Sd$SfiffniltrT!{-}d-!d 06e0efflfItt "pretHtllA*ffimfr&'Fd.*f t}IAEffilrtTU,-pd-Slr"$sB0trfffT14'F.d:k"0{riflIfffi*I lEllf,Ilt{"p.*t&"
tll8frffitltrltl'Fd*SrOliltffiilf,Iil,145f,QlIeffiilfTli'Id-lC(}BRlEilf,IH."@]k-t}lrnffiiltrIfi,1ffiI'II8q,'prd;f tffi$q.-pe!ra..l'f Iffi,"p*ljtrlr{Hl{il&-p.d_if,YAtr}lf,{'puf-il_ao"YfE*1fi&"€iilp"lfiffiI*fiQ.'F}_i}_r!o"YI8$lIlL-paset_it-m'
Slffilh&"ar*r-erc'Sffit$l,tnir-m-lllffi"3mJsdfr'mfi&?63dtfilm$f;,]E]afIInO{fn }sJMlfiK}SR?q$d $rmfl& ?m-eGf WIi& 'k-Yffir58 BEtlf,t 6olfrnt4. bq-;r Yrffi{r$
f.hch
[il""*
n
'r*-*u**.o'
,r*ar.tx*
o
CotrtGtltl lcou"n*o
ltilc
trpc
h i
PlN Flil6[-HEtr FEa-'&dC ?.qd!-ftu!c
.T116B
I
saacllAft
o
HEHti T'ETIA*
o o
Y'rcfiR,
c
iII
lr i
l3 i
ia
tl!*re*
]
FEa_l&E F.s6-ltm.
i6
p.!E6-lkErc
are$a YAMfiI
o o
,.Efrlar
!.IB6E T'IEGrE
a o
D'TEEA
it
lt ia {
p ir* ]
".EEa_&. eGd-rgr
IharEV& tffi rra rna
d
*{
RiEEq.&a,
I o
el
.i
*
,$
! t
;ff
o
.iit
:'lji ,.-
I
o
fia ,rg lra uL Ea
c s
.TE6B
o
ara
s
o o
j,fr-
,. ,ia
ili :,.
'#
.r,/'l
{t
jtr
p.r6_AgE
!.TE6B
s
irt
o
;4
ir2
p.s5-agE
IIIEE&
e
ara
pc,._Sa
claia
tt
a o
$iii)
€rrt
o
e
til
!
g
}lt
ct{t*
o
ra
o o
(r.E&
o
CHIA
G
L *t il
;
rr ir4
;r: l
ir5
irr
is Irs
F€f-SE
pd_SE tld_SE F6-la p!r6_So.
€Hat
I
otat
s
C}IIB
o
s e
'i$
x
e o
,,i$
0
r
iB
F.SJ.
cHrtr
a
It
l"
frs6*Sc
(I#ln
o
x
r*B
ITTHB,
n
t
ir t:
Frd-U
ryIEHIE umaHil*
6
p.drld
F.d:il
YtHtfllft
o
nd :d r, ad
Fat_il
Y'TMFH&
o
Br*
I
pro4'-i(tn
*AX!*r*
I
o
frsl*ittso
rrxllAx
o
Fd-it-se
u[80$4.
0
ilI rd *il
rtHilAR
o
nat
o
t*r-amr
rlrffiffx
a
!.*
0
n*rao
}IIG6B
0
E
RX.s
o
erqa*
Yil8cfrf, YTM$B
firt fil
o
pq-X
YItrI{Ift
g
,tr* Ed
st*trctB
4
r**
n
fgrE-*!* prrq-fd **E
ilfr8EltAf,
0
s
STRHAR
o
UTK$T
B
rra sd Cdmcd
hrLkl
uAm{af,
0
B,
o
i'*r
tb*
BotltN tkl
TIPG
r
Fi]
c
6
'4
it i:i
irr
rr
iH
,s
o
',.!!fjs( Fce-jsc !dlc
iIE
.',{ ,]1 ,in
o
o s E
o T
B
s
0 o
Cr..ac#
F{ti'iii4i r**iiir.ii.;minmm.;i?f-**;$ricciae--ri"q-$t'tiuil*tit& *l*i;r*r'*.rr;;; miiilEtrci rinir*vrsr;r*irt .e*.f_e*.-afT[gq.1e*Z*1qr;nfifffi,'pEl-Scaq{*BItGFltrfTtt'F.6.8;!6" CFIlfi,B*AIITtd, "tE4-i.f YAnCI{Ant
faareHc fb"or*cor&
I
le'dtrdrc
rFG
tr"b.f**.*--.**-51o} ,o
ir
O
rao;!1,
!5IE€ER
pF l-iatE
it i. l:
rr*.*f*fg*
O
FGLfkrc p-*-fap FEI;EAG
g.6.ffY*r 1fr9m,
fti*sv*.1,
ac*
fr,El{.8 r,a&clsn DIIEEM
:!. ! i:i
STTC€EA
li l!
1l.d_S6
.'EI-SC
1..:1
ti#-=,E
"'
:l
,p
IIE*&fid-x
i:ffi
&sat:fahmrr*
'wa*ira:"iirr-*;a3[*]irEc rfl1,Jrf,irq-3p:!ffi lirio,;Aarrffcn fi6,;sci;nnremssntr.:ltq"*s-t'
llhtffi ftiaofMs
I
Gbaffrdae
B&{TdgsE L
{}
Co&ilrc61
lca*|rnrD
is h I lr ir I i*at'eruilo i_._, , ,^-,.-,----tkE_ ,.
I{m.
rcr ee AED ,Et }}?.
J
TtaP!
tbrl**
DtrEEn xr€68. xIE€En t{rgm
s o o o
Nn*t*t-
r,
W
ffitr'l
DrhilVef,r
i6 66 GE f5
fritr ryXlI
I
o o o
ij
l
F
CODE REGARDING PROJECT:
IMPORTANT HEADER FILES:
.
imprt
r r.t:,talr it lil,!,;..:!,:.,.,
javaxsyi
ield;
import j avax. swing.table.Defau ltTableModel .:' import java.awt. Color ; import j ava. awt. event.KeyEvent;
import static java.lang.Thread.sleep; import javasql.*;
;
&aGII$rnmxvt
$*-tlp &l;p h@rto;{,,,
UptSory ttll
ffig l}Y
ruaor
fop
lii.{l.Fj tx,l
ON SIGN UP BUTTON; private void jButton8ActionPerformed(iava.awt.evont.ActionEvent jFramel .setSize(l
1 1 0,
evt) {
650);
jFrame 1 .setVisible(true);
l ON SIGN IN BUTTON: private void jButton6ActionPerformedfava.awflevent.ActionEvent cvQ { String useFusername.getTex$; String pass-passw.getText0;
try
{
Class.
forName("org.sqlite.JDBc'};
con:DriverManager. geConnection{J dbc:sqlite GoTrip*log. sqlite" :
);
sffit=con.createStdement0 ; String query:"SELECT Pass from LogJn where User='"*userl-"';";
rs:sfint. executeQuery(query)
;
if {rs.next$ { String passworHs,getSfiing( I );
if (pass.equals(password)X
ty
{
Class.forName(" org.sqlite.JDBC " );
con:DriverManager.getConnection("j dbc : sqlite GoTtipJog. sqlite"); :
stmFcon. createstatementQ; String queryman="select Name,E__,mail,photoJVlobile from Log-In where L]set=ttt+userf ttt; tt ; rs:stnat. executeQuery(queryman) ;
if (rs.nexO) { Sring namFrs.getString( I ); jLabel2 5 .setText(name) ; Striog email=s. getString(2) j Label3
0.setText(email);
;
byte
I imagedata=s. getBytes("Photo"
format
I
=new
)
;
Imagelcon(imagedata);
jLabel} .setlcon(formatl); String mob:rs.getString(a); jLabeDS,setText(mob); jLabel2T.setText(user); jFrame2.setSize(
I
398, 533);
jFrame2.setVisibHtue);
l
else
J0ptionPane.showMessageDialog(null, 'No such record found."); ) ) catch@xception
e)
{
J0ptionPane.showMessageDialog{null, "Error in connectirrity");)
finally{
fiv{ rs.close$; pst.closeQ;)catch(Exceptiur eX ) l ) ) else{ J0ptionPane.showMessageDialog(null, uNo such record found."); ) ) catch@xception
e)
{J0ptionPane.showMessageDialog(null, "Error in connectivity" ); | finally {try {
rs.close0; pst.close$; )catch(Exception
e)t)
)
tHkur Hgme*
r#V{..Y..+#}YT
$SFHHTY rssly$
#*-TriP #rhd &Nril,;{,,,
NmG-AbhiwKwSinh
€k:-m{{Crec} Sfut- Kiofiip !'idy.htp Yrm- (l0l!']01{
Nol.
AF$Ump
ffi-*tffi , 1+i.!:+r.
,#Sr-
ffi:'nl$#,.4'14(!,*.
G\|:| i/
4ji
!|:r\t ,ft+#.7*f9"gb;\# +;rhid!S!ia*eF' rej+il":iia
r:i
ri'!;.i:*
tl W.4efigv.
AE
Go.&ir.mmtHeugffiiryeo*ct*irir*dwwiustTordhrcd&Go.Irb-coobFecbdbSG@dS0#LqEr(5$i
E&**rqTd{Fe*baaghtfie$Itips*da.ryFin&p'eea&cxili&ududcil$aaiiEtitsfco&lUre llirstrddrh U&figrlbflcidcgtb*pctrffrdiMixrd$iwtti$libofm&t!*rtnor$ffidd0Eti!k6lt dtsrdlE&ifurlild6&rt', Tc tldrdrBary!r*mddbol !.t!bFFillss&fu blbirtiltd(tlrdh[rwy. Ifp:cmcoffxllgiriEJEtrl&rdiffiastr&$*,paadlrOreaSatbC*amTdft*t{IHt[}llt(N*LANBfl, fiffi)il0 t{S"legtf $it$Ssdt-
ffi
FERLW Naas.-
AbldusrKrmr Sinh
Chss,-XII{ (Co*ucc)
KS: ]Eyefue Nol. AfS'f .Ias*etr Year:- tl0l^}-l0f.l} Sdool-
sGt
15%
off*
kC(tr.Trip W &*&,h+*tntry...
Narc-Abhinev
Krlrc
Sir&e
Cbss- )(II-C {Cmncrcc} Schooe-
f€dritu Vilnhla Nol. AFS-UmgE
Ytc-
{:Ol3-301"1}
ffiffiffi$WPW
ON Sign Up BUTTON: private yoid jButtonl 0ActionPerformedfi ava.awt.event.ActionEvent evt) { String niune€-Tame.getText0;Shing e_mail=mail.getText$;Stritrg u$Brnam€=lserl.getText() String
passlpassl.getTe$;String
.getSelecdltemO.toString();Sking cii:city.geaTex{);
String mobb=mob.getTextQ; ry{Class.forNam{"org.sqlite.JDBC"); Connection
:
l
sqlite:GoTrip_log.sqlite");
ffimffiffift#ffi ffiffiffiM &'sm}'P
Nmsi UsrNamePhreNo:E-HdId:-
Atrhimv AbhiravKmar 99149?7092
smaraednhedhinavtume@-"
Statement strrtFconn.createStatemen$; Sfiing queryl
: dUPDATE Log-In SET
String(p" where User"'+j Label}T . getText$.to Sf ing$+ "' ; " ;
pass:r " +j TextField3. getText$.to
sffitt. executeUadate(query 1 );
J0ptionPane.showMesiageDialog(nulf "Updated"
);
+;:ti,.1!l:l*
catch(Exception
e)
{
null, "Error in table
J0ptionP'ane.
..* ,.i1.: :..rll
!:t::1*
)catch@xce,ption eX
essageDialog(
l ");) )
]else,{
found.");
null, "Error in
SEARCH FORM &,0**.ThiP *A ujdd.tii. ffi
jMl
S*dr
qWryWW J-{1Try?F'*4Y4q 43_$q i-ry/i:d: 0:'.,,fu.b.#& qt
R.id
.
. t I ratrr J|€arcn (5* 4rTqd Effl lEd&{l*
ffiIr*.
FRSg
srffi+r&€ ret&
r*
ffitisff
qE$@*
$.,"
!'"r'B
Ylri;.i;
&€m*ipt*. ffi tu 4i':+
Search
:
fles '
i*l
sri-ffi.*l
9-l{L:0f l
AEa*-
Cstrd
Ill*I11r-
Gldc!
,s*
r ,-- _
.F
-.urF
--
.-,
n
&ej eB j:ri'r
ClH.
!5!t
- fl
ffislmFffi rs" ffiffi
Train Soarch m.*{r,{4r€ rRx
i
i
1:?i! PBt&Aa+|} iffi
tl
l$Et$
s*ffis
J* $3!
JE -t&
ffi
qPs lxqw&?tq jJft*F ** JMes rJSa ,|ffiw &4€ ft"ffi€* *i*i jffiEA J@
& a
!&i
i6l
.L,
$tA!'ryfli{E. ry_ryq ffi*dj
ffiBdaoad
ffieffiEdll ffiffi*J @eM]
J
&Mr#]
&348 6* 4;
1*i{ ir13 ,lta
AiX
I
1,"
I
1uro'ro'u
i+i - **-*{
..CC
Fdle-S tffi &rtu-tde 1*i*i;tj*]%XB*u 1&71 _?!sw.j&
.1.
qgitr'
R J]
Fi.*r$* 1ii*
t' t.
_,1:,is
I
i.@a@,*-f, -dt*l lc
I'tr
f *'
&Y5
irfsi._1s.
,r5r
JEfnrac
Eai
'krE*r&t*CtPsHrsdRrgr*
m
*ai*st&4r rsd
ffiElM*"
n?,
E
''
C*&r:6 sil$i&itr{dls &B1BI]:E EiTF l:1 5 131 I trlt 7 r 131 3l! t
:
ON SUBMIT BUTTON: private void jButtonll"ActionPerformed(iava.awt.event.ActionEvent evt) { j
RadioButtort l setEnabled(false); .
jRadioButton2. setEnabled(false)
;
d( false) ;
j
RadioButton3 . setE nab
j
RadioButton4. setEnabled(false);
j
RadioButton5. setEnabled(fal
se) ;
j
RadioBufion6. setEnabled(fal
se) ;
j
RadioButon7. setEnabled(false);
Ie
jButton2.setEnabled(false); :
if (iTerl ff ield84. getTex(). I ength$ <=' 0J {
JOptionPane.showMess4geDialog(null, "Please Enter T&e From Station Code It\- )
"); )
if
(iTex-,tF!91d85.getTex$
tgy
)
<:0)
{J0ptionPane.showMes alog{dt, "PleAse Enter The To Station Code "); )
if (i ComboBox 1 0.getSelectedlndexQ {
:
0)
JOptionPane. showMessage$iatog(null, "Please Select The Type Of Quota');
ii ti com*E;nZ e*t$eleqtedlqdex0
:
}
0)
{J0ptionPane.showMessageDialog(null, "Please Select The Type Of Ticket");} else {
DefaultTableModel model:(DefaultTableModel) jTable 1 getModeO; model.getDataVector0.removeAllElements0; j Table 1 .repaintQ;
(DefaultTableModel) Table
1
.
getMode$). setRowCount(0)
;
try {Class.forNarne("org.sqlite.JDBC"); Connection con:DriverManager.getConnection('Jdbc:sqlite:TRlP.sqlite"); String 9uery:"5ELECT dl.train-no,dl.train-name,d1.stn-code,dl.str-name,d1.dep-time,d2.stn-code,d 2.stn_name,d2.arr_time,d2.dist-d1.dist,d2.day from train_search dl innerjoin train-search dZ and2.train-nodl .train-no where and d I .str._co6":"'+jTextFieldS4.getText0.toUppeCase0+"' d2.stn_co4s="'*jTextFieldS5.getText$.toUppeCase0+"' and dl.dist < dZ.dist ;"
; psFcon.prepar-s$tatement(query); rs=psi"6xeslr, fi eQl.eryO; .,,i,while
{rs.nex
'{D{',
moautJano* ("** 6ui*ct[1't rs.getlnt(1),rs.getSq!
,,
)
,
.getString(3),rs.getString(4),rs.getString(5),rs.getSt
,rs.getString(7),rs.getS .rog(ry rs.
gettnt(g),rs. getlnt( 1 0)
rs.close$;
.,psfoloffii''''
','' l
)
catch@xceptiexre){J,Op.tionPqlp,st$q!ryF& geDiah${nutl, "Error in
connoctivify");l )
ON BOOK NOW BUTTON: private void jButton2ActionPer.formed(i ava.awt.event.ActionEvent evt) { String satetime:(iTextField3.getText()+" "*jTextField4.getTexO+"IsT*";'
String d1:((JTextFieldlDateChooser2.getDateEditor().getUiComponen-tQ).getText0; j
Label43.setText(d 1 );
switchfi ComboBox2.getSelectedlndexQ) { :
case 1 jlabel 1 60.setTextf i:Ticket" ); ;break; .: case 2 jlahel 1 60.se-tText{t!e-Ticket");;break; ease 3 :jlabel I 60.setTex()-Tie(et");
int a-Integsr.parselnt(ilabel
1
5
;
)
8.eetT!4tq);
switch (iComboBox I 0.getSelectedlndex())
{
I,r*u*k
t*go-parselnt(JoptionPane.showlnputDialog("Please Enter Nurnber Of Passenger Seat Required "+:: Max 6 "));
case
. if(seaf=={} {
JoptionPane. showMessageDalog(null, "Please Enter Vai I d Num ber 0f Passenger Min I And Marc 6"); seat=Integerp&r, sqlnt$sptiorrPane,showlnprtDialog("Please Enter
Number Of Passenger Seat Required
**" Max 6 ")); )
{ilabel4 I setText(" General" .
j TextField
1
.
ComboBox
1
.
;
setEnabl ed(true);
j TextF ield5 6. j
)
setEnabled(true) ;
setEnabled(kue) jFrame2. setSize( I 400, 795 );
jFrame2.setVisible(true); ) else
if (seat4)
jComboBox3
1400,795);
ComboBox 1 -setEnabled(true);
j
j j
TextField2. setEnabled(true) ;
TextF ield5
7
-
setEnabled(true);
jComboBox3 setEnabted(true); .
j
TextField5 2-setEnabled(tme)
jTextF ield5
8.
;
setEnabled(true)
;
setEnabled(rue)
;
.l
j C omboBqx4
-
jTexrf idd$3"ss,tE$abled(true) ,'"
;
, jTextFieldsg.s. abld.{mrc); 'r. l.
.
jComboB ;setEnabled(true)iFry,-ryY,-(1400, iFrame2. setVisibl e(true); )
jTextFielcZ. setenaUled(true) j
TextFi eld5 8. setEnabl ed(true)
; ;
jComboBox4. setEnabled(true); setEnabled(true) ;
j
TextF ield5
j
TextF ield5 9. setEnabled(true) ;
3
.
79s);
jComboBox7.setEnabled(true)jFrame2.setSize(
I 4 A0, 7
95);
jFrame2.setVisible(true); ) else
if
(seat>6)
{J0ptionPane.showMessageDialog(null, "Please Enter Not More Than 6 Passenger!"); seaFlnteger.parselnt(Joptio-nPane. showlnputDialog("Please Enter Number Of Passenger Seat Required "+u Max 6 "));) else { seaFlnteger.parselnt(JoptioilPane.showlnputDiatog("Please Number Of Passenger SeatlRequired "+rr Max 6 "));)
Enter
;break; case2:seat=Integer-,parselnt(JoptionParr,e-.shoylnputDialog("Please (,lrrt tr4* 4 ")); Enter Number Of Passenger Seat Required
:.:
{
J0ptionPaae. showMessageDialog(null,
nPleaserErrler Vaild Number
'Of Passenger Min 1 And Max 4't):' seat=Integer+arsefut$OpdoaP4ne"showfuputDialog("Please Enter Nirnber Of Pgssenger Seat Required !'+r Max'4 "));')
if (seat-1) ' ,,- {ilabel4t.sedText{l'T "); j
'
TextField
I
.
setEnable(tr*e);
jTextField56.setEffiIed(true) jComboBox
I
.
setEnabled(true);
j TextF ield73 . setEnabl j
;
ed(true);
ComboB ox 1 I . setEnabled(true) ; jFrame2. setSize{ 1 400, 795) ;
jFrame2.setVisible(true); ) else
if (seat1)
fi Label4 LsetText("Tatkal
"
);
jTextField I setEnabled(true); .
j
TextField5 6.setEnabled(true);
j CornboBox j
1
.
setEnabled(true);
Texff i eldZ. setEnabled(true)
jCom
;
S,setEnabled(true)
j
TextF ield73 . setEnabled(true) ;
j C omboBox j j
11
setEnabled(true) ;
.
TextFietdT4. setEnabled(true)
ComboBox
;
I 3 . setEnabled(true) ;
ed(true);
m*);
ii"u'"]1,ffi-
else
iGodl
if (
.snfEnabled{true);
jTextFiel$3 setEnabled(tnie); .
j TextF ield5 9. setEn-abled{tr-ue) ; j
ComboB ox5 setEnabled(true) ; .
jTextField73 setEnabled(true); .
!l
jComboBox I 1 .setEnabled(tue); j
j
ComboBox j
j
TextF ield74. setEnabled(true) ;
TextFieldT
1
3
5
.
.setEnabled(rue) ; setEnabled(true);
ComboB oxJ4.setEnabldtrue) ;
Not More Than 4
Enter
"Please Enter -4
")); )
$ ffiE, ffircRM &*mlo Fre-
Ar@:,
ttf4b
X
:F}tE
l-t*t&*
.ital
6A$
l
H
o-*
i ae"i so i
sa*caa,",i
m!H,@
* *
nrffi
":js",g
fr:'!+
nlry8f!*{r{
eil
drm
ltui
sr*".i
An&iih*
:r
:1*_g
Aso&
+e
,S:._d
g#JeL;--*gS***L
i
Baihysiefrsd
hd0thrld
Ieolllffi x.at
1rr.ldrI0r3
l.
--I
:,;::.:" '.
5.
, , fi,& ri# fs
,-
@
SlffiG.*Iti.tu
nltF
rrd.
:: |
ad;erE\ sEistr i rER*s 1€( l\+iost rdx€"f
0r,;rJfu.r..f,
CtrrrC" *
{
,r
*-.
il
r$fr?s 5i :m;$)
%f. (?1',,, v
EEIE *
B ffiE
RrcRM t : ll: }il
hC-..Trip W
,or+
a i.rt*E;r...
ilti
!te*
ns, ii.:lRE\
-3r:3't
:'!1irj {ialitii3ti a'.I':r'$,\aT.i:
Sr"'!f}
!E
ilaltPa..^reW^4
i.+j*=,".==.:g-:*-
-Sj :f:j
1.:
-
-
i .-l
---
iales 4€! +! trt ar. Jx!ff I :*E *! *:*'{+r-rei i* ie!+ ;.i'&;!t+r-* " li* ebr : *lde{ ii,e i*tl:r ull k rlirici i*44;x s3h* ;q:
\t iccq B'|lr*siv *all*it ale.r;r*g* et allcilai i='tis;r ie +c ei li;a <.oe *s c2*v.*r iLtd !\.:: Ict * La{ei f rE i ;5* : f;6t ** a+i r* ijl :ae* Di5sga \:&1;
\r!d
-i '
ir};14 $ji !:
ilt i te 16"
ls:t
99:{91-'091
@,," llrElffi.-. crylr. i
riai*
:x:
EEI
.,:'-l:
*]::::r1TT *_T y*
Ib*-
kC-..Trip *+ a!a,at*.-
t:13rS
W
i* (ai{6;r.q.r- L'iisFhibn {rie*3;'d.*? Pr*.ftaft{qi #}5d*rie,lhgr* IEit : :i* s** * sei# l.+:etE '"i:* r:'l*t lqqi e L;t *i* s7-i+.ei:+q e ee:.i'-:iiL at ti.* p iair.'*i**i1''{a)iitrlc.t ;iya :i,e *:i: qE*.iia ij*et ,i1'ti!
FsxiSsl
9a*5* aui*i x{t r1i*rm*i s lalq * ser <5ois :: rst 5ct r*i
NC:I'
99.frgfj'qi.
Fcjtl
],ir &il eesan ,i:i,:bl
J*o
*ji ir *siti
ial( ra !sr.
enr{
l
J+rt+9*s3r!er*dirilldG I*jie*ii*tMi;-*iEqj*tBirEti*;ti*lr:tleti*rtrg:i*:gedeiabkti-l=lls::g*e rew x;Et6*. p.* *{ ,.'rk j-*i :o.i6-.<:si Fr{sElc,i. :*Ls**6i. sim?]s,ga,J. €e riaLS +&{,d*i '?r"+; iEi* I8i tr<* !o{:! {*inE *?ii 'ss$ i *a,+4a.
B*t
;:*,m: ffi **,Se# & *,$ A*"*"rm:fu C+r!h t :{*l-m.C.-Tt}'t*ia rf ryB lrsta
g,
:EEXT *"
Rr?en
\ I
I
J
ON GO BUTTON: private void jButtonSActionPe rformed(i ava.awt.event.Action Event evQ { DefaultTableModel mode4:(DefaultTableModel) jTable5.getModel$; mode4. getDataYector$.removeAllElements0; j Table5.repaintQ ;
((DefaultTableModel)j Table5. getModel$). setRowCount(O)
;
DefaultTableModel mode3 :(DefuultTableModel) j Table4.getModel$; mode3. getDataVectorQ.removeAllElements$; j Table4. repaintQ;
(DefaultTableModel) TaHea 6etlvlodeO). setRowCount(0)
;
DefaultTableModel mqdes{De- ultTableM{el) jTable S. getModel$; mode5 getDataVecto$.removeAllElemeats{); j TableS.repaint$ ; .
((DefaultTableModel) Table
',
8.
getModel$). setRowCount(O)
mta:1,*2,c:3rd=4rr5rts$;.'',; Sfiing
'
sc
:
l,sc2,sc3,sc4,sc5,sc61,
if(iCheckBox3.isSelected$) '
'
if (iCheckBsx4.isS elected$) ',
*r}lnfffitl;
else
seltl$o";.r
r..
..
sc3:"Yes"; else sc3:"No";
if (i CheckBox6.i sSelectedQ) sc4:ttYes*' else
sc4:ttNott;
if
fi
CheckBox7. isS elected$)
;
sc5:"Yes"; else sc5:t'No";
if (iCheckBoxS.isSelected$) sc6:'Yest'; else sc6:"Nott; if(iTextField5 3 .getText$.length0 {
<:
0)
J0ptionPane.showMessageDialog(null, "Please Enter The 4th Passenger's Narnef');)
jlabel 1 00.setTex(iTable6.gethdodeO.gelYalueAt(0, a).toString0); ...... jLabelg 4. setText(i Table6,getModel$,gglValueA(0, 0).toString0)
iLabell7 case 4:
8.
;
setText(i-Table68"tlvlryd$,gqffdneA(0, 2).toStrine0);
jlabel l00.setTextdiTabtre6.getMode().getvalueA(0, a).toString0);
jLabelg 4. setTex(iTdblef.getModelfi getValueAt(O, 0).to String$) .
;
jLabell78. setTex(iTable6.getModel$. getValueA(O, 2).toString0); fi anl
amFti cketamt* 4*serv iceamt*goamt*re servati onamt*tatkal amt; j
TextFieldi
setTex(fi anlamt+" " ); ....... jTextField4 t .setTex(fianlamt+""); 9.
*o);"'"'
jLabell06'
'.1j?@!l)r.,,., '
.,:.:'ibry'?! .
, ,.,,;,,,,.,, .. , ',,;::;' .',..)bfgak;"' ','. .1'
,.,'tt,,
,
) j
Frame4. setVisible(true) ;
jFrame4.setSize(
I 4 25,7
50);
:
Ilrk-
&{mf,rffiry#tr#
Bld.i
Tm- 8:lf:{!
t,?
:r.l"AC Trd6
}&Ebtr:-
l:95?
&ce, -_ l
Pas*nger
$4.-r 2
llttailt
MrE
a**:' i
-r6E
qT!orE'
SEX
etga ?2
r&
fl. h
t&c
S*
I ldt*r
r.::i? &ft
Em
ffi-,s'fl#&s*
Ih,!!:- St4!l'r?
*lacfuie
Cr-T+SilvitCta1cRs il) AqilseyJn- 7:0233
IST*
of
Swi: Tu'Rs
T$d.SnosiRs I
A@'r
rtigor
ard
6Y)
i
t.
m
:lll:
an'ry' J
trxriit t il.ffi.c'lrtr*tefl
*lfsn ffra
B
ffiSHSWffi
hgrrlo Cs..TrbSnbChpr$s
JO
l*d*ievA*-
i
S* Toe*-
IIir*f@dToi*-
i#ut'p*; : !i!tut@-r?r+u
a
U..rEA-rritu
R+ko
rt'5ii &re' *: .g -I:.-_-_.___a}
d AtF i.Gd
kS-..Trip *ft, W
-1*tft$,g,..
&EPr-cf,e-ioikEil
fJllh€*Ppoo6oda
SBb
GOTRIPIS
Taiet-
Dileri6tGr:a{Totrt-
no-' fffi-B-*'*-i J-* L*--.**r k&t!F.A5e&@Sea4rdlk4rsArnaaq}l-re r*seqtas. rs} 6$S6i&}**+t:5c* s .*Jft irb F-{ait}&tg.ddth! HL; tu- ?+:Bt n fxra pwd s"tr ; s a 16. $e s.aim si?6 a&j: e et i;d1ei * r* ra ** re ie.r air ;aeels i"e .i*i& #3i ir i".itl i:ni* }*s*aqirudbqHiR'fCk;Ei?!Ab#tl****rqi$ a**"!oo*r4!i*iat'ai61a14rh*!r'tuu*-lis&'ealiifo*ft**-rt'1wr!eo*e, u.Bt ?ir.si*E&&{:+.b{relihet!*, o*J1mri&l
c+r*F
a
*.
Et.al,ilx.k
-u rEah *.-td
I
ON Make Payment BUTTON: private void jButtongActionPerformed(ava.awt.event,ActionEvent evt) { DefaultTableModel model3 :(DefaultTableModel)
j Table5 j
model3 . getDataVector$.rernoveAllElementsQ;
-
getModel0;
Table5.repaintQ;
((DefaultTableModel) Tables .getModel0). setRowCount(0); ..,
jTextFieldg4.setText{ model3 -getRowCoun{+" "1;
g.setEditable,{false) ;
jfextFie@ j
TextField40. setEditable(false)
;
',j.',jTextField4l.setEditable(f*lse); double sub,-mFDouble.parseDouble(i Te,1$el$?. getText0)
;
double dis-arrt=Double.prseDouble(iTex$iel#0 getTex$)
;
-
double grandrqqr.
Fkuble"pcrseDoubl Tweld+ '.
,
jfextfief{t!
:t,.
seffex(sub.,amt+
""
.*etre4&s , jTextr#td4i iettexd
, ;ra '
i
:1
.,
.
.,. i,
.,
*); "");
:1'1":'r.l:'
jFrame6. setSize( I 230, 665); jFrame6. setVi sible(ttoe);
this.dispose0;
);
l . getText0) ;
ffi k#r--*iP Processmg'. {Fleose
Woit}
I
---
ENT FSRM
D.r$- mldif,'?
&b!ot{:-
lz3{s678eol?i47.r
DisBtdr-
HanyDnE{rrrsa$
71ru?024
Gmdf(l*-
lffit arr
I
f{ic &I er*O (c*raErrr{t
I
j V|SA
$$rdrrrft*rda)
I rrs l;ffi
Abhinav . SaErErq.{tuEffitrg&
iPAYi hi.tedrit!BritlGuhoCaSffi
rrtfidi.r
j,i,riliri;d{ ytsA !Es@
t&tfiedir
kftdtn
d.r"FrbrcruaratrRnG.:ft+ilIGdf,{ardftk
crtr&f.
6FS.
&f
d.ts
I l*{."B$r-I*rrarm. ll8tia f 8{
)) catch(Exception
e)
{JoptionPane.showMessageDialog(null, "Error in connectivrty");)
finally{
trv{
Statement sfint
1
=onn.createStatement0;
String query:USELECT Expiry_Date from card_details where Card_no:tt+card_no*tt ; tt ; ResultSet rs 1 :stmtl .executeQuery(query);
if (rs1.nextfl){ String datee1ry. l.getString( 1 );
..
i(xda*e-equals(datee)) {
getCotnection(
YGO.sqlite");
A^YIvIENT where
.getTex$*";";
else{ J0ptionPane.showMessageDialog(rrull, "No such record found-");
))
catch(Exception
e)
{JoptionPane.showMessageDialog(null, "Error in
connectivi$");)
finally{
trv{ rs.close0; :,:F$,close$" . -.',
t
case " SBI" :jlabel 1 36.setEnabled(true);
jLabel3 21 . setEnabled(false);
jlabel I 0.setEnabled(false); ;b,reak;
case "fCICI"
jlabel I 0.setEnabled(tme);
jlabel3
jlabel
1
3
1
.
setEnabled(false)
;
6.setEnabled(false); ;break;
case "HDFC" j
2
jlabel32 l.setEnabled(true);
Label I 3 6.setEnabled(false);
jlabel I 0.setEnabled(false); ;break;
)else {J0ptionPane.showMessageDialog(null, "lnformation Is Worng Please Provide Correct Information! "); )
)
@NffiSffi
ffiNry
PNffi kcffi.TriP W
{{r;oflqrs@.,,
Verifieday ftlasterfard-
V|SA
Ssra*r*t-m*ry
Redirectiug to yotn bulCs webuite fo( 3D st$ile passrord authrntication Pleme Do l{ot Prcss STOP.BACK or REFRESII buttonor CTOSE &is window.
P ffiffiffiffiffi Verrtiedav ,t
Yfsf,
l :
!r t: -l
We understand your world
flr"rcrBank
&.*,,. 'WW
EntsYourSL SlqqpPIN I
Pkasc
auyw
3D
$ffit Thb
PIil in6c
Sp
iafumain *ifioot
Mere,hent
p*roriild b&m, to cotfta bc
ffiwi&
fu
pn
id€ntry for thb Por&"sc.
msfu-
l[aue: Go-Tripcau
Ilrte:
7*t4ltl7
Totel CiLarger 3292.5 Card ltumben 12345678901?3474 Persoael Message: 3D Seffire Authentication i\:ame: 3
I) $ecure PII[: :ta**** Submit i(----J
i
, Cancel
,
ON Submit BUTTON: private void jButton5ActionPerformed(iava.awt event.ActionEvent evt) { int pass:Integer.parselnt(iPasswordFieldl .getText();tl { Class.forName("org.sq lite. JDBC ");
con:DriverManager.getConnection('J dbc sqlite:cw. sqlite"); :
sknFcon.create StatementO; String query:"SELECT Shop-code FROM
cwrto WI{ERE
Card_nr"{jlabell 53.getText0*'r;rr; rs:sknt.€xecuteQuery(query);
if(rsnext()X iat codrrs.gotlnt{1);
if (pass:.ode) {int
av
l:lnteger.parselnfrLrrhr,ll
62.
getText0);
if (ilabe13 7.getText$.equals{'Sleeper.Ctass')) { try
{C
lass.forName('torg. sqlits.JDBC ");
Connection con:DriverManager.getConnectioa{'jdbc:sqlite:TRIP.sqlite"};
Sking sqF'Insert Into Passenger-Detail(passl-Name,pass2-Name,pass3-Name,pass4-Name,pass5-Name,pass6-Name,pas sl-Age,pass2-Age,pass3-Age,passd-Age, pass5-Age,pass6-A ge,
passl_Sex,pass2 Serqpass3_Serqpass4_Sex;pass5_Sex,pass6-,Seapassl:Sc,pass2_Sc,pass3_Sc,pass4 Sc,pass5_Sc,pass6_Sc"M0B,passl_id,pass2-ndpass3-r4pass4_idpassl i{_noBass2id_no,pass3 i d_no,pass4_id_no,train_name, train_no,pass_1sealpass_2sealpss,lsealpass_4sea! passJseat, pass_6sealtran_id) values Q,?r2,?,?,?,?,?,2,?,?n?,?,7,?,?,?,?,?,?,?,?J,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
pst-'con.preparestaternen(sql); pst.setString( [, pasl-name); pet.setstring(2, pas2-name); pst-setString(3, pas3_name); pslsetSlring(4, pas4_name} pslsetString(S, pasS_name); pst.setString(6, pas6_name); pst.setString(7, pasl_age); pslsetString(8, pasZ_age); pst.setString(9, pas3 age); pst setString( 1 0, pas4-age); pst.setString( l 1 ,pas5-age); pst-setString(12, pas6_age); p$t.setstring(13, pasl__ssn); pst.setString(14, pas2_sex); pst.setString(I 5, pas3_sex); pst.setString{16, pas4_sex); pst.setString(l 7, pas5 sex); pst.setSking( 1 8, pas6_sex); pst.setString( 1 9, "lt{o"}; pst.setString(20,'No");
pst.retString(21, 'No"); pst.setString(22, 'T.{o"); pst.setString(23, "}t{o"); pst.setSfing(24, "ll1o"}; pst.setString(25, jTextFieldSS.getText$); pst.setString(26, pasl_idt); pst.setString(Z7, pas2 idt);
pst.setString(2& pas3_idt); pst.setString(29, pas4_idt); pst.setString(30, pasl idtn); pst-setString(31, pas2jdtn); pst.setString(32, pas3 idtn); pst-setSking(33, pas4-idtn); pst.setString(34, train_name_ptate); pst.setString(35, train_number); pst.setString(36, Pass-l); pst.setString{37, Pass_2); pst.setSking(38, Pass_3); pst.setString(39, Pass_4); pst-setstring(40, Pass-5);
pst.setsting(41, Pass_6) pstsetSting{4} Trarrscation_idjay); pst.execute0; )catch(ExcePtion e) {JoptionPane-showMessageDialog(null,
e);
}
finally{
. ,:
try{ rs.closeQ;
'" )catctr(ExceSi@
pst.close0;
exl
ty{Class,furName("org.sqlite.JDBc"};,
:
Cqrneetion con:DriverManager.getC@sdos(5dbc:
sqlite:TR[P. sqlite");
String sql:"IN SERT INTO
PNR(TRAIN,NAME"TRAIN_NO,f s€c,* sec,CALSS"DATE,BOASDINS*POINT,R-ESERVATIO N-UPTO,QUOTATICKET-FARE Distance,Tran idDate*olbqoking) values (?,?,?,?'?'?,? J'?'?'?'?'2)" "
psFcon-prepareStaremen{sq}; pst.sEt$trilg(1, train-name3late); ps.setString(2, train-number}; pst.setS-tring(3, A,om;nune-Sa[,pst.set$tqldaitojmmg-sta] setSting{S, elass-of pas); pst.setSfing{6, date_oltravel);'pst.sct$tri4g(7r boardiag+oint-of} pst.setString(8,
upto_rewatioa_nf): pst setSf;ing(9, qu($a};:,pst' I0, total-far*-of11as); pst.setString(1tr, Distancein_km); pst.setString(12, Transmtioa.,id_pay) pst setSfiing{l3, Date-of-bokking-ticket);
: :
Ps.t.execut$;
...
)catch(Exception e){JOptionPane.showMessageDalog(null, "Error in connectivity");}
,
,
:,
finalllr{
:
try{ rs.closeQ; pst-close$;
)catch(Exception
e){i
)
try t Class.forNam{"org.sqlite.JDBC"); con:DriverManager. getConnection('Jdbc sqlite:TRlP sqlite") ; :
-
RffiE
]SN $HP
F$RM r
[ktroric*tmnalioa
Slip
I lrffiili0: rp,311y$1-t8{,,nAIo, l&i}I{tl[ ktrkriry @:
7ieltl{ a:trrrd
I
Tra}o&''u
hi..{C
D*fCf@
lkum:
[ros
l}::Snxerlraxi$&abEtsr
th#di'eo:e--t.1Dii
IrrF.h*;}}:..Sr
Ilo"l*1{
Lggr
"wtxeli,!!e Frfi{ srl€mSis
Nmc
ACi $er &
5.
l:
:rk
{$
ilh
B0olilgStat$:CracLl,lo5catNo
.{:61Ctaksd
.il -i+C{ae"FJ
ID CedTypci
tj
:
IDCcdNo
ffi he$
g
{',*
ry
r* "r {"'i*r $f f
fl.J+JF .. **, i'6 f g"f&1J.i${.;'f f "i .r.*'* '*..f *"**--*sa ''
THIS PROJECT
*Fd..'*. ._
IS
*,
.fl
*/
ABO{-ru TT{E DESIGNING THE RAILWAY
RESERVATION DATABASE SYSTEM USING Sqlite 3.03, MySql 5.0 and Netbeans ?.3. THIS PROJECT PRESENTS AN IN\{ESTIGATIYE 1IIEW OF PRESENT RAILWAYS RESERVATION SYSTEM INCLDING THE HISTORY OF RAILWAYS AND DETAILS OF NETWORKTOPOLOGY OF
PRS. PRESENT SYSTEM OF INDIAN RAITWAYS RESERVATTON SYSTEM IS HAVING SOME SH0RTC0I\{{NG oY.-Tryq" I rRIED ro WORK ON THAT TO ELIMINATE
I
TI#
DISADYANTAGES'
A
DATABASE FOR PASSENGEBS AryD TRAXNS AND CONNECTED TI{ESE TWO TABLES FROM THE CUSTOM MADE DATA ENTRY FORM BI,ILT IN NETBEANS IDE ?.3-.. TIIERE 1RE OPTIONS ,'FOR NEw ENTRY TgrilCfi uruLL BE STORED IN IvIySql 5.0 DATABASE
MADE
AND RETRTEYED FROM DATABASE IN FUTURE. THIS PROJECT $TAS A SMALL ATTEMPT TO MAKE TT{E RAILWAYS RESERVATIOhI DATABASE STYSTEM USING Sqlite, MySql AND Netbeans ?.3. I HAVE TALKED WITH SOME OF RAILYWAYS OFFICERS ABO{.ru THE FEATURES AND SHORTCOMING OFPRESENT RAILWAY
RESERVATION SYSTEM AFTER
THE
RESERCH
WITH
TT{E
AllD O-II#R SOURCE I ABLE TO_FO{"IND OU-r SOME OF THE MATOR FAC'TS REGABDTNG THE RESERVATION SYSTEI\d AND TRTED TO ELIMINATE THE SHORTCOMTNG OF'
ASSOCIATED PEOPLE
SYSTEM.
IN THE LAST { CONCLI-TDE THAT INDIAN RAILWAY TS HAY{NG A STRONG IT INFRASTRUCTURE AND A WELL EQUIPPED RAILWAY RESERYATION SYSTEM BU-T THERE IS SOME SHORTCOMING IN THE SYSTEM ON WHICH I TRIED TO WORK ON IT AND SUCCFULLY COMFLETED MY PROJECT.
MOTIVATIOI{
SCO
Apart from research
evaluation this spirit.
SYfiTHM RHQUIRMMHNTS svsT[M
i::rtr;l:','i",'
fORH
1
WARE IS GTYtrN
GBRAM ORHIGHtrR
SOTTWARE COITIFIGTJRATION: Net Beans IDE 7.3
TI{E BIBLIOGRAPIIY CONTAINS REFERENCES TO ALL THE DOCTIMENTS THAT WERE USED TO DE $F THE SOFTWARE. '.t:.
, ::
'
...::;:.t:1.,; .:.. ..:, ...,:,...
,l:
t-r,. :.:.
.:a::
::,.L,-.'
tx,.r
:l
PRAcrlcEs
:
' i
:.
TExrBoo*$I4s$xt-xl)
.,:ta::::::,:.
4. 5. 6.
: '..
BOOKS
i...
,
:.
WWW.IPCBSE.COM WIVW.ICBSE'COM _ WWW.CBSE.F{ICJN