示例#1
0
 private void ucRoomList_DoubleClick(object sender, EventArgs e)
 {
     if (lblCustoNo.Text == "")
     {
         Room r = BLL.RoomService.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();
     }
 }
示例#2
0
        private void tsmiCheckIn_Click(object sender, EventArgs e)
        {
            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();
        }