//Hiennv  tạo mới   20/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(dtpIdentifier1CreatedDate.Text) || !String.IsNullOrEmpty(txtPlaceOfIssue1.Text)
                       || !String.IsNullOrEmpty(txtAgencyOfIssue.Text) || !String.IsNullOrEmpty(txtAddress.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.CustomerType = this.customerType;  // 1: Khach nha nuoc, 2: Khach doan, 3: khach le, 4: Khach vang lai
                    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.NewCheckIn(this.aCheckInEN) == true)
                    {
                        if (this.afrmMain != null)
                        {
                            this.afrmMain.ReloadData();
                            this.Close();
                        }
                        MessageBox.Show("Thực hiện checkIn phòng thành công .", "Thông báo ", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    }
                    else
                    {
                        MessageBox.Show("CheckIn phòng 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_CheckIn.btnCheckIn_Click()\n" + ex.ToString(), "Error ", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }