//Hiennv         tạo mới         25/11/2014               dat phong
        private void btnBookingRoom_Click(object sender, EventArgs e)
        {
            try
            {

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

                    if (String.IsNullOrEmpty(txtNameCustomer.Text))
                    {
                        this.aNewBookingEN.IDCustomer = Convert.ToInt32(lueIDCustomer.EditValue);
                        this.aNewBookingEN.NameCustomer = lueIDCustomer.Text;
                    }
                    else
                    {
                        this.aNewBookingEN.IDCustomer = 0;
                        this.aNewBookingEN.NameCustomer = txtNameCustomer.Text;
                    }
                    // ====================Ngoc bo sung=========================
                    if (String.IsNullOrEmpty(txtCustomerGroup.Text))
                    {
                        this.aNewBookingEN.Subject = txtCustomerGroup.Text;

                    }
                    // ====================Ngoc bo sung=========================

                    this.aNewBookingEN.CheckInActual = dtpFrom.DateTime;
                    this.aNewBookingEN.CheckOutActual = dtpTo.DateTime;
                    this.aNewBookingEN.CheckOutPlan = dtpTo.DateTime;
                    this.aNewBookingEN.CustomerType = this.customerType;  // 1: Khach nha nuoc, 2: Khach doan, 3: khach le, 4: Khach vang lai
                    this.aNewBookingEN.BookingType = 2;   // 1: Dat onlie, 2: Dat qua dien thoai, 3: Truc tiep, 4: Cong van
                    this.aNewBookingEN.IDSystemUser = CORE.CURRENTUSER.SystemUser.ID;
                    this.aNewBookingEN.PayMenthod = 1;     //1:Tien mat

                    this.aNewBookingEN.ExchangeRate = 0;
                    this.aNewBookingEN.Status = 2; // 2 : da bookingRoom
                    this.aNewBookingEN.Type = -1;
                    this.aNewBookingEN.Disable = false;

                    ReceptionTaskBO aReceptionTaskBO = new ReceptionTaskBO();

                    if (aReceptionTaskBO.NewBookingRoom(this.aNewBookingEN) == true)
                    {
                        if (this.afrmMain != null)
                        {
                            this.afrmMain.ReloadData();
                            this.Close();
                        }
                        MessageBox.Show("Thực hiện đặt phòng thành công .", "Thông báo ", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    }
                    else
                    {
                        MessageBox.Show("Đặt 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_BookingForRoom.btnBookingRoom_Click()\n" + ex.ToString(), "Error ", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }