下载
加入VIP
  • 专属下载特权
  • 现金文档折扣购买
  • VIP免费专区
  • 千万文档免费下载

上传资料

关闭

关闭

关闭

封号提示

内容

首页 航空订票系统论文 航空客运订票系统设计 航空订票管理系统论文

航空订票系统论文 航空客运订票系统设计 航空订票管理系统论文.doc

航空订票系统论文 航空客运订票系统设计 航空订票管理系统论文

何来地老天荒_
2017-09-02 0人阅读 举报 0 0 暂无简介

简介:本文档为《航空订票系统论文 航空客运订票系统设计 航空订票管理系统论文doc》,可适用于职业岗位领域

航空订票系统论文航空客运订票系统设计航空订票管理系统论文课程设计报告摘要摘要航空定票系统是使用JAVA编程技术在MYEclipse集成开发环境下开发的订票系统。该系统实现了航班管理、订票管理、退票管理以及查询航班等功能。在航班管理中航空公司内部管理员能在系统中完成添加航班或删除航班、更新航班信息、查看数据库等功能。乘客能够在系统中完成查询航班、订票办理和退票办理等功能。乘客可以用多种方式来查询航班信息也可以根据实际需要来订票(单程、往返、联程)。系统还能将这些信息保存在数据库中并供航空公司内部管理员随时查询。关键词:航空定票系统JAVAMYEclipse定票退票I课程设计报告摘要AbstractTheaviationsettlesaticketsystemisuseaJAVAplaitdistance'stechniqueintegratedintheMYEclipsedevelopundertheenvironmentdevelopofbookasystemThatsystemcarriesoutaserviceamanagementandbooksamanagement,dishonorbillmanagementandsearchesaserviceetcfunctionTheairlineinternalmanagingpersoncancompletetoaddaserviceordeleteaservice,renewaserviceinformationandlookintoadatabaseinthesystemintheservicethemanagementetcfunctionThepassengercancompleteasearchserviceandbookatickettocarryouttocarryoutwithdishonorbillinthesystemetcfunctionThepassengercansearchaserviceinformationwithvariousways,canalsobookaticketaccordingtotheeffectivedemand(oneway,gobackandforth,allieddistance)Thesystemreturnsanabilitywillthesetheif(flag==){Stringdstartplace=newString()Stringdendplace=newString()Stringsql="selectstart,destinationfromflightwhereflight='"string"'"ResultSetdrs=stmtexecuteQuery(sql)while(drsnext()){dstartplace=drsgetString()trim()dendplace=drsgetString()trim()}if(dstartplaceequals(endplace)dendplaceequals(startplace)){if(isFull){Stringdflightcode=newStringinti=for(i=i<i)dflightcodei=newString("")i=sql="selectflightfromflightwherestart='"startplace"'ANDdestination='"endplace"'"ResultSetdrs=stmtexecuteQuery(sql)while(drsnext())课程设计报告第章系统功能实现{dflightcodei=drsgetString()i}stmtclose()conclose()i=while(!(dflightcodeiequals(""))){if(!(dflightcodeiequals(string))){isFull=seatinformationisFull(dflightcodei,string)if(!isFull){dotherchoice=dotherchoicedflightcodei}}i}if(!(dotherchoiceequals("")))returnelsereturn}}elsereturn}if(flag==)return}catch(Exceptionex){exprintStackTrace()}}return}***************************************************************************publicintmultipleflight(){if(jbtflightgetText()trim()length()==)returnelse课程设计报告第章系统功能实现{try{ClassforName("sunjdbcodbcJdbcOdbcDriver")Connectioncon=DriverManagergetConnection("jdbc:odbc:dsStudent","sa","")Statementstmt=concreateStatement()ResultSetrs=stmtexecuteQuery("select*fromflight")ResultSetmrs=stmtexecuteQuery("select*fromflight")flag=existstheflightwhile(mrsnext()){if(mrsgetString()trim()equals(string)){flag=}}string=stringif(flag==){Stringmstartplace=newString()Stringmendplace=newString()Stringsql="selectstart,destinationfromflightwhereflight='"string"'"ResultSetmrs=stmtexecuteQuery(sql)while(mrsnext()){mstartplace=mrsgetString()trim()mendplace=mrsgetString()trim()}if(mstartplaceequals(endplace)){if(isFull){Stringmflightcode=newStringinti=for(i=i<i)mflightcodei=newString("")i=sql="selectflightfromflightwherestart='"startplace"'ANDdestination='"endplace"'"ResultSetmrs=stmtexecuteQuery(sql)课程设计报告第章系统功能实现while(mrsnext()){mflightcodei=mrsgetString()i}stmtclose()conclose()i=while(!(mflightcodeiequals(""))){if(!(mflightcodeiequals(string))){isFull=seatinformationisFull(mflightcodei,string)if(!isFull){motherchoice=motherchoicemflightcodei}}i}if(!(motherchoiceequals("")))returnelsereturn}}elsereturn}if(flag==)return}catch(Exceptionex){exprintStackTrace()}}return}*************************************************************privatebooleanisTimeValid(Stringyear,Stringmonth,Stringday){inty=IntegerparseInt(year)intm=IntegerparseInt(month)课程设计报告第章系统功能实现intd=IntegerparseInt(day)取票时间Calendarcal=CalendargetInstance()calsetTime(newjavautilDate())intpy=calget(CalendarYEAR)intpm=calget(CalendarMONTH)intpd=calget(CalendarDAYOFMONTH)if(y==py){if(m<pm)returnfalseelseif(d<pd)returnfalse}returntrue}}退票办理功能实现此模块为退票办理模块(主界面中单机航空订票系统的“退票办理”)程序运行时会弹出航班退票系统窗口此时需要输入客户相应的正确的订单号与身份证号码当你填写号码确定没问题时就可以单击“查询”即可查出此订单的基本信息与退票栏。基本信息其中包含“客户姓名”“航班信息”“儿童票数”“成人票数”“原票价”“退票价”“出发时间”填写信息界面如图所示。课程设计报告第章系统功能实现图填写信息界面当您检查无误后即可在退票栏中输入想要退的儿童票数与成人票数的数量当你想确定时点击“退票”就会弹出“退票成功”窗口窗体中提示您已退票成功还剩下多少张票和获得多少元的退票钱提交界面如图。图提交界面程序代码如下:publicTuiPiao(){Filef=newFile("","data")fmkdir()file=newFile(f,"ClientInfotxt")jtfNamesetEditable(false)jtfFlightInfosetEditable(false)jtfChildNumsetEditable(false)jtfAdultNumsetEditable(false)课程设计报告第章系统功能实现jtfOriginCostsetEditable(false)jtfTuiPiaoCostsetEditable(false)jtfTimesetEditable(false)jtfTimesetEditable(false)******************************************************************JLabeljlDingdan=newJLabel("订单号")jlDingdansetFont(newFont("Times",FontPLAIN,))JLabeljlID=newJLabel("身份证号")jlIDsetFont(newFont("Times",FontPLAIN,))JPaneljpInput=newJPanel(newFlowLayout(FlowLayoutLEFT))jpInputsetBorder(newTitledBorder("输入信息"))jpInputadd(jlDingdan)jpInputadd(jtfDingDan)jpInputadd(jlID)jpInputadd(jtfID)****************************************************************JLabeljlName=newJLabel("客户姓名")JLabeljlFlight=newJLabel("航班信息")JLabeljlChild=newJLabel("儿童票数")JLabeljlAdult=newJLabel("成人票数")JLabeljlOriCost=newJLabel("原票价")JLabeljlTuiCost=newJLabel("退票价")JPaneljpTop=newJPanel(newFlowLayout(FlowLayoutLEFT))jpTopadd(jlName)jpTopadd(jtfName)jpTopadd(jlFlight)jpTopadd(jtfFlightInfo)JPaneljpNum=newJPanel()jpNumsetLayout(newGridLayout(,))JPaneljp=newJPanel()jpadd(jlChild)jpadd(jtfChildNum)JPaneljp=newJPanel()课程设计报告第章系统功能实现jpadd(jlAdult)jpadd(jtfAdultNum)jpNumadd(jp)jpNumadd(jp)JPaneljpCost=newJPanel()jpCostsetLayout(newGridLayout(,))JPaneljp=newJPanel()jpadd(jlOriCost)jpadd(jtfOriginCost)JPaneljp=newJPanel()jpadd(jlTuiCost)jpadd(jtfTuiPiaoCost)jpCostadd(jp)jpCostadd(jp)JPaneljpTime=newJPanel()jpTimesetLayout(newGridLayout(,))JPaneljp=newJPanel()jpadd(jlTime)jpadd(jtfTime)JPaneljp=newJPanel()jpadd(jlTime)jpadd(jtfTime)jpTimeadd(jp)jpTimeadd(jp)JPaneljpCenter=newJPanel()jpCentersetLayout(newBorderLayout())jpCenteradd(jpNum,BorderLayoutWEST)jpCenteradd(jpCost,BorderLayoutCENTER)jpCenteradd(jpTime,BorderLayoutEAST)JPaneljpInfo=newJPanel()jpInfosetBorder(newTitledBorder("基本信息"))jpInfosetLayout(newBorderLayout())jpInfoadd(jpTop,BorderLayoutNORTH)jpInfoadd(jpCenter,BorderLayoutCENTER)课程设计报告第章系统功能实现jlTimesetVisible(false)jtfTimesetVisible(false)JPaneljpTuiPiao=newJPanel(newFlowLayout(FlowLayoutCENTER))jpTuiPiaosetBorder(newTitledBorder("退票"))jpTuiPiaoadd(newJLabel("退票数:"))jpTuiPiaoadd(newJLabel("儿童票"))jpTuiPiaoadd(jtfChildTuiPiaoShu)jpTuiPiaoadd(newJLabel("成人票:"))jpTuiPiaoadd(jtfAdultTuiPiaoShu)JPaneljpButtons=newJPanel(newFlowLayout(FlowLayoutCENTER))jpButtonssetBorder(newTitledBorder("操作"))jpButtonsadd(jbQuery)jpButtonsadd(jbRewrite)jpButtonsadd(jbOK)jpButtonsadd(jbCancel)JPaneljp=newJPanel()jpsetLayout(newBorderLayout())jpadd(jpInput,BorderLayoutNORTH)jpadd(jpInfo,BorderLayoutCENTER)jpadd(jpTuiPiao,BorderLayoutSOUTH)JPaneljpTotal=newJPanel()jpTotalsetBorder(newMatteBorder(newImageIcon("srcfgif")))jpTotalsetLayout(newBorderLayout())jpTotaladd(jp,BorderLayoutCENTER)jpTotaladd(jpButtons,BorderLayoutSOUTH)******************************************************************thisgetContentPane()add(jpTotal)jbQueryaddActionListener(this)jbRewriteaddActionListener(this)课程设计报告第章系统功能实现jbOKaddActionListener(this)jbCanceladdActionListener(this)thisaddWindowListener(newWindowAdapter(){publicvoidwindowClosing(WindowEvente){TuiPiaothissetVisible(false)TuiPiaothisdispose()}})}publicvoidactionPerformed(ActionEvente){if(egetSource()==jbQuery)query()elseif(egetSource()==jbRewrite)rewrite()elseif(egetSource()==jbOK)tuiPiao()elseif(egetSource()==jbCancel){thissetVisible(false)thisdispose()}}privatevoidquery(){Stringdingdan=jtfDingDangetText()trim()if(dingdanlength()==){JOptionPaneshowMessageDialog(,"订单号不能为空","错误信息",JOptionPaneERRORMESSAGE)return}课程设计报告第章系统功能实现Stringid=jtfIDgetText()trim()if(idlength()==){JOptionPaneshowMessageDialog(,"身份证号不能为空","错误信息",JOptionPaneERRORMESSAGE)return}booleanisValid=getClientInfo(dingdan,id)if(isValid==false){rewrite()return}else{jtfNamesetText(name)jtfChildNumsetText(childNum)jtfAdultNumsetText(adultNum)jtfOriginCostsetText(cost)jtfTuiPiaoCostsetText("退还价钱")if(IntegerparseInt(childNum)==){jtfChildTuiPiaoShusetText("")jtfChildTuiPiaoShusetEditable(false)}else{jtfChildTuiPiaoShusetEditable(true)}if(IntegerparseInt(adultNum)==){jtfAdultTuiPiaoShusetText("")jtfAdultTuiPiaoShusetEditable(false)课程设计报告第章系统功能实现}else{jtfAdultTuiPiaoShusetEditable(true)}if(ticketTypeequals("单程")){jlTimesetText("出发时间")jtfTimesetText(leaveTime)jlTimesetVisible(false)jtfTimesetVisible(false)jtfFlightInfosetText("(单程机票)""航班号:"flight)}elseif(ticketTypeequals("往返")){jlTimesetText("出发时间")jtfTimesetText(leaveTime)jlTimesetText("返回时间")jlTimesetVisible(true)jtfTimesetText(leaveTime)jtfTimesetVisible(true)jtfFlightInfosetText("(往返机票)""去:"flight"返:"flight)}elseif(ticketTypeequals("联程")){jlTimesetText("第一出发时间")jtfTimesetText(leaveTime)jlTimesetText("第二出发时间")jlTimesetVisible(true)jtfTimesetText(leaveTime)jtfTimesetVisible(true)课程设计报告第章系统功能实现jtfFlightInfosetText("(联程机票)""航班:"flight"航班:"flight)}}}privatevoidrewrite(){jtfDingDansetText("")jtfIDsetText("")jtfNamesetText("")jtfFlightInfosetText("")jtfChildNumsetText("")jtfAdultNumsetText("")jtfOriginCostsetText("")jtfTuiPiaoCostsetText("")jtfTimesetText("")jtfTimesetText("")jtfChildTuiPiaoShusetText("")jtfAdultTuiPiaoShusetText("")jlTimesetText("出发时间")jtfChildTuiPiaoShusetEditable(true)jtfAdultTuiPiaoShusetEditable(true)jlTimesetVisible(false)jtfTimesetVisible(false)}privatevoidtuiPiao(){Stringdingdan=jtfDingDangetText()trim()if(dingdanlength()==){JOptionPaneshowMessageDialog(,"订单号不能为空",课程设计报告第章系统功能实现"错误信息",JOptionPaneERRORMESSAGE)return}Stringid=jtfIDgetText()trim()if(idlength()==){JOptionPaneshowMessageDialog(,"身份证号不能为空","错误信息",JOptionPaneERRORMESSAGE)return}booleanisValid=getClientInfo(dingdan,id)if(isValid==false){rewrite()return}else{StringchildTuiPiaoShu=jtfChildTuiPiaoShugetText()trim()StringadultTuiPiaoShu=jtfAdultTuiPiaoShugetText()trim()intcTuiPiaoShu=IntegerparseInt(childTuiPiaoShu)intaTuiPiaoShu=IntegerparseInt(adultTuiPiaoShu)if(cTuiPiaoShu==aTuiPiaoShu==){JOptionPaneshowMessageDialog(,"请输入退票数","错误信息",JOptionPaneERRORMESSAGE)return}if(cTuiPiaoShu!=cTuiPiaoShu>IntegerparseInt(childNum)){课程设计报告第章系统功能实现JOptionPaneshowMessageDialog(,"退票数大于已定票数,请按"查询"按钮查看信息","错误信息",JOptionPaneERRORMESSAGE)return}if(aTuiPiaoShu!=aTuiPiaoShu>IntegerparseInt(adultNum)){JOptionPaneshowMessageDialog(,"退票数大于已定票数,请按"查询"按钮查看信息","错误信息",JOptionPaneERRORMESSAGE)return}operationForTuiPiao(cTuiPiaoShu,aTuiPiaoShu)}}privatevoidoperationForTuiPiao(intchildTuiPiaoShu,intadultTuiPiaoShu){intnewChildNum=IntegerparseInt(childNum)childTuiPiaoShuintnewAdultNum=IntegerparseInt(adultNum)adultTuiPiaoShufloattuiPiaoCost=caculateTuiPiaoCost(childTuiPiaoShu,adultTuiPiaoShu)floatnewCost=FloatparseFloat(cost)tuiPiaoCosttry{RandomAccessFileraf=newRandomAccessFile(file,"rw")rafseek(thislocationOfRecord)rafwrite(dingdanNum)rafwrite(name)rafwrite(idNum)rafwrite(flight)rafwrite(flight)rafwrite(ticketType)课程设计报告第章系统功能实现leaveTime=leaveTimesubstring(,)leaveTimesubstring(,)leaveTimesubstring(,)if(leaveTimelength()!=)leaveTime=leaveTimesubstring(,)leaveTimesubstring(,)leaveTimesubstring(,)rafwrite(leaveTime)rafwrite(leaveTime)rafwrite(StringvalueOf(newChildNum))rafwrite(StringvalueOf(newAdultNum))rafwrite(StringvalueOf(newCost))inttotalTuiPiaoShu=childTuiPiaoShuadultTuiPiaoShuseatInfotuiPiao(flight,leaveTime,totalTuiPiaoShu)if(flightlength()!=)seatInfotuiPiao(flight,leaveTime,totalTuiPiaoShu)if(newChildNum==newAdultNum==)JOptionPaneshowMessageDialog(,"恭喜你退票成功!""n""该订单号已作废!""n""你将获得"tuiPiaoCost"的退票钱""n""欢迎你再次选择我们!","退票成功",JOptionPaneINFORMATIONMESSAGE)elseJOptionPaneshowMessageDialog(,"恭喜你退票成功!""n""你现在剩余"newChildNum"张儿童票和"newAdultNum"张成人票""n""你将获得"tuiPiaoCost"的退票钱""n""欢迎你再次选择我们!","退票成功",JOptionPaneINFORMATIONMESSAGE)}catch(Exceptione){eprintStackTrace()}}课程设计报告第章系统功能实现privatefloatcaculateTuiPiaoCost(intchildTuiPiaoShu,intadultTuiPiaoShu){floattuiPiaoCost=try{StringsqlString="selectchildFare,adultFarefromflightwhereflight='"flight"'"ResultSetrs=sqlBeanexecuteQuery(sqlString)floatchildFare=floatadultFare=while(rsnext()){childFare=rsgetFloat()adultFare=rsgetFloat()}floatchildFare=floatadultFare=if(flightlength()!=){StringsqlString="selectchildFare,adultFarefromflightwhereflight='"flight"'"ResultSetrs=sqlBeanexecuteQuery(sqlString)while(rsnext()){childFare=rsgetFloat()adultFare=rsgetFloat()}}if(flightlength()==){tuiPiaoCost=(childFare*childTuiPiaoShuadultFare*adultTuiPiaoShu)*(float)}else课程设计报告第章系统功能实现{tuiPiaoCost=((childFarechildFare)*childTuiPiaoShu(adultFareadultFare)*adultTuiPiaoShu)*(float)}}catch(Exceptione){eprintStackTrace()}returntuiPiaoCost}privatebooleangetClientInfo(Stringdingdan,Stringid){RandomAccessFileraf=try{raf=newRandomAccessFile(file,"rw")booleanisDingDanExist=falsebooleanisIDRight=falselongtempLocation=try{while(rafgetFilePointer()<raflength()){tempLocation=rafgetFilePointer()dingdanNum=rafread()name=rafread()idNum=rafread()flight=rafread()flight=rafread()ticketType=rafread()leaveTime=rafread()课程设计报告第章系统功能实现leaveTime=rafread()childNum=rafread()adultNum=rafread()cost=rafread()if(dingdanNumequals(dingdan)){isDingDanExist=trueif(idNumequals(id)){isIDRight=truethislocationOfRecord=tempLocationbreak}else{isIDRight=falsebreak}}}}catch(EOFExceptione){}booleanisValid=canReturn(leaveTime)if(!isValid){JOptionPaneshowMessageDialog(,"该票已经过期!不能再退!","错误信息",JOptionPaneERRORMESSAGE)returnfalse}if(isDingDanExist==trueisIDRight==true)课程设计报告第章系统功能实现{Stringyear=""Stringmonth=""Stringday=""if(leaveTimelength()!=){year=leaveTimesubstring(,)month=leaveTimesubstring(,)day=leaveTimesubstring(,)leaveTime=yearconcat("")concat(month)concat("")concat(day)}if(leaveTimelength()!=){year=leaveTimesubstring(,)month=leaveTimesubstring(,)day=leaveTimesubstring(,)leaveTime=yearconcat("")concat(month)concat("")concat(day)}if(IntegerparseInt(childNum)==IntegerparseInt(adultNum)==){JOptionPaneshowMessageDialog(,"该订单号已经无效!","错误信息",JOptionPaneERRORMESSAGE)returnfalse}returntrue}if(isDingDanExist==trueisIDRight==false){JOptionPaneshowMessageDialog(,"身份证号不正确","错误信息",JOptionPaneERRORMESSAGE)课程设计报告第章系统功能实现returnfalse}if(isDingDanExist==false){JOptionPaneshowMessageDialog(,"订单号不存在","错误信息",JOptionPaneERRORMESSAGE)returnfalse}}catch(Exceptione){eprintStackTrace()}finally{try{rafclose()}catch(Exceptione){eprintStackTrace()}}returnfalse}privatebooleancanReturn(Stringtime){Stringyear=timesubstring(,)Stringmonth=timesubstring(,)Stringday=timesubstring(,)inty=IntegerparseInt(year)intm=IntegerparseInt(month)intd=IntegerparseInt(day)获得票的时间课程设计报告第章系统功能实现Calendarcal=CalendargetInstance()calsetTime(newjavautilDate())intpy=calget(CalendarYEAR)intpm=calget(CalendarMONTH)intpd=calget(CalendarDAYOFMONTH)if(y==py){if(m<pm)returnfalseelseif(d<pd)returnfalse}returntrue}}连接数据库实现此模块为连接数据库模块对航空定票系统中的各种业务进行连接数据库进行对表查询、更新、删除等操作。订票办理模块中可通过订票办理、国内机票实时速定、机票类型等多种信息向数据库表中添加用户订票信息。退票办理模块中首先查找用户数据库中表信息然后为用户退还机票及退订票金额然后删除表中用户信息。航班管理模块中管理员可通过基本信息来插入、删除、更改航班等相关信息以及进入数据库来查看操作是否成功。程序代码如下:publicclassSqlBean{privateConnectionconn=privateResultSetrs=数据驱动privateStringDatabaseDriver="sunjdbcodbcJdbcOdbcDriver"数据源课程设计报告第章系统功能实现privateStringDatabaseConnStr="jdbc:odbc:dsStudent"登录IDprivateStringLogId="sa"登录密码privateStringLogPass=""构造器方法publicSqlBean(){try{ClassforName(DatabaseDriver)}catch(ClassNotFoundExceptione){}}查询publicResultSetexecuteQuery(Stringsql){rs=try{conn=DriverManagergetConnection(DatabaseConnStr,LogId,LogPass)Statementstmt=conncreateStatement()rs=stmtexecuteQuery(sql)}catch(SQLExceptionex){}returnrs}插入publicintexecuteInsert(Stringsql){intnum=try课程设计报告第章系统功能实现{conn=DriverManagergetConnection(DatabaseConnStr,LogId,LogPass)Statementstmt=conncreateStatement()num=stmtexecuteUpdate(sql)}catch(SQLExceptionex){}returnnum}删除publicintexecuteDelete(Stringsql){intnum=try{conn=DriverManagergetConnection(DatabaseConnStr,LogId,LogPass)Statementstmt=conncreateStatement()num=stmtexecuteUpdate(sql)}catch(SQLExceptione){}returnnum}更新publicintexecuteUpdate(Stringsql){intnum=try{conn=DriverManagergetConnection(DatabaseConnStr,LogId,LogPass)Statementstmt=conncreateStatement()num=stmtexecuteUpdate(sql)}catch(SQLExceptione)课程设计报告第章系统功能实现{}returnnum}关闭publicvoidCloseDataBase(){try{connclose()}catch(Exceptione){}}}publicclassUpdateComboBoxextendsThread{privateSqlBeansqlBean=newSqlBean()privateHashSetflight=newHashSet()privateHashSetairFirm=newHashSet()privateHashSetplace=newHashSet()publicfinalstaticintINSERTINFO=publicfinalstaticintDELETEINFO=publicUpdateComboBox(){thisstart()}publicvoidrun(){try{while(true){updateInsert()课程设计报告第章系统功能实现updateDelete()thissleep()}}catch(Exceptione){eprintStackTrace()}}publicvoidupdateInsert(){StringsqlString="selectflight,airfirm,startfromflight"StringnewFlightNum=""StringnewAirFirm=""StringnewPlace=""try{ResultSetrs=sqlBeanexecuteQuery(sqlString)while(rsnext()){newFlightNum=rsgetString("flight")newAirFirm=rsgetString("airfirm")newPlace=rsgetString("start")if(!flightcontains(newFlightNum)){flightadd(newFlightNum)updateFlightComboBox(newFlightNum,thisINSERTINFO)}if(!airFirmcontains(newAirFirm)){airFirmadd(newAirFirm)updateAirFirmComboBox(newAirFirm,thisINSERTINFO)}课程设计报告第章系统功能实现if(!placecontains(newPlace)){placeadd(newPlace)updatePlaceComboBox(newPlace,thisINSERTINFO)}}}catch(Exceptione){eprintStackTrace()}}publicvoidupdateDelete(){try{StringsqlString="selectflight,airfirm,startfromflight"ResultSetrs=sqlBeanexecuteQuery(sqlString)HashSetfli=newHashSet()HashSetfirm=newHashSet()HashSetpla=newHashSet()while(rsnext()){fliadd(rsgetString("flight"))firmadd(rsgetString("airfirm"))plaadd(rsgetString("start"))}IteratorflightIt=flightiterator()IteratorairFirmIt=airFirmiterator()IteratorplaceIt=placeiterator()StringflightNum=""课程设计报告第章系统功能实现while(flightIthasNext()){flightNum=(String)flightItnext()if(!flicontains(flightNum)){updateFlightComboBox(flightNum,thisDELETEINFO)}}flight=(HashSet)fliclone()Stringair=""while(airFirmIthasNext()){air=(String)airFirmItnext()if(!firmcontains(air)){updateAirFirmComboBox(air,thisDELETEINFO)}}airFirm=(HashSet)firmclone()Stringlocation=""while(placeIthasNext()){location=(String)placeItnext()if(!placontains(location)){updatePlaceComboBox(location,thisDELETEINFO)}}place=(HashSet)placlone()}catch(Exceptione){eprintStackTrace()}}课程设计报告第章系统功能实现privatevoidupdateFlightComboBox(StringnewFlightNum,intinsertOrDelete){CommonQueryupdateFlightComboBox(newFlightNum,insertOrDelete)FlightQueryupdateFlightList(newFlightNum,insertOrDelete)DeletePanelupdateFlightComboBox(newFlightNum,insertOrDelete)}privatevoidupdateAirFirmComboBox(StringnewAirFirm,intinsertOrDelete){CommonQueryupdateAirFirmComboBox(newAirFirm,insertOrDelete)AirFirmQueryupdateAirFirmComboBox(newAirFirm,insertOrDelete)ComprehenQueryupdateAirFirmComboBox(newAirFirm,insertOrDelete)}privatevoidupdatePlaceComboBox(StringnewPlace,intinsertOrDelete){CommonQueryupdatePlaceComboBox(newPlace,insertOrDelete)DestinQueryupdatePlaceComboBox(newPlace,insertOrDelete)ComprehenQueryupdatePlaceComboBox(newPlace,insertOrDelete)DeletePanelupdateCityComboBox(newPlace,insertOrDelete)}}沈阳工程学院课程设计报告结论结论结论是整个论文(设计说明书)的总结应以简练的文字说明毕业设计(论文)所做的工作取得的成果也可在结论中提出建议、设想和尚待解决的问题等。结论作为单独一章书写但不加章、节字样文字一般不超过两页。经过了一周既繁忙又紧张的课程设计这期间让我感受到没有过的劳累和紧张但更多的是兴奋与喜悦。通过此次的课程设计给了我们很多学习上的启示有耕耘才有收获。以前的我学习总是不主动而经过这次课程设计后看到大家都为了程序努力着这种气氛感染着我和我的组员。开始觉得程序应该很难认为自己能力有限完成不了。当我看到很多同学通过那里都有了成果我们的信心从此建立了起来。课程设计就是一项潜心研究的工程必须全身心的投入进去我们组员每个人用心努力着不仅为了要很好的完成设计更是想得到那成功的喜悦的时刻。开始的时候就做简单的设计却错误百出没有一个好的基础怎么能轻车熟路的走下去我们开始认真研究书本查阅参考书仔细分析这些工作对以后的顺利完成任务打下了坚固的基础。以前的课程设计让我了解到只有理解了才能顺利完成设计这样从一开始就尝试着理解当我一头雾水不知从何开始时老师和同学的几句话让感受到什么叫做云开雾散忙了一整天基本上相当于程序完成了一半在其他队员的鼓励下我们顺利完成了。看着正确的结果别提心里有多么的高兴了。这次课程设计给了我成功的喜悦给了我今后学习的动力并且让我懂得了团结的力量苦和累都被这个圆满的句号所抹掉剩下的只有满足与收获。感谢老师给予的这个机会感谢同学们的帮助。沈阳工程学院课程设计报告致谢致谢致谢是对指导教师和给予指导或协助完成毕业设计(论文)工作的组织和个人表示感谢。文字要简捷、实事求是切忌浮夸和庸俗之词。首先感谢老师一周来对我们的指导使我们对JAVA的各个方面的知识有更深一步的了解通过短短一周的课程设计让我不仅了解了很多关于JAVA的理论知识更懂得了团队合作的精神。课程设计是对我们课本知识的检查通过一学期的生活你学到了什么掌握了多少知识也许一次设计说明不了什么但它至少可以看出我们对于此次实训内容的知识的掌握程度。课程设计还能体现你的动手能力“实践出真知”只有通过实践才能进一步掌握所学知识。我想在今后的学习过程中应多进行些实践将理论知识与实践相相结合不懂时可以向老师和同学请教或者是大家一起研究。这样我们才会发现学习的乐趣知识的深奥。沈阳工程学院课程设计参考文献参考文献林信良Java学习笔记清华大学出版社年月第一版Java高级编程(第版)(美)BrettSpell著董梁、刘艳译清华大学出版社ECLIPSE权威开发指南(第版)(美)DanKehn著束尧译清华大学出版社Java编程原理面向工程和科学人员(美)GaryJBronson著张珑、刘雅文译清华大学出版社Java教程(第版)(美)SharonZakhourScottHommelJacobRoyalIsaacRabinovitchTomRisserMarkHoeber著马朝晖等译人民邮电出版

用户评价(0)

关闭

新课改视野下建构高中语文教学实验成果报告(32KB)

抱歉,积分不足下载失败,请稍后再试!

提示

试读已结束,如需要继续阅读或者下载,敬请购买!

文档小程序码

使用微信“扫一扫”扫码寻找文档

1

打开微信

2

扫描小程序码

3

发布寻找信息

4

等待寻找结果

我知道了
评分:

/146

航空订票系统论文 航空客运订票系统设计 航空订票管理系统论文

VIP

在线
客服

免费
邮箱

爱问共享资料服务号

扫描关注领取更多福利