Vous êtes sur la page 1sur 97

Computerization of services in Hotels and Hotel management-A Comparative

study of public sector and private sector Hotels in Himachal Pradesh


Submitted to the department of Computer Applications of
VALLABH GOVT COLLEGE MA!" #H$%$&
for the partial fulfillment of pro'ect for Bachelor of Computer Applications$
2008-0
(nder the super)ision of* Submitted b+*
Mr$ Vi'a+ Tha,ur Sourabh Bhard-a'.
/oll o$*0BC"""012034


C!"#$%$CA#!-&

"t is certified that pro'ect report Computerization of services in
Hotels and Hotel 'anagement-A Comparative study of public and
Private sector Hotels in Himachal Pradesh
Submitted b+ Sourabh. /oll o$BC"""05112034 in partial fulfillment
of the re6uirement of !e7ree of BCA. embodies ori7inal -or, and
has been done under m+ super)ision
!ated* 888888$$5119$ Si7n of Guide

C!"#$%$CA#!-$$
The pro'ect report entitled Computerization of services in
Hotels and Hotel 'anagement-A Comparative study of public and
Private sector Hotels in Himachal Pradesh
Submitted to BCA !epartment of VALLABH GOVT$ COLLEGE MA!" #H$%$& in
practical fulfillment of the re6uirement for the de7ree of B$C$A$ :rom Himachal
%radesh (ni)ersit+$
" declare that pro'ect report Computerization of services in
Hotels and Hotel 'anagement-A Comparative study of public and
Private sector Hotels in Himachal Pradesh is m+ ori7inal -or,$
!ated*888888$$ 5119$ Si7n of Candidate

AC()*+,!-.!'!)#
" e;tend m+ sincerest 7ratitude to m+ respected teacher Mr$ V"<A= THA>(/
under -hose super)ision and direction this pro'ect has been underta,en$ He is the
7uidin7 force and prime inspiration to lift me from the initiali?ation state to the
successful completion of the pro'ect$ His friendl+ 7uidance and discussions o)er the
comple;ities of a real time pro'ect ha)e in)o,ed a deep thou7ht in me$
(nderta,in7 a pro'ect such as this places an e6ual if not 7reater pressure on
friends and famil+ members closest to me$ Than,s to all those -ho helped me in
one0-a+ or other. and to all. -hose names 7o unmentioned$
/ourabh 0hard1a2




P"!%AC!
The entitled pro'ect Computerization of services in Hotels and Hotel
'anagement-A Comparative study of public and private sector Hotels in
Himachal Pradesh is made ,eepin7 in mind all the aspects of the hotels$ B+ all the
aspects " mean. it -ill be capable of doin7 all the necessar+ operations@functions
that are done in an+ Hotel for e;ample0reser)ation of the customer. boo,in7 of the
customer .clearin7 the Guest :olio of the customer etc$ Since all the -or, that is to
be done b+ this soft-are can also be done manuall+. but this consumes time and
labour$ So this soft-are -ill be a relief to those -ho ha)e to do all this -or,
manuall+$ The ,no-led7e of computers and pro7rammin7 has become a basic s,ill
needed to sur)i)e in present information based on societ+$
The moti)e to ma,e this pro'ect is to ma,e such ,ind of soft-are -hich is )er+
eas+ to use$ There -ill not be need of an+ trainin7 and the person -ho does not
ha)e much ,no-led7e of computers can also use this $Throu7h this pro'ect the
details of the customers that )isit in the hotel can be retrie)ed if necessar+$ All the
records of the customers -ill be ,ept for further en6uiries$

/ourabh 0hard1a2



#entative Chapter Plan
Chapter & $ntroduction 3 Conceptual %rame1or4
#4$4& "ntroduction$
#4$5& Concept of Mana7ement and Ser)ices$
#4$A& Concept of Hotel Mana7ement$
#4$3& Concept of Mechani?ation. Automation and Computeri?ation$
#4$B& Computeri?ation of ser)ices pro)ided b+ Hotels and Hotel
Mana7ement$
Chapter 2 )eed or "ationale5 *b2ectives and "esearch 'ethodology
Chapter 6 Profile of Public and Private Hotels
Chapter 7 Analysis5 -esign and #esting
Chapter 8 /ummary9Conclusion
Chapter : Anne;ure
Chapter < 0ibliography
Chapter--&
$ntroduction 3 Conceptual %rame1or4
=&>&? $ntroduction@-
The pro'ect Computeri?ation of ser)ices in Hotels and Hotel
Mana7ementC is desi7ned once and can be updated man+ times. so the
burden of application maintenance is short listed b+ all the 7eneral 7uidelines$
The main tas, ahead is to see all the thin7s -hether the+ are runnin7
smoothl+ or not. this soft-are -ill be capable of doin7 or performin7 follo-in7
tas,s*0
4$ /eser)ation$
5$ /e7istration$
A$ Billin7@Clearance of Guest :olio$
3$ Chec,out$
This soft-are -ill be de)eloped ,eepin7 in mind the )arious aspects of
hotels in public sector as -ell as in pri)ate sector$ This soft-are is intended to
be de)eloped for !elu;e Class @ Super0!elu;e Class Hotels$ A Comparison
-ill be done of !elu;e Class Hotels in public sector and in pri)ate sector and
then the resultant @ desired soft-are -ill be de)eloped$
MS0Access database mana7ement s+stem -ill be used as Bac,endC
-hich -ill be capable of recordin7 information and hi7h le)el lan7ua7e <a)aC
-ill ser)e as :rontendC for the soft-are$ The database -ill be capable of
doin7 follo-in7 operations*
4$ >eepin7 records of )arious customers that )isit in the hotel$
5$ >eepin7 records of )arious items that are ser)ed to the customers$
A$ >eepin7 records of customerDs Chec,0in@Chec,0out timin7s$
=&>2? Concept of 'anagement and /ervices@-
Hospitality /ervices@-
Our hospitalit+ mana7ement di)ision offers a full menu of ser)ices
encompassin7 all aspects of operations in the hospitalit+ industr+$ :rom pre0openin7
plannin7 and mar,etin7 to da+ to da+ operation and asset repositionin7. -e offer the
fle;ibilit+ and ease -here +ou need us. -hen +ou need us$
Ee tac,le e)er+ pro'ect -ith a holistic approach. ta,in7 into consideration
e)er+ element that -ould contribute to the success of the pro'ect. includin7 but no
limited to. mar,et demand d+namics. business mi;. competition. mana7ement.
occupanc+ trends. 7o)ernment support. capital costs and fundin7 opportunities$ Out
team of industr+ specialists is e;perienced in anal+?in7 a -ide ran7e of hospitalit+
de)elopments and has been acti)el+ in)ol)ed in pro'ects located throu7hout the
Middle East. Asia and Africa$
!ependin7 on each pro'ectFs life0c+cle sta7e. our Strate7+ Team can also
pro)ide assistance in preparin7 start0up plannin7. mar,et entr+ strate7ies. and
mar,etin7 pro7ram or e;it strate7ies$
"eal !state Consultancy@-
As a result of the sur7e in in)estment capital throu7hout the Middle East. the
real estate mar,et has been sub'ect to intense de)elopment pressure -ith pri)ate
indi)iduals. ma'or corporate and 7o)ernment a7encies all acti)e in the mar,et$ Man+
clients ha)e sou7ht our e;pert ad)ice in understandin7 current mar,et d+namics in
the )arious re7ional economies in order to 7uide their in)estment acti)ities. -hilst
others ha)e sou7ht input on indi)idual pro'ects. either see,in7 our input on proposed
de)elopment concepts or identif+in7 best0use scenarios for specific land plots$
These t+picall+ lead to the preparation of detailed financial forecasts and
subse6uentl+ to the raisin7 of pro'ect finance -here our speciali?ed Corporate
:inance team is able to add si7nificant )alue to the deal placement process$
The real estate assi7nments -e ha)e conducted ha)e encompassed a -ide
ran7e of client 7roups include the follo-in7*
%ri)ate :unds and :amil+ Trust
"n)estment Houses
%ri)ate Sector Corporate
!e)elopers
Performance 'anagement /ervices@-
%erformance mana7ement includes acti)ities to ensure that 7oals are
consistentl+ bein7 met in an effecti)e and efficient manner$ %erformance
mana7ement can focus on performance of the or7ani?ation. a department.
processes to build a product or ser)ice. emplo+ees. etc$ "nformation in this topic -ill
7i)e +ou some sense of the o)erall acti)ities in)ol)ed in or7ani?ational performance
mana7ement$ Then +ou mi7ht enhance +our understandin7 b+ re)ie-in7 closel+
related librar+ topics referenced from the section Ee proud our sel)es to be a locall+
started compan+ and therefore ha)e a comprehensi)e local mar,et ,no-led7e.
-hich is ,e+ to reducin7 ris,$ Our /eal Estate and Hospitalit+ Consultanc+ team
re7ularl+ assists clients in the ma;imi?ation of their asset performance throu7h the
pro)ision of a ran7e of tailored ser)ices*
Contract e7otiation and Compliance
Operational Audits
Capital E;penditure /e)ie-s
Sales and Mar,etin7 /e)ie-s
/ervices ,istings@-
:easibilit+ and Valuation Studies
!ue !ili7ence and Appraisals
:easibilit+ Anal+sis and Business %lannin7
Strate7ic %lannin7. and "mpact Studies
Mar,et /esearch
Site Selection and Anal+sis
Hotels and :GB !esi7n and !e)elopment
Strate7ic %lannin7@ /e0Conceptin7 and /epositionin7
Operational /e)ie-s. Operational Anal+sis and S+stems "mplementation
Client /epresentation and Asset Mana7ement
:inancial Consultin7 and O-nership structure
Total Cost Mana7ement Critical %ath Method
Schedulin7
E;ecuti)e Search Ser)ices and Emplo+ee !e)elopment %ro7ram
=&>6? Concept of Hotel 'anagement@-
-efinition of Hotel@-
Hotel or inn is defined b+ British la-s as a place -here a bonafide
tra)eler can recei)e food and shelter. pro)ided he is in a position to pa+ for it
and in a fit condition to be recei)edC$ A hotel must pro)ided food shelter to
tra)eler on pa+ments and ha)e the ri7ht to refuse it if the tra)eler is drun,.
disorderl+ ,ept or is not in position to pa+ for the ser)ices$
The industr+ is also ,no-n as hospitalit+ industr+ the main purpose of
the industr+ is to pro)ide the 7uestDs 6ualit+ ser)ice and ma,e him feel at
home$
#ourism and Hotel $ndustry@-
Tourism is the fastest 7ro-in7 and second lar7est industr+ of the -orld
and has tremendous potentialit+ for carr+in7 forei7n e;chan7e$ The number of
the forei7n tourists )isitin7 "ndia is merel+ 1$A1H of the total -orld tourist
traffic$ Besides promotin7 international understandin7 it helps the national
econom+ and raises the standards of li)in7 of the people$
"t has been 7enuinel+ said if there are no hotels there is no tourism$
The hotel industr+ is an essential part of tourism de)elopment and )ice )ersa$
The hotel industr+ depends upon the demand for different t+pes of
accommodations. a)ailabilit+ of suitable enfranchise and ser)ices and the
econom+ feasibilit+ of the de)elopments$ The concept of modern hotel
business in "ndia started late compared to the bold business else-here in
Europe and America$ E)er+ hotel small or lar7e has is o-n special
atmosphere and ambience$
Tourism is the -a+ in -hich all of us can fa)or the m+steries. plunder
the un,no-n depths. ac6uire understandin7 and e;perience the -orld in its
fullness$
Mainl+ there are four sections in a hotel$ These are*
1 Front Office
2 House-Keeping
3 F & B Production
4 F & B Service
&> %ront *ffice@ -
The :ront Office is referred to as a brain of the modern hotels$ To the
7uest. the mana7ers are lar7el+ represented b+ the front office and the
unseen head -ill be 'ud7ed fa)orabl+ or other-ise b+ the 7uest treatment
there bein7 the ner)e center of the modern hotel$ The front office staff should
be ,ept a-are of -hat is happenin7 at )irtuall+ e)er+ le)el of hotel structure$
The front office can also be referred as the ner)e center of an+ hotel
operations. lar7er establishments ha)e a front office or7ani?ation in a hotel
or7ani?ation in a lar7er hotel usuall+ includes the front des,. the uniformed
ser)ice and reser)ation$
The front office staff has direct contact -ith the staff$ The members
handle reser)ation 7reet 7uest. re7ister ne- 7uest. handle ,e+. handles
incomin7 and out7oin7 mails. ta,e messa7es for 7uest. pro)ide information.
listen to complaints and handles chec, in and chec, out procedures$
2> House 4eeping@ -
The house ,eepin7 department an+ hotel is responsible for the
cleanliness. maintenance and aesthetic up,eeps of the hotel$ "t is an
e;tension of basic home ,eepin7 multiplied into commercial proportions$ The
hotelDs main profit is on the sale of the room. food and be)era7e and other
minor operations ser)ices such as laundr+ etc$ "n other -ords lar7est mar7in
of profit comes from sales$ A 7ood operation ensures optimal room sales to
brin7 in the ma;imum profit$ To ma,e a room appealin7 to a 7uest is the fast
of house,eepin7. -hich has to ensure the basic human needs of comfort and
securit+$
6> %ood and 0everage Production@-
The caterin7 industr+ is a combination of production and ser)ice. -hich
most be full+ coordinated to attain a hi7h de7ree of efficienc+$ The demands
of the customer are )er+ immediate and nature of food is hi7hl+ perishable.
that business lost is 7one fore)er$
:ood production is the most re)enue0earnin7 )enture of a hotel besides
the re)enue earned from the lettin7 of rooms$ The smooth functionin7 of the
restaurants is to the e;istence of the ,itchen$ The ,itchen is under the char7e
of the e;ecuti)e chef. -ho compiles the
menu for the )arious outlets in consultation -ith the mana7ement and ta,in7
into account of 7uest su77estions and priorities$
:ood production comprises number of functions that ma+ be performed
in more t+pes of ,itchen the number of functions and t+pes of ,itchen depend
on the characteristics of the specific operation$ T+pical ma'or functions include
preparin7 cold foods. ba,in7 and preparin7 be)era7es. food and be)era7es
production can be defined as that phase -here the unfinished or semi0
finished food and be)era7es products are con)erted into finished products.
-hich can be ser)ed for the 7uest$
7> %ood and 0everage /ervice@ -
The food and be)era7e ser)ice department pla+s a )ital role in the
smooth functionin7 of an+ hotel$ This is incomplete -ithout food and be)era7e
ser)ice department$ "t is the ma'or re)enue0earnin7 department for hotel$ The
food. -hich is coo,ed b+ chefs has to be ser)ed to the 7uest thou7h a decent
channel$ The food and be)era7e ser)ice personnel underta,e this 'ob$ The
ima7e of the hotel depends on the ser)ice personnel$ The 7uest forms a 7ood
ima7e of the hotel if the ser)ice rendered is prompt and 6uic,$ Hence the
ser)ice department pla+s a )ital role in buildin7 the reputation of the hotel
=&>7? Concept of 'echanization5 Automation and Computerization@-
Concept of Computerization@-
"tFs the introduction of machiner+ or computers to carr+ out tas,s that
-ere once done b+ manual labour. e$7$ car production -as once labour
intense but the introduction of machiner+ and robotic arms and computers
alle)iated the need for manual labour to carr+ out repetiti)e tas,s $
The introduction of automation and computer technolo7+ and robotics
led to the sheddin7 of labour forced into redundanc+ as tas,s -ere and still
are replaced -ith the ,noc, on effect of increased unemplo+ment$ "t is an
on7oin7 process -ith the positi)e side bein7 the ad)ancement of technolo7+
and opportunities in that field $ 7ood luc, $ need an+ more . shout $A
computer is a machine that manipulates data accordin7 to a list of
instructions$C
The first de)ices that resemble modern computers date to the mid051th
centur+ #4931I493B&. althou7h the computer concept and )arious machines
similar to computers e;isted earlier$ Earl+ electronic computers -ere the si?e
of a lar7e room. consumin7 as much po-er as se)eral hundred modern
personal computers #%C&$ Modern computers are based on tin+ inte7rated
circuits and are millions to billions of times more capable -hile occup+in7 a
fraction of the space$ Toda+. simple computers ma+ be made small enou7h to
fit into a -rist-atch and be po-ered from a -atch batter+$ %ersonal
computers. in )arious forms. are icons of the "nformation A7e and are -hat
most people thin, of as Ja computerJK ho-e)er. the most common form of
computer in use toda+ is the embedded computer$ Embedded computers are
small. simple de)ices that are used to control other de)icesLfor e;ample.
the+ ma+ be found in machines ran7in7 from fi7hter aircraft to industrial
robots. di7ital cameras. and childrenFs to+s$
The abilit+ to store and e;ecute lists of instructions called pro7rams
ma,es computers e;tremel+ )ersatile and distin7uishes them from
calculators$ The ChurchITurin7 thesis is a mathematical statement of this
)ersatilit+* an+ computer -ith a certain minimum capabilit+ is. in principle.
capable of performin7 the same tas,s that an+ other computer can perform$
Therefore. computers -ith capabilit+ and comple;it+ ran7in7 from that of a
personal di7ital assistant to a supercomputer are all able to perform the same
computational tas,s 7i)en enou7h time and stora7e capacit+$
Concept of 'echanization and Automation@-
'echanization or mechani?ation #BE& is pro)idin7 human operators -ith
machiner+ to assist them -ith the ph+sical re6uirements of -or,$ "t can also
refer to the use of machines to replace manual labor or animals$ A step
be+ond mechani?ation is automation$ The use of hand po-ered tools is not an
e;ample of mechani?ation$
The term is most often used in industr+$ The addition of po-ered
machine tools. such as the steam po-ered lathe dramaticall+ reduced the
amount of time needed to carr+ out )arious tas,s. and impro)es producti)it+$
Toda+ )er+ little construction of an+ sort is carried out -ith hand tools$
Automation or industrial automation or numerical control is the use of control
s+stems such as computers to control industrial machiner+ and processes.
reducin7 the need for human inter)ention$ "n the scope of industriali?ation.
automation is a step be+ond mechani?ation$ Ehereas mechani?ation
pro)ided human operators -ith machiner+ to assist them -ith the ph+sical
re6uirements of -or,. automation 7reatl+ reduces the need for human
sensor+ and mental re6uirements as -ell$ %rocesses and s+stems can also
be automated$
Automation pla+s an increasin7l+ important role in the 7lobal econom+
and in dail+ e;perience$ En7ineers stri)e to combine automated de)ices -ith
mathematical and or7ani?ational tools to create comple; s+stems for a rapidl+
e;pandin7 ran7e of applications and human acti)ities$
Man+ roles for humans in industrial processes presentl+ lie be+ond the scope
of automation$ Human0le)el pattern reco7nition. lan7ua7e reco7nition. and
lan7ua7e production abilit+ are -ell be+ond the capabilities of modern
mechanical and computer s+stems$ Tas,s re6uirin7 sub'ecti)e assessment or
s+nthesis of comple; sensor+ data. such as scents and sounds. as -ell as
hi7h0le)el tas,s such as strate7ic plannin7. currentl+ re6uire human e;pertise$
"n man+ cases. the use of humans is more cost0effecti)e than mechanical
approaches e)en -here automation of industrial tas,s is possible$
Speciali?ed hardened computers. referred to as pro7rammable lo7ic
controllers #%LCs&. are fre6uentl+ used to s+nchroni?e the flo- of inputs from
#ph+sical& sensors and e)ents -ith the flo- of outputs to actuators and
e)ents$ This leads to precisel+ controlled actions that permit a ti7ht control of
almost an+ industrial process$
Human0machine interfaces #HM"& or computer human interfaces #CH"&.
formerl+ ,no-n as man0machine interfaces. are usuall+ emplo+ed to
communicate -ith %LCs and other computers. such as enterin7 and
monitorin7 temperatures or pressures for further automated control or
emer7enc+ response$ Ser)ice personnel -ho monitor and control these
interfaces are often referred to as stationar+ en7ineers$
Impact:-
Automation has had a notable impact in a -ide ran7e of hi7hl+ )isible
industries be+ond manufacturin7$ Once0ubi6uitous telephone operators ha)e
been replaced lar7el+ b+ automated telephone s-itchboards and ans-erin7
machines$ Medical processes such as primar+ screenin7 in
electrocardio7raph+ or radio7raph+ and laborator+ anal+sis of human 7enes.
sera. cells. and tissues are carried out at much 7reater speed and accurac+
b+ automated s+stems$ Automated teller machines ha)e reduced the need for
ban, )isits to obtain cash and carr+ out transactions$ "n 7eneral. automation
has been responsible for the shift in the -orld econom+ from a7rarian to
industrial in the 49th centur+ and from industrial to ser)ices in the 51th
centur+$
The -idespread impact of industrial automation raises social issues.
amon7 them its impact on emplo+ment$ Historical concerns about the effects
of automation date bac, to the be7innin7 of the industrial re)olution. -hen a
social mo)ement of En7lish te;tile machine operators in the earl+ 4211s
,no-n as the Luddites protested a7ainst <ac6uardFs automated -ea)in7
looms L often b+ destro+in7 such te;tile machinesL that the+ felt threatened
their 'obs$ One author made the follo-in7 case$ Ehen automation -as first
introduced. it caused -idespread fear$ "t -as thou7ht that the displacement of
human operators b+ computeri?ed s+stems -ould lead to se)ere
unemplo+ment$
Critics of automation contend that increased industrial automation
causes increased unemplo+mentK this -as a pressin7 concern durin7 the
4921s$ One ar7ument claims that this has happened in)isibl+ in recent +ears.
as the fact that man+ manufacturin7 'obs left the (nited States durin7 the
earl+ 4991s -as offset b+ a one0time massi)e increase in "T 'obs at the same
time$ Some authors ar7ue that the opposite has often been true. and that
automation has led to hi7her emplo+ment$ (nder this point of )ie-. the freein7
up of the labour force has allo-ed more people to enter hi7her s,illed
mana7erial as -ell as speciali?ed consultant@contractor 'obs #li,e
cr+pto7raphers&. -hich are t+picall+ hi7her pa+in7$ One odd side effect of this
shift is that Juns,illed labourJ is in hi7her demand in man+ first0-orld nations.
because fe-er people are a)ailable to fill such 'obs$
At first 7lance. automation mi7ht appear to de)alue labor throu7h its
replacement -ith less0e;pensi)e machinesK ho-e)er. the o)erall effect of this
on the -or,force as a -hole remains unclear$ Toda+ automation of the
-or,force is 6uite ad)anced. and continues to ad)ance increasin7l+ more
rapidl+ throu7hout the -orld and is encroachin7 on e)er more s,illed 'obs. +et
durin7 the same period the 7eneral -ell0bein7 and 6ualit+ of life of most
people in the -orld #-here political factors ha)e not muddied the picture& ha)e
impro)ed dramaticall+$ Ehat role automation has pla+ed in these chan7es
has not been -ell studied$
Current emphasis:-
Currentl+. for manufacturin7 companies. the purpose of automation has
shifted from increasin7 producti)it+ and reducin7 costs. to broader issues.
such as increasin7 6ualit+ and fle;ibilit+ in the manufacturin7 process$
The old focus on usin7 automation simpl+ to increase producti)it+ and
reduce costs -as seen to be short0si7hted. because it is also necessar+ to
pro)ide a s,illed -or,force -ho can ma,e repairs and mana7e the machiner+$
Moreo)er. the initial costs of automation -ere hi7h and often could not be
reco)ered b+ the time entirel+ ne- manufacturin7 processes replaced the old$
#<apanFs Jrobot 'un,+ardsJ -ere once -orld famous in the manufacturin7
industr+$&
Automation is no- often applied primaril+ to increase 6ualit+ in the
manufacturin7 process. -here automation can increase 6ualit+ substantiall+$
:or e;ample. automobile and truc, pistons used to be installed into en7ines
manuall+$ This is rapidl+ bein7 transitioned to automated machine installation.
because the error rate for manual installment -as around 404$BH. but has
been reduced to 1$11114H -ith automation$
MBN
Ha?ardous operations. such as
oil refinin7. the manufacturin7 of industrial chemicals. and all forms of metal
-or,in7. -ere al-a+s earl+ contenders for automation$
Another ma'or shift in automation is the increased emphasis on
fle;ibilit+ and con)ertibilit+ in the manufacturin7 process$ Manufacturers are
increasin7l+ demandin7 the abilit+ to easil+ s-itch from manufacturin7
%roduct A to manufacturin7 %roduct B -ithout ha)in7 to completel+ rebuild the
production lines$ :le;ibilit+ and distributed processes ha)e led to the
introduction of Automated Guided Vehicles -ith atural :eatures a)i7ation$
Automation tools@-
!ifferent t+pes of automation tools e;ist*
A. !CS. HM". SCA!A. %LC
=&>8? Computerization of services provided by Hotels and Hotel 'anagement@-
"n a hotel. there are man+ functions that are to be performed to mana7e the
hotel$ Some of the main operations are*
/eser)ation$
/e7istration$
Billin7@Clearance of Guest :olio$
/eser)ation can be made in man+ -a+s *0 4&$ Eal,0in /eser)ation
5& "nstant /eser)ation
A& Online /eser)ation
3& Telephonic /eser)ation
As cleared b+ its name. Online /eser)ation can onl+ made throu7h
computers$ On the other hand. other t+pe of reser)ations li,e -al,0in.
telephonic. instant etc$ reser)ations can be done b+ both -a+s i$e$ manuall+
enterin7 the data into re7isters and computeri?ed$ Enterin7 data into re7isters
is )er+ complicated tas, and also )er+ time consumin7$ Ehen there is need to
search an+ particular record. one should ha)e to 7o throu7h all the records
-hich is time consumin7 tas,$ Also the re7istration process is done b+ the
same -a+$ And finall+. the billin7 is done$ This also repeats the same process$
As -e can see. all the tas,s can be done manuall+ but -hich consumes time
and labour$
These all are the ser)ices that e)er+ hotel pro)ides and should be
made computeri?ed$ B+ ma,in7 these all tas,s computeri?ed. all the -or,
can be done -ith ease and this also sa)es time$ One ma'or ad)anta7e of
ma,in7 these all ser)ices computeri?ed is that if there is an+ need to search
for a particular record. this can be done -ith )er+ ease because user has to
'ust enter the name of the customer$ So b+ ma,in7 all these ser)ices
computeri?ed. all the records are maintained -ith an or7ani?ed manner and
can be retrie)ed )er+ easil+ -hen re6uired$
Hotel mana7ement means to mana7e all the resources of a hotel$ Hotel
mana7ement includes four ma'or sections*0
:ront Office
House >eepin7
:ood and Be)era7e %roduction
:ood and Be)era7e Ser)ice$
Benefits of ma,in7 these ser )ies computeri?ed*0
Securit+
A lar7e amount of data can be stored on a sin7le dis,$
Accurac+
Less chances of data loss$
CHAP#!"--2
)eed5 *b2ectives and 'ethodology

)eed or rationale of the study@-
Here is the need of ma,in7 a pro'ect CComputeri?ation of ser)ices in
Hotels and Hotel Mana7ement I A comparati)e stud+ of public and pri)ate
sector hotels in Himachal %radesh$C Thou7h there are man+ hotels in
Himachal %radesh -hich are alread+ computeri?ed. but still there are hotels
-hich are not computeri?ed but 7oin7 to be$ So there -ill be a need of this
,ind of soft-are -hich -ill mana7e all the functions of a hotel$
*b2ectives@-
4$ To stud+ the e;istin7 manual s+stem pre)ailin7 in the hotel$
5$ To stud+ the incorporation of computin7 s+stem in place of e;istin7 one.
,eepin7 in )ie- the chan7in7 needs of the hotels$
A$ To su77est appropriate measures to-ards the preparation and
maintenance$

3$ To dra- a soft-are and model for the computeri?ed preparation and
maintenance of )arious records in the hotels$
The main ob'ecti)e of the pro'ect is to de)elop soft-are for Hotel Mana7ement
-hich -ill mana7e all the functions of a hotel$
'ethodology@-
The information re7ardin7 this pro'ect is collected from public sector
and pri)ate sector hotels$ And other re6uired information is 7athered from
"nternet$ "n this pro'ect all the -or, is done in hi7h le)el lan7ua7e <AVAC and
MS0ACCESSC$ <a)a -ill ser)e as the O:ront0EndD and OMS0AccessD -ill ser)e
as the OBac,0EndD for the pro'ect$
Aava@-
Althou7h there -ere man+ lan7ua7es before the ori7in of <a)a. but the+
all are not platform independent$ <a)a is ori7inated especiall+ for the purpose
of platform independenc+$ <a)a is de)eloped b+ Sun Micro S+stem in 4994
b+*0
<ames Goslin7
%atric, au7hton
Chris Eorth
Ed :ran,
Mi,e Sheridon
!ue to its platform independent codes <a)a is )er+ popular on the internet$
:eatures of <a)a*0
4$ Simple and Eas+ to learn$
5 Ob'ect Oriented$
A Compiled and "nterpreted$
3 Architectural neutral and portable
B$ Multithreaded$
P !+namic$
Q Hi7h performance
'/ Access@-
MS Access is a po-erful multi0user database$ "t can be used to store
and manipulate lar7e amount of information and automate repetiti)e tas,s$ B+
usin7 MS Access it is eas+ to use data input forms$ !ata in Access is
or7ani?ed in the form of tables$ !atabase in Access has a default e;tension of
#$mdb&$
:eatures*0
4$ Eindo- based Application$
5$ Lar7e data mana7ement capacit+$
A$ "mportin7. e;portin7 and lin,in7 e;ternal files$
3$ Built in functions$

CHAP#!"--6
Profile of Public and Private Hotels
Profile of Hotel 'andav 'andi@
HOTEL MA!AV MA!" amed after the sa7e of +ore and built in a patch of
-oodland. Himachal TourismDs$ Hotel Manda) is located close to the bus stand$ The
-ater of the Beas flo- belo-. and the hotelD -indo-s o)erloo, Mandi to-n. its old
temples and the -ide concourse. the %addal Maedeh$ Tarna Hill -hich rises abo)e
the to-n faces the hotel$ The nearest airport is at Bhunter B9 ,m a-a+$ The broad0
7au7e railhead is at %athan,ot. a distance of 541 ,m$ :rom %athan,ot the narro
7au7e rail-a+ connects <o7inderna7ar -hich is BP ,m from Mandi$ :rom
Chandi7arh one can dri)e directl+ to Mandi )ia /opar and Bilaspur. the distance is
51A ,m The dri)e ta,es around B hours$ Lu;ur+ buses from !elhi and Shimla. and
bound for >ullu0Manali 7o )ia Mandi
Accommodation@
The delu;e rooms@suites are air0conditioned $Air+. specious. -ell furnished
and ha)e attached baths -ith runnin7 hot and cold -ater$
/estaurant0 ser)es "ndia. Chinese. Continental and Himachali Cuisine0includin7
special dishes of Mandi re7ion. Bar$
%acilities@
CTV -ith Multi Channels. /ooms ser)ice. laundr+ and dr+ cleanin7. %ar,in7
-ithin premises. Safe deposit. !octor on Call$
Place to see@
BHOOTATH TEM%LE*0 %racticall+ s+non+mous -ith Mandi and located in
its )er+ heart. this is as old as the to-n itself and dates bac, to the 4B51s$ "n March.
the festi)al of shi)ratri is a ma'or e)ent and the Bhootnath temple is its focus$ :or an
entire -ee, the to-n celebrates the arri)al of hundreds of local deities on
elaboratel+ decorated palan6uins$
S=AMA>AL" TEM%LE*0 Also called the temple of Tarna !e)i. this is hi7h on
Tarna Hill -hich rises abo)e the to-n$ "n the 4Q
th
centur+ this -as built b+ /a'a
S+ama Sen after particularl+ tr+in7 time -hen the 7oddess 7a)e him success$
Profile of Hotel .rand Asho4@
The Grand Asho, Ban7alore is a 42A0room hotel -ith e;tensi)e landscaped
7ardens. built on a 41$AA acre site on >umara >rupa Hi7h Grounds. located in the
heart of the cit+Fs main commercial and shoppin7 district. it o)erloo,s an 420hole 7olf
course$
The hotel offers 42 suites. 91 e;ecuti)e rooms and QB standard rooms$ T-o
specialt+ restaurants. a 530hour Coffee Shop and a )er+ popular barK an outdoor
s-immin7 pool. health club. beaut+ parlor and barber shop. tennis courts and other
7uest ser)ices$
"t also offers Conference and Ban6uet facilities at its three ma'or conference halls
and a smaller Board /oom. national and international conferences. seminars and
ban6uets ha)e been hosted -ith professional e;pertise$
Our comprehensi)e conference pac,a7e includes the ser)ices of a Business Centre
-ith secretarial and communication assistance. E0mail and fa; facilities. and audio0
)isual e6uipment$
!istances* e- "nternational Airport at !e)anhalli 0 31 ,ms. M+sore * 4BA ,ms. Oot+
* 524 ,ms. Bandipur * 55B ,ms. Mudumalai 0 5B1 ,ms. >arapura #>abini& 0 551 ,ms.
Hunsur * 511 ,ms. Madi,eri 0 5Q1 ,ms. Man7alore * AB1 ,ms. Hassan * 4Q1 ,ms.
Tirupati * 55B ,ms
CHAP#!"B7
/ystem Analysis5 -esign and #esting
The -ord s+stem co)ers a )erb rod spectrum of concepts$ "n our dail+
life. -e come into contact -ith the Transportation s+stem. the Electronic
s+stem. the electronic s+stem. the accountin7 s+stem. and the computer
s+stem$ Similarl+. business s+stems are the means b+ -hich business
or7ani?ation achie)e their predefined 7oals$ A business s+stem combines
policies. personnel. and e6uipment and computer facilities to co0ordinate the
acti)ities of a business or7ani?ation$ Essentiall+. a business s+stem
represents an or7ani?ed -a+ of achie)in7 the pre0determined ob'ecti)e of an
or7ani?ation$
There are )arious definitions of the -ord s+stem. but most of them
seem to ha)e a common idea that su77est that a s+stem is an orderl+
7roupin7 of independent components lin,ed to7ether accordin7 to a plan to
achie)e a specific 7oal$ The -ord component ma+ refer to ph+sical parts.
mana7erial steps or a subs+stem in a multile)el structure$ The components
ma+ be simple or comple;. basic or ad)anced$ The+ ma+ be sin7le computer
-ith a ,e+board. memor+ and printer or series of intelli7ent terminals lin,ed to
a main frame$
$> /ystem Analysis@
Problem@-
The success of a s+stem depends lar7el+ on ho- accuratel+ a
problem is defined. thorou7hl+ in)esti7ated. and properl+ carried out throu7h
the choice of solution$ (ser need identification and anal+sis are concerned
-ith -hat the user needs rather then -hat he@she -ants$ ot until the
problem has been identified. defined. and e)aluated should the anal+st thin,
about solutions and -hether the problem is -orth sol)in7$ This step is
intended to help the user and the anal+st understand the real problem rather
than its s+mptoms$
The user or the anal+st ma+ identif+ the need for a candidate s+stem
or for enhancements in the e;istin7 s+stem$ :or e;ample. the cashier of a
ban, ma+ become concerned about the lon7 customer lines in the lobb+
or about the number of tellers -ho are o)erC or shortC -hen the+
balance their cash$ Similarl+. an anal+st -ho is the familiar -ith the operation
ma+ point out a bottlenec, and su77est impro)ements$
Often problems come into focus after a 'oint meetin7 bet-een the user
and the anal+st$ "n either case. the user initiates an in)esti7ation b+
fillin7 out a re6uest from for information$ The re6uest pro)ides for
statements of ob'ecti)es and e;pected benefits$
The ob'ecti)es of the problem situation must be understood -ithin the
frame-or, of the or7ani?ationDs M"S ob'ecti)es$ "f ob'ecti)es are
Misunderstood. it is eas+ to sol)e the -ron7 problem$ "t illustrates that the
successful desi7n of a s+stem re6uires a clear ,no-led7e of -hat the s+stem
is intended to do$
S+stem anal+sis and desi7n refers to the process of e;aminin7 the
business situation -ith the intent of impro)in7 it throu7h better procedures
and methods$ S+stem de)elopment can 7enerall+ be thou7ht of as ha)in7 t-o
ma'or components* S+stem Anal+sis G S+stem !esi7n$ S+stem !esi7n is the
process of plannin7 a ne- s+stem or replace or complement the e;istin7
s+stem$ But before this plannin7 can be done. -e must thorou7hl+ understand
the e;istin7 s+stem and determine ho- computers can best be used to ma,e
its operation more effecti)e$ "t also includes the construction of pro7ram and
pro7ram testin7$ The ma'or steps are*
4& The first step is to determine ho- the output is to be produced and in
-hich format$ Samples of output are also presented$
5& The operational phases are handle throu7h pro7ram construction and
testin7 of a list of pro7rams needed to meet the s+stem ob'ecti)es and
complete documentation
A& The finall+ detail related to 'ustification of the s+stem and an estimate of
the impact of the candidate s+stem on the user and the or7ani?ation are
documented$
3& The final report prior to the implementation of phases to procedure flo-
chart. record and report. la+out and a -or,load pro7ram for
implementation the candidate s+stem$
B& Cost must also be a)ailable at this point$ %ro'ected costs must be
closed to actual cost of implementation$
S+stem anal+sis then is the process of 7atherin7 and interpretin7 facts.
dia7nosin7 problems and usin7 the information to recommend impro)ement to
the s+stem should do$ !esi7n states ho- accomplish the ob'ecti)e$

!nvironment@-
The follo-in7 hard-are and soft-are -ere a)ailable -ith
Computerization of services in Hotels and Hotel 'anagement-A
Comparative study of public sector and private sector Hotels in
Himachal Pradesh are*
Hard1are Configuration@-
AM! AnthlonR P3 %rocessor A511S C%(
5$11 GH?. 5BP MB !!/ S!/AM
21 GB Hard !is,
4BC Color Monitor
B5T C!0/E
Multimedia >e+board. Optical Mouse$
/ystem /oft1are@-
Microsoft Eindo-s0T% %rofessional
<5sd,04U3U4U140-indo-s0iB2P
otepad
MS Access0511A
MS Eord0511A for report T+pin7
Po1er Conditioning@-
(%S P11 VA -ith A1 minutes Batter+ Bac,up
)ormalization@-
The basic Ob'ecti)es of normali?ation are to reduce redundanc+. -hich
means that information is to be stored onl+ once$ Storin7 information se)eral
times leads to -asta7e of stora7e space and increase in the total si?e of
data stored$ /elations are normali?ed so that -hen relation in the
database are to be altered durin7 the lifetime of the database. -e donDt lose
information or introduce inconsistencies$ The t+pe of alterations normall+
needed for relation is*
"nsertion of ne- data )alues to relation$ This should be possible -ithout
bein7 forced to lea)e blan, fields for some attributes$
!eletion of a tuple. namel+. a ro- of a relation $ This should be
possible -ithout losin7 )ital information un,no-in7l+$
$
%unctional -ependency@-
As the concept of dependenc+ is )er+ important. it is essential
that -e first understand it -ill and then proceed to the idea of normali?ation$
There is no fool0proof al7orithmic method of identif+in7 dependenc+$ Ee ha)e
to use our commonsense and 'ud7ments of specif+ dependencies$
Properties of normalized relations@-
"deals relation after normali?ation should ha)e the follo-in7 properties*
o data )alues should be duplicated in different ro-s unnecessaril+$
A )alue must be specified #and re6uired& for e)er+ attribute in a ro-$
Each relation should be self0contained$ "n other -ords. if a ro- from a relation
is deleted. important information should not be accidentall+ lost$
Ehen a ro- is added to a relation. other relations in the database should not
be affected$
A )alue of an attribute in a tuple ma+ be chan7ed independent of other
tuples in the relation and other relations$
%irst )ormalization@-
:irst normal form. abbre)iated as 4:$ This form is also called a flat0
file$ There is no composite attributes. and e)er+ attribute is sin7le and
describe one propert+$
Con)ertin7 a relation to the 4: is the first essential step of
normali?ation$ There are successi)e hi7her normal forms ,no-n as 5:.
A:. BC:. 3: and B:$ Each form is impro)ement o)er the earlier form$
:i7ure 4* Successi)e normal forms of a relation
1NF
2NF
3NF
4NF
5NF
!ependenc+ amon7 attributes in a relation$ "dentification of an attributeor
asset of attributes as the ,e+ of a relation$ Multi)alued dependenc+ bet-een
attributes$
/econd )ormal %orm "elation@ -

Ee -ill no- define relation in Second ormal :orm #5:&$ A relation
is said to be in 5: if is it is in 4: and non0,e+ attributes are functionall+
dependent on the ,e+ attribute$ :urther. if the ,e+ has more then one
attribute then no non I ,e+ attribute should be functionall+ dependent upon
the part of ,e+ attributes$
#hird )ormal %orm@-
A Third ormal :orm normali?ation -ill be needed -here all attribute in
a relation tuple is not functionall+ dependent onl+ one ,e+ attribute$ "f t-o
non0,e+ attributes are functionall+ dependent. then there -ill be unnecessar+
duplication of data$
%ourth and %ifth )ormal %orm@-
Ehen attribute in a relation ha)e Multi)alued dependenc+. further
ormali?ation to 3: and B:
re6uired
$
%easibility /tudy@-
:easibilit+ is the determination of -hether or not a pro'ect is -orth
doin7$ The process follo-ed in mar,in7 this determination is called a
feasibilit+ stud+$ This t+pe of stud+ determines if a pro'ect can and should be
ta,en once it has been determined that a pro'ect is feasible. the anal+st can
7o ahead and prepare the pro'ect specification -hich finali?es pro'ect
re6uirements$
The important outcome of the proposed s+stem is the determination
-hether the s+stem re6uested a feasible or not$ That re6uirements need for a
ri7orous feasibilit+ stud+ in the conduct of the feasibilit+ stud+. the
anal+st -ill usuall+ consider three distinct but interrelated t+pes of
feasibilit+$ The+ are*
#echnical %easibility@-
This is the concerned -ith specif+in7 e6uipment and soft-are that -ill
success full+ satisf+ the user re6uirement$ The technical needs of the s+stem
ma+ )ar+ considerabl+. but mi7ht include$ The facilit+ to produce output in a
7i)en time$ /esponse time under certain conditions abilit+ to process a certain
)olume of transaction at a particular speed$ :acilit+ to communicate data to
distant location$
"n technical feasibilit+. confi7uration of the s+stemDs is 7i)en more
importance their actual ma,e a hard-are$ The confi7uration should 7i)e the
complete picture about the s+stemDs re6uirement ho- man+ -or,s
section are re6uired. ho- these units are interconnected so that the+ could
operate and communicate smoothl+ -hat speeds of input and output should
be achie)ed at particular 6ualit+ of printin7$ Specific hard-are and soft-are
products can then be e)aluated$ >eepin7 in )ie- -ith the lo7ical needs out of
all t+pes of feasibilit+. technical feasibilit+ 7enerall+ is the most difficult to
determine$
*perational %easibility@-
"t is mainl+ related to human or7ani?ational and %olitical aspects$ The
points to be considered are*
Ehat chan7e -ill be brou7ht -ith the s+stemV
Ehat or7ani?ational structure is disturbedV
Ehat ne- s,ill -ill be re6uiredV
Generall+ pro'ect -ills not re'ected simpl+ because of operational
infeasibilit+ but such considerations are li,el+ to criticall+ affect the nature and
scope of the e)entual recommendations$
This feasibilit+ stud+ is carried out b+ a small 7roup of people -ho are
familiar -ith information s+stem techni6ues. -ho understand the parts of
the business that are rele)ant to the pro'ect and are s,illed in s+stem
anal+sis desi7n process$
!conomical %easibility@-

Economic anal+sis is the most fre6uentl+ used techni6ue for
e)aluatin7 the effecti)eness of a proposed s+stem$ More commonl+ ,no-n as
cost@benefit anal+sisK the procedure is to determine the benefits and sa)in7
that are e;pected from a proposed s+stem and compare them -ith costs$ "f
benefits out-ei7h costs. a decision is ta,en to desi7n and implement the
s+stem other -ise. further 'ustification or alternati)e in the proposed s+stem
-ill ha)e to be made if it is to ha)e a chance of bein7 appro)ed$ This is an
on 7oin7 effort that impro)es in accurac+ at each phase of the s+stem life
c+cle$
$$> /ystem -esign@-
/ystem 'odules@-
This s+stem is based on a lot of data base inter0relationships$ The user
is ho-e)er ,ept opa6ue to all of these interrelationships and -ill feel as if
he is -or,in7 -ith the sin7le inte7rated s+stem$ To ,eep the resends of
each studentDs and to store information of each studentDs -e desi7n different
tables$
-ata 0ase -esign@-
The selection of the tables and the access -as method of the s+stem is
aimed at pro)idin7 efficient processin7 capabilit+ -hile at the same
time minimi?in7 the redundanc+ and inconsistenc+ of the data bet-een
)arious files MS0ACCESS is used as it pro)ides all the abo)e mentioned
6ualities$ All the tables in the s+stem are in the normali?ed form
follo-in7 is the detailed discussions of all the tables are used in the
s+stem in addition the contents of each record are listed$ The primar+ ,e+#s&
are not -ith the null attribute$ Each table has its o-n primar+ ,e+s -hich
uni6uel+ identif+ each record$

The s+stem consists of the follo-in7 files about the students$
'aster %iles-
Master files of the s+stem are those in -hich the data are entered
durin7 the enrollment of the emplo+ee in the or7ani?ation$
#ransaction files@-
An input )alidation chec, has been placed in all of the transaction
tables$ "f the student -ith the student roll0number e;ists in the master these
transaction tables allo-s to enter. modif+ data other-ise student does not
e;ist in the master -ould -e found$
$$$ #esting@-
o pro7ram or s+stem desi7n is perfectK communication bet-een the
user and desi7ner is not al-a+s complete or clearK and time is usuall+ short$
The result is errors and more errors$ The number and nature of errors in a
ne- desi7n depend on se)eral factors*
Communication bet-een the user and the desi7ner
The pro7rammerDs abilit+ to 7enerate a code that reflects e;actl+ the
s+stem specification
The time frame for the desi7n
Theoreticall+. a ne-l+ desi7ned s+stem should ha)e all the pieces in
-or,in7 order. but in realit+. each piece -or,s independentl+$ o- is the time
to put all the pieces into one s+stem and test it to determine -hether it meets
the userDs re6uirements$ Testin7 is )ital to the success of the s+stem$ S+stem
testin7 ma,es a lo7ical assumption that if all the parts of s+stem are correct.
the 7oal -ill be successfull+ achie)ed$ on0testin7 leads to errors that ma+
not appear until months later$ This creates t-o problems*
The time la7 bet-een the cause and the appearance of the problem. and
The effect of s+stem errors on files and records -ithin the s+stem$
#ypes of /ystem #ests@-

S+stem testin7 be7ins b+ testin7 pro7rams modules separatel+.
follo-ed b+ testin7 bundledC modules as a unit$ A pro7ram module ma+
function perfectl+ in isolation but fail -hen interfaced -ith other modules$ The
approach is to test each entit+ -ith successi)el+ lar7er ones. up to the s+stem
last le)el$
S+stem testin7 consistin7 of the follo-in7 steps*
Program=s? testing
/tring testing
/ystem testing
/ystem documentation
&> Program testing@-
A pro7ram represents the lo7ical elements of a s+stem$ :or a pro7ram
to run satisfactoril+. it must compile and test data correctl+ and tie in properl+
-ith other pro7rams$ Achie)in7 and error free pro7ram is the responsibilit+ of
the pro7rammer$ %ro7ram testin7 chec,s for t-o t+pes of errors* s+nta; and
lo7ic$ A s+nta; error is a pro7ram statement that )iolates one or more rules of
the lan7ua7e in -hich it is -ritten$ A lo7ic error. on the other hand. deals -ith
incorrect date fields. out Iof Iran7e items. and in)alid combination$
2> /tring testing@-
%ro7rams are in)ariabl+ related to one another and interact in a total
s+stem$ Each pro7ram is tested to see -hether it conforms to related
pro7rams in the s+stem$ Each portion of the s+stem is tested a7ainst the
entire module -ith both test and li)e data before the entire s+stem is read+ to
be tested$
6> /ystem testing@-
S+stem testin7 is desi7n to unco)er -ea,nesses that -ere not found in
earlier tests$ This includes forced s+stem failure and )alidation of the total
s+stem as it -ill be implemented b+ its user#s& in the operational en)ironment$
Generall+. it brin7 -ith lo- )olume of transaction based on li)e data$
7> /ystem documentation@-
All desi7n and test documentation should be finali?ed and entered in
the librar+ for the further reference$ This librar+ is the central location for
maintenance of the ne- s+stem$ The format. or7ani?ation. and lan7ua7e of
each documentation should be in line -ith the s+stem standards$


/ource Code@
import 'a)a$a-t$WK
import 'a)a$a-t$e)ent$WK
import 'a)a;$s-in7$WK
import 'a)a$s6l$WK
public class Hotel e;tends <:rame implements ActionListener
X
<%anel p.p4.p5.pA.l7n.cst.re7n.b,n7.room.bill.main.thn;.mnu.cart.en6K
GridBa7La+out 7bK
CardLa+out clK
GridBa7Constraints 7bcK
M+EinLis -lK
M+:ocusLis ffK
Connection conK
Statement stK
%reparedStatement psK
/esultSet rsK
:ont mfnt.mfnt4K
@@:or Lo7in :orm
<Label l4.l5.lBPK
<Te;t:ield t4K
<%ass-ord:ield t5K
<Button b4.b5.bAK
@@:or Customer :orm
<Label lA.l3.lB.lP.lQ.l2.l9.l41.l44.l45.l4A.l43.l4B.l4P.l4Q.l4QaK
<Te;t:ield tA.t3.tB.tP.tQ.t2.t9.t41.t44K
<Te;tArea ta4.ta5K
<ComboBo; cb4K
<Button b3.bBK
</adioButton r4.r5.rA.r3.rB.rPK
M+"temLis ilK
@@:or /e7istration :orm
<Label l42.l49.l51K
<Te;t:ield t45K
<%ass-ord:ield t4A.t43KK
<Button bP.bQK
@@:or Boo,in7 :orm
<Label l54.l55.l5A.l53.l5B.l5P.l5Q.l52.l59.l59aK
<Te;t:ield t4B.t4P.t4Q.t42.t49.t51.t54K
<Te;tArea taA.ta3K
<Button b2.b9.b45K
@@:or /ooms :orm
<List rlstK
<Button b44K
@@:or Billin7 :orm
<Label lA4.lA5.lAA.lA3.lAB.lAQ.lA2.lA9.l31.l34.l35.l3A.l33.l3B.l32.l39.l39aK
<Te;t:ield t53.t5B.t5P.t5Q.t52.tA1.tA4.tA5.tAA.tA3.tAB.tAP.tAQ.tA2.tA9K
<Button b4A.b43K
<ComboBo; cb5K
@@:or Main :orm
<Button b4B.b4P.b4Q.b42.b55.b5B.b52K
@@:or Than,s :orm
<Label l3P.l3QK
<Button b49K
@@:or Menu :orm
<Label lB1.lB4.lB5.lPBaK
<Chec,Bo; c4.c5.cA.c3.cB.cP.cQK
<Te;t:ield t31.t34.t35.t3A.t33.t3B.t3P.t3QK
<Button b51.b54.b5PK
@@:or :inishin7 :orm
<Label lBA.lB3.lBB.lBQ.lB2.lB9.lP1.lP4.lP5.lPA.lP3K
@@:or En6uir+ :orm
<Label lPP.lPQ.lP2.lP9.lQ1.lQ4.lQ5.lQA.lQ3.lQB.lQP.lQ2.lQ9.l21K
<Te;t:ield tB1.tB4.tB5.tBA.tB3.tBB.tBP.tBQ.tB2.tB9K
<Te;tArea taBK
<List elstK
<Button b5Q.bA1.bA4K
public Hotel#&
X
super#JSoft-are for Hotel Mana7ement S+stemJ&K
pYne- <%anel#&K
p4Yne- <%anel#&K
p5Yne- <%anel#&K
pAYne- <%anel#&K
l7nYne- <%anel#&K
cstYne- <%anel#&K
re7nYne- <%anel#&K
b,n7Yne- <%anel#&K
roomYne- <%anel#&K
billYne- <%anel#&K
mainYne- <%anel#&K
thn;Yne- <%anel#&K
mnuYne- <%anel#&K
en6Yne- <%anel#&K
7bYne- GridBa7La+out#&K
7bcYne- GridBa7Constraints#&K
mfntYne- :ont#JArialJ.:ont$BOL!.5B&K
mfnt4Yne- :ont#JComic Sans MSJ.:ont$BOL!.43&K
"nsets ssYne- "nsets#B.B.B.B&K
7bc$insetsYssK
clYne- CardLa+out#&K
p$setLa+out#cl&K
7bc$fillYGridBa7Constraints$BOTHK
-lYne- M+EinLis#&K
addEindo-Listener#-l&K
ffYne- M+:ocusLis#&K
@@"nitiali?in7 :inishin7 :orm Ob'ects
lBAYne- <Label#JHotel Mana7ement S+stemJ&K
lB3Yne- <Label#J Lo7in :ormJ&K
lBBYne- <Label#JEelcome to Main :ormJ&K
lBQYne- <Label#J J&K
lB2Yne- <Label#JCustomer !etails :illin7 :ormJ&K
lB9Yne- <Label#J J&K
lP1Yne- <Label#JBoo,in7 !etails :illin7 :ormJ&K
lP4Yne- <Label#J J&K
lP5Yne- <Label#JBillin7 :ormJ&K
lPAYne- <Label#J J&K
lP3Yne- <Label#J J&K
lBA$set:ont#mfnt&K
lB3$set:ont#mfnt&K
lBB$set:ont#mfnt&K
lB2$set:ont#mfnt&K
lP1$set:ont#mfnt&K
lP5$set:ont#mfnt&K
@@"nitiali?in7 Lo7in :orm Ob'ects
l4Yne- <Label#J(serameJ&K
l5Yne- <Label#J%ass-ordJ&K
lBPYne- <Label#Je- (ser VJ&K
l4$set:ont#mfnt4&K
l5$set:ont#mfnt4&K
lBP$set:ont#mfnt4&K
t4Yne- <Te;t:ield#41&K
t5Yne- <%ass-ord:ield#41&K
b4Yne- <Button#JLo7inJ&K
b5Yne- <Button#JE;itJ&K
bAYne- <Button#JCreate e- AccountJ&K
b4$addActionListener#this&K
b5$addActionListener#this&K
bA$addActionListener#this&K
l7n$setLa+out#7b&K
addLo7in#lBA.4.5.3.4&K
addLo7in#lB3.A.A.5.4&K
addLo7in#l4.5.B.4.4&K
addLo7in#l5.5.P.4.4&K
addLo7in#lBP.5.9.4.4&K
addLo7in#t4.3.B.4.4&K
addLo7in#t5.3.P.4.4&K
addLo7in#b4.3.Q.4.4&K
addLo7in#b5.3.2.4.4&K
addLo7in#bA.3.9.4.4&K
@@"nitiali?in7 Customer :orm Ob'ects
lAYne- <Label#JCustomer CodeJ&K
l3Yne- <Label#JLast ameJ&K
lBYne- <Label#J:irst ameJ&K
lPYne- <Label#JSe;J&K
lQYne- <Label#JA7eJ&K
l2Yne- <Label#JMaritial statusJ&K
l9Yne- <Label#Jationalit+J&K
l41Yne- <Label#JCountr+J&K
l44Yne- <Label#J%ass%ort o$J&K
l45Yne- <Label#JVisa o$J&K
l4AYne- <Label#J/esidential AddressJ&K
l43Yne- <Label#JOfficial Address#if an+&J&K
l4BYne- <Label#J%hone o$J&K
l4PYne- <Label#JEmail "!J&K
l4QYne- <Label#JStatusJ&K
l4QaYne- <Label#J J&K
lA$set:ont#mfnt4&K
l3$set:ont#mfnt4&K
lB$set:ont#mfnt4&K
lP$set:ont#mfnt4&K
lQ$set:ont#mfnt4&K
l2$set:ont#mfnt4&K
l9$set:ont#mfnt4&K
l41$set:ont#mfnt4&K
l44$set:ont#mfnt4&K
l45$set:ont#mfnt4&K
l4A$set:ont#mfnt4&K
l43$set:ont#mfnt4&K
l4B$set:ont#mfnt4&K
l4P$set:ont#mfnt4&K
l4Q$set:ont#mfnt4&K
tAYne- <Te;t:ield#41&K
t3Yne- <Te;t:ield#41&K
tBYne- <Te;t:ield#41&K
tPYne- <Te;t:ield#B&K
tQYne- <Te;t:ield#41&K
t2Yne- <Te;t:ield#41&K
t9Yne- <Te;t:ield#41&K
t41Yne- <Te;t:ield#4B&K
t44Yne- <Te;t:ield#51&K
ta4Yne- <Te;tArea#B.41&K
ta5Yne- <Te;tArea#B.41&K
cb4Yne- <ComboBo;#&K
cb4$add"tem#Je-J&K
cb4$add"tem#JOccasionalJ&K
cb4$add"tem#J/e7ularJ&K
cb4$add"tem#JBlac,ListedJ&K
r4Yne- </adioButton#JMaleJ&K
r5Yne- </adioButton#J:emaleJ&K
rAYne- </adioButton#JMarriedJ&K
r3Yne- </adioButton#J(nmarriedJ&K
rBYne- </adioButton#J"ndianJ&K
rPYne- </adioButton#J:orei7nerJ&K
b3Yne- <Button#JSa)e !etailsJ&K
bBYne- <Button#JBac, to MainJ&K
b3$addActionListener#this&K
bB$addActionListener#this&K
ilYne- M+"temLis#&K
r4$addActionListener#this&K
r5$addActionListener#this&K
rA$addActionListener#this&K
r3$addActionListener#this&K
rB$addActionListener#this&K
rP$addActionListener#this&K
rB$add"temListener#il&K
rP$add"temListener#il&K
cst$setLa+out#7b&K
tQ$setEnabled#false&K
t2$setEnabled#false&K
t9$setEnabled#false&K
addCustomer#lB2.4.4.3.4&K
addCustomer#lB9.4.5.4.4&K
addCustomer#lA.5.3.4.4&K
addCustomer#l3.5.B.4.4&K
addCustomer#t3.3.B.4.4&K
addCustomer#lB.5.P.4.4&K
addCustomer#tB.3.P.4.4&K
addCustomer#lP.5.Q.4.4&K
addCustomer#lQ.5.2.4.4&K
addCustomer#l2.5.9.4.4&K
addCustomer#l9.5.41.4.4&K
addCustomer#l41.5.44.4.4&K
addCustomer#l44.5.45.4.4&K
addCustomer#l45.5.4A.4.4&K
addCustomer#l4A.5.43.4.4&K
addCustomer#l43.5.4P.4.4&K
addCustomer#l4B.5.42.4.4&K
addCustomer#l4P.5.49.4.4&K
addCustomer#l4Q.5.51.4.4&K
addCustomer#l4Qa.A.3.4.4&K
addCustomer#tA.3.3.4.4&K
p4$add#r4&K
p4$add#r5&K
addCustomer#p4.3.Q.4.4&K
addCustomer#tP.3.2.4.4&K
p5$add#rA&K
p5$add#r3&K
addCustomer#p5.3.9.4.4&K
pA$add#rB&K
pA$add#rP&K
addCustomer#pA.3.41.4.4&K
addCustomer#tQ.3.44.4.4&K
addCustomer#t2.3.45.4.4&K
addCustomer#t9.3.4A.4.4&K
addCustomer#ta4.3.43.4.4&K
addCustomer#ta5.3.4P.4.4&K
addCustomer#t41.3.42.4.4&K
addCustomer#t44.3.49.4.4&K
addCustomer#cb4.3.51.4.4&K
addCustomer#b3.5.54.4.4&K
addCustomer#bB.3.54.4.4&K
@@"nitialisin7 /e7istration :orm
l42Yne- <Label#J(serameJ&K
l49Yne- <Label#J%ass-ordJ&K
l51Yne- <Label#J/et+pe %ass-ordJ&K
l42$set:ont#mfnt4&K
l49$set:ont#mfnt4&K
l51$set:ont#mfnt4&K
t45Yne- <Te;t:ield#41&K
t4AYne- <%ass-ord:ield#41&K
t43Yne- <%ass-ord:ield#41&K
bPYne- <Button#JSa)e !etailsJ&K
bQYne- <Button#JBac,J&K
bP$addActionListener#this&K
bQ$addActionListener#this&K
re7n$setLa+out#7b&K
add/e7istration#l42.5.5.4.4&K
add/e7istration#l49.5.A.4.4&K
add/e7istration#l51.5.3.4.4&K
add/e7istration#t45.3.5.4.4&K
add/e7istration#t4A.3.A.4.4&K
add/e7istration#t43.3.3.4.4&K
add/e7istration#bP.5.B.4.4&K
add/e7istration#bQ.3.B.4.4&K
@@"nitialisin7 Boo,in7 :orm Ob'ects
l54Yne- <Label#JBoo,in7 o$J&K
l55Yne- <Label#JCustomer CodeJ&K
l5AYne- <Label#J/oom o$J&K
l53Yne- <Label#J!ate Of Arri)alJ&K
l5BYne- <Label#Jo$ Of %ersonsJ&K
l5PYne- <Label#J/elationshipJ&K
l5QYne- <Label#JameJ&K
l52Yne- <Label#JAddressJ&K
l59Yne- <Label#J!ate of !epartureJ&K
l59aYne- <Label#J J&K
l54$set:ont#mfnt4&K
l55$set:ont#mfnt4&K
l5A$set:ont#mfnt4&K
l53$set:ont#mfnt4&K
l5B$set:ont#mfnt4&K
l5P$set:ont#mfnt4&K
l5Q$set:ont#mfnt4&K
l52$set:ont#mfnt4&K
l59$set:ont#mfnt4&K
t4BYne- <Te;t:ield#41&K
t4PYne- <Te;t:ield#41&K
t4P$add:ocusListener#ff&K
t4QYne- <Te;t:ield#41&K
t42Yne- <Te;t:ield#41&K
t49Yne- <Te;t:ield#41&K
t51Yne- <Te;t:ield#41&K
t54Yne- <Te;t:ield#41&K
taAYne- <Te;tArea#B.41&K
ta3Yne- <Te;tArea#B.41&K
b2Yne- <Button#JSa)e !etailsJ&K
b9Yne- <Button#JBac, to MainJ&K
b45Yne- <Button#JA)ailable roomsJ&K
b45$addActionListener#this&K
b2$addActionListener#this&K
b9$addActionListener#this&K
b,n7$setLa+out#7b&K
addBoo,in7#lP1.4.4.3.4&K
addBoo,in7#lP4.4.5.4.4&K
addBoo,in7#l54.5.3.4.4&K
addBoo,in7#l55.5.B.4.4&K
addBoo,in7#l5Q.5.P.4.4&K
addBoo,in7#l52.5.Q.4.4&K
addBoo,in7#l5A.5.41.4.4&K
addBoo,in7#l53.5.44.4.4&K
addBoo,in7#l59.5.45.4.4&K
addBoo,in7#l59a.A.3.4.4&K
addBoo,in7#l5B.5.4A.4.4&K
addBoo,in7#l5P.5.43.4.4&K
addBoo,in7#t4B.3.3.4.4&K
addBoo,in7#t4P.3.B.4.4&K
addBoo,in7#t51.3.P.4.4&K
addBoo,in7#ta3.3.Q.A.4&K
addBoo,in7#t4Q.3.41.4.4&K
addBoo,in7#b45.Q.41.4.4&K
addBoo,in7#t42.3.44.4.4&K
addBoo,in7#t54.3.45.4.4&K
addBoo,in7#t49.3.4A.4.4&K
addBoo,in7#taA.3.43.A.4&K
addBoo,in7#b2.5.4P.4.4&K
addBoo,in7#b9.3.4P.4.4&K
@@"nitialisin7 /ooms :orm Ob'ects
b44Yne- <Button#J!oneJ&K
b44$addActionListener#this&K
rlstYne- <List#&K
rlst$setSelectionMode#1&K
room$setLa+out#7b&K
add/ooms#rlst.5.5.41.41&K
add/ooms#b44.3.51.4.4&K
@@"nitialisin7 Billin7 :orm Ob'ects
lA4Yne- <Label#JBill o$J&K
lA5Yne- <Label#J/oom o$J&K
lAAYne- <Label#J!eparture !ateJ&K
lA3Yne- <Label#JBillin7 !a+sJ&K
lABYne- <Label#JTotal /oom /entJ&K
lAQYne- <Label#JSer)ice Char7esJ&K
lA2Yne- <Label#JGross Bill AmountJ&K
lA9Yne- <Label#JSer)ice Ta;# "n H&J&K
l31Yne- <Label#J!iscount Allo-edJ&K
l34Yne- <Label#Jet Bill AmountJ&K
l35Yne- <Label#JAmount /ecie)edJ&K
l3AYne- <Label#JOutsatndin7 Amount#if an+&J&K
l33Yne- <Label#JBillin7 modeJ&K
l3BYne- <Label#JCredit Card o$J&K
l32Yne- <Label#JBoo,in7 o$J&K
l39Yne- <Label#JBoo,in7 !ateJ&K
l39aYne- <Label#J J&K
lA4$set:ont#mfnt4&K
lA5$set:ont#mfnt4&K
lAA$set:ont#mfnt4&K
lA3$set:ont#mfnt4&K
lAB$set:ont#mfnt4&K
lAQ$set:ont#mfnt4&K
lA2$set:ont#mfnt4&K
lA9$set:ont#mfnt4&K
l31$set:ont#mfnt4&K
l34$set:ont#mfnt4&K
l35$set:ont#mfnt4&K
l3A$set:ont#mfnt4&K
l33$set:ont#mfnt4&K
l3B$set:ont#mfnt4&K
l32$set:ont#mfnt4&K
l39$set:ont#mfnt4&K
t53Yne- <Te;t:ield#41&K
t5BYne- <Te;t:ield#41&K
t5PYne- <Te;t:ield#41&K
t5QYne- <Te;t:ield#41&K
t52Yne- <Te;t:ield#41&K
tA1Yne- <Te;t:ield#41&K
tA4Yne- <Te;t:ield#41&K
tA5Yne- <Te;t:ield#41&K
tAAYne- <Te;t:ield#41&K
tA3Yne- <Te;t:ield#41&K
tABYne- <Te;t:ield#41&K
tAB$add:ocusListener#ff&K
tAPYne- <Te;t:ield#41&K
tAQYne- <Te;t:ield#41&K
tAQ$setEnabled#false&K
tAQ$add:ocusListener#ff&K
tA2Yne- <Te;t:ield#41&K
tA2$add:ocusListener#ff&K
tA9Yne- <Te;t:ield#41&K
b4AYne- <Button#JSa)e and %rintJ&K
b43Yne- <Button#JThan,sJ&K
b4A$addActionListener#this&K
b43$addActionListener#this&K
cb5Yne- <ComboBo;#&K
cb5$add"tem#JB+ CashJ&K
cb5$add"tem#JB+ Credit CardJ&K
cb5$addActionListener#this&K
bill$setLa+out#7b&K
addBill#lP5.4.4.3.4&K
addBill#lPA.4.5.4.4&K
addBill#lA4.5.3.4.4&K
addBill#lA5.5.B.4.4&K
addBill#l32.5.P.4.4&K
addBill#l39.5.Q.4.4&K
addBill#l39a.A.3.4.4&K
addBill#lAA.5.2.4.4&K
addBill#lA3.5.9.4.4&K
addBill#lAB.5.41.4.4&K
addBill#lAQ.5.45.4.4&K
addBill#lA2.5.4A.4.4&K
addBill#lA9.5.43.4.4&K
addBill#l31.5.4B.4.4&K
addBill#l34.5.4P.4.4&K
addBill#l33.5.4Q.4.4&K
addBill#l3B.5.42.4.4&K
addBill#l35.5.49.4.4&K
addBill#l3A.5.51.4.4&K
addBill#t53.3.3.4.4&K
addBill#t5B.3.P.4.4&K
addBill#tA2.3.B.4.4&K
addBill#tA9.3.Q.4.4&K
addBill#t5P.3.2.4.4&K
addBill#t5Q.3.9.4.4&K
addBill#t52.3.41.4.4&K
addBill#tA1.3.45.4.4&K
addBill#tA4.3.4A.4.4&K
addBill#tA5.3.43.4.4&K
addBill#tAA.3.4B.4.4&K
addBill#tA3.3.4P.4.4&K
addBill#cb5.3.4Q.4.4&K
addBill#tAQ.3.42.4.4&K
addBill#tAB.3.49.4.4&K
addBill#tAP.3.51.4.4&K
addBill#b4A.5.53.4.4&K
addBill#b43.3.53.4.4&K
@@"nitialisin7 Main :orm Ob'ects
b4BYne- <Button#JCustomerFs :ormJ&K
b4PYne- <Button#JBoo,in7 :ormJ&K
b4QYne- <Button#JBillin7 :ormJ&K
b42Yne- <Button#JLo7outJ&K
b55Yne- <Button#JSer)icesJ&K
b52Yne- <Button#JEn6uir+J&K
b4B$addActionListener#this&K
b4P$addActionListener#this&K
b4Q$addActionListener#this&K
b42$addActionListener#this&K
b55$addActionListener#this&K
b52$addActionListener#this&K
main$setLa+out#7b&K
addMain#lBB.4.5.3.4&K
addMain#lBQ.4.3.4.4&K
addMain#b4B.A.B.4.5&K
addMain#b4P.3.B.4.5&K
addMain#b55.A.Q.4.5&K
addMain#b4Q.3.Q.4.5&K
addMain#b52.A.9.4.5&K
addMain#b42.3.9.4.5&K
@@"nitialisin7 Than,s :orm Ob'ects
l3PYne- <Label#JThan,s for usin7 this soft-are$J&K
l3QYne- <Label#JThis soft-are is de)eloped b+ FMr$ Sourabh Bhard-a' F
J&K
l3P$set:ont#mfnt&K
l3Q$set:ont#mfnt&K
b49Yne- <Button#J/eturn to main MainJ&K
b49$addActionListener#this&K
thn;$setLa+out#7b&K
addThan,s#l3P.B.3.A.A&K
addThan,s#l3Q.B.2.A.A&K
addThan,s#b49.B.45.A.A&K
@@"nitialisin7 Menu :orm Ob'ects
lB1Yne- <Label#JSer)ices pro)ided b+ the HotelJ&K
lB4Yne- <Label#JJ&K
lB5Yne- <Label#JJ&K
lPBaYne- <Label#J J&K
lB1$set:ont#mfnt&K
c4Yne- <Chec,Bo;#JBrea,:astJ&K
c5Yne- <Chec,Bo;#JLunchJ&K
cAYne- <Chec,Bo;#J!innerJ&K
c3Yne- <Chec,Bo;#JLaundar+J&K
cBYne- <Chec,Bo;#JTelephoneJ&K
cPYne- <Chec,Bo;#JG+mJ&K
cQYne- <Chec,Bo;#JS-immin7 %oolJ&K
c4$add"temListener#il&K
c5$add"temListener#il&K
cA$add"temListener#il&K
c3$add"temListener#il&K
cB$add"temListener#il&K
cP$add"temListener#il&K
cQ$add"temListener#il&K
c4$set:ont#mfnt4&K
c5$set:ont#mfnt4&K
cA$set:ont#mfnt4&K
c3$set:ont#mfnt4&K
cB$set:ont#mfnt4&K
cP$set:ont#mfnt4&K
cQ$set:ont#mfnt4&K
t31Yne- <Te;t:ield#41&K
t34Yne- <Te;t:ield#41&K
t35Yne- <Te;t:ield#41&K
t3AYne- <Te;t:ield#41&K
t33Yne- <Te;t:ield#41&K
t3BYne- <Te;t:ield#41&K
t3PYne- <Te;t:ield#41&K
t3QYne- <Te;t:ield#41&K
t31$setTe;t#J1J&K
t34$setTe;t#J1J&K
t35$setTe;t#J1J&K
t3A$setTe;t#J1J&K
t33$setTe;t#J1J&K
t3B$setTe;t#J1J&K
t3P$setTe;t#J1J&K
t31$setEnabled#false&K
t34$setEnabled#false&K
t35$setEnabled#false&K
t3A$setEnabled#false&K
t33$setEnabled#false&K
t3B$setEnabled#false&K
t3P$setEnabled#false&K
b51Yne- <Button#JTotalJ&K
b54Yne- <Button#JBac, to MainJ&K
b5PYne- <Button#JO,J&K
b51$addActionListener#this&K
b54$addActionListener#this&K
b5P$addActionListener#this&K
mnu$setLa+out#7b&K
addMenu#lB1.5.4.A.4&K
addMenu#lB4.5.5.4.4&K
addMenu#lB5.5.A.4.4&K
addMenu#lPBa.A.3.4.4&K
addMenu#b51.5.44.4.4&K
addMenu#c4.5.3.4.4&K
addMenu#c5.5.B.4.4&K
addMenu#cA.5.P.4.4&K
addMenu#c3.5.Q.4.4&K
addMenu#cB.5.2.4.4&K
addMenu#cP.5.9.4.4&K
addMenu#cQ.5.41.4.4&K
addMenu#t31.3.3.4.4&K
addMenu#t34.3.B.4.4&K
addMenu#t35.3.P.4.4&K
addMenu#t3A.3.Q.4.4&K
addMenu#t33.3.2.4.4&K
addMenu#t3B.3.9.4.4&K
addMenu#t3P.3.41.4.4&K
addMenu#t3Q.3.44.4.4&K
addMenu#b5P.5.45.4.4&K
addMenu#b54.3.45.4.4&K
@@"nitialisin7 En6uir+ :orm Ob'ects
lPPYne- <Label#JameJ&K
lPQYne- <Label#JCustomer CodeJ&K
lP2Yne- <Label#JA7eJ&K
lP9Yne- <Label#Jationalit+J&K
lQ1Yne- <Label#JAddressJ&K
lQ4Yne- <Label#J%hone o$J&K
lQ5Yne- <Label#JEmail0idJ&K
lQAYne- <Label#JAlloted /oom o$J&K
lQ3Yne- <Label#J!ate of Ari)alJ&K
lQBYne- <Label#J!ate of !epartureJ&K
lQPYne- <Label#Jo$ of personsJ&K
lPP$set:ont#mfnt4&K
lPQ$set:ont#mfnt4&K
lP2$set:ont#mfnt4&K
lP9$set:ont#mfnt4&K
lQ1$set:ont#mfnt4&K
lQ4$set:ont#mfnt4&K
lQ5$set:ont#mfnt4&K
lQA$set:ont#mfnt4&K
lQ3$set:ont#mfnt4&K
lQB$set:ont#mfnt4&K
lQP$set:ont#mfnt4&K
lQ2Yne- <Label#J J&K
lQ9Yne- <Label#JJ&K
l21Yne- <Label#JCustomerFs En6uir+ :ormJ&K
l21$set:ont#mfnt&K
tB1Yne- <Te;t:ield#41&K
tB1$add:ocusListener#ff&K
tB4Yne- <Te;t:ield#41&K
tB5Yne- <Te;t:ield#41&K
tBAYne- <Te;t:ield#41&K
tB3Yne- <Te;t:ield#41&K
tBBYne- <Te;t:ield#4B&K
tBPYne- <Te;t:ield#41&K
tBQYne- <Te;t:ield#41&K
tB2Yne- <Te;t:ield#41&K
tB9Yne- <Te;t:ield#41&K
taBYne- <Te;tArea#B.41&K
b5QYne- <Button#JBac, to mainJ&K
b5Q$addActionListener#this&K
bA1Yne- <Button#JO,J&K
bA1$addActionListener#this&K
bA4Yne- <Button#J:indJ&K
bA4$addActionListener#this&K
elstYne- <List#&K
elst$setSelectionMode#1&K
@@elst$add"tem#JCustomerFs Code ListJ&K
en6$setLa+out#7b&K
addEn6uir+#l21.5.4.A.4&K
addEn6uir+#lQ9.5.5.4.4&K
addEn6uir+#lQ2.A.3.4.4&K
addEn6uir+#lPP.5.3.4.4&K
addEn6uir+#lPQ.5.B.4.4&K
addEn6uir+#lP9.5.P.4.4&K
addEn6uir+#lQ1.5.Q.4.4&K
addEn6uir+#lP2.5.2.4.4&K
addEn6uir+#lQ4.5.9.4.4&K
addEn6uir+#lQ5.5.41.4.4&K
addEn6uir+#lQA.5.44.4.4&K
addEn6uir+#lQ3.5.45.4.4&K
addEn6uir+#lQB.5.4A.4.4&K
addEn6uir+#lQP.5.43.4.4&K
addEn6uir+#tB1.3.3.4.4&K
addEn6uir+#tB4.3.B.4.4&K
addEn6uir+#tBA.3.P.4.4&K
addEn6uir+#taB.3.Q.4.4&K
addEn6uir+#tB5.3.2.4.4&K
addEn6uir+#tB3.3.9.4.4&K
addEn6uir+#tBB.3.41.5.4&K
addEn6uir+#tBP.3.44.4.4&K
addEn6uir+#tBQ.3.45.4.4&K
addEn6uir+#tB2.3.4A.4.4&K
addEn6uir+#tB9.3.43.4.4&K
addEn6uir+#b5Q.5.4Q.4.4&K
addEn6uir+#bA1.2.43.4.4&K
addEn6uir+#bA4.3.4Q.4.4&K
addEn6uir+#elst.2.3.51.41&K
@@Addin7 %anels
p$add#JLo7inJ.l7n&K
p$add#JCustomerJ.cst&K
p$add#J/e7istrationJ.re7n&K
p$add#JBoo,in7J.b,n7&K
p$add#J/oomsJ.room&K
p$add#JBillJ.bill&K
p$add#JMainJ.main&K
p$add#JMenuJ.mnu&K
p$add#JThan,sJ.thn;&K
p$add#JEn6uir+J.en6&K
7etContent%ane#&$add#p&K
setSi?e#4153.QP2&K
sho-#&K
tr+
X
Class$forame#Jsun$'dbc$odbc$<dbcOdbc!ri)erJ&K
conY!ri)erMana7er$7etConnection#J'dbc*odbc*htlJ&K
Z
catch#E;ception e&
X
t4$setTe;t#JError in Connection J&K
Z
Z
public )oid addLo7in#Component cc.int col.int r.int -.int h&
X
7bc$7rid;YcolK
7bc$7rid+YrK
7bc$7rid-idthY-K
7bc$7ridhei7htYhK
7b$setConstraints#cc.7bc&K
l7n$add#cc&K
Z
public )oid addCustomer#Component cc.int col.int r.int -.int h&
X
7bc$7rid;YcolK
7bc$7rid+YrK
7bc$7rid-idthY-K
7bc$7ridhei7htYhK
7b$setConstraints#cc.7bc&K
cst$add#cc&K
Z
public )oid add/e7istration#Component cc.int col.int r.int -.int h&
X
7bc$7rid;YcolK
7bc$7rid+YrK
7bc$7rid-idthY-K
7bc$7ridhei7htYhK
7b$setConstraints#cc.7bc&K
re7n$add#cc&K
Z
public )oid addBoo,in7#Component cc.int col.int r.int -.int h&
X
7bc$7rid;YcolK
7bc$7rid+YrK
7bc$7rid-idthY-K
7bc$7ridhei7htYhK
7b$setConstraints#cc.7bc&K
b,n7$add#cc&K
Z
public )oid add/ooms#Component cc.int col.int r.int -.int h&
X
7bc$7rid;YcolK
7bc$7rid+YrK
7bc$7rid-idthY-K
7bc$7ridhei7htYhK
7b$setConstraints#cc.7bc&K
room$add#cc&K
Z
public )oid addBill#Component cc.int col.int r.int -.int h&
X
7bc$7rid;YcolK
7bc$7rid+YrK
7bc$7rid-idthY-K
7bc$7ridhei7htYhK
7b$setConstraints#cc.7bc&K
bill$add#cc&K
Z
public )oid addMain#Component cc.int col.int r.int -.int h&
X
7bc$7rid;YcolK
7bc$7rid+YrK
7bc$7rid-idthY-K
7bc$7ridhei7htYhK
7b$setConstraints#cc.7bc&K
main$add#cc&K
Z
public )oid addThan,s#Component cc.int col.int r.int -.int h&
X
7bc$7rid;YcolK
7bc$7rid+YrK
7bc$7rid-idthY-K
7bc$7ridhei7htYhK
7b$setConstraints#cc.7bc&K
thn;$add#cc&K
Z
public )oid addMenu#Component cc.int col.int r.int -.int h&
X
7bc$7rid;YcolK
7bc$7rid+YrK
7bc$7rid-idthY-K
7bc$7ridhei7htYhK
7b$setConstraints#cc.7bc&K
mnu$add#cc&K
Z
public )oid addEn6uir+#Component cc.int col.int r.int -.int h&
X
7bc$7rid;YcolK
7bc$7rid+YrK
7bc$7rid-idthY-K
7bc$7ridhei7htYhK
7b$setConstraints#cc.7bc&K
en6$add#cc&K
Z
public )oid action%erformed#ActionE)ent ee&
X
if#ee$7etSource#&YYb4&
X
tr+
X
psYcon$prepareStatement#JSelect W from (sers -here
(serameYV and %ass-ordYVJ&K
ps$setStrin7#4.t4$7etTe;t#&&K
ps$setStrin7#5.t5$7etTe;t#&&K
rsYps$e;ecute[uer+#&K
t4$setTe;t#JJ&K
t5$setTe;t#JJ&K
rs$ne;t#&K
t4$setTe;t#rs$7etStrin7#4&&K
t5$setTe;t#rs$7etStrin7#5&&K
cl$sho-#p.JMainJ&K
Z
catch#E;ception e&
X
t4$setTe;t#J"lle7al (ser ame or %ass-ordJ&K
t5$setTe;t#JJ&K
Z
Z
if#ee$7etSource#&YYb5&
X
S+stem$e;it#1&K
Z
if#ee$7etSource#&YYbA&
X
cl$sho-#p.J/e7istrationJ&K
Z
if#ee$7etSource#&YYb3&
X
tr+
X
psYcon$prepareStatement#J"nsert into Customer
)alues#V.V.V.V.V.V.V.V.V.V.V.V.V.V.V&J&K
ps$setStrin7#4.tA$7etTe;t#&&K
ps$setStrin7#5.t3$7etTe;t#&&K
ps$setStrin7#A.tB$7etTe;t#&&K
if#r4$isSelected#&&
X
ps$setStrin7#3.JMaleJ&K
Z
else
X
ps$setStrin7#3.J:emaleJ&K
Z
ps$set"nt#B."nte7er$parse"nt#tP$7etTe;t#&&&K
if#rA$isSelected#&&
X
ps$setStrin7#P.JMarriedJ&K
Z
else
X
ps$setStrin7#P.J(nmarriedJ&K
Z
if#rB$isSelected#&&
X
ps$setStrin7#Q.J"ndianJ&K
Z
else
X
ps$setStrin7#Q.J:orei7nerJ&K
Z
ps$setStrin7#2.tQ$7etTe;t#&&K
ps$setStrin7#9.t2$7etTe;t#&&K
ps$setStrin7#41.t9$7etTe;t#&&K
ps$setStrin7#44.ta4$7etTe;t#&&K
ps$setStrin7#45.ta5$7etTe;t#&&K
ps$setStrin7#4A.t41$7etTe;t#&&K
ps$setStrin7#43.t44$7etTe;t#&&K
ps$setStrin7#4B.#Strin7&cb4$7etSelected"tem#&&K
int iK
iYps$e;ecute(pdate#&K
tA$setTe;t#JCustomer details successfull+ addedJ&K
t3$setTe;t#JJ&K
tB$setTe;t#JJ&K
r4$setSelected#true&K
r5$setSelected#false&K
tP$setTe;t#JJ&K
rA$setSelected#false&K
r3$setSelected#true&K
rB$setSelected#true&K
rP$setSelected#false&K
tQ$setTe;t#JJ&K
t2$setTe;t#JJ&K
t9$setTe;t#JJ&K
ta4$setTe;t#JJ&K
ta5$setTe;t#JJ&K
t41$setTe;t#JJ&K
t44$setTe;t#JJ&K
Z
catch#E;ception e&
X
tA$setTe;t#JError in addin7 Customer detailsJ&K
Z
Z
if#ee$7etSource#&YYbB&
X
cl$sho-#p.JMainJ&K
Z
if#ee$7etSource#&YYbP&
X
tr+
X
psYcon$prepareStatement#J"nsert into (sers )alues#V.V&J&K
Strin7 str4.str5K
str4Yt4A$7etTe;t#&K
str5Yt43$7etTe;t#&K
if#str4$e6uals#str5&&
X
ps$setStrin7#4.t45$7etTe;t#&&K
ps$setStrin7#5.t4A$7etTe;t#&&K
int iYps$e;ecute(pdate#&K
t45$setTe;t#J(serame successfull+ addedJ&K
t4A$setTe;t#JJ&K
t43$setTe;t#JJ&K Z
else
X
t45$setTe;t#J%lease ret+pe +our (serame And
%ass-ord correctl+J&K
Z
Z
catch#E;ception e&
X
t45$setTe;t#JError in ma,in7 ne- accountJ&K
Z
Z
if#ee$7etSource#&YYbQ&
X
cl$sho-#p.JLo7inJ&K
t45$setTe;t#JJ&K
Z
if#ee$7etSource#&YYb2&
X
tr+
X
psYcon$prepareStatement#J"nsert into Boo,in7 )alues
#V.V.V.V.V.V.V&J&K
ps$setStrin7#4.t4B$7etTe;t#&&K
ps$setStrin7#5.t4P$7etTe;t#&&K
ps$set"nt#A."nte7er$parse"nt#t4Q$7etTe;t#&&&K
ps$setStrin7#3.t42$7etTe;t#&&K
ps$setStrin7#B.t54$7etTe;t#&&K
ps$set"nt#P."nte7er$parse"nt#t49$7etTe;t#&&&K
ps$setStrin7#Q.taA$7etTe;t#&&K
int iK
iYps$e;ecute(pdate#&K
psYcon$prepareStatement#J(pdate /ooms set StatusY
FotA)ailableF Ehere /oYVJ&K
ps$set"nt#4."nte7er$parse"nt#t4Q$7etTe;t#&&&K
iYps$e;ecute(pdate#&K
t4B$setTe;t#JBoo,in7 successfull+ addedJ&K
t4P$setTe;t#JJ&K
t4Q$setTe;t#JJ&K
t51$setTe;t#JJ&K
t54$setTe;t#JJ&K
ta3$setTe;t#JJ&K
t4Q$setTe;t#JJ&K
t42$setTe;t#JJ&K
t49$setTe;t#JJ&K
taA$setTe;t#JJ&K
Z
catch#E;ception e&
X
t4B$setTe;t#JError in Boo,in7J&K
Z
Z
if#ee$7etSource#&YYb9&
X
cl$sho-#p.JMainJ&K
Z
if#ee$7etSource#&YYb44&
X
Strin7 rrK
rrY#Strin7&rlst$7etSelectedValue#&K
rrYrr$substrin7#1.A&K
t4Q$setTe;t#rr&K
cl$sho-#p.JBoo,in7J&K
Z
if#ee$7etSource#&YYb45&
X
Strin7 ssMNK
ssYne- Strin7MB1NK
int iY1K
tr+
X
psYcon$prepareStatement#JSelect W from /ooms -here
statusYFa)ailableFJ&K
rsYps$e;ecute[uer+#&K
-hile#rs$ne;t#&&
X
ssMiNYrs$7et"nt#4& S J J S rs$7etStrin7#5& S J J S
rs$7et"nt#A&K
iSSK
Z
rlst$setList!ata#ss&K
rlst$setVisible/o-Count#B&K
Z
catch#E;ception e&
X
t4Q$setTe;t#JSorr+ \\ o /ooms are A)ailableJ&K
Z
cl$sho-#p.J/oomsJ&K
Z
if#ee$7etSource#&YYb4A&
X
tr+
X
psYcon$prepareStatement#J"nsert into Billin7 )alues
#V.V.V.V.V.V.V.V.V.V.V.V.V.V&J&K
ps$setStrin7#4.t53$7etTe;t#&&K
ps$setStrin7#5.t5B$7etTe;t#&&K
ps$setStrin7#A.t5P$7etTe;t#&&K
ps$set"nt#3."nte7er$parse"nt#t5Q$7etTe;t#&&&K
ps$set"nt#B."nte7er$parse"nt#t52$7etTe;t#&&&K
ps$set"nt#P."nte7er$parse"nt#tA1$7etTe;t#&&&K
ps$set"nt#Q."nte7er$parse"nt#tA4$7etTe;t#&&&K
ps$set"nt#2."nte7er$parse"nt#tA5$7etTe;t#&&&K
ps$set"nt#9."nte7er$parse"nt#tAA$7etTe;t#&&&K
ps$set"nt#41."nte7er$parse"nt#tA3$7etTe;t#&&&K
ps$setStrin7#44.#Strin7&cb5$7etSelected"tem#&&K
ps$set"nt#45."nte7er$parse"nt#tAB$7etTe;t#&&&K
ps$setStrin7#4A.tAQ$7etTe;t#&&K
ps$set"nt#43."nte7er$parse"nt#tAP$7etTe;t#&&&K
int iK
iYps$e;ecute(pdate#&K
@@:or printin7 the bill
%rint(tilities$printComponent#this&K
Z
catch#E;ception e&
X
t53$setTe;t#JError in Billin7J&K
t5B$setTe;t#JJ&K
t5P$setTe;t#JJ&K
t5Q$setTe;t#JJ&K
t52$setTe;t#JJ&K
tA1$setTe;t#JJ&K
tA4$setTe;t#JJ&K
tA5$setTe;t#JJ&K
tAA$setTe;t#JJ&K
tA3$setTe;t#JJ&K
tAB$setTe;t#JJ&K
tAP$setTe;t#JJ&K
tAQ$setTe;t#JJ&K
tA2$setTe;t#JJ&K
tA9$setTe;t#JJ&K
Z
Z
if#ee$7etSource#&YYb43&
X
cl$sho-#p.JThan,sJ&K
t53$setTe;t#JJ&K
t5B$setTe;t#JJ&K
t5P$setTe;t#JJ&K
t5Q$setTe;t#JJ&K
t52$setTe;t#JJ&K
tA1$setTe;t#JJ&K
tA4$setTe;t#JJ&K
tA5$setTe;t#JJ&K
tAA$setTe;t#JJ&K
tA3$setTe;t#JJ&K
tAB$setTe;t#JJ&K
tAP$setTe;t#JJ&K
tAQ$setTe;t#JJ&K
tA2$setTe;t#JJ&K
tA9$setTe;t#JJ&K
Z
if#ee$7etSource#&YYb4B&
X
int numK
Strin7 strK
tr+
X
psYcon$prepareStatement#JSelect top 4 W from Customer
order b+ CCode descJ&K
rsYps$e;ecute[uer+#&K
rs$ne;t#&K
strYrs$7etStrin7#4&K
numY"nte7er$parse"nt#str$substrin7#4&&K
numSSK
if#num]41&
X
strYJC11J S numK
Z
else if#num]411&
X
strYJC1J S numK
Z
else if#num]4111&
X
strYJCJ S numK
Z
tA$setTe;t#str&K
r4$setSelected#true&K
r5$setSelected#false&K
rA$setSelected#false&K
r3$setSelected#true&K
rB$setSelected#true&K
rP$setSelected#false&K
Z
catch#E;ception eA&
X
tA$setTe;t#JError in Code 7enerationJ&K
Z
cl$sho-#p.JCustomerJ&K
Z
if#ee$7etSource#&YYb4P&
X
int numK
Strin7 strK
tr+
X
psYcon$prepareStatement#JSelect top 4 W from Boo,in7
order b+ Bo descJ&K
rsYps$e;ecute[uer+#&K
rs$ne;t#&K
strYrs$7etStrin7#4&K
numY"nte7er$parse"nt#str$substrin7#4&&K
numSSK
if#num]41&
X
strYJB11J S numK
Z
else if#num]411&
X
strYJB1J S numK
Z
else if#num]4111&
X
strYJBJ S numK
Z
t4B$setTe;t#str&K
Z
catch#E;ception eA&
X
t4B$setTe;t#JError in Code 7enerationJ&K
Z
cl$sho-#p.JBoo,in7J&K
t4Q$setTe;t#JJ&K
Z
if#ee$7etSource#&YYb4Q&
X
int numK
Strin7 strK
tr+
X
psYcon$prepareStatement#JSelect top 4 W from Billin7 order
b+ Billo descJ&K
rsYps$e;ecute[uer+#&K
rs$ne;t#&K
strYrs$7etStrin7#4&K
numY"nte7er$parse"nt#str$substrin7#A&&K
numSSK
if#num]41&
X
strYJBo11J S numK
Z
else if#num]411&
X
strYJBo1J S numK
Z
else if#num]4111&
X
strYJBoJ S numK
Z
t53$setTe;t#str&K
t5B$setTe;t#JJ&K
t5P$setTe;t#JJ&K
t5Q$setTe;t#JJ&K
t52$setTe;t#JJ&K
tA4$setTe;t#JJ&K
tA5$setTe;t#JJ&K
tAA$setTe;t#JJ&K
tA3$setTe;t#JJ&K
tAB$setTe;t#JJ&K
tAP$setTe;t#JJ&K
tAQ$setTe;t#JJ&K
tA2$setTe;t#JJ&K
tA9$setTe;t#JJ&K
Z
catch#E;ception eA&
X
t53$setTe;t#JError in Code 7enerationJ&K
Z
cl$sho-#p.JBillJ&K
Z
if#ee$7etSource#&YYb42&
X
t4$setTe;t#JJ&K
t5$setTe;t#JJ&K
cl$sho-#p.JLo7inJ&K
Z
if#ee$7etSource#&YYb49&
X
cl$sho-#p.JMainJ&K
Z
if#ee$7etSource#&YYb51&
X
int numK
numY1K
numY"nte7er$parse"nt#t31$7etTe;t#&&
S"nte7er$parse"nt#t34$7etTe;t#&&S"nte7er$parse"nt#t35$7etTe;t#&&
S"nte7er$parse"nt#t3A$7etTe;t#&&S"nte7er$parse"nt#t33$7etTe;t#&&
S"nte7er$parse"nt#t3B$7etTe;t#&&S"nte7er$parse"nt#t3P$7etTe;t#&&K
t3Q$setTe;t#Strin7$)alueOf#num&&K
Z
if#ee$7etSource#&YYb54&
X
cl$sho-#p.JMainJ&K
t31$setTe;t#J1J&K
t34$setTe;t#J1J&K
t35$setTe;t#J1J&K
t3A$setTe;t#J1J&K
t33$setTe;t#J1J&K
t3B$setTe;t#J1J&K
t3P$setTe;t#J1J&K
t3Q$setTe;t#J1J&K
Z
if#ee$7etSource#&YYb55&
X
c4$setSelected#false&K
c5$setSelected#false&K
cA$setSelected#false&K
c3$setSelected#false&K
cB$setSelected#false&K
cP$setSelected#false&K
cQ$setSelected#false&K
cl$sho-#p.JMenuJ&K
Z
if#ee$7etSource#&YYb5P&
X
tr+
X
tA1$setTe;t#t3Q$7etTe;t#&&K
t31$setEnabled#true&K
t31$setTe;t#J!etails added successfull+J&K
t34$setTe;t#J1J&K
t35$setTe;t#J1J&K
t3A$setTe;t#J1J&K
t33$setTe;t#J1J&K
t3B$setTe;t#J1J&K
t3P$setTe;t#J1J&K
Z
catch#E;ception e&
X
t31$setEnabled#true&K
t31$setTe;t#JError in addin7 detailsJ&K
t34$setTe;t#J1J&K
t35$setTe;t#J1J&K
t3A$setTe;t#J1J&K
t33$setTe;t#J1J&K
t3B$setTe;t#J1J&K
t3P$setTe;t#J1J&K
Z
Z
if#ee$7etSource#&YYb5Q&
X
cl$sho-#p.JMainJ&K
Z
if#ee$7etSource#&YYb52&
X
tB1$setTe;t#JJ&K
tB4$setTe;t#JJ&K
tBA$setTe;t#JJ&K
taB$setTe;t#JJ&K
tB5$setTe;t#JJ&K
tB3$setTe;t#JJ&K
tBB$setTe;t#JJ&K
tBP$setTe;t#JJ&K
tBQ$setTe;t#JJ&K
tB2$setTe;t#JJ&K
tB9$setTe;t#JJ&K
cl$sho-#p.JEn6uir+J&K
Z
if#ee$7etSource#&YYbA1&
X
tr+
X
Strin7 rrK
rrY#Strin7&elst$7etSelectedValue#&K
tB4$setTe;t#rr&K
tBA$setTe;t#JJ&K
taB$setTe;t#JJ&K
tB5$setTe;t#JJ&K
tB3$setTe;t#JJ&K
tBB$setTe;t#JJ&K
tBP$setTe;t#JJ&K
tBQ$setTe;t#JJ&K
tB2$setTe;t#JJ&K
tB9$setTe;t#JJ&K
Z
catch#E;ception ee5&
X
tB4$setTe;t#JCan not find recordJ&K
tBA$setTe;t#JJ&K
taB$setTe;t#JJ&K
tB5$setTe;t#JJ&K
tB3$setTe;t#JJ&K
tBB$setTe;t#JJ&K
tBP$setTe;t#JJ&K
tBQ$setTe;t#JJ&K
tB2$setTe;t#JJ&K
tB9$setTe;t#JJ&K
Z
Z
if#ee$7etSource#&YYbA4&
X
tr+
X
psYcon$prepareStatement#JSelect W from Customer
-here CCodeYVJ&K
ps$setStrin7#4.tB4$7etTe;t#&&K
rsYps$e;ecute[uer+#&K
rs$ne;t#&K
tBA$setTe;t#rs$7etStrin7#Q&&K
taB$setTe;t#rs$7etStrin7#44&&K
tB5$setTe;t#Strin7$)alueOf#rs$7et"nt#B&&&K
tB3$setTe;t#Strin7$)alueOf#rs$7etStrin7#4A&&&K
tBB$setTe;t#rs$7etStrin7#43&&K
psYcon$prepareStatement#JSelect W from Boo,in7
-here CcodeYVJ&K
ps$setStrin7#4.tB4$7etTe;t#&&K
rsYps$e;ecute[uer+#&K
rs$ne;t#&K
tBP$setTe;t#Strin7$)alueOf#rs$7et"nt#A&&&K
tBQ$setTe;t#rs$7etStrin7#3&&K
tB2$setTe;t#rs$7etStrin7#B&&K
tB9$setTe;t#Strin7$)alueOf#rs$7et"nt#P&&&K
Z
catch#E;ception ee4&
X
tB4$setTe;t#JError in /ecord findin7J&K
tB1$setTe;t#JJ&K
tBA$setTe;t#JJ&K
taB$setTe;t#JJ&K
tB5$setTe;t#JJ&K
tB3$setTe;t#JJ&K
tBB$setTe;t#JJ&K
tBP$setTe;t#JJ&K
tBQ$setTe;t#JJ&K
tB2$setTe;t#JJ&K
tB9$setTe;t#JJ&K
Z
Z
if#ee$7etSource#&YYr4&
X
r5$setSelected#false&K
r4$setSelected#true&K
Z
if#ee$7etSource#&YYr5&
X
r4$setSelected#false&K
r5$setSelected#true&K
Z
if#ee$7etSource#&YYrA&
X
r3$setSelected#false&K
rA$setSelected#true&K
Z
if#ee$7etSource#&YYr3&
X
rA$setSelected#false&K
r3$setSelected#true&K
Z
if#ee$7etSource#&YYrB&
X
rP$setSelected#false&K
rB$setSelected#true&K
Z
if#ee$7etSource#&YYrP&
X
rB$setSelected#false&K
rP$setSelected#true&K
Z
if#ee$7etSource#&YYcb5&
X
Strin7 strK
strY#Strin7&cb5$7etSelected"tem#&K
if#str$e6uals#JB+ Credit CardJ&&
X
tAQ$setEnabled#true&K
tAB$setEnabled#true&K
Z
else if#str$e6uals#JB+ CashJ&&
X
tAQ$setEnabled#false&K
tAB$setEnabled#true&K
Z
Z
Z
public static )oid main#Strin7 aMN&
X
Hotel ht Yne- Hotel#&K
Z
class M+EinLis e;tends Eindo-Adapter
X
public )oid -indo-Closin7#Eindo-E)ent -&
X
Hotel htK
htY#Hotel&-$7etSource#&K
ht$dispose#&K
S+stem$e;it#1&K
Z
Z
class M+:ocusLis implements :ocusListener
X
public )oid focusGained#:ocusE)ent e&
X
Z
public )oid focusLost#:ocusE)ent e&
X
if#e$7etSource#&YYt4P&
X
tr+
X
psYcon$prepareStatement#JSelect W from Customer -here
CCodeYVJ&K
ps$setStrin7#4.t4P$7etTe;t#&&K
rsYps$e;ecute[uer+#&K
rs$ne;t#&K
t51$setTe;t#rs$7etStrin7#A& S J J S rs$7etStrin7#5&&K
ta3$setTe;t#rs$7etStrin7#44&&K
Z
catch#E;ception e;&
X
t4A$setTe;t#J"n)alid Customer o$ \ Tr+ A7ainJ&K
t51$setTe;t#JJ&K
ta3$setTe;t#JJ&K
Z
Z
if#e$7etSource#&YYtA2&
X
tr+
X
psYcon$prepareStatement#JSelect W from Boo,in7 -here
/oYVJ&K
ps$setStrin7#4.tA2$7etTe;t#&&K
rsYps$e;ecute[uer+#&K
rs$ne;t#&K
t5B$setTe;t#rs$7etStrin7#4&&K
tA9$setTe;t#rs$7etStrin7#3&&K
psYcon$prepareStatement#JSelect !ate#&J&K
rsYps$e;ecute[uer+#&K
rs$ne;t#&K
t5P$setTe;t#rs$7etStrin7#4&&K
psYcon$prepareStatement#JSelect !ate!iff#FdF.V.V&J&K
ps$setStrin7#4.tA9$7etTe;t#&&K
ps$setStrin7#5.t5P$7etTe;t#&&K
rsYps$e;ecute[uer+#&K
rs$ne;t#&K
t5Q$setTe;t#rs$7etStrin7#4&&K
psYcon$prepareStatement#JSelect W from /ooms -here
/oYVJ&K
ps$setStrin7#4.tA2$7etTe;t#&&K
rsYps$e;ecute[uer+#&K
rs$ne;t#&K
int rentK
rentYrs$7et"nt#A&W"nte7er$parse"nt#t5Q$7etTe;t#&&K
t52$setTe;t#Strin7$)alueOf#rent&&K
int amt.st.arK
amtY"nte7er$parse"nt#t52$7etTe;t#&&
S"nte7er$parse"nt#tA1$7etTe;t#&&K
tA4$setTe;t#Strin7$)alueOf#amt&& K
stYamtW41@411K
tA5$setTe;t#Strin7$)alueOf#st&&K
tAA$setTe;t#J1J&K
amtYamtSstK
tA3$setTe;t#Strin7$)alueOf#amt&&K
Z
catch#E;ception e;&
X
t5B$setTe;t#J"n)alid Boo,in7 o$ \ Tr+ A7ain J S
e;$7etMessa7e#&&K
Z
Z
if#e$7etSource#&YYtAB&
X
int arK
arY"nte7er$parse"nt#tA3$7etTe;t#&&0
"nte7er$parse"nt#tAB$7etTe;t#&&K
tAP$setTe;t#Strin7$)alueOf#ar&& K
Z
if#e$7etSource#&YYtAQ&
X
tAB$setTe;t#Strin7$)alueOf#tA3$7etTe;t#&&&K
Z
if#e$7etSource#&YYtB1&
X
Strin7 ssMNK
ssYne- Strin7M51NK
int iY1K
tr+
X
psYcon$prepareStatement#JSelect W from Customer
-here :ameYVJ&K
ps$setStrin7#4.tB1$7etTe;t#&&K
rsYps$e;ecute[uer+#&K
-hile#rs$ne;t#&&
X
ssMiNYrs$7etStrin7#4&K
iSSK
Z
elst$setList!ata#ss&K
elst$setVisible/o-Count#B&K
tB4$setTe;t#JJ&K
tBA$setTe;t#JJ&K
taB$setTe;t#JJ&K
tB5$setTe;t#JJ&K
tB3$setTe;t#JJ&K
tBB$setTe;t#JJ&K
tBP$setTe;t#JJ&K
tBQ$setTe;t#JJ&K
tB2$setTe;t#JJ&K
tB9$setTe;t#JJ&K
Z
catch#E;ception e4&
X
tB4$setTe;t#JSorr+ \\ o such record A)ailableJ&K
Z
Z
Z
Z
class M+"temLis implements "temListener
X
public )oid itemStateChan7ed#"temE)ent ee&
X
if#ee$7etSource#&YYrP&
X
if#rP$isSelected#&&
X
tQ$setEnabled#true&K
t2$setEnabled#true&K
t9$setEnabled#true&K
Z
else
X
tQ$setEnabled#false&K
t2$setEnabled#false&K
t9$setEnabled#false&K
Z
Z
if#ee$7etSource#&YYc4&
X
if#c4$isSelected#&&
X
t31$setEnabled#true&K
t31$setTe;t#JJ&K
Z
else
X
t31$setEnabled#false&K
t31$setTe;t#J1J&K
Z
Z
if#ee$7etSource#&YYc5&
X
if#c5$isSelected#&&
X
t34$setEnabled#true&K
t34$setTe;t#JJ&K
Z
else
X
t34$setEnabled#false&K
t34$setTe;t#J1J&K
Z
Z
if#ee$7etSource#&YYcA&
X
if#cA$isSelected#&&
X
t35$setEnabled#true&K
t35$setTe;t#JJ&K
Z
else
X
t35$setEnabled#false&K
t35$setTe;t#J1J&K
Z
Z
if#ee$7etSource#&YYc3&
X
if#c3$isSelected#&&
X
t3A$setEnabled#true&K
t3A$setTe;t#JJ&K
Z
else
X
t3A$setEnabled#false&K
t3A$setTe;t#J1J&K
Z
Z
if#ee$7etSource#&YYcB&
X
if#cB$isSelected#&&
X
t33$setEnabled#true&K
t33$setTe;t#JJ&K
Z
else
X
t33$setEnabled#false&K
t33$setTe;t#J1J&K
Z
Z
if#ee$7etSource#&YYcP&
X
if#cP$isSelected#&&
X
t3B$setEnabled#true&K
t3B$setTe;t#JJ&K
Z
else
X
t3B$setEnabled#false&K
t3B$setTe;t#J1J&K
Z
Z
if#ee$7etSource#&YYcQ&
X
if#cQ$isSelected#&&
X
t3P$setEnabled#true&K
t3P$setTe;t#JJ&K
Z
else
X
t3P$setEnabled#false&K
t3P$setTe;t#J1J&K
Z
Z
Z
Z
Z
Cser 'anual
,ogin %orm@-
'ain %orm@-
Customer %orm@-
0oo4ing %orm@-
0illing %orm@-
!nDuiry %orm@-
Chapter--8
Conclusion
The pro'ect is based on the operational aspects of a hotel and a stud+
of all the functions of the different department in the hotel$
"t 7i)es complete e;posure of the re6uirement of the mana7ement for
smooth functionin7$ The mana7ement policies differ from one hotel to another
in thus outloo, but there is not much difference in the functionin7 of the hotels$
" also -ould li,e to than, all the teachers of BCA and especiall+ Mr$
Vi'a+ Tha,ur in 7i)in7 me the 7uidance in completin7 the pro'ect$
The ob'ecti)e of the pro'ect -as to stud+ the )arious aspects of a hotel
in 7eneral and the front office. house,eepin7 and the food and be)era7e
departments in the depth to identif+ its dra-bac,s and su77est suitable
solution durin7 trainin7 period$ The stud+ is limited b+ lac, of time and
information$
There are different forms and tables are used$ The data is stored in
tables automaticall+$ " tried m+ best to do this pro'ect$ Ho-e)er the -hole
s+stem can not be chan7ed. but the computeri?ed s+stem desi7ned not onl+
sa)es time but at the same time reduces labour G e;penditures$ "n traditional
s+stem. there -ere lot of irre7ularities founds in 7eneratin7 data to -here as
in modified and computeri?ed s+stem in e)er+ problem o)ercome -ith the
press of button$ This s+stem pro)ides the securit+ from loss. disclosure.
modification and destruction of data$ This s+stem pro)ides inte7rit+ of proper
functionin7 of pro7rams$
Chapter--:
Anne;ure
A 0 Artificial neural net-or,
!CS 0 !istributed Control S+stem
HM" 0 Human Machine "nterface
SCA!A 0 Super)isor+ Control and !ata Ac6uisition
%LC 0 %ro7rammable Lo7ic Controller
EEE I Eorld Eide Eeb
%LC0%ro7rammable Lo7ic Controllers
HM" 0 Human0Machine "nterfaces
CH"0 Computer Human "nterfaces
MM"0Man0Machine "nterfaces
: G B I:ood and Be)era7e
HTT%0 H+per Te;t Transfer %rotocol
Chapter--<
0ibliography
Here " -ould li,e to mention about the sources of information in due course of
-ritin7 the pro'ect report G -ould li,e to state that the information obtained throu7h
different presentation G ne-s article has 7reatl+ contributed to the successful
completion of the pro'ect$ The list of different sources is mentioned belo-*
4$ <ohn ^o,o-s,i .<a)a 5 <5SE 4$3
5$ =$ !aniel Lian7 .An "ntroduction to <a)a %ro7rammin7
A$ %atric, au7hton .The Complete /eference <a)a 5
3$ C$!esai.!ata Base S+stem
B$ >al+ani publications. !atabase Mana7ement S+stem