i.p project , hotel report , class xii

Upload: prabhakaran-ganju

Post on 17-Feb-2018

219 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/23/2019 I.P project , hotel report , class xii

    1/44

    A

    DISSERTATION SUBMITTED

    AS PARTIAL FULFILLMENT OF THE REQUIREMENT OF THE SUBJECT

    INFORMATICS PRACTICES

    OF

    CLASS XII

    OF

    CENTRAL BOARD OF SECONDARY EDUCATION

    SESSION 2015 16

    Submitted by

    Rishab Thakur

    (REG. NO. : )

    Under the Supervision of

    SUNITA DEKA

    Computer Teacher,Opp. To ram Mandir, Basistha Road,

    Guwahati 7! "#$, %ssam.

    Delhi Public School, GuwahatiAhomgaon, Guwahati, Assam 781 !".

  • 7/23/2019 I.P project , hotel report , class xii

    2/44

    Delhi Public School, Guwahati Phone:(0361)2Ahomgaon,Guwahati 781 029, Assam.

    Date:.

    Ceti!icate

    This is to certify thatRishab Thakur student of C&ass '(( ofCBS), successfully

    carried out the proect !or" entitled"Hotel Management Systemat Delhi Pu#lic

    $chool, %u!ahati, &ho'aon, %u!ahati, &ssa' 2*

    for the session 201+16, under 'y uidance.

    This proect report has #een prepared as a partial fulfill'ent of the su#ect Informatis!ratiesof "lass # $IIunder"entral %oar& of Seon&ary E&uationthe session 200-0*.

    Sunita De#aComputer Teacher,

    %hom*aon,

    Guwahati 7! "#$, %ssam.

  • 7/23/2019 I.P project , hotel report , class xii

    3/44

    Delhi Public School, Guwahati Phone :(0361)2Ahomgaon,

    Guwahati 781 029, Assam.

    Date:.

    Ceti!icate

    This is to certify thatRishab'Reg( No()a student of C&ass '(( ofCBS), successfully

    carried out the proect !or" entitled"Hotel Management Systemat Delhi Pu#lic

    $chool, &ho'aon, %u!ahati, &ssa' 2*for the session 201+16, under 'y uidance.

    This proect report has #een prepared as a partial fulfill'ent of the su#ect Informatis

    !ratiesof "lass # $IIunder"entral %oar& of Seon&ary E&uationthe session 200-

    0*.

    $%s. Chan&ale#ha 'awat(+rincipa&,

    e&hi +u-&ic Schoo&,Guwahati, %hom*aon,

    Guwahati 7! "#$, %ssam.

  • 7/23/2019 I.P project , hotel report , class xii

    4/44

    A#$NO%&E'GEENT

    a' /ery 'uch rateful toDelhi !ubli Shool* +u,ahatifor i/in us the chance to

    carry out our lass proect !or" at its pre'ises (&ho'aon, %u!ahati, &ssa'

    -1 02*) for the session 201+16.

    !ould li"e to epress 'y deepest sense of ratitude to Sunita De#a*

    o'puter Teacher, Delhi Pu#lic $chool, %u!ahati for her constant inspiration, /alua#le

    suestions and construction criticis' at e/ery stae of the present !or".

    $'ishab(

    C&ass '((, (nfo. Sc.%hom*aon,Guwahati 7!

    "#$, %ssam.

  • 7/23/2019 I.P project , hotel report , class xii

    5/44

    CONTENTS

    Chapters Page No.

    1.Introductions

    1.1 Introduction to RDBMS

    1.2 Introduction to NetBeans IDE 6.7.1

    2.Overview of the System

    3.Objective of the Proposed System

    4.Tools/Environment used

    5.System Analysis

    6.System Design

    6.1 Description of the System Modules

    6.2 Description of the Table/Relation

    6.3 Data Dictionary

    7.Report7.1 Input Form

    )))

  • 7/23/2019 I.P project , hotel report , class xii

    6/44

    *+'-DC*-+S

    1.1 *nto&uction to 'D/%S

    4D5$ stands for 4elational Data#ase anae'ent $yste'. 4D5$ data is

    structured in data#ase ta#les, fields and records. 7ach 4D5$ ta#le consists ofdata#ase ta#le ro!s. 7ach data#ase ta#le ro! consists of one or 'ore data#ase ta#le

    fields.

    4D5$ store the data into collection of ta#les, !hich 'iht #e related #y co''on

    fields (data#ase ta#le colu'ns). 4D5$ also pro/ide relational operators to

    'anipulate the data stored into the data#ase ta#les. ost 4D5$ use $89 asdata#ase uery lanuae.

    7dar odd introduced the relational data#ase 'odel. any 'odern D5$ do not

    confor' to the odd;s definition of a 4D5$, #ut nonetheless they are still

    considered to #e 4D5$.

    The 'ost popular 4D5$ are $ $89 $er/er, D52, indo!s, ac, 9inu, and $olaris. The =et5eans proect consists of an

    opensource D7and an application platfor'that ena#le de/elopers to rapidly create!e#, enterprise, des"top, and 'o#ile applications usin the ?a/a platfor', as !ell as

    ?a/a@, PAP, ?a/a$cript and &a, 4u#y and 4u#y on 4ails, %roo/y and %rails, andBCC.

    The =et5eans proect is supported #y a /i#rant de/eloper co''unity and offers

    etensi/e docu'entation and traininresources as !ell as a di/erse selection of thirdpartypluins.

    =et5eans D7 6. is interated !ith Proect enai, a colla#orati/e en/iron'ent forde/elopers to host opensource proects. >ith enai and the =et5eans D7, a tea' of

    de/elopers is a#le to create proects, chec" out, edit, de#u, #uild, discuss, and

    co''it code, all throuh one easytouse interfaceE

    The release also #uilds on the success of =et5eans 6.+ !ith nati/e support fora/enF %lass@ish, issue trac"er and Audson interationsF and enhance'ents to ?a/a,

    PAP, 4u#y, %roo/y and BCC. Aihlihts of the 6. release include support for

    ?a/a$cript 1., 4u#y 4e'ote De#uin, and interation of the ?a/a 7 $D 3.0.

    GGG

    http://netbeans.org/features/index.htmlhttp://netbeans.org/features/platform/index.htmlhttp://netbeans.org/community/index.htmlhttp://netbeans.org/kb/index.htmlhttp://plugins.netbeans.org/http://kenai.com/http://netbeans.org/features/platform/index.htmlhttp://netbeans.org/community/index.htmlhttp://netbeans.org/kb/index.htmlhttp://plugins.netbeans.org/http://kenai.com/http://netbeans.org/features/index.html
  • 7/23/2019 I.P project , hotel report , class xii

    7/44

    -3'3*4 -5 6 SS%

    Aotel anae'ent $yste' 4oo's are the entities of real !orld syste' that contains

    fields and its respecti/e /alues in it. ollections of these related infor'ation 'a"es a

    data#ase. &n interface is selected to interact !ith the user and store the infor'ation

    passed #y the'.

    >hen an interface is eecuted, the entities interact #y sendin 'essaes to one

    another. $o, in this syste' fe! procedures are prepared to accept the /alues into the

    attri#utes, 'anipulate the entities to 'aintain the infor'ation in respecti/e ta#les and to

    prepare a report on the'.

    GGGGGGGGGGGGGGGGGGGGG

  • 7/23/2019 I.P project , hotel report , class xii

    8/44

    -/C*3 -5 6 P'-P-SD SS%

    The o#ecti/e of this syste' is to i'ple'ent the concept of 4D5$ !ith an

    nterface "no!n as =et5eans D7 6..1. The concept of fieldsB&ttri#utes, records, ta#les,

    7ntitiesB Data#ase, 4D5$, pac"ae, pac"ae interactin !ith ta#les, relation #et!een

    entities etc is #een used. >e ha/e already #een introduced to spreadsheets, data#ases,

    !ord processors and presentation soft!are earlier. That fa'iliarly is #een used to

    introduce the idea of ho! the soft!are can #e desined #y 'odelin it as operations

    per'itted on different entities.

    GGGGGGGGGGGGGG

    --S:+3*'-+%+ SD

  • 7/23/2019 I.P project , hotel report , class xii

    9/44

    SS% A+AS*S

    $yste' analysis is a set of techniue and raphical tools that allo! the analyst to

    de/elop a ne! "ind of syste' specification that easily understanda#le to the user. The

    oal of syste' de/elop'ent is to deli/er syste' in line !ith the user reuire'ent.

    The data in this syste' !ere collected fro' an oraniIation throuh inter/ie!s,

    uestionnaires, onsite o#ser/ation, procedure 'anuals, and the li"e, after analysis so'e

    of the fields !ere selected and used for calculation of profit of the oraniIation.

    GGGGGGGGGGGGGGG

  • 7/23/2019 I.P project , hotel report , class xii

    10/44

    SS% DS*G+

    6.1 Desci;tion o! the S

  • 7/23/2019 I.P project , hotel report , class xii

    11/44

    C-D

    The follo!in is the code for the process ::

    6otel %anagement$nt

  • 7/23/2019 I.P project , hotel report , class xii

    12/44

    !hile(rs.net())

    K

    $trin na'eLrs.et$trin(N=a'eN)F $trin phonenoLrs.et$trin(NPhonenoN)F

    $trin roo'noLrs.et$trin(N4oo'noN)F

    $trin roo'typeLrs.et$trin(N4oo'typeN)F $trin noofdaysLrs.et$trin(N=oofdaysN)F

    $trin noofadultsLrs.et$trin(N=oofadultsN)F

    $trin noofchildrenLrs.et$trin(N=oofchildrenN)F

    'odel.add4o!(ne!

  • 7/23/2019 I.P project , hotel report , class xii

    13/44

    for(int iL0FiRro!sFiCC)

    K

    'odel.re'o/e4o!(0)F M

    M

    M/oid setdata($trin )

    K

    tryK

    &4==%: Do =

  • 7/23/2019 I.P project , hotel report , class xii

    14/44

    9a#el3 L ne! a/a.s!in.?9a#el()F

    ttna'e L ne! a/a.s!in.?Tet@ield()F

    ttphone L ne! a/a.s!in.?Tet@ield()F 9a#elS L ne! a/a.s!in.?9a#el()F

    ttroo'no L ne! a/a.s!in.?Tet@ield()F

    prate L ne! a/a.s!in.?Panel()F r#$uite L ne! a/a.s!in.?4adio5utton()F

    r#$inle L ne! a/a.s!in.?4adio5utton()F

    r#Delue L ne! a/a.s!in.?4adio5utton()F 9a#el+ L ne! a/a.s!in.?9a#el()F

    co'#oday L ne! a/a.s!in.?o'#o5o()F

    9a#el6 L ne! a/a.s!in.?9a#el()F

    ttadultno L ne! a/a.s!in.?Tet@ield()F 9a#el L ne! a/a.s!in.?9a#el()F

    9a#el- L ne! a/a.s!in.?9a#el()F

    ttchildno L ne! a/a.s!in.?Tet@ield()F

    printpanel L ne! a/a.s!in.?Panel()F #tnPrint L ne! a/a.s!in.?5utton()F

    #tn7dit L ne! a/a.s!in.?5utton()F #tnDelete L ne! a/a.s!in.?5utton()F

    #tnhec"out L ne! a/a.s!in.?5utton()F

    updatepanel L ne! a/a.s!in.?Panel()F #tnpdate L ne! a/a.s!in.?5utton()F

    #tnancel L ne! a/a.s!in.?5utton()F

    $crollPane1 L ne! a/a.s!in.?$crollPane()F

    t#hotel L ne! a/a.s!in.?Ta#le()F

    setDefaultloseindo!onstants.7TU

  • 7/23/2019 I.P project , hotel report , class xii

    15/44

    puest9ayout.createParallel%roup(a/a.s!in.%roup9ayout.&lin'ent.97&D=%)

    .add%roup(puest9ayout.create$euential%roup() .addontainer%ap()

    .add%roup(puest9ayout.createParallel%roup(a/a.s!in.%roup9ayout.&lin'ent.97&D=%)

    .add%roup(puest9ayout.create$euential%roup()

    .addo'ponent(9a#el2)

    .addPreferred%ap(a/a.s!in.9ayout$tyle.o'ponentPlace'ent.479&T7D)

    .addo'ponent(ttna'e))

    .add%roup(puest9ayout.create$euential%roup() .addo'ponent(9a#el1)

    .add%ap(0, 0, $hort.&UH&97))

    .add%roup(puest9ayout.create$euential%roup()

    .addo'ponent(9a#el3)

    .addPreferred%ap(a/a.s!in.9ayout$tyle.o'ponentPlace'ent.479&T7D) .addo'ponent(ttphone))

    .add%roup(puest9ayout.create$euential%roup()

    .addo'ponent(9a#elS)

    .addPreferred%ap(a/a.s!in.9ayout$tyle.o'ponentPlace'ent.=479&T7D)

    .addo'ponent(ttroo'no)))

    .addontainer%ap()) )F

    puest9ayout.setHertical%roup(

    puest9ayout.createParallel%roup(a/a.s!in.%roup9ayout.&lin'ent.97&D=%)

    .add%roup(puest9ayout.create$euential%roup()

    .add%ap(20, 20, 20) .addo'ponent(9a#el1)

    .addPreferred%ap(a/a.s!in.9ayout$tyle.o'ponentPlace'ent.479&T7D)

    .add%roup(puest9ayout.createParallel%roup(a/a.s!in.%roup9ayout.&lin'ent.5&$79=7)

    .addo'ponent(9a#el2)

    .addo'ponent(ttna'e, a/a.s!in.%roup9ayout.P47@7447DU$V7,a/a.s!in.%roup9ayout.D7@&9TU$V7,

    a/a.s!in.%roup9ayout.P47@7447DU$V7))

    .add%ap(1-, 1-, 1-)

    .add%roup(puest9ayout.createParallel%roup(a/a.s!in.%roup9ayout.&lin'ent.5&$

    79=7)

    .addo'ponent(9a#el3) .addo'ponent(ttphone, a/a.s!in.%roup9ayout.P47@7447DU$V7,

    a/a.s!in.%roup9ayout.D7@&9TU$V7,

    a/a.s!in.%roup9ayout.P47@7447DU$V7))

  • 7/23/2019 I.P project , hotel report , class xii

    16/44

    .addPreferred%ap(a/a.s!in.9ayout$tyle.o'ponentPlace'ent.479&T7D,

    20, $hort.&UH&97)

    .add%roup(puest9ayout.createParallel%roup(a/a.s!in.%roup9ayout.&lin'ent.5&$

    79=7)

    .addo'ponent(9a#elS) .addo'ponent(ttroo'no, a/a.s!in.%roup9ayout.P47@7447DU$V7,

    a/a.s!in.%roup9ayout.D7@&9TU$V7,

    a/a.s!in.%roup9ayout.P47@7447DU$V7)) .addontainer%ap())

    )F

    prate.set5order(a/[email protected](a/a.s!in.5order@actor

    y.create9ine5order(ne! a/a.a!t.olor(0, 0, 0)), N4ate nfor'ationN))F

    #utton%roup1.add(r#$uite)F r#$uite.setTet(N$uiteN)F

    #utton%roup1.add(r#$inle)F

    r#$inle.setTet(N$inleN)F

    #utton%roup1.add(r#Delue)F

    r#Delue.setTet(NDelueN)F

    9a#el+.setTet(N4oo' Type:N)F

    co'#oday.setodel(ne! a/a.s!in.Defaulto'#o5oodel(ne! $trinO K N1N,

    N2N, N3N, NSN, N+N, N6N, NN M))F

    9a#el6.setTet(N=o. of days:N)F

    9a#el.setTet(N=o. of adults:N)F

    9a#el-.setTet(N=o. of children:N)F

    a/a.s!in.%roup9ayout prate9ayout L ne! a/a.s!in.%roup9ayout(prate)F

    prate.set9ayout(prate9ayout)F

    prate9ayout.setAoriIontal%roup(

    prate9ayout.createParallel%roup(a/a.s!in.%roup9ayout.&lin'ent.97&D=%)

    .add%roup(prate9ayout.create$euential%roup() .addontainer%ap()

    .add%roup(prate9ayout.createParallel%roup(a/a.s!in.%roup9ayout.&lin'ent.97&D

    =%) .addo'ponent(9a#el+)

    .addo'ponent(r#$inle)

    .addo'ponent(r#$uite)

  • 7/23/2019 I.P project , hotel report , class xii

    17/44

    .addo'ponent(r#Delue))

    .add%ap(S1, S1, S1)

    .add%roup(prate9ayout.createParallel%roup(a/a.s!in.%roup9ayout.&lin'ent.97&D

    =%)

    .add%roup(prate9ayout.create$euential%roup() .addo'ponent(9a#el-)

    .addPreferred%ap(a/a.s!in.9ayout$tyle.o'ponentPlace'ent.479&T7D) .addo'ponent(ttchildno,

    a/a.s!in.%roup9ayout.P47@7447DU$V7, 2*,

    a/a.s!in.%roup9ayout.P47@7447DU$V7))

    .add%roup(prate9ayout.createParallel%roup(a/a.s!in.%roup9ayout.&lin'ent.T4&

    9=%, false)

    .add%roup(prate9ayout.create$euential%roup()

    .addo'ponent(9a#el)

    .addPreferred%ap(a/a.s!in.9ayout$tyle.o'ponentPlace'ent.479&T7D) .addo'ponent(ttadultno))

    .add%roup(prate9ayout.create$euential%roup()

    .addo'ponent(9a#el6)

    .addPreferred%ap(a/a.s!in.9ayout$tyle.o'ponentPlace'ent.479&T7D)

    .addo'ponent(co'#oday,

    a/a.s!in.%roup9ayout.P47@7447DU$V7,a/a.s!in.%roup9ayout.D7@&9TU$V7,

    a/a.s!in.%roup9ayout.P47@7447DU$V7))))

    .addontainer%ap(36, $hort.&UH&97)) )F

    prate9ayout.setHertical%roup(

    prate9ayout.createParallel%roup(a/a.s!in.%roup9ayout.&lin'ent.97&D=%)

    .add%roup(prate9ayout.create$euential%roup()

    .addontainer%ap()

    .add%roup(prate9ayout.createParallel%roup(a/a.s!in.%roup9ayout.&lin'ent.5&$7

    9=7)

    .addo'ponent(9a#el+) .addo'ponent(9a#el6)

    .addo'ponent(co'#oday, a/a.s!in.%roup9ayout.P47@7447DU$V7,

    a/a.s!in.%roup9ayout.D7@&9TU$V7,a/a.s!in.%roup9ayout.P47@7447DU$V7))

    .add%roup(prate9ayout.createParallel%roup(a/a.s!in.%roup9ayout.&lin'ent.97&D

    =%) .add%roup(prate9ayout.create$euential%roup()

    .addPreferred%ap(a/a.s!in.9ayout$tyle.o'ponentPlace'ent.=479&T7D)

  • 7/23/2019 I.P project , hotel report , class xii

    18/44

    .addo'ponent(r#$uite)

    .addPreferred%ap(a/a.s!in.9ayout$tyle.o'ponentPlace'ent.479&T7D) .addo'ponent(r#$inle))

    .add%roup(prate9ayout.create$euential%roup()

    .add%ap(1*, 1*, 1*)

    .add%roup(prate9ayout.createParallel%roup(a/a.s!in.%roup9ayout.&lin'ent.5&$7

    9=7) .addo'ponent(9a#el)

    .addo'ponent(ttadultno,

    a/a.s!in.%roup9ayout.P47@7447DU$V7,

    a/a.s!in.%roup9ayout.D7@&9TU$V7,a/a.s!in.%roup9ayout.P47@7447DU$V7))))

    .addPreferred%ap(a/a.s!in.9ayout$tyle.o'ponentPlace'ent.479&T7D)

    .add%roup(prate9ayout.createParallel%roup(a/a.s!in.%roup9ayout.&lin'ent.5&$79=7)

    .addo'ponent(r#Delue) .addo'ponent(9a#el-)

    .addo'ponent(ttchildno, a/a.s!in.%roup9ayout.P47@7447DU$V7,

    a/a.s!in.%roup9ayout.D7@&9TU$V7,a/a.s!in.%roup9ayout.P47@7447DU$V7))

    .addontainer%ap(2, $hort.&UH&97))

    )F

    printpanel.set5order(a/[email protected](ne!

    a/a.a!t.olor(0, 0, 0)))F

    #tnPrint.setTet(NPrintN)F

    #tnPrint.add&ction9istener(ne! a/a.a!t.e/ent.&ction9istener() K

    pu#lic /oid actionPerfor'ed(a/a.a!t.e/ent.&ction7/ent e/t) K #tnPrint&ctionPerfor'ed(e/t)F

    M

    M)F

    #tn7dit.setTet(N7ditN)F

    #tn7dit.add&ction9istener(ne! a/a.a!t.e/ent.&ction9istener() K

    pu#lic /oid actionPerfor'ed(a/a.a!t.e/ent.&ction7/ent e/t) K #tn7dit&ctionPerfor'ed(e/t)F

    M

    M)F

    #tnDelete.setTet(NDeleteN)F

    #tnDelete.add&ction9istener(ne! a/a.a!t.e/ent.&ction9istener() K

    pu#lic /oid actionPerfor'ed(a/a.a!t.e/ent.&ction7/ent e/t) K #tnDelete&ctionPerfor'ed(e/t)F

    M

    M)F

  • 7/23/2019 I.P project , hotel report , class xii

    19/44

    #tnhec"out.setTet(Nhec"

  • 7/23/2019 I.P project , hotel report , class xii

    20/44

    M

    M)F

    #tnancel.setTet(NancelN)F

    #tnancel.add&ction9istener(ne! a/a.a!t.e/ent.&ction9istener() K

    pu#lic /oid actionPerfor'ed(a/a.a!t.e/ent.&ction7/ent e/t) K #tnancel&ctionPerfor'ed(e/t)F

    M

    M)F

    a/a.s!in.%roup9ayout updatepanel9ayout L ne!

    a/a.s!in.%roup9ayout(updatepanel)F

    updatepanel.set9ayout(updatepanel9ayout)F updatepanel9ayout.setAoriIontal%roup(

    updatepanel9ayout.createParallel%roup(a/a.s!in.%roup9ayout.&lin'ent.97&D=%

    ) .add%roup(updatepanel9ayout.create$euential%roup()

    .add%ap(1S, 1S, 1S) .addo'ponent(#tnpdate)

    .addPreferred%ap(a/a.s!in.9ayout$tyle.o'ponentPlace'ent.479&T7D)

    .addo'ponent(#tnancel) .addontainer%ap(a/a.s!in.%roup9ayout.D7@&9TU$V7,

    $hort.&UH&97))

    )F

    updatepanel9ayout.setHertical%roup(

    updatepanel9ayout.createParallel%roup(a/a.s!in.%roup9ayout.&lin'ent.97&D=%

    ) .add%roup(updatepanel9ayout.create$euential%roup()

    .addontainer%ap()

    .add%roup(updatepanel9ayout.createParallel%roup(a/a.s!in.%roup9ayout.&lin'ent

    .5&$79=7)

    .addo'ponent(#tnpdate)

    .addo'ponent(#tnancel)) .addontainer%ap(a/a.s!in.%roup9ayout.D7@&9TU$V7,

    $hort.&UH&97))

    )F

    t#hotel.setodel(ne! a/a.s!in.ta#le.DefaultTa#leodel(

    ne!

  • 7/23/2019 I.P project , hotel report , class xii

    21/44

    N=a'eN, NPhone =o.N, N4oo' =o.N, N4oo' TypeN, N=o. of daysN, N=o. of

    adultsN, N=o. of childrenN

    M ))F

    $crollPane1.setHie!portHie!(t#hotel)F

    a/a.s!in.%roup9ayout layout L ne!

    a/a.s!in.%roup9ayout(etontentPane())F

    etontentPane().set9ayout(layout)F layout.setAoriIontal%roup(

    layout.createParallel%roup(a/a.s!in.%roup9ayout.&lin'ent.97&D=%)

    .add%roup(layout.create$euential%roup()

    .add%roup(layout.createParallel%roup(a/a.s!in.%roup9ayout.&lin'ent.T4&9=%)

    .add%roup(layout.create$euential%roup()

    .add%ap(2-, 2-, 2-)

    .addo'ponent(printpanel,a/a.s!in.%roup9ayout.P47@7447DU$V7,

    a/a.s!in.%roup9ayout.D7@&9TU$V7,a/a.s!in.%roup9ayout.P47@7447DU$V7)

    .addPreferred%ap(a/a.s!in.9ayout$tyle.o'ponentPlace'ent.479&T7D, 1SS,$hort.&UH&97)

    .addo'ponent(updatepanel,

    a/a.s!in.%roup9ayout.P47@7447DU$V7,

    a/a.s!in.%roup9ayout.D7@&9TU$V7,a/a.s!in.%roup9ayout.P47@7447DU$V7))

    .add%roup(layout.create$euential%roup()

    .add%ap(20, 20, 20) .addo'ponent(puest, a/a.s!in.%roup9ayout.D7@&9TU$V7,

    a/a.s!in.%roup9ayout.D7@&9TU$V7, $hort.&UH&97)

    .add%ap(1-, 1-, 1-) .addo'ponent(prate, a/a.s!in.%roup9ayout.P47@7447DU$V7,

    a/a.s!in.%roup9ayout.D7@&9TU$V7,

    a/a.s!in.%roup9ayout.P47@7447DU$V7)))

    .add%ap(3S, 3S, 3S)) .add%roup(layout.create$euential%roup()

    .addo'ponent($crollPane1)

    .addontainer%ap()) )F

    layout.setHertical%roup(

    layout.createParallel%roup(a/a.s!in.%roup9ayout.&lin'ent.97&D=%) .add%roup(layout.create$euential%roup()

    .add%ap(2, 2, 2)

    .add%roup(layout.createParallel%roup(a/a.s!in.%roup9ayout.&lin'ent.97&D=%) .addo'ponent(puest, a/a.s!in.%roup9ayout.P47@7447DU$V7,

    a/a.s!in.%roup9ayout.D7@&9TU$V7,

    a/a.s!in.%roup9ayout.P47@7447DU$V7)

  • 7/23/2019 I.P project , hotel report , class xii

    22/44

    .addo'ponent(prate, a/a.s!in.%roup9ayout.P47@7447DU$V7,

    a/a.s!in.%roup9ayout.D7@&9TU$V7,

    a/a.s!in.%roup9ayout.P47@7447DU$V7))

    .addPreferred%ap(a/a.s!in.9ayout$tyle.o'ponentPlace'ent.=479&T7D)

    .add%roup(layout.createParallel%roup(a/a.s!in.%roup9ayout.&lin'ent.T4&9=%)

    .addo'ponent(printpanel, a/a.s!in.%roup9ayout.P47@7447DU$V7,

    a/a.s!in.%roup9ayout.D7@&9TU$V7,a/a.s!in.%roup9ayout.P47@7447DU$V7)

    .addo'ponent(updatepanel,

    a/a.s!in.%roup9ayout.P47@7447DU$V7,

    a/a.s!in.%roup9ayout.D7@&9TU$V7,a/a.s!in.%roup9ayout.P47@7447DU$V7))

    .addPreferred%ap(a/a.s!in.9ayout$tyle.o'ponentPlace'ent.=479&T7D)

    .addo'ponent($crollPane1, a/a.s!in.%roup9ayout.P47@7447DU$V7,-*, a/a.s!in.%roup9ayout.P47@7447DU$V7)

    .addontainer%ap(21, $hort.&UH&97)) )F

    pac"()F MBB RBeditorfoldQ

    pri/ate /oid #tnPrint&ctionPerfor'ed(a/a.a!t.e/ent.&ction7/ent e/t) K

    updatepanel.setHisi#le(true)Fprintpanel.setHisi#le(false)F

    ena#le1()F

    fla L 1F M

    pri/ate /oid #tn7dit&ctionPerfor'ed(a/a.a!t.e/ent.&ction7/ent e/t) K$trin L ?

  • 7/23/2019 I.P project , hotel report , class xii

    23/44

    K

  • 7/23/2019 I.P project , hotel report , class xii

    24/44

    pri/ate /oid #tnDelete&ctionPerfor'ed(a/a.a!t.e/ent.&ction7/ent e/t) K

    $trin r L ?

  • 7/23/2019 I.P project , hotel report , class xii

    25/44

    G @or details see

    http:BBdo!nload.oracle.co'Ba/aseBtutorialBuis!inBloo"andfeelBplaf.ht'l

    GB try K

    for (a/a.s!in.anaer.9oo"&nd@eelnfo info :

    a/a.s!in.anaer.etnstalled9oo"&nd@eels()) K if (N=i'#usN.euals(info.et=a'e())) K

    a/a.s!in.anaer.set9oo"&nd@eel(info.etlass=a'e())F

    #rea"F M

    M

    M catch (lass=ot@ound7ception e) K

    a/a.util.loin.9oer.et9oer(Aotelanae'ent@or'.class.et=a'e()).lo(a/a.uti

    l.loin.9e/el.$7H747, null, e)F

    M catch (nstantiation7ception e) K

    a/a.util.loin.9oer.et9oer(Aotelanae'ent@or'.class.et=a'e()).lo(a/a.uti

    l.loin.9e/el.$7H747, null, e)F M catch (lleal&ccess7ception e) K

    a/a.util.loin.9oer.et9oer(Aotelanae'ent@or'.class.et=a'e()).lo(a/a.util.loin.9e/el.$7H747, null, e)F

    M catch (a/a.s!in.nsupported9oo"&nd@eel7ception e) K

    a/a.util.loin.9oer.et9oer(Aotelanae'ent@or'.class.et=a'e()).lo(a/a.util.loin.9e/el.$7H747, null, e)F

    M

    BBRBeditorfoldQ

    BG reate and display the for' GB

    a/a.a!t.7/ent8ueue.in/o"e9ater(ne! 4unna#le() K pu#lic /oid run() K

    ne! Aotelanae'ent@or'().setHisi#le(true)F

    M

    M)F M

    BB Haria#les declaration do not 'odifypri/ate a/a.s!in.?5utton #tnancelF

    pri/ate a/a.s!in.?5utton #tnhec"outF

    pri/ate a/a.s!in.?5utton #tnDeleteF pri/ate a/a.s!in.?5utton #tn7ditF

    pri/ate a/a.s!in.?5utton #tnPrintF

    pri/ate a/a.s!in.?5utton #tnpdateF

    pri/ate a/a.s!in.5utton%roup #utton%roup1F pri/ate a/a.s!in.?o'#o5o co'#odayF

    pri/ate a/a.s!in.?9a#el 9a#el1F

    pri/ate a/a.s!in.?9a#el 9a#el2F

  • 7/23/2019 I.P project , hotel report , class xii

    26/44

    pri/ate a/a.s!in.?9a#el 9a#el3F

    pri/ate a/a.s!in.?9a#el 9a#elSF

    pri/ate a/a.s!in.?9a#el 9a#el+F pri/ate a/a.s!in.?9a#el 9a#el6F

    pri/ate a/a.s!in.?9a#el 9a#elF

    pri/ate a/a.s!in.?9a#el 9a#el-F pri/ate a/a.s!in.?$crollPane $crollPane1F

    pri/ate a/a.s!in.?Panel puestF

    pri/ate a/a.s!in.?Panel prateF pri/ate a/a.s!in.?Panel printpanelF

    pri/ate a/a.s!in.?4adio5utton r#DelueF

    pri/ate a/a.s!in.?4adio5utton r#$inleF

    pri/ate a/a.s!in.?4adio5utton r#$uiteF pri/ate a/a.s!in.?Ta#le t#hotelF

    pri/ate a/a.s!in.?Tet@ield ttadultnoF

    pri/ate a/a.s!in.?Tet@ield ttchildnoF

    pri/ate a/a.s!in.?Tet@ield ttna'eF pri/ate a/a.s!in.?Tet@ield ttphoneF

    pri/ate a/a.s!in.?Tet@ield ttroo'noF pri/ate a/a.s!in.?Panel updatepanelF

    BB 7nd of /aria#les declaration

    M

  • 7/23/2019 I.P project , hotel report , class xii

    27/44

    Seach *nte!ace

    pac"ae effersonF

    i'port a/a.sl.GFi'port a/a.s!in.?

  • 7/23/2019 I.P project , hotel report , class xii

    28/44

    $trin noofdaysLrs.et$trin(N=oofdaysN)F

    $trin noofadultsLrs.et$trin(N=oofadultsN)F

    $trin noofchildrenLrs.et$trin(N=oofchildrenN)F

    'odel.add4o!(ne! &4==%: Do =

  • 7/23/2019 I.P project , hotel report , class xii

    29/44

    Panel1.setPreferred$iIe(ne! a/a.a!t.Di'ension(+22, 200))F

    Panel1.set9ayout(null)F

    9a#el2.set5ac"round(ne! a/a.a!t.olor(0, 0, 0))F

    9a#el2.set@ont(ne! a/a.a!t.@ont(N>ide 9atinN, 3, 10))F BB =

  • 7/23/2019 I.P project , hotel report , class xii

    30/44

    ))F

    $crollPane1.setHie!portHie!(t#hotel)F

    Panel1.add($crollPane1)F

    $crollPane1.set5ounds(30, 230, +*0, *1)F

    9a#elS.set5ac"round(ne! a/a.a!t.olor(0, 102, 0))F

    9a#elS.set@ont(ne! a/a.a!t.@ont(NHi/aldiN, 1, 36))F BB =

  • 7/23/2019 I.P project , hotel report , class xii

    31/44

    K

    ueryLNselect G fro' hotel !here NCco'#o1.et$electedte'()

    CNLXNCtt/alue.etTet()CNXFNF

    delete()F

    4esult$et rsLst't.eecute8uery(uery)F

    !hile(rs.net())

    K $trin na'eLrs.et$trin(N=a'eN)F

    $trin phonenoLrs.et$trin(NPhonenoN)F

    $trin roo'noLrs.et$trin(N4oo'noN)F

    $trin roo'typeLrs.et$trin(N4oo'typeN)F $trin noofdaysLrs.et$trin(N=oofdaysN)F

    $trin noofadultsLrs.et$trin(N=oofadultsN)F

    $trin noofchildrenLrs.et$trin(N=oofchildrenN)F

    'odel.add4o!(ne!

  • 7/23/2019 I.P project , hotel report , class xii

    32/44

    M catch (lass=ot@ound7ception e) K

    a/a.util.loin.9oer.et9oer(Aotel$earch.class.et=a'e()).lo(a/a.util.loin.9e/el.$7H747, null, e)F

    M catch (nstantiation7ception e) K

    a/a.util.loin.9oer.et9oer(Aotel$earch.class.et=a'e()).lo(a/a.util.loin.9

    e/el.$7H747, null, e)F

    M catch (lleal&ccess7ception e) K

    a/a.util.loin.9oer.et9oer(Aotel$earch.class.et=a'e()).lo(a/a.util.loin.9

    e/el.$7H747, null, e)F

    M catch (a/a.s!in.nsupported9oo"&nd@eel7ception e) K

    a/a.util.loin.9oer.et9oer(Aotel$earch.class.et=a'e()).lo(a/a.util.loin.9

    e/el.$7H747, null, e)F

    M BBRBeditorfoldQ

    BG reate and display the for' GB

    a/a.a!t.7/ent8ueue.in/o"e9ater(ne! 4unna#le() K

    pu#lic /oid run() K ne! Aotel$earch().setHisi#le(true)F

    M

    M)F

    M

    BB Haria#les declaration do not 'odify

    pri/ate a/a.s!in.?5utton #tn$earchF pri/ate a/a.s!in.?o'#o5o co'#o1F

    pri/ate a/a.s!in.?9a#el 9a#el1F

    pri/ate a/a.s!in.?9a#el 9a#el2F pri/ate a/a.s!in.?9a#el 9a#el3F

    pri/ate a/a.s!in.?9a#el 9a#elSF

    pri/ate a/a.s!in.?Panel Panel1F

    pri/ate a/a.s!in.?$crollPane $crollPane1F pri/ate a/a.s!in.?Ta#le t#hotelF

    pri/ate a/a.s!in.?Tet@ield tt/alueF

    BB 7nd of /aria#les declarationM

    Dis;la< *nte!ace

    pac"ae effersonF

    i'port a/a.sl.GF

    i'port a/a.s!in.?

  • 7/23/2019 I.P project , hotel report , class xii

    33/44

    G

    G Jauthor $tudent

    GBpu#lic class AotelDisplay etends a/a.s!in.?@ra'e K

    onnection conF

    $tate'ent st'tF

    DefaultTa#leodel 'odelF

    BGG G reates ne! for' AotelDisplay

    GB

    pu#lic AotelDisplay() K

    inito'ponents()F 'odelL(DefaultTa#leodel)t#hotel.etodel()F

    M

    /oid

  • 7/23/2019 I.P project , hotel report , class xii

    34/44

    st't.close()F

    con.close()F

    M catch(7ception e)K

    ?&4==%: Do =

  • 7/23/2019 I.P project , hotel report , class xii

    35/44

    #tnDisplay.set@oreround(ne! a/a.a!t.olor(1+3, 0, 0))F

    #tnDisplay.setcon(ne!

    a/a.s!in.'aecon(N:ZZsersZZ$tudentZZDes"topZZ001C#ac"roundCpatternCdesins.pN))F BB =

  • 7/23/2019 I.P project , hotel report , class xii

    36/44

    .addontainer%ap(a/a.s!in.%roup9ayout.D7@&9TU$V7,

    $hort.&UH&97))

    )F

    pac"()F

    MBB RBeditorfoldQ

    pri/ate /oid #tnDisplay&ctionPerfor'ed(a/a.a!t.e/ent.&ction7/ent e/t) K

    sho!1()F M

    BGG

    G Jpara' ars the co''and line aru'ents GB

    pu#lic static /oid 'ain($trin arsO) K

    BG $et the =i'#us loo" and feel GB

    BBReditorfold defaultstateLNcollapsedN descLN 9oo" and feel settin code (optional)NQ

    BG f =i'#us (introduced in ?a/a $7 6) is not a/aila#le, stay !ith the default loo"and feel.

    G @or details see

    http:BBdo!nload.oracle.co'Ba/aseBtutorialBuis!inBloo"andfeelBplaf.ht'lGB

    try K

    for (a/a.s!in.anaer.9oo"&nd@eelnfo info :

    a/a.s!in.anaer.etnstalled9oo"&nd@eels()) K if (N=i'#usN.euals(info.et=a'e())) K

    a/a.s!in.anaer.set9oo"&nd@eel(info.etlass=a'e())F

    #rea"F M

    M

    M catch (lass=ot@ound7ception e) K

    a/a.util.loin.9oer.et9oer(AotelDisplay.class.et=a'e()).lo(a/a.util.loin.9

    e/el.$7H747, null, e)F

    M catch (nstantiation7ception e) K

    a/a.util.loin.9oer.et9oer(AotelDisplay.class.et=a'e()).lo(a/a.util.loin.9

    e/el.$7H747, null, e)F M catch (lleal&ccess7ception e) K

    a/a.util.loin.9oer.et9oer(AotelDisplay.class.et=a'e()).lo(a/a.util.loin.9e/el.$7H747, null, e)F

    M catch (a/a.s!in.nsupported9oo"&nd@eel7ception e) K

    a/a.util.loin.9oer.et9oer(AotelDisplay.class.et=a'e()).lo(a/a.util.loin.9e/el.$7H747, null, e)F

    M

    BBRBeditorfoldQ

  • 7/23/2019 I.P project , hotel report , class xii

    37/44

    BG reate and display the for' GB

    a/a.a!t.7/ent8ueue.in/o"e9ater(ne! 4unna#le() K pu#lic /oid run() K

    ne! AotelDisplay().setHisi#le(true)F

    M M)F

    M

    BB Haria#les declaration do not 'odify

    pri/ate a/a.s!in.?5utton #tnDisplayF

    pri/ate a/a.s!in.?9a#el 9a#el1F

    pri/ate a/a.s!in.?$crollPane $crollPane1F pri/ate a/a.s!in.?Ta#le t#hotelF

    BB 7nd of /aria#les declaration

    M

    %ain %enu

    pac"ae effersonF

    BGG

    GG Jauthor $tudent

    GB

    pu#lic class Aotelain etends a/a.s!in.?@ra'e K

    Aotelanae'ent@or' h'1 L ne! Aotelanae'ent@or'()F Aotel$earch hs1 L ne! Aotel$earch()F

    AotelDisplay hd1 L ne! AotelDisplay()F

    BGG

    G reates ne! for' Aotelain

    GB pu#lic Aotelain() K

    inito'ponents()F

    M

    BGG

    G This 'ethod is called fro' !ithin the constructor to initialiIe the for'.

    G >&4==%: Do =

  • 7/23/2019 I.P project , hotel report , class xii

    38/44

    enute'1 L ne! a/a.s!in.?enute'()F

    enute'2 L ne! a/a.s!in.?enute'()F

    enute'3 L ne! a/a.s!in.?enute'()F

    enu1.setTet(Nenu1N)F

    setDefaultloseindo!onstants.7TU

  • 7/23/2019 I.P project , hotel report , class xii

    39/44

    layout.setHertical%roup(

    layout.createParallel%roup(a/a.s!in.%roup9ayout.&lin'ent.97&D=%)

    .addo'ponent(9a#el1, a/a.s!in.%roup9ayout.D7@&9TU$V7,a/a.s!in.%roup9ayout.D7@&9TU$V7, $hort.&UH&97)

    )F

    pac"()F

    MBB RBeditorfoldQ

    pri/ate /oid enute'1&ctionPerfor'ed(a/a.a!t.e/ent.&ction7/ent e/t) K

    h'1.sho!()F

    M

    pri/ate /oid enute'2&ctionPerfor'ed(a/a.a!t.e/ent.&ction7/ent e/t) K

    hs1.sho!()F

    M

    pri/ate /oid enute'3&ctionPerfor'ed(a/a.a!t.e/ent.&ction7/ent e/t) K

    hd1.sho!()F M

    BGG G Jpara' ars the co''and line aru'ents

    GB

    pu#lic static /oid 'ain($trin arsO) K

    BG $et the =i'#us loo" and feel GB BBReditorfold defaultstateLNcollapsedN descLN 9oo" and feel settin code (optional)

    NQ

    BG f =i'#us (introduced in ?a/a $7 6) is not a/aila#le, stay !ith the default loo"and feel.

    G @or details see

    http:BBdo!nload.oracle.co'Ba/aseBtutorialBuis!inBloo"andfeelBplaf.ht'lGB

    try K

    for (a/a.s!in.anaer.9oo"&nd@eelnfo info :

    a/a.s!in.anaer.etnstalled9oo"&nd@eels()) K if (N=i'#usN.euals(info.et=a'e())) K

    a/a.s!in.anaer.set9oo"&nd@eel(info.etlass=a'e())F

    #rea"F M

    M

    M catch (lass=ot@ound7ception e) K

    a/a.util.loin.9oer.et9oer(Aotelain.class.et=a'e()).lo(a/a.util.loin.9e/

    el.$7H747, null, e)F

    M catch (nstantiation7ception e) K

    a/a.util.loin.9oer.et9oer(Aotelain.class.et=a'e()).lo(a/a.util.loin.9e/

    el.$7H747, null, e)F

  • 7/23/2019 I.P project , hotel report , class xii

    40/44

    M catch (lleal&ccess7ception e) K

    a/a.util.loin.9oer.et9oer(Aotelain.class.et=a'e()).lo(a/a.util.loin.9e/el.$7H747, null, e)F

    M catch (a/a.s!in.nsupported9oo"&nd@eel7ception e) K

    a/a.util.loin.9oer.et9oer(Aotelain.class.et=a'e()).lo(a/a.util.loin.9e/

    el.$7H747, null, e)F

    M BBRBeditorfoldQ

    BG reate and display the for' GB

    a/a.a!t.7/ent8ueue.in/o"e9ater(ne! 4unna#le() K pu#lic /oid run() K

    ne! Aotelain().setHisi#le(true)F

    M

    M)F M

    BB Haria#les declaration do not 'odify

    pri/ate a/a.s!in.?9a#el 9a#el1F

    pri/ate a/a.s!in.?enu enu1F pri/ate a/a.s!in.?enu enu2F

    pri/ate a/a.s!in.?enu5ar enu5ar1F

    pri/ate a/a.s!in.?enute' enute'1F

    pri/ate a/a.s!in.?enute' enute'2F pri/ate a/a.s!in.?enute' enute'3F

    BB 7nd of /aria#les declaration

    MGGGGGGG

  • 7/23/2019 I.P project , hotel report , class xii

    41/44

    'P-'

    .1 *n;ut !oms

    %ain %enu

    6otel %anagement$nt

  • 7/23/2019 I.P project , hotel report , class xii

    42/44

  • 7/23/2019 I.P project , hotel report , class xii

    43/44

    Seach *nte!ace

    Dis;la< *nte!ace

  • 7/23/2019 I.P project , hotel report , class xii

    44/44

    GGG