Ejemplo n.º 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();
     }
 }
Ejemplo n.º 2
0
        private void tsmiCheckOut_Click(object sender, EventArgs e)
        {
            rm_CustoNo   = lblCustoNo.Text;
            rm_RoomNo    = lblRoomNo.Text;
            rm_RoomType  = lblRoomType.Text;
            rm_CheckTime = romCustoInfo.CheckTime.ToString();
            FrmCheckOutForm frm = new FrmCheckOutForm();

            frm.Show();
        }