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

正文內(nèi)容

數(shù)據(jù)庫課程設計——賓館客房管理(c語言實現(xiàn))-在線瀏覽

2024-09-17 04:59本頁面
  

【正文】 { return true。 } } }用戶添加:用戶添加窗體如圖3:圖3詳細代碼實現(xiàn): /// summary /// 添加一個用戶 /// /summary private void button1_Click(object sender, EventArgs e) { if ( != ) {(兩次輸入密碼不一致, 錯誤, , )。 ()。 } } }用戶更改:用戶更改窗體如圖4:圖4詳細代碼實現(xiàn):/// summary /// 更新密碼 /// /summary private void button1_Click(object sender, EventArgs e) { if ( != ) { (兩次輸入的密碼不一致, 錯誤, , )。 ()。 } else { (更新失敗, 提示, )。 UserNum = CheckNum()。 UserId = 。 if ( == ) {(請輸入密碼, 提示, , )。 ()。 } else { (刪除失敗, 提示, )。 } } } else {(用戶數(shù)為1,不可以再刪除, 警告, , )。 /// summary /// 增加新房屋類型信息 /// /summarypublic 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) { (())。 } } /// summary /// 刪除房屋類型信息 /// /summary public void Room_Delete(string roomID) { = delete from Room where RoomID= + roomID。 try { ()。 } catch ( E) { (())。 } } /// summary /// 更新房屋類型信息 /// /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 /// 讀取房屋類型信息 /// /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) (是)。 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) { (())。 } } else return。 /// summary /// 增加房間 /// /summarypublic bool Room_Add(string roomID,string roomType,string roomPosition,int bedNum,int peopleNum,string remark) { int factpeopelenum=0。+roomID+39。+roomType+39。+roomPosition+39。+remark+39。 =。 ()。 } catch( E) { (())。 return false。 } } /// summary /// 刪除指定房間 /// /summary public bool Room_Delete(string roomID) { =delete from Room where RoomID=+39。 =。 ()。 } catch( E) { (())。 return false。 } } /// summary /// 更新房間 /// /summarypublic bool Room_Modify(string roomID,string roomType,string roomPosition,int bedNum,int peopleNum,string remark) {= update Room set RoomTypeName=+39。,+RoomPosition=+39。,+BedNum=+bedNum+,+PeopleNum=+peopleNum+,+Remark=+39。+ w
點擊復制文檔內(nèi)容
職業(yè)教育相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1