Your SlideShare is downloading. ×
高鐵訂票系統報告
高鐵訂票系統報告
高鐵訂票系統報告
高鐵訂票系統報告
高鐵訂票系統報告
高鐵訂票系統報告
高鐵訂票系統報告
高鐵訂票系統報告
高鐵訂票系統報告
高鐵訂票系統報告
高鐵訂票系統報告
高鐵訂票系統報告
高鐵訂票系統報告
高鐵訂票系統報告
高鐵訂票系統報告
高鐵訂票系統報告
高鐵訂票系統報告
高鐵訂票系統報告
高鐵訂票系統報告
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

高鐵訂票系統報告

3,373

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,373
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
34
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. 資料庫期末專題-高鐵訂票系統 第八組 SQL 494512102-張逸豪 494512059-孫于婷 494512217-吳則漢 1 Presented By SQL Team. 2008/1/7
  • 2. 架設環境 WindowsXP IIS  SQLserver2005  Visual Studio 2005  ASP.NET  JAVA JDBC  2 Presented By SQL Team. 2008/1/7
  • 3. Schema 3 Presented By SQL Team. 2008/1/7
  • 4. E-R modle cus_emai l trai n_ dest `` cus_ SSI D reservati on_N o dep_ti me ` cus_name trai n_dep trai n_N o cus_ date cus_ti me customer trai n ti ckets mappi ng booki ng reservati on_ N o mappi ng trai n_ N o seat_i nf o trai n_N o seat_N o cancel _seat cus_ name seat_N o carri age_N o seat_dep seat_ dest carri age_N o seat_ date seat_ dep seat_dest seat_date ci ty _name state_ tabl e ci ty _N o 4 Presented By SQL Team. 2008/1/7
  • 5. 系統流程圖 5 Presented By SQL Team. 2008/1/7
  • 6. 功能列表 後端程式 前端程式 訂票 訂票 刪票 退票 查看乘車率 訂票資料輸出 查詢買票記錄 看時刻表 查詢買票記錄 文字檔資料匯入 查看退票紀錄 查看當天班次乘車人數 取消的座位均可再定 6 Presented By SQL Team. 2008/1/7
  • 7. 前端程式 7 Presented By SQL Team. 2008/1/7
  • 8. 搭乘班次 8 Presented By SQL Team. 2008/1/7
  • 9. 插入新資料 9 Presented By SQL Team. 2008/1/7
  • 10. 刪除全部 10 Presented By SQL Team. 2008/1/7
  • 11. 刪除部分 11 Presented By SQL Team. 2008/1/7
  • 12. 後端程式 12 Presented By SQL Team. 2008/1/7
  • 13. 找空位 trainSet = train.executeQuery(“SELECT * FROM train WHERE train_No = ”+ Integer.parseInt(tr_no1.getText()) + “ AND [” + d + “] = ” + t1+ “ AND [” + s + “] = ” + t2 + “ ”); 新增資料 executeUpdate(quot;INSERT INTO seat_info (reservation_No,train_No,carriage_No,seat_ No,seat_date,seat_dep,seat_dest) VALUES (“+ number + quot;,”+ Integer.parseInt(tr_no1.getText()) + quot;,”+ carriage+ quot;,”+ sno+ quot;,„”+ date1.getText() + quot;',quot; + d + quot;,quot; + s + quot;)quot;); 13 Presented By SQL Team. 2008/1/7
  • 14. 取得座位 st1 = s1.executeQuery(“SELECT top 1  carriage_No,seat_No FROM seat_info WHERE train_No = ” + train+ “ AND seat_date = „” + date + “‟ AND seat_dep < ”+des+“ AND seat_dest > ”+dep+“ ORDER BY carriage_No desc,seat_No desc”);// 南下 st2 = s2.executeQuery(quot;SELECT top 1  carriage_No,seat_No FROM cancel_seat WHERE train_No = quot; + train+ quot; AND seat_date = 'quot; + date + quot;'AND seat_dep < quot;+des+quot; AND seat_dest > quot;+dep+quot; ORDER BY carriage_No asc,seat_No ascquot;);// 南下 14 Presented By SQL Team. 2008/1/7
  • 15. 查詢 rt = destmt2.executeQuery(quot;SELECT * FROM seat_info WHERE reservation_No in (SELECT reservation_No FROM customer WHERE reservation_No = quot;+Integer.parseInt(reno1.getText()) + quot; AND cus_SSID = 'quot;+ ssid1.getText() + quot;') ORDER BY carriage_No asc,seat_No ascquot;); 15 Presented By SQL Team. 2008/1/7
  • 16. 取消訂票 rs1 = destmt1.executeQuery(quot;SELECT top 1 * from seat_info seat_info where reservation_No = quot;+ Integer.parseInt(reno1.getText()) + quot; ORDER BY carriage_No desc,seat_No descquot;); insert.executeUpdate(quot;INSERT INTO cancel_seat (cus_name,train_No,carriage_No,seat_No,seat_d ate,seat_dep,seat_dest) VALUES (quot;+rs1.getString(1)+quot;,” + rs1.getInt(2) + quot;,”+ rs1.getInt(3) + quot;,”+ rs1.getInt(4) + quot;,„”+ rs1.getString(5) + quot;',quot; + rs1.getInt(6) + quot; ,quot; + rs1.getInt(7) + quot;)quot;); 刪掉原本座位省略 16 Presented By SQL Team. 2008/1/7
  • 17. Happy DEMO Time just for us 17 Presented By SQL Team. 2008/1/7
  • 18. 未來展望 網頁美化  加入更多人性化的功能  管理者介面加入Thread管理  2008 SQL Team 18 Presented By SQL Team. 2008/1/7
  • 19. 踹踹看 http://kareneen.myftp.org/index.aspx  19 Presented By SQL Team. 2008/1/7

×