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();
     }
 }
Example #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();
        }
        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();
            #region 获取添加操作日志所需的信息
            Operation o = new Operation();
            o.OperationTime    = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd,HH:mm:ss"));
            o.Operationlog     = LoginInfo.WorkerName + "于" + DateTime.Now + "帮助" + FrmRoomManager.co_CustoNo + "进行了入住操作!";
            o.OperationAccount = LoginInfo.WorkerName;
            #endregion
            OperationManager.InsertOperationLog(o);
        }