private void btnCheckInBookingRoom_Click(object sender, EventArgs e)
 {
     int IDBookingRs = Convert.ToInt32(grvOvertimeBooking.GetFocusedRowCellValue("BookingRs_ID"));
     DateTime CheckOutPlan = Convert.ToDateTime(grvOvertimeBooking.GetFocusedRowCellValue("CheckOutPlan"));
     frmTsk_CheckInForRoomBooking afrmTsk_CheckInForRoomBooking = new frmTsk_CheckInForRoomBooking(this, IDBookingRs, CheckOutPlan);
     afrmTsk_CheckInForRoomBooking.Show();
 }
        private void btnCheckIn_2_Click(object sender, EventArgs e)
        {
            //if (this.Datasource.BookingRs_CustomerType == 1) // checkin cho khach nha nuoc
            //{
            //    frmTsk_CheckInGoverment_ForRoomBooking_Step1 afrmTsk_CheckInGoverment_ForRoomBooking_Step1 = new frmTsk_CheckInGoverment_ForRoomBooking_Step1(this.afrmMain, this.Datasource.BookingRs_ID.GetValueOrDefault(), this.Datasource.CheckOutPlan);
            //    afrmTsk_CheckInGoverment_ForRoomBooking_Step1.ShowDialog();
            //}
            //else if (this.Datasource.BookingRs_CustomerType == 2)//checkin cho khach doan
            //{
            //    frmTsk_CheckInGroup_ForRoomBooking_Step1 afrmTsk_CheckInGroup_ForRoomBooking_Step1 = new frmTsk_CheckInGroup_ForRoomBooking_Step1(this.afrmMain, this.Datasource.BookingRs_ID.GetValueOrDefault(), this.Datasource.CheckOutPlan);
            //    afrmTsk_CheckInGroup_ForRoomBooking_Step1.ShowDialog();
            //}
            //else if (this.Datasource.BookingRs_CustomerType == 3) // CheckIn cho khach le
            //{
            //    frmTsk_CheckInCustomer_ForRoomBooking_Step1 afrmTsk_CheckInCustomer_ForRoomBooking_Step1 = new frmTsk_CheckInCustomer_ForRoomBooking_Step1(this.afrmMain, this.Datasource.BookingRs_ID.GetValueOrDefault(), this.Datasource.CheckOutPlan);
            //    afrmTsk_CheckInCustomer_ForRoomBooking_Step1.ShowDialog();
            //}

            frmTsk_CheckInForRoomBooking afrmTsk_CheckInForRoomBooking = new frmTsk_CheckInForRoomBooking(this.afrmMain,this.Datasource.BookingRs_ID.GetValueOrDefault(),this.Datasource.CheckOutPlan);
            afrmTsk_CheckInForRoomBooking.ShowDialog();
            this.Parent.Dispose();
        }
        private void grvBookingRs_RowClick(object sender, RowClickEventArgs e)
        {
            //if (CORE.CONSTANTS.SelectedCustomerType(this.customerType).ID == 1) //Khach nha nuoc
            //{
            //    int IDBookingRs = Convert.ToInt32(grvBookingRs.GetFocusedRowCellValue("BookingRs_ID"));
            //    DateTime CheckOutPlan = Convert.ToDateTime(grvBookingRs.GetFocusedRowCellValue("BookingRooms_CheckOutPlan"));

            //    frmTsk_CheckInGoverment_ForRoomBooking_Step1 afrmTsk_CheckInGoverment_ForRoomBooking_Step1 = new frmTsk_CheckInGoverment_ForRoomBooking_Step1(this, IDBookingRs, CheckOutPlan);
            //    afrmTsk_CheckInGoverment_ForRoomBooking_Step1.ShowDialog();
            //}
            //if (CORE.CONSTANTS.SelectedCustomerType(this.customerType).ID == 2) //Khach doan
            //{
            //    int IDBookingRs = Convert.ToInt32(grvBookingRs.GetFocusedRowCellValue("BookingRs_ID"));
            //    DateTime CheckOutPlan = Convert.ToDateTime(grvBookingRs.GetFocusedRowCellValue("BookingRooms_CheckOutPlan"));
            //    frmTsk_CheckInGroup_ForRoomBooking_Step1 afrmTsk_CheckInGroup_ForRoomBooking_Step1 = new frmTsk_CheckInGroup_ForRoomBooking_Step1(this, IDBookingRs, CheckOutPlan);
            //    afrmTsk_CheckInGroup_ForRoomBooking_Step1.ShowDialog();
            //}
            //if (CORE.CONSTANTS.SelectedCustomerType(this.customerType).ID == 3) //Khach le
            //{
            //    int IDBookingRs = Convert.ToInt32(grvBookingRs.GetFocusedRowCellValue("BookingRs_ID"));
            //    DateTime CheckOutPlan = Convert.ToDateTime(grvBookingRs.GetFocusedRowCellValue("BookingRooms_CheckOutPlan"));
            //    frmTsk_CheckInCustomer_ForRoomBooking_Step1 afrmTsk_CheckInCustomer_ForRoomBooking_Step1 = new frmTsk_CheckInCustomer_ForRoomBooking_Step1(this, IDBookingRs, CheckOutPlan);
            //    afrmTsk_CheckInCustomer_ForRoomBooking_Step1.ShowDialog();
            //}

            int IDBookingRs = Convert.ToInt32(grvBookingRs.GetFocusedRowCellValue("BookingRs_ID"));
            DateTime CheckOutPlan = Convert.ToDateTime(grvBookingRs.GetFocusedRowCellValue("BookingRooms_CheckOutPlan"));
            frmTsk_CheckInForRoomBooking afrmTsk_CheckInForRoomBooking = new frmTsk_CheckInForRoomBooking(this, IDBookingRs, CheckOutPlan);
            afrmTsk_CheckInForRoomBooking.Show();
        }