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ù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

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

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

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

4、,也可根據(jù)實(shí)際情況對(duì)航班進(jìn)行管理操作。增刪改查。他也可以對(duì)公告進(jìn)行修改操作。(7)系統(tǒng)也實(shí)現(xiàn)了,對(duì)于不同的角色進(jìn)入,會(huì)產(chǎn)生不同的界面效果。保證了數(shù)據(jù)的安全性,和保密性。數(shù)據(jù)庫設(shè)計(jì) (1)管理員表 (2) 航班表 (3)黑名單表 (4)訂單信息表(5)用戶信息表運(yùn)行截圖源代碼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.() + ; (); (對(duì)不起,沒有票啦!請(qǐng)定其他航班); else (購買成功,你的座位號(hào)是: + (y - x + 1).ToString(); xierushuju(username, y - x + 1, Hban, Price); (); (); else (對(duì)不起,你現(xiàn)在查詢航班狀態(tài)!不能預(yù)訂,現(xiàn)在帶你回登陸界面。); (); catch (Exception err) (好像出錯(cuò)了。 + ; eader

6、Text = 訂單編號(hào); chufadi.HeaderText = 出發(fā)地; daodadi.HeaderText = 到達(dá)地; Startdate.HeaderText = 出發(fā)日期; Enddate.HeaderText = 到達(dá)日期; weekdays.HeaderText = 星期; price.HeaderText = 機(jī)票價(jià)格; contents.HeaderText = 額定人數(shù); syps.HeaderText = 余票數(shù)量; 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 = 訂單編號(hào); Username.HeaderText = 用戶名; HBid.HeaderText = 航班編號(hào); prices.HeaderText = 航班價(jià)格; zuoweihao.HeaderText = 座位號(hào); (); catch (Exception err) (好像出錯(cuò)了。 + ; 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、錯(cuò)了。 + ; private void head() Num1.HeaderText = 黑名單編號(hào); 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) (好像出錯(cuò)了。 + ; 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 = 身份證號(hào); Umoney.HeaderText = 客戶余額; phone.HeaderText = 手機(jī)號(hào); characters.HeaderText = 個(gè)性簽名; 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) (沒有您要的數(shù)據(jù)返回,請(qǐng)重新輸入); = ; (); = = = = = = ; = false; else info(); (); catch (Exception err) (好像出錯(cuò)了。 + ; 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) (出錯(cuò)啦。+; private void button2_Click(object sender, EventArgs e) (); private void textBox1_Leave(object sender, Event

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

19、e 航空訂票管理系統(tǒng) public partial class 個(gè)人資料 : 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 個(gè)人資料(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) (好像出錯(cuò)了。 + ; elected = true; if 0.Cells8.() = )

溫馨提示

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

評(píng)論

0/150

提交評(píng)論