private void ucRoomList_DoubleClick(object sender, EventArgs e)
 {
     if (lblCustoNo.Text == "")
     {
         Room r = RoomManager.SelectRoomByRoomNo(lblRoomNo.Text);
         if (r.RoomStateId == 0)
         {
             rm_RoomNo = lblRoomNo.Text;
             FrmCheckIn frm = new FrmCheckIn();
             frm.Show();
         }
         else
         {
             return;
         }
     }
     else
     {
         rm_CustoNo  = lblCustoNo.Text;
         rm_RoomNo   = lblRoomNo.Text;
         rm_RoomType = lblRoomType.Text;
         FrmCheckOutForm frm = new FrmCheckOutForm();
         frm.Show();
     }
 }
 private void tsmiCheckIn_Click(object sender, EventArgs e)
 {
     if (r.RoomStateId == 4)
     {
         rm_CustoNo     = lblCustoNo.Text;
         rm_RoomNo      = lblRoomNo.Text;
         rm_RoomType    = lblRoomType.Text;
         rm_RoomMoney   = Convert.ToDecimal(romCustoInfo.RoomMoney).ToString();
         rm_RoomStateId = 4;
         DialogResult dr = MessageBox.Show("欢迎入住,请先注册客户信息!", "友情提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
         if (dr == DialogResult.Yes)
         {
             FrmReserList frm = new FrmReserList();
             frm.ShowDialog();
         }
         else
         {
             MessageBox.Show("无法完成入住操作!");
         }
         //FrmCheckIn frm = new FrmCheckIn();
         //frm.Show();
     }
     else
     {
         rm_CustoNo   = lblCustoNo.Text;
         rm_RoomNo    = lblRoomNo.Text;
         rm_RoomType  = lblRoomType.Text;
         rm_RoomMoney = Convert.ToDecimal(romCustoInfo.RoomMoney).ToString();
         FrmCheckIn frm = new FrmCheckIn();
         frm.Show();
     }
 }