コード例 #1
0
 public frmIns_CustomerGroups(frmTsk_CheckIn_Goverment_Step2 afrmTsk_CheckIn_Goverment_Step2, int IDCompany, string NameCompany)
 {
     InitializeComponent();
     this.afrmTsk_CheckIn_Goverment_Step2 = afrmTsk_CheckIn_Goverment_Step2;
     this.IDCompany = IDCompany;
     this.NameCompany = NameCompany;
 }
 public frmTsk_CheckIn_Goverment_Step3(frmTsk_CheckIn_Goverment_Step2 afrmTsk_CheckIn_Goverment_Step2, CheckInEN aCheckInEN)
 {
     InitializeComponent();
     this.afrmTsk_CheckIn_Goverment_Step2 = afrmTsk_CheckIn_Goverment_Step2;
     this.aCheckInEN = aCheckInEN;
     CustomersBO aCustomersBO = new CustomersBO();
     this.aListCustomers = aCustomersBO.SelectListCustomer_ByIDCustomerGroups(aCheckInEN.IDCustomerGroup);
 }
コード例 #3
0
 public frmLst_Customers(frmTsk_CheckIn_Goverment_Step2 afrmTsk_CheckIn_Goverment_Step2, int IDCustomerGroup)
 {
     InitializeComponent();
     this.afrmTsk_CheckIn_Goverment_Step2 = afrmTsk_CheckIn_Goverment_Step2;
     this.IDCustomerGroup = IDCustomerGroup;
 }
コード例 #4
0
 public frmLst_Companies(frmTsk_CheckIn_Goverment_Step2 afrmTsk_CheckIn_Goverment_Step2, int Type)
 {
     InitializeComponent();
     this.afrmTsk_CheckIn_Goverment_Step2 = afrmTsk_CheckIn_Goverment_Step2;
     this.Type = Type;
 }
コード例 #5
0
 public frmIns_Companies(frmTsk_CheckIn_Goverment_Step2 afrmTsk_CheckIn_Goverment_Step2)
 {
     InitializeComponent();
     this.afrmTsk_CheckIn_Goverment_Step2 = afrmTsk_CheckIn_Goverment_Step2;
     this.Type = 1;
 }
        private void btnNext_Click(object sender, EventArgs e)
        {
            try
            {
                if (aCheckInEN.aListRoomMembers.Count > 0)
                {
                    aCheckInEN.CheckInActual = dtpFrom.DateTime;
                    aCheckInEN.CheckOutActual = dtpTo.DateTime;
                    aCheckInEN.CheckOutPlan = dtpTo.DateTime;

                    frmTsk_CheckIn_Goverment_Step2 afrmTsk_CheckIn_Goverment_Step2 = new frmTsk_CheckIn_Goverment_Step2(this, aCheckInEN);
                    afrmTsk_CheckIn_Goverment_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("frmTsk_CheckIn_Goverment_Step1.btnNext_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }