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

正文內(nèi)容

車站售票管理系統(tǒng)數(shù)據(jù)庫(kù)課設(shè)-文庫(kù)吧資料

2024-12-23 16:25本頁(yè)面
  

【正文】 tial Catalog=ticket。 } 25 finally { ()。 cmd = new SqlCommand(sql, conn)。 SqlCommand cmd。 and seat=39。 string sql = select * from ticket where trainno=39。Integrated Security=True。 SqlConnection conn = new SqlConnection(Data Source=SIFANGZHAOPC。amp。 } finally { ()。 cmddd = new SqlCommand(sqlll, con)。 SqlCommand cmddd。 string sqlll = select number from Trainno where trainno=39。Integrated Security=True。 SqlConnection con = new SqlConnection(Data Source=SIFANGZHAOPC。 源代碼如下: int zuowei = (())。如果合法,則將其從車票信24 息表中刪除。如果有效,則輸入退票的座位號(hào)。 select trainno=trainno from inserted update Trainno set lastticket=lastticket1 where trainno=trainno end 首先輸入需要退票的車次,如果是團(tuán)體退票 還需要輸入退票速來(lái)。 } 觸發(fā)器的使用:在 ticket 表建立觸發(fā)器,每當(dāng)有數(shù)據(jù)插入表中,就更新相應(yīng)車的的余票數(shù)量。 } } else { (座位號(hào)超出限載量, 請(qǐng)重新輸入座位號(hào) !)。 } } catch { (選擇座位失敗,購(gòu)買失??! )。 } } catch { (選擇座位失敗,購(gòu)買失??!, 錯(cuò)誤 , , )。 if (count == amount) { (購(gòu)票完成! )。 (選擇座位成功,購(gòu)買成功!)。 cmd = new SqlCommand(sql, conn)。 22 SqlCommand cmd。 + () + 39。 + checi + 39。)。Initial Catalog=ticket。 } finally { ()。 cmdd = new SqlCommand(sqll, connn)。 SqlCommand cmdd。 and seat=39。 string sqll = select * from ticket where trainno=39。Integrated Security=True。 源代碼如 下: 選擇座位: SqlConnection connn = new SqlConnection(Data Source=SIFANGZHAOPC。并且如果是團(tuán)體購(gòu)票,如果團(tuán)體購(gòu)票成功,將選擇座位窗體關(guān)閉,防止無(wú)限買票。則購(gòu)買成功。如果用戶輸入的座位號(hào)大于限載量,或者小于0,或者已經(jīng)售出,應(yīng)當(dāng)給出相關(guān)提示信息。 } } else { (未輸入班次或者票的數(shù)量,購(gòu)票失敗!請(qǐng)重新輸入 !)。 } } catch { (購(gòu)票失敗! )。 ()。 isnull!=null) { try 20 { try { (選擇班次成功,請(qǐng)選擇座位!)。 if (nu = tempamp。 } string num = ()。 nu = (isnull)。 cmddd = new SqlCommand(sqll, connnn)。 SqlCommand cmddd。 string sqll = select lastticket from Trainno where trainno=39。Integrated Security=True。 SqlConnection connnn = new SqlConnection(Data Source=SIFANGZHAOPC。代碼如下: if ((().Equals() || ().Equals()) == false) { Int32 nu。 } 19 finally { ()。 = [0]。 da = new SqlDataAdapter(m)。 if (()||()) { (請(qǐng)輸入起始站和終點(diǎn)站 )。Integrated Security=True。 SqlConnection conn = new SqlConnection(Data Source=SIFANGZHAOPC。 DataSet ds = new DataSet()。 and finish=39。 購(gòu)票的算法: : string sql = select trainno as 車次 , starttime as 發(fā)車時(shí)間 , price as 價(jià)格 , lastticket as 余票 , number as 限載人數(shù) from Trainno where start=39。 } } 18 } 票務(wù)管理的算法主要分為購(gòu)票和退票兩個(gè)主要的 算法 。 } catch { (查詢信息失?。?)。 (ds)。 SqlCommand m = new SqlCommand(sql, conn)。 if ((().Equals()) == false) sql += and finish=39。 } else { try { if((().Equals())==false) sql +=and start=39。amp。)。Initial Catalog=ticket。 SqlDataAdapter da。 思路是一樣的,所以在此寫(xiě)其中的線路查詢?cè)创a: string sql = select trainno as 車次 , starttime as 發(fā)車17 時(shí)間 , price as 價(jià)格 , lastticket as 余票 , number as 限載人數(shù) from Trainno where 1=1。 ()。 ()。 } ()。 = false。 ()。 (登陸成功 , 登錄 , , )。 if ([0]. 0) { string usertype。+ +39。 + + 39。 + + 39。 登錄模塊的主要算法是:把輸入的數(shù)據(jù)與數(shù)據(jù)庫(kù)中存放用戶信息的用戶表進(jìn)行比對(duì),如果一致,則 登陸成功 。對(duì)系統(tǒng)的安全性有所改善。 修改密碼流程圖 輸 入 用 戶 名 , 原 密 碼 , 新 密 碼判 斷 用 戶 是 否 存 在修 改 密 碼提 示 輸 入 信 息 有 誤修 改 成 功 此模塊為管理員特有模塊,包括車次修改,票價(jià)改動(dòng),車次刪除,車次錄入四個(gè)功能,方便管理員操作。對(duì)于用戶名不存在或密碼錯(cuò)誤都要進(jìn)行報(bào)錯(cuò)。對(duì)于不正確的信息都要給予錯(cuò)誤報(bào)告。一種為車次查詢。為了滿足人們購(gòu)票需要,加入了團(tuán)體購(gòu)票與團(tuán)體退票功能。而售票員可以進(jìn)行票務(wù)管理,查詢,報(bào)表打印,修改 密碼四種操作。 select trainno=trainno from deleted update Trainno set lastticket=lastticket+1 where trainno=trainno end 12 系統(tǒng)主要功能模塊設(shè)計(jì) 對(duì)于本系統(tǒng)的使用者,設(shè)置為管理員與售票員兩種,方便管理。 建立 gengxinjian 觸發(fā)器: Select *from ticket GO Create trigger gengxinjian on ticket after insert as begin declare trainno nvarchar(10)。 輸入表達(dá)式為: (se
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1