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

正文內(nèi)容

aspnet民航訂票管理系統(tǒng)的開發(fā)(參考版)

2024-12-10 02:50本頁面
  

【正文】 +OrderId+39。 ()。+OrderId+39。+OrderNumber+39。 ()。 and = )。//返回上一級頁面 =(select * from users join orders on = join plane on = join planeseattype on = where username=39。 ()。 民航訂票管理系統(tǒng) 30 =[orders]。 = 2。 //建立適配器 SqlDataAdapter sda = new SqlDataAdapter()。+OrderId+39。 string OrderTime=().ToString()。+OrderId+39。++39。 string OrderNumber=().ToString()。+OrderId+39。++39。 ()。 UserJudge u=(UserJudge)Session[user]。 ()。 ()。%++%39。++39。++39。++39。 =planeid。)。and convert(varchar,planestarttime,120) like 39。 and planest=39。and planeendplace=39。 =(select * from plane join planeseattype on = where planestartplace=39。 SqlConnection con=()。 民航訂票管理系統(tǒng) 29 ()。 ()。%++%39。++39。++39。++39。//數(shù)據(jù) 庫連接 ()。 if(==單程 ) { //查詢滿足條件的航班 =planeid。 if(==單程 ) { ()。 ()。+OrderState+39。+TotalPrice+39。+OrderNumber+39。++39。+PlaneId+39。+UserId+39。 string OrderState=(未確認訂 單 )。,con)。 SqlCommand =new SqlCommand(select userid from users where username=39。 SqlConnection con=()。 decimal TotalPrice=PlanePrice*OrderNumber。 string PlaneId=[].ToString()。 } } } } 查詢指定的航班表 的預定按鈕的響應事件代碼 private void DataGrid1_ItemCommand(object source, e) { 民航訂票管理系統(tǒng) 28 if(==AddToOrder) { if(Session[flag]==null) { ()。 =true。)。and convert(varchar,planestarttime,120) like 39。 and planest=39。and planeendplace=39。 =(select * from plane join planeseattype on = where planestartplace=39。 ()。%++%39。++39。++39。++39。//數(shù)據(jù)庫連接 ()。 } else { =planeid。)。alert(39。 if((starttime,endtime)0) { (script language=39。 } if(==往返 )//往返 { DateTime starttime=()。 =false。)。and convert(varchar,planestarttime,120) like 39。 and planest=39。and planeendplace=39。 =(select * from plane join planeseattype on = where planestartplace=39。 民航訂票管理系統(tǒng) 27 SqlConnection con=()。/script)。出發(fā)地點不能與到達地點相同!39。javascript39。 ()。 ()。 =planeendplace。 sdr=()。 ()。 =planestartplace。 =sdr。 SqlCommand =new SqlCommand(select distinct planestartplace from plane,con)。 { //綁定出發(fā)地點 SqlConnection con=()。 =歡迎 ++光臨本網(wǎng)站 。 if(Session[flag]==null) { =未登錄 。} } 3. 系統(tǒng)首 頁(查詢航班和預定航班) 綁定出發(fā)地點和到達地點的代碼 private void Page_Load(object sender, e) { =Application[total].ToString()。 民航訂票管理系統(tǒng) 26 ()。),con)。,39。,39。,39。,39。,39。,39。,39。,39。 } else { SqlCommand 2=new SqlCommand(insert into users (username,userpassword,usertype,usertel,identityid,identityname,usersex,user,useraddress) values(39。)。alert(39。 if(count0)//用戶名重復 { (script language=39。,con)。 SqlCommand 1=new SqlCommand(select count(*) from users where username=39。 } } } 2. 用戶 注冊界面 注冊界面提交按鈕事件的代碼 private void SubmitButton_Click(object sender, e) { SqlConnection con=()。)。alert(39。 } } else { (script language=39。 Session[user]=user。 UserJudge user=new UserJudge()。 ()。 =userName。 if (judge==1)//管理員登錄 { Session[flag]=true。 ,con)。//判斷是否登錄成功 if(count0)//成功登錄 民航訂票管理系統(tǒng) 25 { SqlCommand 2=new SqlCommand(select usertype from users where username=39。,con)。and userpassword=39。 SqlCommand =new SqlCommand(select count(*) from users where username=39。 SqlConnection con=()。 總體結構 系統(tǒng)相關類列表 表 51 系統(tǒng)相關類列表 類 功能 首頁(查詢及預定航班界面) 登錄頁面 注冊界面 更改用戶信息界面 更改用戶密碼界面 訂單界面 所有航班界面 熱門航班界面 留言界面 留言詳情界面 后臺 后臺管理 首頁 后臺 添加新航班界面 后臺 航班管理界面 后臺 用戶管理界面 后臺 添加管理員界面 后臺 訂單管理界面 后臺 adminmessage,aspx 留言管理界面 主要代碼 1. 用戶登錄 界面 登錄界面 登錄按鈕事件的實現(xiàn) 代碼 private void login_Click(object sender, e) { if() { string userName=(userName).ToString()。 counttotal表 只包括了訪問本網(wǎng)站的總人數(shù)。 orders表包括了訂單號、用戶編號、航班編號、座位類型、預訂數(shù)量、預定總價、預定時間、訂單狀態(tài),其中外鍵用戶編號( userid)與 users表關聯(lián),外鍵航班編號( planeid)與 plane表關聯(lián)。 plane表包括了航班編號、航班號、航空公司、起 /降地點、起 /降時間、等信息。 后臺管理員管理模塊的流程圖 如圖 42所示: 民航訂票管理系統(tǒng) 21 登 錄輸 入 用 戶 名 及 密 碼管 理 員 界 面 民 航 訂 票 系 統(tǒng)是 普 通 用 戶航 班 管 理 用 戶 管 理 訂 單 管 理更 改 航 班 信 息是 管 理 員 帳 戶添 加 新 航 班 更 改 用 戶 信 息 添 加 管 理 員 查 看 及 刪 除 訂 單留 言 管 理回 復 指 定 留 言 及刪 除 留 言 圖 42后臺管理員管理模塊的流程圖 數(shù)據(jù)庫 設計 民航訂票管理系統(tǒng) 的 數(shù)據(jù)庫使用 SQL Server 2021,共建立了六張表, 如表 41 所示, 分別是users、 plane、 planeseattype、 orders、 message、 counttotal。本系統(tǒng) 前臺 主要有三個功能 模 塊 , 包括留言 信息 ,用戶 信息 ,以及最主要的 訂票 模塊 , 前臺用戶管理模塊的流程圖如圖 41所示 民航訂票管理系統(tǒng) 20 民 航 訂 票 系 統(tǒng) ( 起 始 頁 )按 出 發(fā) 、 到 達 地 點 , 座 位 類 型 ,出 發(fā) 、 到 達 時 間 查 詢 航 班 信 息預 定 機 票是 否 登 錄 ?登 錄未 登 錄更 改 用 戶 信 息 及 密 碼注 冊已 登 錄顯 示 訂 單 信 息查 詢 是 否 已 確 認 訂 單已 提 交更 新 該 航 班 座 位 數(shù) 量 并將 提 交 時 間 寫 入 訂 單取 消 訂 單已 提 交未 提 交 未 提 交留 言 及 登 錄是 否 登 錄 ?已 登 錄發(fā) 表 留 言 及查 看 留 言未 登 錄熱 門 航 班所 有 航 班 信 息 圖 41前臺用戶管理模塊的流程圖 模塊執(zhí)行流程 后臺管理員管理模塊的流程圖顯示了本系統(tǒng)在系統(tǒng)后 臺的全部功能和使用方法。 系統(tǒng)主要功能組件 通過角色權限的劃分,明確各部分的功能結構,現(xiàn)在該考慮如何實現(xiàn)各部分功能,并將其有序的組織在一起。 該系統(tǒng)允許任何人進行查詢滿足條件的航班信息,查詢所有航班的實時信息和熱門航班等操作,但是如果你想預定航班的話,就必須先注冊才可預定航班。 如果用戶想查看實時的航班信息可以選擇“所有航班”鏈接,該界面會顯示 所有航班的 實時信息;如果用戶想了解哪架航班預定人數(shù)比較多,可以點擊“熱門航班”鏈接,該頁面將會列出預定數(shù)量排名前十航班的航班號、航空公司、起飛地點、降落地點等信息。提交訂單后,管理員會盡快與您取得聯(lián)系。用戶可以選擇訂單列表的最后兩列按鈕,選擇是取消訂單還是最終確認訂單。 38所示 民航訂票管理系統(tǒng) 16 圖 38 用戶管理 界面 在該界面上管理員可 根據(jù)用戶名查詢用戶信息 , 并且可 對 用戶信息 進行更改或 刪除 用戶 的操作。 5. 添加新航班界面 如圖 3 36所示 圖 35 添加新航班界面 ( 1) 根據(jù)下拉菜單選擇航班公司、起飛地點、降落地點和飛機型號,輸入唯一的航班號,根據(jù)提示的格式輸入起飛和降落時間, 點擊下一步
點擊復制文檔內(nèi)容
研究報告相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1