コード例 #1
0
 /// <summary>
 /// SalesMan Combofill Function
 /// </summary>
 public void SalesManComboFill()
 {
     TransactionsGeneralFillBll TransactionGenerateFillObj = new TransactionsGeneralFillBll();
     try
     {
         List<DataTable> listObj = new List<DataTable>();
         listObj = TransactionGenerateFillObj.SalesmanViewAllForComboFill(cmbSalesMan, false);
     }
     catch (Exception ex)
     {
         MessageBox.Show("DN05: " + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
コード例 #2
0
 /// <summary>
 /// Function to fill the salesman combobox
 /// </summary>
 public void SalesmanComboFill()
 {
     try
     {
         List<DataTable> listObj = new List<DataTable>();
         EmployeeCreationBll BllEmployeeCreation = new EmployeeCreationBll();
         TransactionsGeneralFillBll TransactiongeneralFillObj = new TransactionsGeneralFillBll();
         listObj = TransactiongeneralFillObj.SalesmanViewAllForComboFill(cmbSalesman, false);
         cmbSalesman.DataSource = listObj[0];
         cmbSalesman.DisplayMember = "employeeName";
         cmbSalesman.ValueMember = "employeeId";
         cmbSalesman.SelectedValue = -1;
     }
     catch (Exception ex)
     {
         MessageBox.Show("SV 06 : " + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
コード例 #3
0
 /// <summary>
 /// salesman fill
 /// </summary>
 public void ComboSalesManFill()
 {
     TransactionsGeneralFillBll transactionGeneralFillObj = new TransactionsGeneralFillBll();
     try
     {
        transactionGeneralFillObj.SalesmanViewAllForComboFill(cmbSalesman, false);
     }
     catch (Exception ex)
     {
         MessageBox.Show("SQ:03" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }