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

正文內(nèi)容

數(shù)據(jù)庫課程設(shè)計——賓館客房管理-在線瀏覽

2024-11-13 09:40本頁面
  

【正文】 /summary private void button1_Click(object sender, EventArgs e) { String UserId, Password。 15 Password = 。 } else { if (Check_User(UserId, Password)) { = 。 } } } /// summary /// 用戶合法驗證方法 /// /summary public bool Check_User(String userid, String Inputpassword) { String Password。 if (Inputpassword == Password) { return true。 } } } 用戶添加: 用戶添加窗體如圖 3: 圖 3 詳細代碼實現(xiàn): /// summary /// 添加一個用戶 /// /summary private void button1_Click(object sender, EventArgs e) { if ( != ) { (兩次輸入密碼不一致 , 錯誤 , , )。 17 ()。 } } } 用戶更改: 用戶更改窗體如圖 4: 圖 4 詳細代碼實現(xiàn): /// summary /// 更新密碼 /// /summary private void button1_Click(object sender, EventArgs e) { if ( != ) { (兩次輸入的密碼不一致 , 錯誤 , , )。 ()。 } else { (更新失敗 , 提示 , )。 UserNum = CheckNum()。 UserId = 。 if ( == ) { ( 請 輸 入 密 碼 , 提示 , , )。 ()。 } else { (刪除失敗 , 提示 , )。 } 20 } } else { (用戶數(shù)為 1,不可以再刪除 , 警告 , , )。 /// summary /// 增加新房屋類型信息 /// /summary public void RoomType_Add(string typename, int area, int bednum, float price, int telephone, int tv, int toilet, int aircondition) { = insert into RoomType values( + 39。, + area + , + bednum + , + price + , + aircondition + , + telephone + , + tv + , + toilet + )。 try { ()。 } catch ( E) { 21 (())。 } } /// summary /// 刪除房屋類型信息 /// /summary public void Room_Delete(string roomID) { = delete from Room where RoomID= + roomID。 try { ()。 } catch ( E) { (())。 } } /// summary 22 /// 更新房屋類型信息 /// /summary public bool Room_Modify(string typename, int area, int bednum, float price, int telephone, int tv, int toilet, int aircondition) { = update RoomType set Area= + area + , + BedNum= + bednum + , + Price= + price + , + Toilet= + toilet + , + AirCondition= + aircondition + , + Television= + tv + , + Phone= + telephone + where RoomTypeName= + 39。 = 。 ()。 } catch ( E) { (())。 } finally { ()。 = 。 SqlDataAdapter Adapter = new SqlDataAdapter()。 (ds)。 return [0]。 } } 房間類型管理: 房間類型管理窗體如圖 5 圖 6 詳細代碼實現(xiàn): /// summary /// 讀取房屋類型信息 24 /// /summary private void UpdateListView() { ()。 = select * from RoomType。 try { if ( == ) ()。 while (()) { ListViewItem li = new ListViewItem()。 [0].Text = sqlDataReader1[RoomTypeName].ToString()。 (sqlDataReader1[BedNum].ToString())。 if ((sqlDataReader1[AirCondition]) == true) (是 )。 if ((sqlDataReader1[Phone]) == true) (是 )。 if ((sqlDataReader1[Television]) == true) 25 (是 )。 if ((sqlDataReader1[Toilet]) == true) (是 )。 (li)。 } finally { ()。 } if ( == 0) { (沒有記錄存在 , 沒有記錄 , , )。 i 。 return。 } /// summary /// 寫入新房屋類型信息 /// /summary private void button4_Click(object sender, EventArgs e) { if (CheckInfor()) { string typename = 。 float price = ()。 int tv = ()。 int aircondition = ()。 if (add) { roomtypeManage = new RoomTypeManage()。 (添加信息成功 )。 } else { roomtypeManage = new RoomTypeManage()。 ()。 } = 。 ()。 } catch ( E) { (())。 } = false。 = delete from RoomType where RoomTypeName= + 39。 = 。 i 。 } try { ()。 ()。 ()。 ()。 = false。 = false。 } catch ( E) { (())。 } } el
點擊復制文檔內(nèi)容
高考資料相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1