c大工作工作作業(yè)之航空訂票管理系統(tǒng)_第1頁
c大工作工作作業(yè)之航空訂票管理系統(tǒng)_第2頁
c大工作工作作業(yè)之航空訂票管理系統(tǒng)_第3頁
c大工作工作作業(yè)之航空訂票管理系統(tǒng)_第4頁
c大工作工作作業(yè)之航空訂票管理系統(tǒng)_第5頁
已閱讀5頁,還剩13頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、基于c#窗體的航空訂票管理系統(tǒng)的設計與實現系統(tǒng)分工管理資料查詢航線航空訂票管理系統(tǒng)管理員用戶修改公告修改航班管理資料查詢航線航空訂票管理系統(tǒng)管理員用戶修改公告修改航班管理用戶查看信息訂票管理退票管理需求分析進入21世紀,人們計算機處理事情的需求有了進一步的要求。小到商店繳費管理系統(tǒng)的快速運行,大到國家航空航天計算機的管理系統(tǒng)的進一步提升。我們每時每刻都在追求著計算機處理事情的快速,穩(wěn)定,運算量大等一系列優(yōu)點。由于人們?yōu)榱朔奖憧旖莸纳罘绞剑暇W已經成為潮流,這樣快速穩(wěn)定的航空訂票系統(tǒng)應運而生。航空訂票系統(tǒng)需要滿足一般的查詢航線,訂票,退票等一系列基本操作,當然我們也可以設置黑名單,以屏蔽違規(guī)用

2、戶。當然人人都追求美感,那么系統(tǒng)界面的設計也要符合大眾的審美要求。資料的安全與隱私性也是至關重要的,我們每個人,都不想別人知道自己的一些隱私,對自己資金的安全也格外重視。所以訂票系統(tǒng)對不同的角色賦予不同的權限從而保證用戶資料的安全性與隱私性。系統(tǒng)功能(1)游客功能對游客我們系統(tǒng)只為其提供查詢航班信息的功能,不可進行訂票操作。當游客點擊購票按鈕時,將提醒其注冊或登錄。(2)用戶注冊用戶只有注冊成為我們的會員,才可以進行訂票操作。一旦注冊,用戶名將不可修改。注冊時不可與數據庫中存在的用戶名相同,即系統(tǒng)中只能存在唯一一個用戶名。(3)用戶中心提供用戶對自己的資料的查看與修改的功能。還可以對自己的密碼

3、進行修改,在修改密碼時需要輸入原始密碼進而進行驗證。由于時間問題,對個人錢包功能先暫停使用,默認錢夠買票了。(4)訂票功能用戶可根據航班時間,和航班號或航班價格進行訂票。訂票時系統(tǒng)會提醒確認,訂票成功后系統(tǒng)會將用戶的信息加入訂票信息表。并改變航班的余票額。(5)退票功能用戶在不需要票的情況下進行退票操作。退票時必須輸入訂票時隨機生成的訂單號,與航班號。退票成功后,航班自動將余票量加一操作。(6)本系統(tǒng)還添加了管理員界面。當管理員進入后,可對用戶的信息進行查看,但不能修改,也可將用戶加入黑名單,如果用戶有訂單,則不允許管理員做加入黑名單操作。當然加入黑名單時,管理員需要說明理由,作為存檔。管理員

4、,也可根據實際情況對航班進行管理操作。增刪改查。他也可以對公告進行修改操作。(7)系統(tǒng)也實現了,對于不同的角色進入,會產生不同的界面效果。保證了數據的安全性,和保密性。數據庫設計 (1)管理員表 (2) 航班表 (3)黑名單表 (4)訂單信息表(5)用戶信息表運行截圖源代碼using System;using ;using 航空訂票管理系統(tǒng) static class Program ells0.() + , conn); (); int x = 0.Cells8.(); int y = 0.Cells7.(); string Hban = 0.Cells0.(); decimal Price

5、= 0.Cells6.(); if (x = 0) = conn; = update Hangban set syps=syps+1 where HBid= + 0.Cells0.() + ; (); (對不起,沒有票啦!請定其他航班); else (購買成功,你的座位號是: + (y - x + 1).ToString(); xierushuju(username, y - x + 1, Hban, Price); (); (); else (對不起,你現在查詢航班狀態(tài)!不能預訂,現在帶你回登陸界面。); (); catch (Exception err) (好像出錯了。 + ; eader

6、Text = 訂單編號; chufadi.HeaderText = 出發(fā)地; daodadi.HeaderText = 到達地; Startdate.HeaderText = 出發(fā)日期; Enddate.HeaderText = 到達日期; weekdays.HeaderText = 星期; price.HeaderText = 機票價格; contents.HeaderText = 額定人數; syps.HeaderText = 余票數量; using System;using ;using ;using ;using ;using ;using 航空訂票管理系統(tǒng) public partia

7、l class 訂票信息 : Form string connection= SqlDataAdapter adapter; DataTable table; public 訂票信息() InitializeComponent(); private void 訂票信息_Load(object sender, EventArgs e) try = ; SqlConnection conn = new SqlConnection(connection); (); adapter = new SqlDataAdapter(select * from Info, conn); table = new

8、DataTable(); (table); = table; ddhao.HeaderText = 訂單編號; Username.HeaderText = 用戶名; HBid.HeaderText = 航班編號; prices.HeaderText = 航班價格; zuoweihao.HeaderText = 座位號; (); catch (Exception err) (好像出錯了。 + ; using System;using ;using ;using ;using ;using ;using 航空訂票管理系統(tǒng) public partial class 黑名單表 : Form strin

9、g connection = SqlDataAdapter adapter; DataTable table; public 黑名單表() InitializeComponent(); = ; try SqlConnection conn = new SqlConnection(connection); (); adapter = new SqlDataAdapter(select * from HMDliebiao, conn); table = new DataTable(); (table); = table; head(); (); catch (Exception err) (好像出

10、錯了。 + ; private void head() Num1.HeaderText = 黑名單編號; Username.HeaderText = 用戶名; beizhu.HeaderText = 備注; Sdata.HeaderText = 拉黑日期; using System;using ;using ;using ;using ;using ;using 航空訂票管理系統(tǒng) public partial class 修改公告 : Form public string gonggao get; set; public 修改公告() InitializeComponent(); electe

11、d = true; = ; head(); info(); (); catch (Exception err) (好像出錯了。 + ; private void button2_Click(object sender, EventArgs e) (); ells0.() + ,conn); DataTable table = new DataTable(); (table); if if (確定要將用戶+0.Cells0.()+添加入嗎, 提示, , = = delete Usertable where Username= + 0.Cells0.() + ; (); = insert into

12、 HMDliebiao(Username,beizhu) values( + 0.Cells0.() + , + + ); (); (添加成功!); adapter = new SqlDataAdapter(select * from Usertable, conn); table = new DataTable(); (table); = table; info(); head(); else (該顧客還有訂票信息,不能加入黑名單!); (); catch(Exception err) ; eaderText = 用戶名; name.HeaderText = 客戶姓名; Upassword.

13、HeaderText = 客戶密碼; sex.HeaderText = 客戶性別; idcard.HeaderText = 身份證號; Umoney.HeaderText = 客戶余額; phone.HeaderText = 手機號; characters.HeaderText = 個性簽名; ells8.()= ) = null; else MemoryStream mysm = new MemoryStream(byte) Image ims = (mysm); = ims; = 0.Cells0.(); = 0.Cells1.(); = 0.Cells4.(); = 0.Cells6.(

14、); = 0.Cells5.(); = 0.Cells7.(); = = = = = = false; private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) info(); private void button3_Click(object sender, EventArgs e) try SqlConnection conn = new SqlConnection(connection); (); adapter = new SqlDataAdapter(select * from U

15、sertable where Username= + + , conn); table = new DataTable(); (table); = table; if = 1) (沒有您要的數據返回,請重新輸入); = ; (); = = = = = = ; = false; else info(); (); catch (Exception err) (好像出錯了。 + ; using System;using ;using ;using ;using ;using ;using 航空訂票管理系統(tǒng) public partial class 修改密碼 : Form public string

16、un; public int flag; public string ysm get; set; string connection = public 修改密碼(string username) InitializeComponent(); un = username; SqlDataAdapter adapter; DataTable table; try SqlConnection conn = new SqlConnection(connection); (); adapter = new SqlDataAdapter(select * from Usertable where User

17、name= + un + , conn); table = new DataTable(); SqlCommandBuilder builder = new SqlCommandBuilder(adapter); (table); = table; 0.Selected = true; ysm = 0.Cells2.(); catch (Exception err) (出錯啦。+; private void button2_Click(object sender, EventArgs e) (); private void textBox1_Leave(object sender, Event

18、Args e) eaderText = 訂單編號; chufadi.HeaderText = 出發(fā)地; daodadi.HeaderText = 到達地; Startdate.HeaderText = 出發(fā)日期; Enddate.HeaderText = 到達日期; weekdays.HeaderText = 星期; price.HeaderText = 機票價格; contents.HeaderText = 額定人數; syps.HeaderText = 余票數量; using System;using ;using ;using ;using ;using ;using ;namespac

19、e 航空訂票管理系統(tǒng) public partial class 個人資料 : Form private Stream stream; private string fileName; SqlDataAdapter adapter; DataTable table; public string pwd get; set; public string usernameget;set; public int flag; string connection = public 個人資料(string status,int n) InitializeComponent(); flag = n; = ; u

20、sername = status; try SqlConnection conn = new SqlConnection(connection); (); adapter = new SqlDataAdapter(select * from Usertable where Username=+status+, conn); table = new DataTable(); SqlCommandBuilder builder = new SqlCommandBuilder(adapter); (table); = table; 0.Selected = true; = 0.Cells1.(); = 0.Cells4.(); = 0.Cells7.(); = 0.Cells0.(); = 0.Cells6.(); = 0.Cells5.(); pwd =0.Cells1.(); picture(); (); = false; if (flag = 1) TextBoxnovisivale(); catch (Exception err) (好像出錯了。 + ; elected = true; if 0.Cells8.() = )

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論