//Hiennv  tạo mới   26/11/2014     checkIn phòng
        private void btnCheckIn_Click(object sender, EventArgs e)
        {
            try
            {

                if (this.CheckDataBeforeCheckIn() == true)
                {

                    if (!String.IsNullOrEmpty(txtNames.Text) || !String.IsNullOrEmpty(txtIdentifier1.Text) || !String.IsNullOrEmpty(dtpBirthday.Text)
                        || !String.IsNullOrEmpty(txtTel.Text) || !String.IsNullOrEmpty(txtPurposeComeVietnam.Text) || !String.IsNullOrEmpty(dtpDateEnterCountry.Text)
                    || !String.IsNullOrEmpty(txtEnterGate.Text) || !String.IsNullOrEmpty(dtpTemporaryResidenceDate.Text) || !String.IsNullOrEmpty(dtpLeaveDate.Text)
                    || !String.IsNullOrEmpty(txtOrganization.Text) || !String.IsNullOrEmpty(dtpLimitDateEnterCountry.Text))
                    {
                        DialogResult result = MessageBox.Show("Bạn có muốn lưu lại thông tin khách hàng không?", "Câu hỏi", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                        if (DialogResult.Yes == result)
                        {
                            this.SaveCustomer();
                        }
                    }

                    if (String.IsNullOrEmpty(txtNameCompany.Text))
                    {
                        this.aCheckInEN.IDCompany = Convert.ToInt32(lueIDCompanies.EditValue);
                        this.aCheckInEN.NameCompany = lueIDCompanies.Text;
                    }
                    else
                    {
                        this.aCheckInEN.IDCompany = 0;
                        this.aCheckInEN.NameCompany = txtNameCompany.Text;
                    }

                    this.aCheckInEN.CheckInActual = dtpFrom.DateTime;
                    this.aCheckInEN.CheckOutActual = dtpTo.DateTime;
                    this.aCheckInEN.CheckOutPlan = dtpTo.DateTime;
                    this.aCheckInEN.BookingType = 3;   // 1: Dat onlie, 2: Dat qua dien thoai, 3: Truc tiep, 4: Cong van
                    this.aCheckInEN.IDSystemUser = CORE.CURRENTUSER.SystemUser.ID;
                    this.aCheckInEN.PayMenthod = 1;     //1:Tien mat
                    this.aCheckInEN.BookingMoney = Convert.ToDecimal(txtBookingMoney.EditValue);

                    if (this.aCheckInEN.BookingMoney > 0)
                    {
                        this.aCheckInEN.StatusPay = 2; //2:Tam ung
                    }
                    else
                    {
                        this.aCheckInEN.StatusPay = 1; //1:chua thanh toan
                    }

                    this.aCheckInEN.ExchangeRate = 0;
                    this.aCheckInEN.Status = 3; // 3 : da checkin
                    this.aCheckInEN.Type = -1;
                    this.aCheckInEN.Disable = false;

                    ReceptionTaskBO aReceptionTaskBO = new ReceptionTaskBO();
                    if (aReceptionTaskBO.NewCheckInForRoomBooking(this.aCheckInEN) == true)
                    {
                        #region  dung de huy cac bookingrom da dat truoc nhung khong dat nua
                        if (this.aListRemoveBookingRooms.Count > 0)
                        {
                            BookingRoomsBO aBookingRoomsBO = new BookingRoomsBO();
                            aBookingRoomsBO.Remove(aListRemoveBookingRooms);
                        }
                        #endregion

                        if (this.afrmMain != null)
                        {
                            this.afrmMain.ReloadData();
                            this.Close();
                        }
                        if(this.afrmTsk_ListBookingRs !=null)
                        {
                            this.afrmTsk_ListBookingRs.Reload();
                            if(afrmTsk_ListBookingRs.afrmMain !=null)
                            {
                                this.afrmTsk_ListBookingRs.afrmMain.ReloadData();
                                this.Close();
                            }
                        }
                        MessageBox.Show("Thực hiện checkIn cho phòng đã đặt thành công .", "Thông báo ", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    }
                    else
                    {
                        MessageBox.Show("CheckIn cho phòng đã đặt thất bại vui lòng thực hiện lại.", "Thông báo ", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    }
                }

            }
            catch (Exception ex)
            {
                MessageBox.Show("frmTsk_CheckInForRoomBooking.btnCheckIn_Click()\n" + ex.ToString(), "Error ", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }