//hiennv public frmIns_CustomerGroups_Customers(frmTsk_CheckInCustomer_ForRoomBooking_Step2 afrmTsk_CheckInCustomer_ForRoomBooking_Step2, int IDCustomerGroup, string NameCustomerGroup, string NameCompany) { InitializeComponent(); this.afrmTsk_CheckInCustomer_ForRoomBooking_Step2 = afrmTsk_CheckInCustomer_ForRoomBooking_Step2; this.IDCustomerGroup = IDCustomerGroup; this.NameCustomerGroup = NameCustomerGroup; this.NameCompany = NameCompany; }
public frmTsk_CheckInCustomer_ForRoomBooking_Step3(frmTsk_CheckInCustomer_ForRoomBooking_Step2 afrmTsk_CheckInCustomer_ForRoomBooking_Step2, CheckInRoomBookingEN aCheckInRoomBookingEN) { InitializeComponent(); this.afrmTsk_CheckInCustomer_ForRoomBooking_Step2 = afrmTsk_CheckInCustomer_ForRoomBooking_Step2; this.aCheckInRoomBookingEN = aCheckInRoomBookingEN; CustomersBO aCustomersBO = new CustomersBO(); this.aListCustomers = aCustomersBO.SelectListCustomer_ByIDCustomerGroups(this.aCheckInRoomBookingEN.IDCustomerGroup); }
public frmLst_CustomerGroups(frmTsk_CheckInCustomer_ForRoomBooking_Step2 afrmTsk_CheckInCustomer_ForRoomBooking_Step2, int IDCompany) { InitializeComponent(); this.afrmTsk_CheckInCustomer_ForRoomBooking_Step2 = afrmTsk_CheckInCustomer_ForRoomBooking_Step2; this.IDCompany = IDCompany; }
//hiennv private void btNext_Click(object sender, EventArgs e) { try { if (this.aCheckInRoomBookingEN.aListRoomMembers.Count > 0) { BookingRsBO aBookingRsBO = new BookingRsBO(); BookingRs aBookingRs = aBookingRsBO.Select_ByID(this.IDBookingRs); if (aBookingRs != null) { this.aCheckInRoomBookingEN.IDCustomer = aBookingRs.IDCustomer; this.aCheckInRoomBookingEN.IDCustomerGroup = aBookingRs.IDCustomerGroup; this.aCheckInRoomBookingEN.Subject = aBookingRs.Subject; this.aCheckInRoomBookingEN.Level = aBookingRs.Level; this.aCheckInRoomBookingEN.Description = aBookingRs.Description; this.aCheckInRoomBookingEN.Note = aBookingRs.Note; CustomerGroupsBO aCustomerGroupsBO = new CustomerGroupsBO(); CustomerGroups aCustomerGroups = aCustomerGroupsBO.Select_ByID(aBookingRs.IDCustomerGroup); if (aCustomerGroups != null) { this.aCheckInRoomBookingEN.IDCompany = aCustomerGroups.IDCompany; } } this.aCheckInRoomBookingEN.IDBookingR = this.IDBookingRs; this.aCheckInRoomBookingEN.CheckInActual = dtpFrom.DateTime; this.aCheckInRoomBookingEN.CheckOutActual = dtpTo.DateTime; this.aCheckInRoomBookingEN.CheckOutPlan = dtpTo.DateTime; frmTsk_CheckInCustomer_ForRoomBooking_Step2 afrmTsk_CheckInCustomer_ForRoomBooking_Step2 = new frmTsk_CheckInCustomer_ForRoomBooking_Step2(this, this.aCheckInRoomBookingEN); afrmTsk_CheckInCustomer_ForRoomBooking_Step2.ShowDialog(); } else { MessageBox.Show("Vui lòng chọn phòng trước khi thực hiện bước tiếp theo !", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); } } catch (Exception ex) { MessageBox.Show("Check In Step 1 - Khách lẻ - Tiếp theo " + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error); } }