/// <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); } }
/// <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); } }
/// <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); } }