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 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();
        }
Пример #3
0
        private void tsmiCheckOut_Click(object sender, EventArgs e)
        {
            rm_CustoNo  = lblCustoNo.Text;
            rm_RoomNo   = lblRoomNo.Text;
            rm_RoomType = lblRoomType.Text;
            //rm_CheckTime = co_CheckTime;
            FrmCheckOutForm frm = new FrmCheckOutForm();

            frm.Show();
        }