Está en la página 1de 76

et

\l

,w
e*q

:ii 13

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.

TNTERNAL EXAMINER (STGNATURE)

EXTERNAL EXAMINER (SIGNATURE)

(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.

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

:: :. ,..,i, . ,

..,

.:.:',"

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
has an account

ryE h is essentially the 'view level' for the custourer. The account contains comprehensive information of the user entered

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,

Fgss{. Searnhrrain

llcrr*a

roioa"oa* \ / md .l' boot tir*cr h\0-0/ \-/

--f*--*"--

[::T

3.2J

Ls-l I DSD

i$rlrr{dEitr-

B+ck pir:ket

s.:

iAdminr:uetor.i

I\SERTTFD.dTE,DELETT

fa{{sE

a[T-{rts{H-*

r*"*

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

, ,F,,,' ird A/c


l. Cw no
1. Cousfiner
..1

s.First Class 6.,,Secound A/c

t. Caro-&tai1s
.PAYMENT

Notes:
i- For each customer

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.

/ user, there

is a file named <username> of the user which stores

the

PNR number of all

ii. For each train, there are 2 tables which describe the train,

a. <train>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.cllr<train>n 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:quidd',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 <user> 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,
-,.1;,1,,,','
r'ir::

,'.. i.,.
.

.:, 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 <trainne>-<date> describing the current
reseryations that have been made in the train <trainno> on date <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-

Ile.E0i$qrrjhbt

i,rt6;

,.kkdEr

l.- {efs.,,]

l,-ry{''

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*Eq,-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$

[il""*
CotrtGtltl
lcou"n*o

f.hch

'r*-*u**.o'
ltilc
PlN Flil6[-HEtr FEa-'&dC ?.qd!-ftu!c

,r*ar.tx*
trpc
.T116B
saacllAft

h i
iI I
i

tl!*re*

IharEV& tffi rra


rna

RiEEq.&a,

el

I
o

.i
;ff
,.-

lr i
]

HEHti
T'ETIA*

l3

o o

ia

it
ia
{

FEa_l&E F.s6-ltm.
p.!E6-lkErc

Y'rcfiR,

c
o o
a o

*{
fia ,rg lra uL Ea
ara

! t
o

:'lji

,$

.iit

i6

are$a YAMfiI
!.IB6E
T'IEGrE
D'TEEA

I
o o
j,fr-

lt
p
ir* ]

,.Efrlar
".EEa_&. eGd-rgr
p.r6_AgE

,.
,ia

c s

ili
:,.

'#

.TE6B
!.TE6B
p.s5-agE

s
o
a o

.r,/'l

jtr
;

s
e
o

irt
ara

{t
;4

ir2

IIIEE&

rr
ir4 ir5

pc,._Sa

Ff-SE

;r: l

irr

is
Irs
iIE

pd_SE tld_SE F6-la


p!r6_So.

rrt <l*t
ct{t*
(r.E&
CHIA

claia

tt
til
}lt
ra

$ iii)
.',{ ,]1 ,in iH

e
g
o
o
G

!
o o

Hat

I
s
o

L *t il

s
o

it i:i

,s
'i$
,,i$

'4

irr iB

',.!!fjs( Fce-jsc !dlc

otat
C}IIB cHrtr

x
It

e o
0 o

F.SJ.
frs6*Sc

a
o n

l"
rr

(I#ln
ITTHB,

x
nd :d r, ad
Br*

r*B
Frd-U

t
o s
E

ir t:

p.drld

ryIEHIE umaHil*

6 c
o o

F.d:il
Fat_il
pro4'-i(tn

YtHtfllft
Y'TMFH&

I
o
o
T

*AX!*r*

I
o
0

frsl*ittso

rrxllAx
u[80$4.

Fd-it-se

ilI rd *il
nat
!.*

rtHilAR

o 0
E B

t*r-amr
n*rao

rlrffiffx
}IIG6B

a
0

erqa*
pq-X fgrE-*!* prrq-fd **E
i'*r

RX.s

Yil8cfrf, YTM$B

o 6
g 4

firt fil
,tr* Ed

YItrI{Ift
st*trctB
ilfr8EltAf,
STRHAR

s
n

r**
rra sd Cdmcd
B,

0
o
B

s
0 o o

UTK$T
uAm{af,

tb*

hrLkl
TIPG

BotltN tkl
r Fi]

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&

le'dtrdrc

rr*.*f*fg* rFG
!5IEER

tr"b.f**.*--.**-51o} ,o
pF l-iatE

rao;!1,

g.6.ffY*r 1fr9m,
ac*

fti*sv*.1,

it i. l:
ir

FGLfkrc p-*-fap
FEI;EAG
1l.d_S6

fr,El{.8 r,a&clsn
DIIEEM
STTCEA

:!. ! i:i

.'EI-SC

li l!

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 Co&ilrc61 I Gbaffrdae


{}

B&{TdgsE L
TtaP!

lca*|rnrD

I{m.

tbrl**

DrhilVef,r

is h I lr ir I i*at'eruilo i_._, , ,^-,.-,----tkE_


,.

rcr ee AED ,Et }}?.

DtrEEn xr68. xIEEn t{rgm

s o o o

i6 66 GE f5

fritr ryXlI

o o o

ij

r,

Nn*t*t-

ffitr'l

CODE REGARDING PROJECT:

IMPORTANT HEADER FILES:

imprt

javaxsyi

r r.t:,talr it lil,!,;..:!,:.,.,

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

lii.{l.Fj tx,l

fop

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"
I

format

=new

Imagelcon(imagedata);

jLabel} .setlcon(formatl);
String mob:rs.getString(a); jLabeDS,setText(mob); jLabel2T.setText(user);
jFrame2.setSize(
I

398, 533);

jFrame2.setVisibHtue);
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
,#Sr-

ffi:'nl$#,.4'14(!,*.

!|:r\t ,ft+#.7*f9"gb;\# +;rhid!S!ia*eF'


r:i

, 1+i.!:+r.

4ji

G\|:| i/

ri'!;.i:*

rej+il":iia

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-

fdritu Vilnhla Nol. AFS-UmgE


{:Ol3-301"1}

Ytc-

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


:

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

pass:r " +j TextField3. getText$.to

String(p" where User"'+j Label}T . getText$.to Sf ing$+ "' ; " ;


sffitt. executeUadate(query 1 );

J0ptionPane.showMesiageDialog(nulf "Updated"
+;:ti,.1!l:l*

);

catch(Exception

e)

J0ptionP'ane.

null, "Error in table

..*
,.i1.: :..rll

!:t::1*

)catch@xce,ption eX

l
");) )

essageDialog( ]else,{

found.");

null, "Error in

SEARCH FORM
&,0**.ThiP *A ujdd.tii.
ffi

jMl

S*dr

R.id

qWryWW J-{1Try?F'*4Y4q
43_$q i-ry/i:d: 0:'.,,fu.b.#& qt .

. t I ratrr J|arcn
(5* 4rTqd Effl ffiIr*. lEd&{l*
FRSg *ai*st&4r rsd

f *'
I

srffi+r& ret&

r*

ffitisff

&Y5

$.,"

qE$@*

_,1:,is

qgitr'

&m*ipt*. ffi tu
4i':+

Ylri;.i;
'krE*r&t*CtPsHrsdRrgr* Eai

!'"r'B

1uro'ro'u

irfsi._1s.

Search
sri-ffi.*l
JEfnrac
AEa*-

.-,

i*l
9-l{L:0f l r
,-- _

fles '

:
lc ..CC - fl

i+i - **-*{ n &ej eB j:ri'r


ClH.

i.@a@,*-f, -dt*l
,r5r

!5!t

Cstrd
Gldc!

tr I'
R J]

--

.F

-.urF

Ill*I11r-

,s*

ffislmFffi rs" ffiffi

Train Soarch
Fi.*r$* 1ii*
m.*{r,{4r rRx
J*
$3!

i
tl

Fdle-S tffi &rtu-tde 1*i*i;tj*]%XB*u 1&71 _?!sw.j&

JE -t&

qPs lxqw&?tq jJft*F ** JMes rJSa ,|ffiw &4 ft"ffi* *i*i


jffiEA J@

!&i

& a

$tA!'ryfli{E. ry_ryq
ffi*dj
ffiBdaoad

i6l

t' t.

.L,

ffieffiEdll ffiffi*J @eM]

&348 6* 4;

1*i{ ir13 ,lta

C*&r:6 sil$i&itr{dls &B1BI]:E EiTF l:1 5 131 I trlt 7 r 131 3l! t

''

1:?i! PBt&Aa+|} iffi


l$Et$

s*ffis

ffi

&Mr#]

AiX

1,"
.1.

ffiElM*"

n?,

ON SUBMIT BUTTON:
private void jButtonll"ActionPerformed(iava.awt.event.ActionEvent evt) {
j

RadioButtort l setEnabled(false);
.

jRadioButton2. setEnabled(false)
j

RadioButton3 . setE nab

Ie

d( false) ;

j
j j

RadioButton4. setEnabled(false); RadioButton5. setEnabled(fal


se) ; se) ;

RadioBufion6. setEnabled(fal

RadioButon7. setEnabled(false);

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

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

8.eetT!4tq);

switch (iComboBox I 0.getSelectedlndex())


case

t*go-parselnt(JoptionPane.showlnputDialog("Please Enter Nurnber Of Passenger Seat Required "+:: Max 6 ")); . if(seaf=={}

I,r*u*k

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

setEnabl ed(true);

j TextF ield5 6. j

setEnabled(true) ;

ComboBox

setEnabled(kue) jFrame2. setSize( I 400, 795 );

jFrame2.setVisible(true); )
else

if (seat4)

jComboBox3

1400,795);

ComboBox 1 -setEnabled(true);
j j

TextField2. setEnabled(true) ;
7
-

TextF ield5

setEnabled(true);
.

jComboBox3 setEnabted(true);
j

TextField5 2-setEnabled(tme)
8.

; ;

jTextF ield5
.l

setEnabled(true)
-

j C omboBqx4

setEnabled(rue)

; ;

jTexrf idd$3"ss,tE$abled(true)
,'"
. 'r. l.

, jTextFieldsg.s. abld.{mrc);
79s);

jComboB ;setEnabled(true)iFry,-ryY,-(1400,
iFrame2. setVisibl e(true); )

jTextFielcZ. setenaUled(true)
j

;
;

TextFi eld5 8. setEnabl ed(true)

jComboBox4. setEnabled(true);
j j

TextF ield5

setEnabled(true) ;

TextF ield5 9. setEnabled(true) ;

jComboBox7.setEnabled(true)jFrame2.setSize( jFrame2.setVisible(true); )
else

I 4 A0, 7

95);

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 "));) ;break; case2:seat=Integer-,parselnt(JoptionParr,e-.shoylnputDialog("Please (,lrrt tr4* 4 ")); Enter Number Of Passenger Seat Required

Enter

:.:

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

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);
1
.

j CornboBox j

setEnabled(true);
;

Texff i eldZ. setEnabled(true)

jCom

S,setEnabled(true)

TextF ield73 . setEnabled(true) ;


11
.

j C omboBox j
j

setEnabled(true) ;
;

TextFietdT4. setEnabled(true)

ComboBox

I 3 . setEnabled(true) ;

ed(true);

m*);

ii"u'"]1,ffi-

else

if (

iGodl

.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

TextF ield74. setEnabled(true) ;


1

ComboBox
j

.setEnabled(rue) ; setEnabled(true);

TextFieldT

ComboB oxJ4.setEnabldtrue) ;

Not More Than 4

Enter

"Please Enter
-4

")); )

$ ffiE, ffircRM
&*mlo
FreAr@:, .ital 6A$
l

H
ttf4b
X

o-*

m!H,@

* *

nrffi

":js",g

fr:'!+

:F}tE

l-t*t&*

nlry8f!*{r{

eil

drm

sr*".i

ltui
An&iih*

i ae"i so i
:r +e
:1*_g

sa*caa,",i

g#JeL;--*gS***L

Baihysiefrsd

hd0thrld

Ieolllffi
x.at
1rr.ldrI0r3

l.
5.

Aso&

,S:._d
:,;::.:" '.
:: |

--I

,r

il

, , fi,& ri# fs

,-

ad;erE\ sEistr i rER*s 1( l\+iost rdx"f

*-.

r$fr?s 5i :m;$)

0r,;rJfu.r..f,

%f.
(?1',,, v

@ CtrrrC" *

EEIE *

SlffiG.*Iti.tu

nltF

rrd.

B ffiE
hC-..Trip
W
,or+
a i.rt*E;r...

RrcRM
t : ll: }il :'!1irj {ialitii3ti a'.I':r'$,\aT.i:
!E

ilti

!te*

ns, ii.:lRE\

-3r:3't

Sr"'!f}

ilaltPa..^reW^4

i.+j*=,".==.:g-:*1.:

-Sj :f:j
---

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:<esil4 6 aa:ari:il'!:.*?'t !'jlt Jt*'

\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;

ir};14 $ji !:

riai*

ilt i te 16"

ls:t

\r!d

-i '

99:{91-'091

@,," llrElffi.-.
crylr. i

:x:

EEI

.,:'-l:

*]::::r1TT *_T y*

kC-..Trip *+ a!a,at*.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!
Fcjtl

Ib*-

t:13rS

J*o

NC:I'

9a*5* aui*i x{t r1i*rm*i s lalq * ser <5ois :: rst 5ct r*i
l

],ir &il eesan ,i:i,:bl

*ji ir *siti

ial( ra !sr.

enr{

FsxiSsl<aiililsi*'-t:'

99.frgfj'qi.

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.

\
I I

B*t

Rr?en

;:*,m: ffi **,Se# & *,$ A*"*"rm:fu C+r!h t :{*l-m.C.-Tt}'t*ia rf ryB lrsta

g,

:EEXT *"

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)
8.

iLabell7
case 4:

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

setTex(fi anlamt+" " ); ....... jTextField4 t .setTex(fianlamt+"");


9.

TextFieldi

jLabell06'

*o);"'"'

'.1j?@!l)r.,,., '
, ,.,,;,,,,.,, .. , ',,;::;' .',..)bfgak;"' ','.
.1'

,.,'tt,,

.,:.:'ibry'?! .

)
j

Frame4. setVisible(true) ;
I 4 25,7

jFrame4.setSize(

50);

&{mf,rffiry#tr#
:r.l"AC

Ilrk-

Bld.i

t,?

Tm- 8:lf:{!

Trd6

}&Ebtr:-

l:95?

&ce, -_ l

Pas*nger

llttailt
-r6E
SEX

$4. -r
2

MrE

qT!orE'
r&

a**:' i&#

etga
?2

I ldt*r

S*

t&c

fl. h

ffi-,s'fl#&s*

Em

r.::i? &ft

Ih,!!:- St4!l'r?

*lacfuie

Cr-T+SilvitCta1cRs il)
AqilseyJn- 7:0233

of

Swi: Tu'Rs
rtigor

T$d.SnosiRs
I

IST*

A@'r
t.

ard

6Y)

m
trxriit t il.ffi.c'lrtr*tefl *lfsn ffra

:lll:

an'ry'
J

B
hgrrlo

ffiSHSWffi
Cs..TrbSnbChpr$s
JO

l*d*ievA*-

S* Toe*-

IIir*f@dToi*-

i#ut'p*; :
!i!tut@-r?r+u
a

R+ko

rt'5ii &re' *: .g -I:.-_-_.___a}

U..rEA-rritu

d AtF i.Gd

kS-..Trip *ft,
W
-1*tft$,g,..
&EPr-cf,e-ioikEil

fJllh*Ppoo6oda

GOTRIPIS

SBb

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

*.

Et.al,ilx.k

-u rEah *.-td

ON Make Payment BUTTON:


private void jButtongActionPerformed(ava.awt.event,ActionEvent evt) { DefaultTableModel model3 :(DefaultTableModel)
model3 . getDataVector$.rernoveAllElementsQ;
j Table5
j
-

getModel0;

Table5.repaintQ;

((DefaultTableModel) Tables .getModel0). setRowCount(0);


..,

jTextFieldg4.setText{ model3 -getRowCoun{+" "1;

jfextFie@
j

g.setEditable,{false) ;
;

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+
, '. :t,.

l . getText0) ;

jfextfief{t!

seffex(sub.,amt+

""

);

, ;ra
'
i

.*etre4&s , jTextr#td4i iettexd


:1 ., . .,. i, .,

*);
"");

:1'1":'r.l:'

jFrame6. setSize( I 230, 665); jFrame6. setVi sible(ttoe);

this.dispose0;

ffi
k#r--*iP
Processmg'.
{Fleose

Woit}

---

ENT FSRM

D.r$- mldif,'?

&b!ot{:DisBtdr-

lz3{s678eol?i47.r
HanyDnE{rrrsa$

lffit
arr

j V|SA

Gmdf(l*-

71ru?024

f{ic &I er*O (c*raErrr{t


. SaErErq.{tuEffitrg&

I rrs l;ffi

$$rdrrrft*rda)

Abhinav

iPAYi
hi.tedrit!BritlGuhoCaSffi t&tfiedir
j,i,riliri;d{ ytsA !Es@

rrtfidi.r

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

=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

setEnabled(false)

jlabel

6.setEnabled(false); ;break;

case "HDFC"
j

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

Yfsf,

,t
l
:

We understand your world

!r t:
-l

EntsYourSL SlqqpPIN
I

flr"rcrBank

&.*,,. 'WW
Sp
p*roriild b&m, to cotfta
bc

Pkasc

auyw

3D

$ffit
Thb

PIil in6c

pn

idntry for thb Por&"sc.

iafumain *ifioot

ffiwi&

fu

msfu-

Mere,hent

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

, 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);

. ,: '"
)catctr(ExceSi@

finally{

try{ rs.closeQ;
pst.close0;

exl

ty{Class,furName("org.sqlite.JDBc"};,

Cqrneetion con:DriverManager.getC@sdos(5dbc: String sql:"IN SERT INTO

sqlite:TR[P. sqlite");

PNR(TRAIN,NAME"TRAIN_NO,f sc,* 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);

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);

pst.setSfing{6, date_oltravel);'pst.sct$tri4g(7r boardiag+oint-of} pst.setString(8,

: :

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
r

]SN $HP

F$RM
[ktroric*tmnalioa
Slip

I lrffiili0: rp,311y$1-t8{,,nAIo, l&i}I{tl[ ktrkriry


@:

hi..{C

Tra}o&''u
D*fCf@

l}::Snxerlraxi$&abEtsr

7ieltl{
a:trrrd

lkum:

Ilo"l*1{

[ros

th#di'eo:e--t.1Dii

IrrF.h*;}}:..Sr

Lggr
:

tj

"wtxeli,!!e Frfi{ srlmSis

ffi he$

Nmc

ACi $er
& l: {$
:rk

B0olilgStat$:CracLl,lo5catNo

ID CedTypci

IDCcdNo

.{:61Ctaksd

ilh

.il -i+C{ae"FJ

5.

fl .. **, i'6 f .J+JF g"f&1J.i${.;'f f "i .r.*'* '*..f *"**--*sa


'' *Fd..'*. ._

{',*

r* "r {"'i*r $f f
*,

ry

.fl

*/

THIS PROJECT

IS

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

TI#

DISADYANTAGES'

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


ASSOCIATED PEOPLE

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'
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
i::rtr;l:','i",'

svsT[M

fORH

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

BOOKS
:l

: '.. ' i
:.

tx,.r

::,.L,-.'

i...

PRAcrlcEs
.,:ta::::::,:.

TExrBoo*$I4s$xt-xl)

4. 5. 6.

:.

WWW.IPCBSE.COM WIVW.ICBSE'COM _ WWW.CBSE.F{ICJN

También podría gustarte