/// <summary>
 /// delete room
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnDeleteRoom_Click(object sender, EventArgs e)
 {
     //RoomInfoBLL bll = new RoomInfoBLL();
     if(dgvRoomInfo.SelectedRows.Count > 0)
     {
         int id = Convert.ToInt32(dgvRoomInfo.SelectedRows[0].Cells[0].Value.ToString());
         DeskInfoBLL dbll = new DeskInfoBLL();
         if(dbll.GetDeskCountByRoomId(id))
         {
             MessageBox.Show("房间有桌子不能删除");
         }
         else
         {
             RoomInfoBLL rbll = new RoomInfoBLL();
             if(rbll.SoftDeleteRoomInfoByRoomId(id))
             {
                 MessageBox.Show("操作成功");
                 LoadRoomByDelFlag(0);
             }
             else
             {
                 MessageBox.Show("操作失败");
             }
         }
     }
     else
     {
         MessageBox.Show("请选择要删除的房间");
     }
 }