/// <summary> /// Function to fill accountledger combobox /// </summary> /// <param name="cmbAccountLedger"></param> public void AccountLedgerComboFill(ComboBox cmbAccountLedger) { try { cmbAccountLedger.Enabled = true; AccountLedgerSP spAccountLedger = new AccountLedgerSP(); spAccountLedger.BillAllocationLedgerFill(cmbAccountLedger, cmbAccountGroup.Text, true); } catch (Exception ex) { formMDI.infoError.ErrorString = "BA3:" + ex.Message; } }
/// <summary> /// Function to fill accountledger combobox /// </summary> /// <param name="cmbAccountLedger"></param> public void AccountLedgerComboFill(ComboBox cmbAccountLedger) { try { cmbAccountLedger.Enabled = true; AccountLedgerSP spAccountLedger = new AccountLedgerSP(); spAccountLedger.BillAllocationLedgerFill(cmbAccountLedger, cmbAccountGroup.Text, true); } catch (Exception ex) { MessageBox.Show("BA:03" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
public List <DataTable> BillAllocationLedgerFill(ComboBox cmbAccountLedger, string strAccountGroup, bool isAll) { List <DataTable> ListObj = new List <DataTable>(); try { ListObj = spAccountLedger.BillAllocationLedgerFill(cmbAccountLedger, strAccountGroup, isAll); } catch (Exception ex) { MessageBox.Show("AL27:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(ListObj); }