Airline Reservation System .net

download Airline Reservation System .net

of 30

Transcript of Airline Reservation System .net

  • 8/20/2019 Airline Reservation System .net

    1/77

    AIRLINE RESERVATION SYSTEM

      INDEX

    1.INTRODUCTION……………………………………………………………………..1

      1.1 Abstract……………………………………………………………………………1

    1.2 Existing System……………………………………………………………………2

      1.3 Proposed System…………………………………………………………………...2

    2. REQUIREMENTS ……………………………………………………........................3

      2.1 Hardware Requirements…………………………………………………………....

      2.2 So!tware Requirements…………………………………………………………….

    3. MODULE DESCRIPTION………………………………………………………….24

    4. DESIGN………………………………………………………………………………27

      .1 "se case #iagram ………………………………………………………………..2$

      .2 %&ass #iagram ……………………………………………………………………3'

      .3 Sequence #iagram ……………………………………………………………….31

      . %o&&aboration #iagram……………………………………………………………32

      .( E)R #iagram ……………………………………………………………………..33

      .* #ata dictionary……………………………………………………………………3

    5. CODING……………………………………………………………………………...37

    6. TESTING……………………………………………………………………………..58

    7. OUTPUT SCREENS………………………………………………….......................63

    8. CONCLUSION………………………………………………………………………78

    9. ILIOGRAP!Y …………………………………………………………………..8"

    1

  • 8/20/2019 Airline Reservation System .net

    2/77

     

    INTRODUCTION

     

    2

  • 8/20/2019 Airline Reservation System .net

    3/77

    ASTRACT

    Air&ine Reser+ation System contains t,e detai&s about !&ig,t sc,edu&es and its !are tari!!s-

     passenger reser+ations and ticet records. An air&ine/s in+entory contains a&& !&ig,ts wit,

    t,eir a+ai&ab&e seats. 0,e in+entory o! an air&ine ser+ice is genera&&y di+ided into t,ree

    category o! c&asses e.g. irst- usiness or Economy c&ass4 and eac, category is ,a+ing

    seats up to 2* booings- a&ong wit, prices and booing conditions. 5n+entory data is

    imported and maintained t,roug, a Sc,edu&e #istribution System o+er standardi6ed

    inter!aces. 7ne o! t,e core !unctions o! t,e in+entory management o! air&ine reser+ations

    is t,e in+entory contro&. 5n+entory contro& steers ,ow many seats are a+ai&ab&e !or t,e

    di!!erent booing c&asses- by opening and c&osing indi+idua& booing c&asses !or sa&e. 5n

    combination wit, t,e !ares and booing conditions stored in t,e are 8uote System t,e

     price !or eac, so&d seat is determined.

    3

  • 8/20/2019 Airline Reservation System .net

    4/77

    1. INTRODUCTION

    1.1 E#$%&$'( S)%&*+ , 

    5n !ew countries i! a person wants to boo a !&ig,t ticet- ,e use to !o&&ow

    one o! t,ese t,ings9

    :anua&&y goes to t,e Airport and boo ,is ticet.

    #own&oading t,e ticet !orm as paper document- !i&&ing it manua&&y and

    submitting it at Airport.

    i&& t,e 0icet !orm on system and get t,e print out as paper documents to submit

    it at Airport. ooing t,e 0icet at some particu&ar registered ticet counters in on&ine.

    E+en abo+e approac,es mae a ticet booing on&ine- it was not comp&ete&y done

    on on&ine. Passenger may not ,a+e muc, !reedom o+er t,is approac,.

    Hence t,e Passenger may or may not be satis!ied wit, t,is approac, as it inc&udes

    manua& inter+ention &ie tra+e&&ing to Airport !or booing ,is ticet.

     

    1.2 P-/%*0 S)%&*+,

    0,e Proposed system ensures t,e comp&ete !reedom !or users- w,ere user at ,is own

    system can &ogon to t,is website and can boo ,is ticet. 7ur proposed system a&&ows

    on&y registered users to boo t,e ticets- +iew timings and cance& t,eir ticets.

      5n t,is Proposa& t,e entire wor is done on on&ine and ticet wit, id

    is a&so pro+ided !or passengers as a print document. Here passengers can send t,eir 

    queries and suggestions t,roug, a !eedbac !orm.

     

  • 8/20/2019 Airline Reservation System .net

    5/77

     

    RE8"5RE:E;0S

    (

  • 8/20/2019 Airline Reservation System .net

    6/77

    2. REQUIREMENTS

    2.1 !-0 -* S/*$$&$'

    • Processor 9 5nte& Pentium3

    • RA: 9 (12:

    • Hard dis 9 2indows ?$@P

    *

  • 8/20/2019 Airline Reservation System .net

    7/77

    M$-%& .NET -+*-,

    0,e .;E0 ramewor is a new computing p&at!orm t,at simp&i!ies app&ication

    de+e&opment in t,e ,ig,&y distributed en+ironment o! t,e 5nternet.

    -+*- $% 0*%$('*0 & $ &:* $'( ;indows)based app&ications and >eb)based app&ications.

    • 0o bui&d a&& communication on industry standards to ensure t,at code based on t,e

    .;E0 ramewor can integrate wit, any ot,er code.

    C

  • 8/20/2019 Airline Reservation System .net

    8/77

    T:* .NET -+*- :% & +$' +/'*'&%,

    •0,e common &anguage runtime.

    • 0,e .;E0 ramewor c&ass &ibrary.

    T:* ++' '((* -'&$+*  is t,e !oundation o! t,e .;E0 ramewor. Dou can

    t,in o! t,e runtime as an agent t,at manages code at execution time- pro+iding core

    ser+ices suc, as memory management- t,read management- and remoting- w,i&e a&so

    en!orcing strict type sa!ety and ot,er !orms o! code accuracy t,at ensure security and

    robustness. 5n !act- t,e concept o! code management is a !undamenta& princip&e o! t,e

    runtime. %ode t,at targets t,e runtime is nown as managed code- w,i&e code t,at does

    not target t,e runtime is nown as unmanaged code. 0,e c&ass &ibrary- t,e ot,er main

    component o! t,e .;E0 ramewor- is a compre,ensi+e- obBect)oriented co&&ection o! 

    reusab&e types t,at you can use to de+e&op app&ications ranging !rom traditiona&

    command)&ine or grap,ica& user inter!ace indows orms contro&s

    in H0:= documents. Hosting t,e runtime in t,is way maes managed mobi&e code

    $

  • 8/20/2019 Airline Reservation System .net

    9/77

    simi&ar to :icroso!t Acti+e contro&s4 possib&e- but wit, signi!icant impro+ements

    t,at on&y managed code can o!!er- suc, as semi)trusted execution and secure iso&ated !i&e

    storage.

      0,e !o&&owing i&&ustration s,ows t,e re&ations,ip o! t,e common &anguage runtime and

    t,e c&ass &ibrary to your app&ications and to t,e o+era&& system. 0,e i&&ustration a&so s,ows

    ,ow managed code operates wit,in a &arger arc,itecture.

    *&-*% &:* C++' L'((* R'&$+*,

     0,e common &anguage runtime manages memory- t,read execution- code execution-

    code sa!ety +eri!ication- compi&ation- and ot,er system ser+ices. 0,ese !eatures are

    intrinsic to t,e managed code t,at runs on t,e common &anguage runtime.

    >it, regards to security- managed components are awarded +arying degrees

    o! trust- depending on a number o! !actors t,at inc&ude t,eir origin suc, as t,e 5nternet-

    enterprise networ- or &oca& computer4. 0,is means t,at a managed component mig,t or 

    mig,t not be ab&e to per!orm !i&e)access operations- registry)access operations- or ot,er 

    sensiti+e !unctions- e+en i! it is being used in t,e same acti+e app&ication.

      0,e runtime en!orces code access security. or examp&e- users can trust t,at

    an executab&e embedded in a >eb page can p&ay an animation on screen or sing a song-

     but cannot access t,eir persona& data- !i&e system- or networ.

    0,e security !eatures o! t,e runtime t,us enab&e &egitimate 5nternet)

    dep&oyed so!tware to be exceptiona&&y !eature ric,.

      0,e runtime a&so en!orces code robustness by imp&ementing a strict type)

    and code)+eri!ication in!rastructure ca&&ed t,e common type system %0S4. 0,e %0S

    ensures t,at a&& managed code is se&!)describing. 0,e +arious :icroso!t and t,ird)party

    &anguage compi&ers

    ?

  • 8/20/2019 Airline Reservation System .net

    10/77

      ,i&e t,e runtime is designed !or t,e so!tware o! t,e !uture- it a&so supports so!tware

    o! today and yesterday. 5nteroperabi&ity between managed and unmanaged code enab&es

    de+e&opers to continue to use necessary %7: components and #==s.

     

    0,e runtime is designed to en,ance per!ormance. A&t,oug, t,e common &anguage

    runtime pro+ides many standard runtime ser+ices- managed code is ne+er interpreted. A

    !eature ca&&ed Bust)in)time F504 compi&ing enab&es a&& managed code to run in t,e nati+e

    mac,ine &anguage o! t,e system on w,ic, it is executing. :eanw,i&e- t,e memory

    manager remo+es t,e possibi&ities o! !ragmented memory and increases memory &oca&ity)

    o!)re!erence to !urt,er increase per!ormance.

      ina&&y- t,e runtime can be ,osted by ,ig,)per!ormance- ser+er)side app&ications-

    suc, as :icroso!t S8= Ser+erG and 5nternet 5n!ormation Ser+ices 55S4. 0,is

    1'

  • 8/20/2019 Airline Reservation System .net

    11/77

    in!rastructure enab&es you to use managed code to write your business &ogic- w,i&e sti&&

    enBoying t,e superior per!ormance o! t,e industrys best enterprise ser+ers t,at support

    runtime ,osting.

    .NET -+*- C%% L$;--),

    0,e .;E0 ramewor c&ass &ibrary is a co&&ection o! reusab&e types t,at tig,t&y integrate

    wit, t,e common &anguage runtime. 0,e c&ass &ibrary is obBect oriented- pro+iding types

    !rom w,ic, your own managed code can deri+e !unctiona&ity. 0,is not on&y maes t,e

    .;E0 ramewor types easy to use- but a&so reduces t,e time associated wit, &earning

    new !eatures o! t,e .;E0 ramewor. 5n addition- t,ird)party components can integrate

    seam&ess&y wit, c&asses in t,e .;E0 ramewor.

      or examp&e- t,e .;E0 ramewor co&&ection c&asses imp&ement a set o! inter!aces

    t,at you can use to de+e&op your own co&&ection c&asses. Dour co&&ection c&asses wi&&

     b&end seam&ess&y wit, t,e c&asses in t,e .;E0 ramewor.

      As you wou&d expect !rom an obBect)oriented c&ass &ibrary- t,e .;E0 ramewor types

    enab&e you to accomp&is, a range o! common programming tass- inc&uding tass suc, as

    string management- data co&&ection- database connecti+ity- and !i&e access. 5n addition to

    t,ese common tass- t,e c&ass &ibrary inc&udes types t,at support a +ariety o! specia&i6ed

    de+e&opment scenarios. or examp&e- we can use t,e .;E0 ramewor to de+e&op t,e

    !o&&owing types o! app&ications and ser+ices9

     

    • %onso&e app&ications.

    • Scripted or ,osted app&ications.

    • >indows

  • 8/20/2019 Airline Reservation System .net

    12/77

     or examp&e- t,e >indows orms c&asses are a compre,ensi+e set o! reusab&e types t,at

    +ast&y simp&i!y >indows indows orms contro&4 dep&oyed o+er t,e 5nternet as a >eb page. 0,is

    app&ication is muc, &ie ot,er c&ient app&ications9 it is executed nati+e&y- ,as access to

    &oca& resources- and inc&udes grap,ica& e&ements.

      5n t,e past- de+e&opers created suc, app&ications using %@%II in conBunction wit, t,e

    :icroso!t oundation %&asses :%4 or wit, a rapid app&ication de+e&opment RA#4

    en+ironment suc, as :icroso!t Jisua& asic.

    0,e .;E0 ramewor incorporates aspects o! t,ese existing products into a sing&e-

    consistent de+e&opment en+ironment t,at drastica&&y simp&i!ies t,e de+e&opment o! c&ient

    app&ications.

      0,e >indows orms c&asses contained in t,e .;E0 ramewor are designed to be

    used !or

  • 8/20/2019 Airline Reservation System .net

    13/77

      or examp&e- t,e .;E0 ramewor pro+ides simp&e properties to adBust +isua&

    attributes associated wit, !orms. 5n some cases t,e under&ying operating system does not

    support c,anging t,ese attributes direct&y- and in t,ese cases t,e .;E0 ramewor 

    automatica&&y recreates t,e !orms. 0,is is one o! many ways in w,ic, t,e .;E0

    ramewor integrates t,e de+e&oper inter!ace- maing coding simp&er and more

    consistent.

    "n&ie Acti+e contro&s- >indows orms contro&s ,a+e semi)trusted access to a users

    computer. 0,is means t,at binary or nati+e&y executing code can access some o! t,e

    resources on t,e users system suc, as

  • 8/20/2019 Airline Reservation System .net

    14/77

    I'&-0&$' & C>.NET,

    %K pronounced as %)s,arp4 is a new &anguage !or windows app&ications- intended as an

    a&ternati+e to t,e main pre+ious &anguages- %II- J. 5ts purpose is two !o&ds9

    5t gi+es access to many o! t,e !aci&ities pre+ious&y a+ai&ab&e on&y in %II- w,i&e retainingsome o! t,e simp&icity to &earn o! J.

    5t ,as been designed speci!ica&&y wit, t,e .;E0 ramewor in mind- and ,ence is +ery

    we&& structured !or writing code t,at wi&& be compi&ed !or t,e .;E0.

      %K is a simp&e- modern- obBect)oriented &anguage w,ic, aims to combine t,e ,ig,

     producti+ity o! J and raw power o! %II. %K is a new programming &anguage

    de+e&oped by :icroso!t.

      "sing %K we can de+e&op conso&e app&ications- web app&ications and windows

    app&ications .5n %K- :icroso!t ,as taen care o! %II prob&ems suc, as memory

    management- pointers- so !ort,.

    A&$=* S*-=*- P(*% .NET ?ASP.NET@

    1

  • 8/20/2019 Airline Reservation System .net

    15/77

      ASP.;E0 is a programming !ramewor bui&t on t,e common &anguage runtime t,at

    can be used on a ser+er to bui&d power!u& >eb app&ications. ASP.;E0 o!!ers se+era&

    important ad+antages o+er pre+ious >eb de+e&opment mode&s

    E':'*0 P*--+'*, ASP.;E0 is compi&ed common &anguage runtime code running

    on t,e ser+er. "n&ie its interpreted predecessors- ASP.;E0 can tae ad+antage o! ear&y

     binding- Bust)in)time compi&ation- nati+e optimi6ation- and cac,ing ser+ices rig,t out o! 

    t,e box. 0,is amounts to dramatica&&y better per!ormance be!ore you e+er write a &ine o! 

    code.

    -0BC%% T S//-&, A ric, too&box and designer in t,e Jisua& Studio integrated

    de+e&opment en+ironment comp&ement t,e ASP.;E0 !ramewor. >DS5>D< editing-

    drag)and)drop ser+er contro&s- and automatic dep&oyment are Bust a !ew o! t,e !eatures

    t,is power!u& too& pro+ides.

    P*- '0 *#$;$$&), ecause ASP.;E0 is based on t,e common &anguage runtime-

    t,e power and !&exibi&ity o! t,at entire p&at!orm is a+ai&ab&e to >eb app&ication

    de+e&opers. 0,e .;E0 ramewor c&ass &ibrary- :essaging- and #ata Access so&utions are

    a&& seam&ess&y accessib&e !rom t,e >eb. ASP.;E0 is a&so &anguage)independent- so you

    can c,oose t,e &anguage t,at best app&ies to your app&ication or partition your app&ication

    across many &anguages. urt,er- common &anguage runtime interoperabi&ity guarantees

    t,at your existing in+estment in %7:)based de+e&opment is preser+ed w,en migrating to

    ASP.;E0.

    S$+/$$&),  ASP.;E0 maes it easy to per!orm common tass- !rom simp&e !orm

    submission and c&ient aut,entication to dep&oyment and site con!iguration. or examp&e-

    t,e ASP.;E0 page !ramewor a&&ows you to bui&d user inter!aces t,at c&ean&y separate

    app&ication &ogic !rom presentation code and to ,and&e e+ents in a simp&e- Jisua& asic )

    &ie !orms processing mode&.

      M'(*;$$&),  ASP.;E0 emp&oys a text)based- ,ierarc,ica& con!iguration system-

    w,ic, simp&i!ies app&ying settings to your ser+er en+ironment and >eb app&ications.

    1(

  • 8/20/2019 Airline Reservation System .net

    16/77

    ecause con!iguration in!ormation is stored as p&ain text- new settings may be app&ied

    wit,out t,e aid o! &oca& administration too&s. 0,is L6ero &oca& administrationL p,i&osop,y

    extends to dep&oying ASP.;E0 ramewor app&ications as we&&. An ASP.;E0

    ramewor app&ication is dep&oyed to a ser+er simp&y by copying t,e necessary !i&es to

    t,e ser+er. ;o ser+er restart is required- e+en to dep&oy or rep&ace running compi&ed code.

    S;$$&) '0 A=$;$$&), ASP.;E0 ,as been designed wit, sca&abi&ity in mind- wit,

    !eatures speci!ica&&y tai&ored to impro+e per!ormance in c&ustered and mu&tiprocessor 

    en+ironments. urt,er- processes are c&ose&y monitored and managed by t,e ASP.;E0

    runtime- so t,at i! one misbe,a+es &eas- dead&ocs4- a new process can be created in its

     p&ace- w,ic, ,e&ps eep your app&ication constant&y a+ai&ab&e to ,and&e requests.

    C%&+$;$$&) '0 E#&*'%$;$$&), ASP.;E0 de&i+ers a we&&)!actored arc,itecture t,at

    a&&ows de+e&opers to Lp&ug)inL t,eir code at t,e appropriate &e+e&. 5n !act- it is possib&e to

    extend or rep&ace any subcomponent o! t,e ASP.;E0 runtime wit, your own custom)

    written component. 5mp&ementing custom aut,entication or state ser+ices ,as ne+er been

    easier 

    S*-$&), >it, bui&t in >indows aut,entication and per)app&ication con!iguration- you

    can be assured t,at your app&ications are secure.

    L'((* S//-&

      0,e :icroso!t .;E0 P&at!orm current&y o!!ers bui&t)in support !or many &anguages9

    C> V$% %$ %-$/& *&. 

    :& $% ASP.NET *; -+%F

    1*

  • 8/20/2019 Airline Reservation System .net

    17/77

    0,e ASP.;E0 >eb orms page !ramewor is a sca&ab&e common &anguage runtime)

     programming mode& t,at can be used on t,e ser+er to dynamica&&y generate >eb pages.

    5ntended as a &ogica& e+o&ution o! ASP ASP.;E0 pro+ides syntax compatibi&ity

    wit, existing pages4- t,e ASP.;E0 >eb orms !ramewor ,as been speci!ica&&y designed

    to address a number o! ey de!iciencies in t,e pre+ious mode&. 5n particu&ar- it pro+ides9

    • 0,e abi&ity !or de+e&opers to c&ean&y structure t,eir page &ogic in an order&y

    !as,ion not Lspag,etti codeL4.

    • 0,e abi&ity !or de+e&opment too&s to pro+ide strong >DS5>D< design support

    !or pages existing ASP code is opaque to too&s4.

    • 0,e abi&ity to create and use reusab&e "5 contro&s t,at can encapsu&ate common

    !unctiona&ity and t,us reduce t,e amount o! code t,at a page de+e&oper ,as to

    write.

      ASP.;E0 >eb orms pages are text !i&es wit, an. aspx !i&e name extension. 0,ey

    can be dep&oyed t,roug,out an 55S +irtua& root directory tree. >,en a browser c&ient

    requests. Aspx resources- t,e ASP.;E0 runtime parses and compi&es t,e target !i&e into

    a .;E0 ramewor c&ass. 0,is c&ass can t,en be used to dynamica&&y process incoming

    requests. ;ote t,at t,e .aspx !i&e is compi&ed on&y t,e !irst time it is accessedM t,e

    compi&ed type instance is t,en reused across mu&tip&e requests4.

    An ASP.;E0 page can be created simp&y by taing an existing H0:= !i&e and

    c,anging its !i&e name extension to .aspx no modi!ication o! code is required4. or 

    examp&e- t,e !o&&owing samp&e demonstrates a simp&e H0:= page t,at co&&ects a users

    name and category pre!erence and t,en per!orms a !orm post bac to t,e originating page

    w,en a button is c&iced9

      ASP.;E0 pro+ides syntax compatibi&ity wit, existing ASP pages. 0,is inc&udes support

    !or NO O code render b&ocs t,at can be intermixed wit, H0:= content wit,in an

    .aspx !i&e. 0,ese code b&ocs execute in a top)down manner at page render time.

    C0*B*:$'0 *; -+% ,

    1C

  • 8/20/2019 Airline Reservation System .net

    18/77

     ASP.;E0 supports two met,ods o! aut,oring dynamic pages. 0,e !irst is t,e met,od

    s,own in t,e preceding samp&es- w,ere t,e page code is p,ysica&&y dec&ared wit,in t,e

    originating .aspx !i&e. An a&ternati+e approac, is nown as t,e code)be,ind met,od w,ere

    t,e page code can b e more c&ean&y separated !rom t,e H0:= content into an entire&y

    separate !i&e.

    I'&-0&$' & ASP.NET S*-=*- C'&-%

     

    5n addition to or instead o!4 using H H code b&ocs to program dynamic content-

    ASP.;E0 page de+e&opers can use ASP.;E0 ser+er contro&s to program >eb Pages.

    Ser+er contro&s are dec&ared wit,in an .aspx !i&e using custom tags or intrinsic H0:=

    tags t,at contains a -' &JK%*-=*-K attributes +a&ue. 5ntrinsic H0:= tags are ,and&ed

     by one o! t,e contro&s in t,e S)%&*+.*;.UI.!&+C'&-% namespace. Any tag t,at

    doesnt exp&icit&y map to one o! t,e contro&s is assigned t,e type o!9

    S)%&*+.*;.UI.!&+ C'&-%.!&+G*'*-$C'&-.

      Ser+er contro&s automatica&&y maintain any c&ient)entered +a&ues between round trips to

    t,e ser+er. 0,is contro& state is not stored on t,e ser+er it is instead stored wit,in an

    $'/& &)/*JK:$00*'K !orm !ie&d t,at is round)tripped between requests4. ;ote a&so

    t,at no c&ient)side script is required.

    5n addition to supporting standard H0:= input contro&s- ASP.;E0 enab&es de+e&opers

    to uti&i6e ric,er custom contro&s on t,eir pages. or examp&e- t,e !o&&owing samp&e

    demonstrates ,ow t,e %/, 0-&&- contro& can be used to dynamica&&y disp&ay

    rotating ads on a page.

    • ASP.;E0 >eb orms pro+ide an easy and power!u& way to bui&d dynamic >eb

    "5.

    • ASP.;E0 >eb orms pages can target any browser c&ient t,ere are no script

    &ibrary or cooie requirements4.

    • ASP.;E0 >eb orms pages pro+ide syntax compatibi&ity wit, existing ASP

     pages.

    1$

  • 8/20/2019 Airline Reservation System .net

    19/77

    • ASP.;E0 ser+er contro&s pro+ide an easy way to encapsu&ate common

    !unctiona&ity.

    • ASP.;E0 s,ips wit, ( bui&t)in ser+er contro&s. #e+e&opers can a&so use contro&s

     bui&t by t,ird parties.

    • ASP.;E0 ser+er contro&s can automatica&&y proBect bot, up &e+e& and down)&e+e&

    H0:=.

    ADO.NET O=*-=$*,

      A#7.;E0 is an e+o&ution o! t,e A#7 data access mode& t,at direct&y addresses user 

    requirements !or de+e&oping sca&ab&e app&ications. 5t was designed speci!ica&&y !or t,e

    web wit, sca&abi&ity- state&essness- and := in mind.

    1?

  • 8/20/2019 Airline Reservation System .net

    20/77

      A#7.;E0 uses some A#7 obBects- suc, as t,e %onnection and %ommand obBects- and

    a&so introduces new obBects. Qey new A#7.;E0 obBects inc&ude t,e #ata Set- #ata

    Reader- and #ata Adapter.

    0,e important distinction between t,is e+o&+ed stage o! A#7.;E0 and pre+ious data

    arc,itectures is t,at t,ere exists an obBect )) t,e #ataSet )) t,at is separate and distinct

    !rom any data stores. ecause o! t,at- t,e #ataSet !unctions as a standa&one entity. Dou

    can t,in o! t,e #ataSet as an a&ways disconnected record set t,at nows not,ing about

    t,e source or destination o! t,e data it contains. 5nside a #ataSet- muc, &ie in a database-

    t,ere are tab&es- co&umns- re&ations,ips- constraints- +iews- and so !ort,.

    A #ataAdapter is t,e obBect t,at connects to t,e database to !i&& t,e #ataSet. 0,en- it

    connects bac to t,e database to update t,e data t,ere- based on operations per!ormed

    w,i&e t,e #ataSet ,e&d t,e data.

    5n t,e past- data processing ,as been primari&y connection)based. ;ow- in an e!!ort to

    mae mu&ti)tiered apps more e!!icient- data processing is turning to a message)based

    approac, t,at re+o&+es around c,uns o! in!ormation. At t,e center o! t,is approac, is t,e

    #ataAdapter- w,ic, pro+ides a bridge to retrie+e and sa+e data between a #ataSet and its

    source data store.

    5t accomp&is,es t,is by means o! requests to t,e appropriate S8= commands made

    against t,e data store.

    0,e :=)based #ataSet obBect pro+ides a consistent programming mode& t,at wors

    wit, a&& mode&s o! data storage9 !&at- re&ationa&- and ,ierarc,ica&. 5t does t,is by ,a+ing no

    now&edge o! t,e source o! its data- and by representing t,e data t,at it ,o&ds as

    co&&ections and data types. ;o matter w,at t,e source o! t,e data wit,in t,e #ataSet is- it

    is manipu&ated t,roug, t,e same set o! standard AP5s exposed t,roug, t,e #ataSet and its

    subordinate obBects.

    2'

  • 8/20/2019 Airline Reservation System .net

    21/77

      >,i&e t,e #ataSet ,as no now&edge o! t,e source o! its data- t,e managed pro+ider 

    ,as detai&ed and speci!ic in!ormation. 0,e ro&e o! t,e managed pro+ider is to connect- !i&&-

    and persist t,e #ataSet to and !rom data stores. 0,e 7=E # and S8= Ser+er .;E0 #ata

    Pro+iders System.#ata.7&e#b and System.#ata.Sq&%&ient4 t,at are part o! t,e .;et

    ramewor pro+ide !our basic obBects9 t,e %ommand- %onnection- #ata Reader and

    #ataAdapter. 5n t,e remaining sections o! t,is document- we&& wa& t,roug, eac, part o! 

    t,e #ataSet and t,e 7=E #@S8= Ser+er .;E0 #ata Pro+iders exp&aining w,at t,ey are-

    and ,ow to program against t,em. 0,e !o&&owing sections wi&& introduce you to some

    obBects t,at ,a+e e+o&+ed- and some t,at are new. 0,ese obBects are9

    • C''*&$'%. or connection to and managing transactions against database.

    • C++'0%. or issuing S8= commands against a database.

    • D& R*0*-%. or reading a !orward)on&y stream o! data records !rom a S8=

    Ser+er data source.

    • D&%*&%. or storing- remoting and programming against !&at data- := data and

    re&ationa& data.

    • D& A0/&*-%. or pus,ing data into a #ataSet- and reconci&ing data against a

    database.

    • C''*&$'%

    %onnections are used to ta& to databases- and are represented by pro+ider)speci!ic

    c&asses suc, as S8=%onnection. %ommands tra+e& o+er connections and resu&t sets are

    returned in t,e !orm o! streams w,ic, can be read by a #ata Reader obBect- or pus,ed into

    a #ataSet obBect.

    C++'0% ,

      %ommands contain t,e in!ormation t,at is submitted to a database- and are

    represented by pro+ider)speci!ic c&asses suc, as S8=%ommand. A command can be a

    stored procedure ca&&- an "P#A0E statement- or a statement t,at returns resu&ts. Dou can

    a&so use input and output parameters- and return +a&ues as part o! your command syntax.

    21

  • 8/20/2019 Airline Reservation System .net

    22/77

    0,e examp&e be&ow s,ows ,ow to issue an 5;SER0 statement against t,e ;ort,wind

    database.

    D& R*0*-% ,

      0,e #ata Reader obBect is somew,at synonymous wit, a read)on&y@!orward)on&y

    cursor o+er data. 0,e #ata Reader AP5 supports !&at as we&& as ,ierarc,ica& data. A #ata

    Reader obBect is returned a!ter executing a command against a database.0,e !ormat o! t,e

    returned #ataReader obBect is di!!erent !rom a recordset. or examp&e- you mig,t use t,e

    #ataReader to s,ow t,e resu&ts o! a searc, &ist in a web page.

    D& S*&% '0 D& A0/&*-%,

     

    D& S*&%,

    0,e #ataSet obBect is simi&ar to t,e A#7 Record set obBect- but more power!u&- and wit,

    one ot,er important distinction9 t,e #ataSet is a&ways disconnected. 0,e #ataSet obBect

    represents a cac,e o! data- wit, database)&ie structures suc, as tab&es- co&umns-

    re&ations,ips- and constraints.

     

    Howe+er- t,oug, a #ataSet can and does be,a+e muc, &ie a database- it is

    important to remember t,at #ataSet obBects do not interact direct&y wit, databases- or 

    ot,er source data. 0,is a&&ows t,e de+e&oper to wor wit, a programming mode& t,at is

    a&ways consistent- regard&ess o! w,ere t,e source data resides.

    #ata coming !rom a database- an := !i&e- !rom code- or user input can a&& be p&aced

    into #ataSet obBects. 0,en- as c,anges are made to t,e #ataSet t,ey can be traced and

    +eri!ied be!ore updating t,e source data. 0,e

  • 8/20/2019 Airline Reservation System .net

    23/77

    interc,anged +ia >eb Ser+ices. 5n !act- a #ataSet wit, a sc,ema can actua&&y be compi&ed

    !or type sa!ety and statement comp&etion.

    D& A0/&*-% ?OLEDSQL@

    0,e #ataAdapter obBect wors as a bridge between t,e #ataSet and t,e source data.

    "sing t,e pro+ider)speci!ic SqataAdapter a&ong wit, its associated Sq&command and

    Sq&%onnection4 can increase o+era&& per!ormance w,en woring wit, a :icroso!t S8=

    Ser+er databases. or ot,er 7=E #)supported databases- you wou&d use t,e

    7&e#b#ataAdapter obBect and its associated 7&e#b%ommand and 7&e#b%onnection

    obBects.

    0,e #ataAdapter obBect uses commands to update t,e data source a!ter c,anges

    ,a+e been made to t,e #ataSet. "sing t,e i&& met,od o! t,e #ataAdapter ca&&s t,e

    SE=E%0 commandM using t,e "pdate met,od ca&&s t,e 5;SER0- "P#A0E or #E=E0E

    command !or eac, c,anged row. Dou can exp&icit&y set t,ese commands in order to

    contro& t,e statements used at runtime to reso&+e c,anges- inc&uding t,e use o! stored

     procedures. or ad),oc scenarios- a %ommand ui&der obBect can generate t,ese at run)

    time based upon a se&ect statement.

    SQL SERVER  

    DATAASE,

    23

  • 8/20/2019 Airline Reservation System .net

    24/77

    A database management- or #:S- gi+es t,e user access to t,eir data and ,e&ps t,em

    trans!orm t,e data into in!ormation. Suc, database management systems inc&ude dase-

     paradox- 5:S- S8= Ser+er and S8= Ser+er. 0,ese systems a&&ow users to create- update

    and extract in!ormation !rom t,eir database.

      A database is a structured co&&ection o! data. #ata re!ers to t,e c,aracteristics o! 

     peop&e- t,ings and e+ents. S8= Ser+er stores eac, data item in its own !ie&ds. 5n S8=

    Ser+er- t,e !ie&ds re&ating to a particu&ar person- t,ing or e+ent are bund&ed toget,er to

    !orm a sing&e comp&ete unit o! data- ca&&ed a record it can a&so be re!erred to as raw or an

    occurrence4. Eac, record is made up o! a number o! !ie&ds. ;o two !ie&ds in a record can

    ,a+e t,e same !ie&d name.

    #uring an S8= Ser+er #atabase design proBect- t,e ana&ysis o! your business c,ange o+er 

    time- you de!ine any additiona& !ie&ds or c,ange t,e de!inition o! existing !ie&ds.

    SQL S*-=*- T;*%

    S8= Ser+er stores records re&ating to eac, ot,er in a tab&e. #i!!erent tab&es are created

    !or t,e +arious groups o! in!ormation. Re&ated tab&es are grouped toget,er to !orm a

    database.

    P-$+-) *)

    E+ery tab&e in S8= Ser+er ,as a !ie&d or a combination o! !ie&ds t,at unique&y identi!ies

    eac, record in t,e tab&e. 0,e "nique identi!ier is ca&&ed t,e Primary Qey- or simp&y t,e

    Qey. 0,e primary ey pro+ides t,e means to distinguis, one record !rom a&& ot,er in a

    tab&e. 5t a&&ows t,e user and t,e database system to identi!y- &ocate and re!er to one

     particu&ar record in t,e database.

    -*$(' *)

    >,en a !ie&d is one tab&e matc,es t,e primary ey o! anot,er !ie&d is re!erred to as a

    !oreign ey. A !oreign ey is a !ie&d or a group o! !ie&ds in one tab&e w,ose +a&ues matc,

    2

  • 8/20/2019 Airline Reservation System .net

    25/77

    t,ose o! t,e primary ey o! anot,er tab&e.needs identi!ies a&& t,e !ie&ds or attributes o! 

    interest. 5! your business needs

    2(

  • 8/20/2019 Airline Reservation System .net

    26/77

      :7#"=E #ES%R5P057;

     

    3. MODULE DESCRIPTION

    2*

  • 8/20/2019 Airline Reservation System .net

    27/77

    0,e &ist o! modu&es incorporated wit, A5R=5;E RESERJA057; SDS0E: are

    1. Registration modu&e

    2. Administrati+e modu&e

    3. Passenger modu&e

    1. R*($%&-&$' +0*

    5n registration modu&e !irst we as passenger to gi+e ,is detai&s.A!ter registering wit, us

    t,e passenger can &ogon to ,is@,er own account and can +iew a&& !&ig,t detai&s suc, as

    0imings- Prices-A+ai&abi&ity o! seats and can boo t,e ticet wit, unique ticet id.7nce

    Passenger registered wit, us can boo any number o! ticets.

    2. A0+$'$%&-&$=* +0*

    Administrati+e modu&e is pro+ided !or t,e sae o! administrators to manage t,e site and

    update t,e content at regu&ar inter+a&s- 0,e maBor operations inc&uded in t,is modu&e are9

    %reate and maintain air&ine sc,edu&e- !are and timings o! t,e &ig,t.

    Jiew t,e passenger &ist.

    Jiew t,e a+ai&ab&e seats in t,e !&ig,ts.

    %ance& t,e ticets.

    "pdating t,e !&ig,t sc,edu&e and timings and !are.

    2C

  • 8/20/2019 Airline Reservation System .net

    28/77

    3. P%%*'(*- +0*

    0,is modu&e is meant !or passengers- w,ere a user &ogging into ,is@,er owns account wi&&

    +iew t,is pane&. 0,e maBor operations inc&uded in t,is modu&e were

    Jiew a&& air&ine sc,edu&es- timings- !are detai&s and seats a+ai&abi&ity.

    oo !or t,e ticets.

    Jiew and cance&&ing o! t,e ticet.

    Send !eedbac.

      e,ind t,ese modu&es- it a&so inc&udes additiona& >ebPages &ie Password

    reco+ery conso&e- 0ips regarding Bourney- 0ra+e&ing news around wor&d and ,e&p

    regarding our site.

    2$

  • 8/20/2019 Airline Reservation System .net

    29/77

    DESIGN

    2?

  • 8/20/2019 Airline Reservation System .net

    30/77

    4. DESIGN

    UML DIAGRAMS,

    4.1 U%* %* 0$(-+

    Login

    Scheduling flights

    View passenger list

    %ance& t,e ticet

    view feedback

    Log out

     ADMIN

    3'

  • 8/20/2019 Airline Reservation System .net

    31/77

      View flight timingsand availability

    ook the ticket

    Send feedback

    Send cancel re!uest

    Log out

    "egister 

    Login

    #S$"

    31

  • 8/20/2019 Airline Reservation System .net

    32/77

    4. C%% D$(-+

    32

  • 8/20/2019 Airline Reservation System .net

    33/77

    4.3 S**'* 0$(-+

    33

  • 8/20/2019 Airline Reservation System .net

    34/77

    4.4 C;-&$' 0$(-+

    3

  • 8/20/2019 Airline Reservation System .net

    35/77

    4.5 EBR 0$(-+

    3(

  • 8/20/2019 Airline Reservation System .net

    36/77

    4.5 D& 0$&$'-)

    05%QE0 77Q5;<

    0icet idno

    Passengername

    #estinationStationon

     ;o.passenger 

    s

    SourceStation&igt,;ame

    =7

  • 8/20/2019 Airline Reservation System .net

    37/77

    EEDAC TALE

    ATTRIUTE NAME DATATYPE CONSTRAINTS SAMPLE VALUES

    5# 5nt Primary ey 1

     ;ame Jarc,ar('4 ;ot nu&& su,as

    Emai& Jarc,ar('4 ;ot nu&& su,asra++aya,oo.com

    SubBect Jarc,ar('4 ;ot nu&& Password

    :essage Jarc,ar:A4 ;u&& Some text message ,ere

    SC!EDULING TALE

    A00R5"0E ;A:E #A0A0DPE %7;S0RA5;0S SA:P=E JA="E

    &ig,tname Jarc,ar('4 Primary ey Su,as

    0ime #atetime ;ot nu&& 2C@'*@2'1' *9((9'' A:

    Sourcestation Jarc,ar('4 ;ot nu&& HD#

    #estinationstation Jarc,ar('4 ;ot nu&& ;E> #E=H5

    Seats int ;ot nu&& 12'

    Price int ;ot nu&& 12''

    TICETOOING TALE

    A00R5"0E ;A:E

     #A0A0DPE %7;S0RA5;0S SA:P=E JA="ES

    Passengername Jarc,ar('4 oreign ey Su,as

    3C

  • 8/20/2019 Airline Reservation System .net

    38/77

    &ig,tname Jarc,ar('4 oreign ey Qing!is,er  

    Sourcestation Jarc,ar('4 ;ot nu&& HD#

    #estinationstation Jarc,ar('4 ;ot nu&& #E=H5

    0icetno int Primary ey 1'

     ;umbero!

     paasengers

    5nt ;ot nu&& 3

    REGISTRATION TALE

    ATTRIUTE NAME DATATYPE CONSTRAINTS SAMPLEVALUES

    "sername Jarc,ar22'4 Primary ey Su,as

    Password Jarc,ar22'4 c,ec Su,as123'

    irst name ;umber1'4 ;ot nu&& Su,as Ra++a

  • 8/20/2019 Airline Reservation System .net

    39/77

    CODING

      5. CODING

    3?

  • 8/20/2019 Airline Reservation System .net

    40/77

    R*($%&*-.%/#

    using SystemM

    using System.#ataM

    using System.%on!igurationMusing System.%o&&ectionsM

    using System.>ebM

    using System.>eb.SecurityMusing System.>eb."5M

    using System.>eb."5.>eb%ontro&sM

    using System.>eb."5.>eb%ontro&s.>ebPartsM

    using System.>eb."5.Htm&%ontro&sMusing System.#ata.Sq&%&ientM

     pub&ic  partia& c&ass #e!au&t2 9 System.>eb."5.Page

    T

      int U '-&U'M   protected +oid PageV=oadobBect sender- E+entArgs e4

      T

      W

       protected +oid 0extox1V0ext%,angedobBect sender- E+entArgs e4  T

      W

       protected +oid 0extox3V0ext%,angedobBect sender- E+entArgs e4  T

      i!  0extox(.0ext XU 0extox3.0ext4

      T  =abe&11.Jisib&e U trueM

      =abe&11.0ext U Lpassword mismatc,edLM

      U I 1M  W

      W

       protected +oid 0extoxV0ext%,angedobBect sender- E+entArgs e4

      T

      W

       protected +oid utton2V%&icobBect sender- E+entArgs e4  T

      W   protected +oid Radioutton1V%,eced%,angedobBect sender- E+entArgs e4

      T

      W

    '

  • 8/20/2019 Airline Reservation System .net

    41/77

       protected +oid Radioutton=ist1VSe&ected5ndex%,angedobBect sender- E+entArgs e4

      T

      W

       protected +oid %,ecox1V%,eced%,angedobBect sender- E+entArgs e4

      T

      & U & I 1M

      W  String constring U

    %on!iguration:anager .%onnectionStringsYLconLZ.%onnectionString.0oString4M

       protected +oid utton1V%&icobBect sender- E+entArgs e4

      T  Sq&%onnection con U new Sq&%onnectionconstring4M

      Sq&%ommand cmd U new Sq&%ommand4M

      cmd.%ommand0ype U %ommand0ype.0extM

      cmd.%onnection U conM  con.7pen4M

      =abe&?.0ext U LuserLM  cmd.%ommand0ext U Lse&ect =oginname !rom =oginLM

      SqataAdapter  da U new SqataAdapter 4M

      da.Se&ect%ommand U cmdM  #ataSet ds U new #ataSet4M

      da.i&&ds- LempL4M

      int c U 'M

      !or  int i U 'M i N ds.0ab&esYLempLZ.Rows.%ountM iII4  T

      i!  ds.0ab&esYLempLZ.RowsYiZYL=oginnameLZ.0oString4 UU 0extox2.0ext4

      T  c U c I 1M

      W  W

      i!   UU ' [[ &'4

      T

      & U 'M 

    i!  c UU '4  T

      i!  0extox1.0ext XU LL [[ 0extox2.0ext XU LL [[ 0extox.0extXULL [[0extox3.0ext XU LL4

      T

    1

  • 8/20/2019 Airline Reservation System .net

    42/77

      cmd.%ommand0ext U Linsert into

    =ogin=oginname-Password-;ame-

  • 8/20/2019 Airline Reservation System .net

    43/77

       protected +oid 0extox2V0ext%,anged1obBect sender- E+entArgs e4  T

      W   protected +oid 0extox(V0ext%,angedobBect sender- E+entArgs e4

      T

      W

     

    W

    L($'.%/#

    using SystemM

    using System.#ataMusing System.%on!igurationM

    using System.%o&&ectionsM

    using System.>ebM

    using System.>eb.SecurityMusing System.>eb."5M

    using System.>eb."5.>eb%ontro&sM

    using System.>eb."5.>eb%ontro&s.>ebPartsMusing System.>eb."5.Htm&%ontro&sM

    using System.#ata.Sq&%&ientM

     pub&ic  partia& c&ass &ogin 9 System.>eb."5.PageT

       protected +oid PageV=oadobBect sender- E+entArgs e4

      T

      W

       protected +oid utton1V%&icobBect sender- E+entArgs e4

      T

      W

       protected +oid utton2V%&icobBect sender- E+entArgs e4  T

      W

       protected +oid 0extox2V0ext%,angedobBect sender- E+entArgs e4

    3

  • 8/20/2019 Airline Reservation System .net

    44/77

      T

      W   protected +oid 0extox1V0ext%,angedobBect sender- E+entArgs e4

      T

      W

      String constring U

    %on!iguration:anager .%onnectionStringsYLconLZ.%onnectionString.0oString4M   protected +oid utton2V%&ic1obBect sender- E+entArgs e4

      T

      Sq&%onnection con U new Sq&%onnectionconstring4M

      Sq&%ommand cmd U new Sq&%ommand4M  cmd.%ommand0ype U %ommand0ype.0extM

      cmd.%onnection U conM

      con.7pen4M

      cmd.%ommand0ext U Lse&ect =oginname-0ype !rom =ogin w,ere =oginnameUL I0extox1.0ext I Land PasswordUL I 0extox2.0ext I Land

    0ypeULI#rop#own=ist1.0extILLM  SqataAdapter  da U new SqataAdapter 4M

      da.Se&ect%ommand U cmdM

      #ataSet ds U new #ataSet4M  da.i&&ds- LempL4M

      i!  ds.0ab&esYLempLZ.Rows.%ount '4

      T

      SessionYL0ypeLZ U ds.0ab&esYLempLZ.RowsY'ZYL0ypeLZ.0oString4M  SessionYL=oginnameLZ U ds.0ab&esYLempLZ.RowsY'ZYL=oginnameLZ.0oString4M

      Response.RedirectLHome.aspxL4M

      W  e&se

      T

      =abe&.Jisib&e U trueM  =abe&.0ext U Lin+a&id username or passwordLM

      W

      con.%&ose4M

      W

    M%&*-/(*.%/#

    using SystemM

    using System.#ataMusing System.%on!igurationM

    using System.%o&&ectionsM

    using System.>ebM

  • 8/20/2019 Airline Reservation System .net

    45/77

    using System.>eb.SecurityM

    using System.>eb."5M

    using System.>eb."5.>eb%ontro&sMusing System.>eb."5.>eb%ontro&s.>ebPartsM

    using System.>eb."5.Htm&%ontro&sM

    using System.#ata.Sq&%&ientM pub&ic  partia& c&ass :asterPage 9 System.>eb."5.:asterPage

    T

       protected +oid PageV=oadobBect sender- E+entArgs e4  T

      i!  SessionYL0ypeLZ XU nu&&4

      T

      i!  SessionYL0ypeLZ.0oString4 UU LadminL4  T

      pn&cust.Jisib&e U !a&seM

      pn&og.Jisib&e U trueM  pn&admin.Jisib&e U trueM

     W

      e&se

      T  pn&cust.Jisib&e U trueM

      pn&og.Jisib&e U trueM

      pn&admin.Jisib&e U !a&seM

      W  W

      e&se

      T  pn&cust.Jisib&e U !a&seM

      pn&og.Jisib&e U trueM

      pn&admin.Jisib&e U !a&seM  W

      W   protected +oid :enu2V:enu5tem%&icobBect sender- :enuE+entArgs e4

      T

      W

       protected +oid =inutton2V%&icobBect sender- E+entArgs e4

      T 

    SessionYL0ypeLZ U nu&&M

      Response.RedirectL&ogin.aspxL4M

     

    (

  • 8/20/2019 Airline Reservation System .net

    46/77

      W

       protected +oid :enu1V:enu5tem%&icobBect sender- :enuE+entArgs e4

      T

      W

       protected +oid :enu3V:enu5tem%&icobBect sender- :enuE+entArgs e4  T

      W   protected +oid =inbutton1V%&icobBect sender- E+entArgs e4

      T

      Session.Remo+eA&&4M

      Response.RedirectLHome.aspxL4M  W

    W

    T$*&;$'(.%/#

    using SystemM

    using System.#ataM

    using System.%on!igurationMusing System.%o&&ectionsM

    using System.>ebM

    using System.>eb.SecurityMusing System.>eb."5M

    using System.>eb."5.>eb%ontro&sM

    using System.>eb."5.>eb%ontro&s.>ebPartsMusing System.>eb."5.Htm&%ontro&sMusing System.#ata.Sq&%&ientM

     pub&ic  partia& c&ass #e!au&t2 9 System.>eb."5.Page

    T   protected +oid PageV=oadobBect sender- E+entArgs e4

      T

      W

      String constring U

    %on!iguration:anager .%onnectionStringsYLconLZ.%onnectionString.0oString4M

     protected +oid utton1V%&ic1obBect sender- E+entArgs e4  T

      Sq&%onnection con U new Sq&%onnectionconstring4M

      Sq&%ommand cmd U new Sq&%ommand4M  cmd.%ommand0ype U %ommand0ype.0extM

      cmd.%onnection U conM

      con.7pen4M 

    *

  • 8/20/2019 Airline Reservation System .net

    47/77

     

    cmd.%ommand0ext U Linsert into

    0icetbooingPassengername-&ig,tname-Sourcestation-#estinationstation-;umbero!passengers4 +a&uesL I SessionYL=oginnameLZ I L-L I #rop#own=ist1.0ext I L-L I

    #rop#own=ist2.0ext I L-L I #rop#own=ist3.0ext I L-LI#rop#own=ist.0extIL4LM

      SqataAdapter  da U new SqataAdapter 4M  da.5nsert%ommand U cmdM

      int i U cmd.Execute;on8uery4M

      cmd.%ommand0ext U Lupdate Sc,edu&ing setSeatsUSeats)LI#rop#own=ist.0extIL w,ere &ig,t;ameUL I #rop#own=ist1.0ext I

    LLM

      int B U cmd.Execute;on8uery4M

      i!  i UU 1 [[ B UU 14  T

      =abe&(.Jisib&e U trueM

      =abe&(.0ext U Lsuccess!u&&y booed your ticet-c&ic on generate to now ticet

    numberLM

      W  e&se

      T

      =abe&(.Jisib&e U trueM  =abe&(.0ext U LSer+er bu6y try againLM

      W

     

    con.%&ose4M

      W

       protected +oid utton2V%&icobBect sender- E+entArgs e4

      T  Sq&%onnection con U new Sq&%onnectionconstring4M

      Sq&%ommand cmd U new Sq&%ommand4M

      cmd.%ommand0ype U %ommand0ype.0extM

      cmd.%onnection U conM  con.7pen4M

      cmd.%ommand0ext U Lse&ect 0icetno !rom 0icetbooing w,ere

    Passenger;ameUL I SessionYL=oginnameLZ I LLM  SqataAdapter  da U new SqataAdapter 4M

      da.Se&ect%ommand U cmdM

      #ataSet ds U new #ataSet4M  da.i&&ds- LempL4M

      i!  ds.0ab&esYLempLZ.Rows.%ountXU' 4

      T

      int  U ds.0ab&esYLempLZ.Rows.%ountM

    C

  • 8/20/2019 Airline Reservation System .net

    48/77

      =abe&(.Jisib&e U trueM

      =abe&(.0ext U LD7"R 05%QE0 ;":ER 5S 9 LIds.0ab&esYLempLZ.RowsY)1Z

    YL0icetnoLZ.0oString4M 

    W

      e&se  T

      =abe&(.Jisib&e U trueM

      =abe&(.0ext U L0ry again to boo !or ticetLM  W

      con.%&ose4M

      W

    W

    C'*&$*&.%/#

    using SystemM

    using System.#ataMusing System.%on!igurationM

    using System.%o&&ectionsM

    using System.>ebMusing System.>eb.SecurityM

    using System.>eb."5M

    using System.>eb."5.>eb%ontro&sM

    using System.>eb."5.>eb%ontro&s.>ebPartsMusing System.>eb."5.Htm&%ontro&sM

    using System.#ata.Sq&%&ientM

     pub&ic  partia& c&ass #e!au&t2 9 System.>eb."5.PageT

     

    String constring U%on!iguration:anager .%onnectionStringsYLconLZ.%onnectionString.0oString4M

       protected +oid utton1V%&icobBect sender- E+entArgs e4

      T

      Sq&%onnection con U new Sq&%onnectionconstring4M  Sq&%ommand cmd U new Sq&%ommand4M

      cmd.%ommand0ype U %ommand0ype.0extM

      cmd.%onnection U conM  con.7pen4M

     

    cmd.%ommand0ext U Lse&ect ;umbero!passengers !rom 0icetbooing w,ere0icetnoUL I 0extox2.0ext I LLM

      SqataAdapter  da U new SqataAdapter 4M

      da.Se&ect%ommand U cmdM

      #ataSet ds U new #ataSet4M

    $

  • 8/20/2019 Airline Reservation System .net

    49/77

      da.i&&ds- LempL4M

      int a U %on+ert.0o5nt1*ds.0ab&esYLempLZ.RowsY'ZYL;umbero!passengersLZ4M

     

    cmd.%ommand0ext U Lde&ete !rom 0icetbooing w,ere PassengernameUL I

    SessionYL=oginnameLZ I Land &ig,tnameUL I #rop#own=ist1.0ext I L and

    0icetnoUL I 0extox2.0ext I LLM  int i U cmd.Execute;on8uery4M

      da.#e&ete%ommand U cmdM

      i!  i UU 14  T

      cmd.%ommand0ext U Lupdate sc,edu&ing set SeatsUSeatsILIaIL w,ere

    &ig,tnameUL I #rop#own=ist1.0ext I LLM

      int B U cmd.Execute;on8uery4M  i!  B UU 14

      T  =abe&.Jisib&e U trueM

      =abe&.0ext U Lsuccess!u&&y cance&ed LM

      W  e&se

      T

      =abe&.Jisib&e U trueM

      =abe&.0ext U Ldatabase not updatedLM  W

      W

      e&se  T

      =abe&.Jisib&e U trueM

      =abe&.0ext U LSer+er bu6y try againLM  W

    con.%&ose4M

    WW

    A00'*$(:&.%/#

    using SystemM

    using System.#ataMusing System.%on!igurationM

    ?

  • 8/20/2019 Airline Reservation System .net

    50/77

    using System.%o&&ectionsM

    using System.>ebM

    using System.>eb.SecurityMusing System.>eb."5M

    using System.>eb."5.>eb%ontro&sM

    using System.>eb."5.>eb%ontro&s.>ebPartsMusing System.>eb."5.Htm&%ontro&sM

    using System.#ata.Sq&%&ientM

     pub&ic  partia& c&ass #e!au&t3 9 System.>eb."5.PageT

     

    string constring U

    %on!iguration:anager .%onnectionStringsYLconLZ.%onnectionString.0oString4M   protected +oid utton1V%&icobBect sender- E+entArgs e4

      T

      Sq&%onnection con U new Sq&%onnectionconstring4M

      Sq&%ommand cmd U new Sq&%ommand4M  cmd.%ommand0ype U %ommand0ype.0extM

      cmd.%onnection U conM  con.7pen4M

      cmd.%ommand0ext U Linsert into

    Sc,edu&ing&ig,tname-0ime-Sourcestation-#estinationstation-Seats-Price4 +a&uesL I0extox1.0ext I L-L I 0extox2.0ext I L-L I 0extox3.0ext I L-L I 0extox.0ext I

    L-L I 0extox(.0ext I L-L I 0extox*.0ext I L4LM

      SqataAdapter  da U new SqataAdapter 4M

      da.5nsert%ommand U cmdM  int i U cmd.Execute;on8uery4M

      i!  i UU 14

      T

      0extox2.0ext U LLM

      0extox3.0ext U LLM  0extox1.0ext U LLM

      0extox.0ext U LLM

      0extox(.0ext U LLM

      0extox*.0ext U LLM

      =abe&C.Jisib&e U trueM

      =abe&C.0ext U Lsuccess!u&&y addedLM

      W

      e&se  T

      =abe&C.Jisib&e U trueM

      =abe&C.0ext U Lnot addedLM

      W

    ('

  • 8/20/2019 Airline Reservation System .net

    51/77

      con.%&ose4M

      W

    W

    (1

  • 8/20/2019 Airline Reservation System .net

    52/77

    T$+$'(%.%/#

    using SystemM

    using System.#ataM

    using System.%on!igurationMusing System.%o&&ectionsM

    using System.>ebM

    using System.>eb.SecurityMusing System.>eb."5M

    using System.>eb."5.>eb%ontro&sM

    using System.>eb."5.>eb%ontro&s.>ebPartsM

    using System.>eb."5.Htm&%ontro&sM

     pub&ic  partia& c&ass #e!au&t3 9 System.>eb."5.Page

    T

       protected +oid PageV=oadobBect sender- E+entArgs e4  T

      W

       protected +oid utton1V%&icobBect sender- E+entArgs e4

      T 

  • 8/20/2019 Airline Reservation System .net

    53/77

    S:*0$'(.%/#

    using SystemM

    using System.#ataM

    using System.%on!igurationMusing System.%o&&ectionsM

    using System.>ebM

    using System.>eb.SecurityMusing System.>eb."5M

    using System.>eb."5.>eb%ontro&sM

    using System.>eb."5.>eb%ontro&s.>ebPartsM

    using System.>eb."5.Htm&%ontro&sM

     pub&ic  partia& c&ass #e!au&t2 9 System.>eb."5.Page

    T

       protected +oid PageV=oadobBect sender- E+entArgs e4  T

      W

       protected +oid 

  • 8/20/2019 Airline Reservation System .net

    54/77

    P%%*'(*-$%&.%/#

    using SystemM

    using System.#ataM

    using System.%on!igurationMusing System.%o&&ectionsM

    using System.>ebM

    using System.>eb.SecurityMusing System.>eb."5M

    using System.>eb."5.>eb%ontro&sM

    using System.>eb."5.>eb%ontro&s.>ebPartsM

    using System.>eb."5.Htm&%ontro&sM

     pub&ic  partia& c&ass #e!au&t3 9 System.>eb."5.Page

    T

       protected +oid PageV=oadobBect sender- E+entArgs e4  T

      W

       protected +oid ebM

    using System.>eb.SecurityM

    using System.>eb."5Musing System.>eb."5.>eb%ontro&sM

    using System.>eb."5.>eb%ontro&s.>ebPartsM

    using System.>eb."5.Htm&%ontro&sM

    using System.#ata.Sq&%&ientM pub&ic  partia& c&ass #e!au&t3 9 System.>eb."5.Page

    T

       protected +oid PageV=oadobBect sender- E+entArgs e4  T

      W

    (

  • 8/20/2019 Airline Reservation System .net

    55/77

      String constring U

    %on!iguration:anager .%onnectionStringsYLconLZ.%onnectionString.0oString4M

       protected +oid utton1V%&ic1obBect sender- E+entArgs e4  T

      Sq&%onnection con U new Sq&%onnectionconstring4M

      Sq&%ommand cmd U new Sq&%ommand4M  cmd.%ommand0ype U %ommand0ype.0extM

      cmd.%onnection U conM

      con.7pen4M  cmd.%ommand0ext U Linsert into eedbac;ame-Emai&-SubBect-:essage4 +a&uesL

    I 0extox1.0ext I L-L I 0extox2.0ext I L-L I 0extox3.0ext I L-L I 0extox.0ext I

    L4LM

      SqataAdapter  da U new SqataAdapter 4M  da.5nsert%ommand U cmdM

      int i U cmd.Execute;on8uery4M

      i!  i UU 14

      T  0extox1.0ext U LLM

      0extox2.0ext U LLM  0extox3.0ext U LLM

      0extox.0ext U LLM

      =abe&(.Jisib&e U trueM

      =abe&(.0ext U L0,anyou or your +a&uab&e !eedbacLM

     W

      e&se

      T  =abe&(.Jisib&e U trueM

      =abe&(.0ext U LSome prob&em arri+ed-p&6 try a!ter some timeLM

      W  con.%&ose4M

      W

     

    W

    ((

  • 8/20/2019 Airline Reservation System .net

    56/77

    0ES05;<

    (*

  • 8/20/2019 Airline Reservation System .net

    57/77

      *. 0ES05;<

    SYSTEM TESTING

      0esting is a set o! acti+ities t,at can be p&anned in ad+ance and conducted

    systematica&&y. 0,e proposed system is tested in para&&e& wit, t,e so!tware t,at consists o! 

    its own p,ases o! ana&ysis- imp&ementation- testing and maintenance. o&&owing are t,e

    tests conducted on t,e system.

    UNIT TESTING,

      #uring t,e imp&ementation o! t,e system eac, modu&e o! t,e system was testedseparate&y to unco+er errors wit, in its boundaries. "ser inter!ace was used as a guide in

    t,e process.

    MODULE TESTING

      A modu&e is composed o! +arious programs re&ated to t,at modu&e. :odu&e testing

    is done to c,ec t,e modu&e !unctiona&ity and interaction between units wit,in a modu&e.

    5t c,ecs t,e !unctiona&ity o! eac, program wit, re&ation to ot,er programs wit,in t,e

    same modu&e. 5t t,en tests t,e o+era&& !unctiona&ity o! eac, modu&e.

    INTEGRATION TESTING

      5ntegration testing is a systematic tec,nique !or constructing t,e program structure

    w,i&e conducting tests to unco+er errors associated wit, inter!acing. 0,e obBecti+e is to

    tae unit)tested modu&e and bui&d a program structures t,at ,as been dictated by design.

    (C

  • 8/20/2019 Airline Reservation System .net

    58/77

    ACCEPTANCE TESTING

      0,e so!tware ,as been tested wit, t,e rea&istic data gi+en by t,e c&ient and

     produced !ruit!u& resu&ts. 0,e c&ient satis!ying a&& t,e requirements speci!ied by t,em ,as

    a&so de+e&oped t,e so!tware wit,in t,e time &imitation speci!ied. A demonstration ,as

     been gi+en to t,e c&ient and t,e end)user gi+ing a&& t,e operationa& !eatures.

    IMPLEMENTATION P!ASE

      0,e imp&ementation is t,e !ina& and important p,ase. 5t in+o&+es user training-

    system testing and success!u& running o! t,e de+e&oped system. 0,e users test t,e

    de+e&oped system w,en c,anges are made according to t,e needs. 0,e testing p,ase

    in+o&+es t,e testing o! t,e de+e&oped system using +arious inds o! data. An e&aborate

    testing o! data is prepared and system is tested using t,e tests data.

      5mp&ementation is t,e stage w,ere t,eoretica& design turned into a woring

    system. 5mp&ementation is p&aned care!u&&y to propose system to a+oid unanticipated

     prob&ems. :any preparations in+o&+ed be!ore and during t,e imp&ementation o! proposed

    system. 0,e system needed to be p&ugged in to t,e organi6ation/s networ t,en it cou&d

     be accessed !rom anyw,ere- a!ter a user &ogins into t,e porta&. 0,e tass t,at ,ad to be

    done to imp&ement t,e system were to create t,e database tab&es in t,e organi6ation

    database domain. 0,en t,e administrator  was granted ,is ro&e so t,at t,e system cou&d be

    accessed.

      0,e next p,ase in t,e imp&ementation was to educate t,e system. A

    demonstration o! a&& t,e !unctions t,at can be carried out by t,e system was gi+en to

    examination department person- w,o wi&& mae extensi+e use o! t,e system.

    ($

  • 8/20/2019 Airline Reservation System .net

    59/77

    TEST CASES,

    (?

  • 8/20/2019 Airline Reservation System .net

    60/77

    S.;o 0est case name 0est

     procedure

    Pre

    conditionExpected

    resu&t

    7utput

    1. Registration !orm ;ame-

    =oginname-Pass

    word-%on!irm password- Sex-

    =ocation- P,no

    H7:E :essage

    registered

    success!u&&y-=oginna

    me

    a&readyexists-

     password

    notmatc,ed

    Success

    2. =ogin !orm Enter

    =oginname-Password- 0ype

    H7:E #isp&ay

    &oginsuccess!u&

    &y-in+a&id

    usernameor

     password

    Success

    3. Sc,edu&ing

    !orm

     Jiew

    &ig,tname-

    0ime-Sourceststion-#estinationststion-Seats-

    Price.

    Admin

    ,ome

     page

    !&ig,t

    detai&s

    "pdated

    Success

    . Passenger &ist

    !orm

    Jiew

    Passengername-

    &ig,tname-Sourcestation-#esti

    nationstation-;

    umbero!passengers-0icetno.

    Admin

    ,ome

     page

    Passenger 

    detai&s

    "pdated

    Success

    (. eedbac +iew!orm

    Jiew5#-;ame-Emai&-SubBect-:essage.

    Admin,ome page

    eedbac#isp&ayed

    Success

    *. 0imings !orm Sourcestation-#estinationstation

     "ser,ome

     page

    &ig,tname-

    time

    disp&ayed

    Success

    C. 0icetbooing

    !orm

     ;umbero!passe

    ngers-

    &ig,tname-Sourceststion-

    #estinationstation.

    "ser

    ,ome

     page

    Success!u&

    &y booed-

    0icetidwi&& be

    disp&ayed.

    Success

    $. %ance& ticet

    !orm

    &ig,tname-

    0icetno.

    "ser

    ,omepage

    Success!u&

    &ycance&ed-s

    er+er bu6y

    Success

    ?. ooed 0icets

    !orm

    Passengername-

    &ig,tname-Sou

    rcestation-#esti

    nation-0icno- ;oo!passengers

    "ser

    ,ome

     page

    =ist o!

    ticets o!

    t,at user 

    Success

    1'. eedbac !orm ;ame- Emai&-SubBect-

    "ser,ome

    0,anyou!or your

    Success

    *'

  • 8/20/2019 Airline Reservation System .net

    61/77

    TEST CASES SCREENS9

    *1

  • 8/20/2019 Airline Reservation System .net

    62/77

    D*%-$/&$', 0,e abo+e is error message appears w,en user tries to gi+e in+a&id

    username or password.

     

    *2

  • 8/20/2019 Airline Reservation System .net

    63/77

    7"0P"0 S%REE;S

    *3

  • 8/20/2019 Airline Reservation System .net

    64/77

    7. OUTPUT SCREENS

    LOGIN ORM

    D*%-$/&$', 0,is is &ogin !orm !or user and admin.

    *

  • 8/20/2019 Airline Reservation System .net

    65/77

    REGISTRATION ORM

    D*%-$/&$', 0,is is registration !orm !or registering wit, site- registered users wi&& be

     pro+ided wit, unique username and password.

    *(

  • 8/20/2019 Airline Reservation System .net

    66/77

    LIG!T SC!EDULES

    D*%-$/&$', "pdating- de&eting o! !&ig,t can be done t,roug, t,is !orm by admin.

    **

  • 8/20/2019 Airline Reservation System .net

    67/77

    PASSENGERS LIST

    D*%-$/&$', 0,is is &ist o! passengers tra+e&&ing t,roug, di!!erent !&ig,ts can be managed

     by admin t,roug, t,is !orm.

    *C

  • 8/20/2019 Airline Reservation System .net

    68/77

    EEDAC VIE

    D*%-$/&$', 0,is !orm s,ows !eedbac !rom passengers to admin.

    *$

  • 8/20/2019 Airline Reservation System .net

    69/77

    TIMINGS O LIG!TS

    D*%-$/&$', 0,is !orm gi+es timings o! !&ig,ts based on source and destination stations piced by user. Price and seats a+ai&abi&ity can a&so be +iewed.

    *?

  • 8/20/2019 Airline Reservation System .net

    70/77

    TICET OOING

    D*%-$/&$', 0,is !orm is used to boo t,e ticet and it generates t,e ticet id !or user.

    C'

  • 8/20/2019 Airline Reservation System .net

    71/77

    TICET CANCELLATION

    D*%-$/&$', 0,is is a !orm t,roug, w,ic, passenger can cance& ,is ticet.

    C1

  • 8/20/2019 Airline Reservation System .net

    72/77

    LIST O TICETS OOED Y USER 

    D*%-$/&$', 0,is !orm disp&ays &ist o! ticets booed by passenger.

    C2

  • 8/20/2019 Airline Reservation System .net

    73/77

      EEDAC ORM

    D*%-$/&$', 0,is !orm is used to post t,e !eedbac !rom user to admin.

    C3

  • 8/20/2019 Airline Reservation System .net

    74/77

    CONCLUSION

     

    C

  • 8/20/2019 Airline Reservation System .net

    75/77

    8.CONCLUSION

    e o!!er documentation processing- app&ication [ !i&ing

    ser+ices !or t,ose interested in app&ying !or a +isa.A strong researc, team ensures t,at

    cases are e+a&uated and processed as per t,e &atest updated ru&es and regu&ations.

    C(

  • 8/20/2019 Airline Reservation System .net

    76/77

    55=7ARE E;

  • 8/20/2019 Airline Reservation System .net

    77/77

    S8= 7R PR7ESS57;A=S B yFain

    ASP.;E0 wit, %K  B y >rox Pub&ications

    :S#; 2''2  B y :icroso!t

    *;%$&*%,

    1. www.support.microso!t.com

    2. www.asp.net

    3. www.w3sc,oo&s.com

    . www.!reetutes.com

    http://var/www/apps/conversion/tmp/scratch_7/About_3Edge_Solutions.dochttp://www.asp.net/http://www.w3schools.com/http://www.freetutes.com/http://var/www/apps/conversion/tmp/scratch_7/About_3Edge_Solutions.dochttp://www.asp.net/http://www.w3schools.com/http://www.freetutes.com/