//hiennv
 public frmTsk_CheckInCustomer_ForRoomBooking_Step1(frmTsk_ListBookingRs afrmTsk_ListBookingRs, int IDBookingRs, DateTime CheckOutPlan)
 {
     InitializeComponent();
     this.afrmTsk_ListBookingRs = afrmTsk_ListBookingRs;
     this.IDBookingRs = IDBookingRs;
     this.CheckOutPlan = CheckOutPlan;
 }
 //Hiennv  26/11/2014
 public frmTsk_CheckInForRoomBooking(frmTsk_ListBookingRs afrmTsk_ListBookingRs, int IDBookingR, DateTime CheckoutPlan)
 {
     InitializeComponent();
     this.afrmTsk_ListBookingRs = afrmTsk_ListBookingRs;
     this.IDBookingR = IDBookingR;
     this.CheckoutPlan = CheckoutPlan;
     this.aCheckInEN = this.InitData(this.IDBookingR);
 }
        private void btnCheckIn_1_Click(object sender, EventArgs e)
        {
            frmTsk_ListBookingRs afrm = new frmTsk_ListBookingRs(Convert.ToInt32(this.Datasource.BookingRooms_ID), Convert.ToInt32(this.Datasource.BookingRs_CustomerType));
            afrm.ShowDialog();

            //frmTsk_CheckInForRoomBooking afrmTsk_CheckInForRoomBooking = new frmTsk_CheckInForRoomBooking(this.afrmMain, this.Datasource.BookingRs_ID.GetValueOrDefault(), this.Datasource.CheckOutPlan);
            //afrmTsk_CheckInForRoomBooking.ShowDialog();

            this.Parent.Dispose();
        }
 //hiennv
 private void btnCheckinGroupForRoomBooking_ItemClick(object sender, ItemClickEventArgs e)
 {
     try
     {
         frmTsk_ListBookingRs afrmTsk_ListBookingRs = new frmTsk_ListBookingRs(this, 2);//customerType =2: Khach doan
         afrmTsk_ListBookingRs.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show("frmMain.btnCheckinGroupForRoomBooking_ItemClick\n" + ex.ToString(), "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 private void barButtonItem2_ItemClick(object sender, ItemClickEventArgs e)
 {
     frmTsk_ListBookingRs afrmTsk_ListBookingRs = new frmTsk_ListBookingRs(this, 1); //customerType =1: Khach nha nuoc
     afrmTsk_ListBookingRs.ShowDialog();
 }