/// <summary> /// Function to fill Salesman combobox /// </summary> public void salesManComboFill() { try { TransactionGeneralFillObj.SalesmanViewAllForComboFill(cmbSalesMan, true); } catch (Exception ex) { MessageBox.Show("SIRPT: 04" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to fill Salesman combobox /// </summary> public void salesmancombofill() { TransactionsGeneralFillBll transactionGeneralFillObj = new TransactionsGeneralFillBll(); try { transactionGeneralFillObj.SalesmanViewAllForComboFill(cmbSalesMan, true); } catch (Exception ex) { MessageBox.Show("RIReport:03" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to fill Salesman combobox /// </summary> public void SalesmanComboFill() { try { List <DataTable> listObj = new List <DataTable>(); listObj = TransactionGenerateFillObj.SalesmanViewAllForComboFill(cmbSalesMan, true); cmbSalesMan.DataSource = listObj[0]; cmbSalesMan.ValueMember = "employeeId"; cmbSalesMan.DisplayMember = "employeeName"; } catch (Exception ex) { MessageBox.Show("DNREP03: " + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }