freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

航空訂票系統(tǒng)論文航空客運訂票系統(tǒng)設(shè)計航空訂票管理系統(tǒng)論文-資料下載頁

2025-08-24 15:51本頁面

【導(dǎo)讀】航空定票系統(tǒng)是使用JAVA編程技術(shù)在集成開發(fā)環(huán)境下開發(fā)的訂票系統(tǒng)。該系統(tǒng)實現(xiàn)了航班管理、訂票管理、退票管理以及查詢航班等功能。以用多種方式來查詢航班信息,也可以根據(jù)實際需要來訂票。將這些信息保存在數(shù)據(jù)庫中,并供航空公司內(nèi)部管理員隨時查詢。

  

【正文】 sql=update flight set destination=39。+jtf[5].getText()+39。 where flight=39。+jtf[0].getText()+39。 (sql)。 } if(radio[6].isSelected()) { sql=update flight set leaveTime=39。+jtf[6].getText()+39。 where flight=39。+jtf[0].getText()+39。 (sql)。 } if(radio[7].isSelected()) { sql=update flight set arriveTime=39。+jtf[7].getText()+39。 where flight=39。+jtf[0].getText()+39。 (sql)。 } if(radio[8].isSelected()) { sql=update flight set 課程設(shè)計報告 第 4 章 系統(tǒng)功能實現(xiàn) 25 childFare=+(jtf[8].getText().trim())+ where flight=39。+jtf[0].getText()+39。 (sql)。 } if(radio[9].isSelected()) { sql=update flight set adultFare=+(jtf[9].getText().trim())+ where flight=39。+jtf[0].getText()+39。 (sql)。 } if(radio[10].isSelected()) { sql=update flight set discount1=+(jtf[10].getText().trim())+ where flight=39。+jtf[0].getText()+39。 (sql)。 } if(radio[11].isSelected()) { sql=update flight set discount2=+(jtf[11].getText().trim())+ where flight=39。+jtf[0].getText()+39。 (sql)。 } (null,航班信息已經(jīng)更新成功 !, 成功信息,)。 } } } } catch(Exception ex) { } } //查看數(shù)據(jù)庫 public Show() { 課程設(shè)計報告 第 4 章 系統(tǒng)功能實現(xiàn) 26 try { ()。 } catch(Exception ex) { } pan=new JScrollPane(area)。 JPanel p1=new JPanel()。 (new TitledBorder(輸入有效認(rèn)證 ))。 (label1)。 (jtf)。 (label2)。 (password)。 JPanel p2=new JPanel()。 (new TitledBorder(操作 ))。 (button)。 (new BorderLayout())。 (p1,)。 (pan,)。 (p2,)。 (this)。 } public void actionPerformed(ActionEvent e) { try { ()。 if(!(().equals(0302)amp。amp。().equals(0302))) (null, 賬 好 或 密 碼 不 對 , 錯誤,)。 else {con = (jdbc:odbc:dsStudent,sa,)。 stmt = ()。 rs=(select * from flight)。 while(()) 課程設(shè)計報告 第 4 章 系統(tǒng)功能實現(xiàn) 27 { ((1))。 ((2))。 ((3))。 ((4))。 ((5))。 ((6))。 (+(7)+ )。 (+(8)+ )。 (+(9)+ )。 (+(10)+ )。 (+(11)+ )。 ((12))。 ((13)+\n)。 }}} catch(Exception ex) { } } 查詢航班功能實現(xiàn) 查詢航班分為普通查詢與綜合查詢。普通查詢?nèi)鐖D 所示。 課程設(shè)計報告 第 4 章 系統(tǒng)功能實現(xiàn) 28 圖 普通查詢界面 通過普通查詢可得到乘客想要得知的航班信息,普通查詢得到信息如圖 所示。 圖 查詢信息界面 綜合查詢?nèi)鐖D 所示 圖 綜合查詢界面 綜合查詢可得知乘客想要乘坐的最近的航班出發(fā)日期,并可對單程、往返、聯(lián)程 3 種乘坐方式進(jìn)行查詢。得到的查詢信息界面如圖 所示。 圖 綜合查詢信息界面 課程設(shè)計報告 第 4 章 系統(tǒng)功能實現(xiàn) 29 程序代碼如下: public static void updateAirFirmComboBox(String newAirFirm,int insertOrDelete) { if (insertOrDelete == 1) { if ((newAirFirm) == 1) (newAirFirm)。 } else if (insertOrDelete == 2) { if ((newAirFirm) != 1) (newAirFirm)。 } } public void setDisplayPresentTime() { Calendar cal = ()。 //獲得年月日 String year = (())。 String month = (() + 1)。 String day = (())。 //顯示時間 (year)。 (year)。 (month)。 (month)。 //更新年月 updateDay(year,month,jcbDay1)。 updateDay(year,month,jcbDay2)。 (day)。 (day)。 } //更新天 private void updateDay(String year,String month,JComboBox jcb) { //有 30 天的月是 4,6,9,11 月 if ((4) || (6) || (9) || (11)) 課程設(shè)計報告 第 4 章 系統(tǒng)功能實現(xiàn) 30 { //() == 31 means that there are 31 days in the day bobox, //but exactly it is 30 days,so we should remove the 31st day from the day bobox if (() == 31) (31)。 else if(() == 29) (30)。 else if (() == 28) { (29)。 (30)。 } } //在 2 月份有 28 或 29 天 else if ((2)) { int years = (year)。 //閏年 if ( (years % 400 == 0) || (years %4 == 0 amp。amp。 years % 100 != 0)) { if (() == 31) { (30)。 (31)。 } else if (() == 30) { (30)。 } else if (() == 28) { (29)。 } } //不是閏年 else { if (() == 29) { 課程設(shè)計報告 第 4 章 系統(tǒng)功能實現(xiàn) 31 (29)。 } else if (() == 30) { (29)。 (30)。 } else if (() == 31) { (29)。 (30)。 (31)。 } } } //31 天 else { if (() == 28) { (29)。 (30)。 (31)。 } else if (() == 29) { (30)。 (31)。 } else if (() == 30) { (31)。 } } } public void itemStateChanged(ItemEvent e) { //根據(jù)選擇的年月來選擇天 if (() == jcbYear1 || () == jcbMonth1) { 課程設(shè)計報告
點擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1