コード例 #1
0
 public frmIns_CustomerGroups(frmIns_CustomerGroups_Customers afrmIns_CustomerGroups_Customers, int IDCompany, string NameCompany)
 {
     InitializeComponent();
     afrmIns_CustomerGroups_Customers_Old = afrmIns_CustomerGroups_Customers;
     this.IDCompany = IDCompany;
     this.NameCompany = NameCompany;
 }
コード例 #2
0
 private void btnAddCustomer_Click(object sender, EventArgs e)
 {
     try
     {
         string NameCustomerGroup = lueCustomerGroup.Text;
         string NameCompany = lueCompany.Text;
         if (NameCompany.Equals("--- Chọn lựa ---") || NameCompany.Equals(""))
         {
             lueCompany.Text = "--- Chọn lựa ---";
             MessageBox.Show("Vui lòng chọn tên công ty .", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
         }
         else if (NameCustomerGroup.Equals("--- Chọn lựa ---") || NameCustomerGroup.Equals(""))
         {
             lueCustomerGroup.Text = "--- Chọn lựa ---";
             MessageBox.Show("Vui lòng chọn tên nhóm .", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
         }
         else
         {
             int IDCustomerGroup = Convert.ToInt32(lueCustomerGroup.EditValue.ToString());
             frmIns_CustomerGroups_Customers afrmIns_CustomerGroups_Customers = new frmIns_CustomerGroups_Customers(this, IDCustomerGroup, NameCustomerGroup, NameCompany);
             afrmIns_CustomerGroups_Customers.ShowDialog();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("frmTsk_UpdBooking.btnAddCustomer_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
コード例 #3
0
 public frmIns_Customers(frmIns_CustomerGroups_Customers afrmIns_CustomerGroups_Customers)
 {
     InitializeComponent();
     this.afrmIns_CustomerGroups_Customers = afrmIns_CustomerGroups_Customers;
 }
コード例 #4
0
 public frmLst_Companies(frmIns_CustomerGroups_Customers afrmIns_CustomerGroups_Customers)
 {
     InitializeComponent();
     afrmIns_CustomerGroups_Customers_Old = afrmIns_CustomerGroups_Customers;
 }
コード例 #5
0
 public frmUpd_Customers(frmIns_CustomerGroups_Customers afrmIns_CustomerGroups_Customers, int IDCustomer)
 {
     InitializeComponent();
     this.afrmIns_CustomerGroups_Customers = afrmIns_CustomerGroups_Customers;
     this.IDCustomer = IDCustomer;
 }
コード例 #6
0
 private void barButtonItem22_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     frmIns_CustomerGroups_Customers afrmIns_CustomerGroups_Customers = new frmIns_CustomerGroups_Customers();
     afrmIns_CustomerGroups_Customers.Show();
 }
コード例 #7
0
 private void barButtonItem1_ItemClick(object sender, ItemClickEventArgs e)
 {
     frmIns_CustomerGroups_Customers afrmIns_CustomerGroups_Customers = new frmIns_CustomerGroups_Customers();
     afrmIns_CustomerGroups_Customers.ShowDialog();
 }