public List <DataTable> MultipleAccountLedgerComboFill() { List <DataTable> ListObj = new List <DataTable>(); try { ListObj = spAccountLedger.MultipleAccountLedgerComboFill(); } catch (Exception ex) { MessageBox.Show("AL24:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(ListObj); }
/// <summary> /// account group combo fill function /// </summary> public void cmbComboFill() { try { AccountLedgerSP spAccountLedger = new AccountLedgerSP(); DataTable dtblAccountLedger = new DataTable(); dtblAccountLedger = spAccountLedger.MultipleAccountLedgerComboFill(); cmbAccountGroup.DataSource = dtblAccountLedger; cmbAccountGroup.ValueMember = "accountGroupId"; cmbAccountGroup.DisplayMember = "accountGroupName"; } catch (Exception ex) { MessageBox.Show("MAL1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// account group combo fill function /// </summary> public void cmbComboFill() { try { AccountLedgerSP spAccountLedger = new AccountLedgerSP(); DataTable dtblAccountLedger = new DataTable(); dtblAccountLedger = spAccountLedger.MultipleAccountLedgerComboFill(); cmbAccountGroup.DataSource = dtblAccountLedger; cmbAccountGroup.ValueMember = "accountGroupId"; cmbAccountGroup.DisplayMember = "accountGroupName"; } catch (Exception ex) { formMDI.infoError.ErrorString = "MAL1:" + ex.Message; } }