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

正文內(nèi)容

aspnet民航訂票管理系統(tǒng)的開發(fā)-資料下載頁(yè)

2024-12-06 02:50本頁(yè)面

【導(dǎo)讀】民航訂票管理系統(tǒng)的開發(fā)主要包括后臺(tái)數(shù)據(jù)庫(kù)的建立和維護(hù)以及前臺(tái)界面的開發(fā)兩個(gè)方面。為了使最終設(shè)計(jì)的網(wǎng)站更加貼近實(shí)際,本系統(tǒng)參考了網(wǎng)上一些專業(yè)的飛機(jī)訂票網(wǎng)站的基本框架。設(shè)計(jì)該系統(tǒng)的目的是即使你是一個(gè)不懂計(jì)算機(jī)專業(yè)知識(shí)的人士也可以很輕松地管理網(wǎng)站,同時(shí)用戶可以快捷、方便的訂票,使得飛機(jī)訂票公司以較少的人力取得更多的效益。前臺(tái)作為與用戶直接交流、聯(lián)系的可視。的增、刪、改操作。在論文的最后,講述了我在軟件編碼過。程中遇到的問題及解決方法。

  

【正文】 ()。 民航訂票管理系統(tǒng) 26 ()。 ()。} } 3. 系統(tǒng)首 頁(yè)(查詢航班和預(yù)定航班) 綁定出發(fā)地點(diǎn)和到達(dá)地點(diǎn)的代碼 private void Page_Load(object sender, e) { =Application[total].ToString()。 =Application[online].ToString()。 if(Session[flag]==null) { =未登錄 。 } else { UserJudge user=(UserJudge)Session[user]。 =歡迎 ++光臨本網(wǎng)站 。 } if(!)//是第一次,就執(zhí)行綁定。 { //綁定出發(fā)地點(diǎn) SqlConnection con=()。//數(shù)據(jù)庫(kù)連接 ()。 SqlCommand =new SqlCommand(select distinct planestartplace from plane,con)。 SqlDataReader sdr=()。 =sdr。 =planestartplace。 =planestartplace。 ()。 ()。 //綁定到達(dá)地點(diǎn) SqlCommand 1=new SqlCommand(select distinct planeendplace from plane ,con)。 sdr=()。 =sdr。 =planeendplace。 =planeendplace。 ()。 ()。 ()。 } 首頁(yè)查詢按鈕事件的代碼 private void Button1_Click(object sender, e) { if(==) { (script language=39。javascript39。alert(39。出發(fā)地點(diǎn)不能與到達(dá)地點(diǎn)相同!39。)。/script)。 } else { if(==單程 ) { //查詢滿足條件的航班 =planeid。 民航訂票管理系統(tǒng) 27 SqlConnection con=()。//數(shù)據(jù)庫(kù)連接 ()。 =(select * from plane join planeseattype on = where planestartplace=39。++39。and planeendplace=39。++39。 and planest=39。++39。and convert(varchar,planestarttime,120) like 39。%++%39。)。 ()。 =false。 ()。 } if(==往返 )//往返 { DateTime starttime=()。 DateTime endtime=()。 if((starttime,endtime)0) { (script language=39。javascript39。alert(39。返回時(shí)間小于出發(fā)時(shí)間 !39。)。/script)。 } else { =planeid。 SqlConnection con=()。//數(shù)據(jù)庫(kù)連接 ()。 =(select * from plane join planeseattype on = where planestartplace=39。++39。and planeendplace=39。++39。 and planest=39。++39。and convert(varchar,planestarttime,120) like 39。%++%39。)。 ()。 =planeid。 =(select * from plane join planeseattype on = where planestartplace=39。++39。and planeendplace=39。++39。 and planest=39。++39。and convert(varchar,planestarttime,120) like 39。%++%39。)。 ()。 =true。 ()。 } } } } 查詢指定的航班表 的預(yù)定按鈕的響應(yīng)事件代碼 private void DataGrid1_ItemCommand(object source, e) { 民航訂票管理系統(tǒng) 28 if(==AddToOrder) { if(Session[flag]==null) { ()。 } else { int OrderNumber=(((TextBox)([9].FindControl(textbox1))).Text)。 string PlaneId=[].ToString()。//插入訂單表 decimal PlanePrice=(((Label)([8].FindControl(PlanePrice))).Text)。 decimal TotalPrice=PlanePrice*OrderNumber。 UserJudge user=(UserJudge)Session[user]。 SqlConnection con=()。//連接數(shù)據(jù)庫(kù) ()。 SqlCommand =new SqlCommand(select userid from users where username=39。++39。,con)。 string UserId=().ToString()。 string OrderState=(未確認(rèn)訂 單 )。 SqlCommand 1=new SqlCommand(insert into orders (userid,planeid,planest,ordernumber,orderprice,orderstate) values (39。+UserId+39。,39。+PlaneId+39。,39。++39。,39。+OrderNumber+39。,39。+TotalPrice+39。,39。+OrderState+39。),con)。 ()。 ()。 if(==單程 ) { ()。 } } 實(shí)現(xiàn) 查詢指定的航班表 的分頁(yè)顯示的代碼 private void DataGrid1_PageIndexChanged(object source, e) { =。 if(==單程 ) { //查詢滿足條件的航班 =planeid。 SqlConnection con=()。//數(shù)據(jù) 庫(kù)連接 ()。 =(select * from plane join planeseattype on = where planestartplace=39。++39。and planeendplace=39。++39。 and planest=39。++39。and convert(varchar,planestarttime,120) like 39。%++%39。)。 ()。 =false。 民航訂票管理系統(tǒng) 29 ()。 } if(==往返 )//往返 { =planeid。 SqlConnection con=()。//數(shù)據(jù)庫(kù)連接 ()。 =(select * from plane join planeseattype on = where planestartplace=39。++39。and planeendplace=39。++39。 and planest=39。++39。and convert(varchar,planestarttime,120) like 39。%++%39。)。 ()。 =planeid。 =(select * from plane join planeseattype on = where planestartplace=39。++39。and planeendplace=39。++39。 and planest=39。++39。and convert(varchar,planestarttime,120) like 39。%++%39。)。 ()。 =true。 ()。 } 用戶訂單表 的取消訂單和確認(rèn)訂單按鈕事件的代碼 private void DataGrid1_ItemCommand(object source, e) { if(==CancelOrder)//選擇取消訂單 { string OrderId=[].ToString()。 UserJudge u=(UserJudge)Session[user]。 SqlConnection con=()。 ()。 SqlCommand =new SqlCommand(select ordernumber from orders join users on = join plane on = join planeseattype on = where username=39。++39。 and = and orderid=39。+OrderId+39。,con)。 string OrderNumber=().ToString()。 SqlCommand 1=new SqlCommand(select ordertime from orders join users on = join plane on = join planeseattype on = where username=39。++39。 and = and orderid=39。+OrderId+39。,con)。 string OrderTime=().ToString()。 if(OrderTime==)//沒有確認(rèn)訂單 { SqlCommand 2=new SqlCommand(delete from orders where orderid=39。+OrderId+39。,con)。 //建立適配器 SqlDataAdapter sda = new SqlDataAdapter()。 //建立 dataset,用于填充 DataSet ds = new DataSet()。 = 2。 //傳遞查詢結(jié)果 (ds,orders)。 民航訂票管理系統(tǒng) 30 =[orders]。 =orderid。 ()。 =1。//返回上一級(jí)頁(yè)面 =(select * from users join orders on = join plane on = join planeseattype on = where username=39。++39。 and = )。 =orderid。 ()。 } else{ SqlCommand 3=new SqlCommand(update planeseattype set planenumber=planenumber+39。+OrderNumber+39。 from planeseattype join plane on = join orders on = where = and = and orderid=39。+OrderId+39。,con)。 ()。 SqlCommand 4=new SqlCommand(delete from orders where orderid=39。+OrderId+39。,c
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1