public List <DataTable> AccountLedgerViewAll() { List <DataTable> ListObj = new List <DataTable>(); try { ListObj = spAccountLedger.AccountLedgerViewAll(); } catch (Exception ex) { MessageBox.Show("AL17:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(ListObj); }
/// <summary> /// Function to fill AccountLedgers for combobox /// </summary> /// <returns></returns> public DataTable AccountLedgerComboFill() { DataTable dtbl = new DataTable(); try { AccountLedgerSP spaccountledger = new AccountLedgerSP(); dtbl = spaccountledger.AccountLedgerViewAll(); } catch (Exception ex) { MessageBox.Show("TGF:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(dtbl); }
/// <summary> /// Function to fill AccountLedgers for combobox /// </summary> /// <returns></returns> public DataTable AccountLedgerComboFill() { DataTable dtbl = new DataTable(); try { AccountLedgerSP spaccountledger = new AccountLedgerSP(); dtbl = spaccountledger.AccountLedgerViewAll(); } catch (Exception ex) { MessageBox.Show("legerdComboFill:" + ex.Message, "Niambie School ERP", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(dtbl); }
/// <summary> /// Function to fill AccountLedger combobox /// </summary> public void AccountLedgerComboFill() { try { DataTable dtbl = new DataTable(); AccountLedgerSP spaccountledger = new AccountLedgerSP(); dtbl = spaccountledger.AccountLedgerViewAll(); DataRow dr = dtbl.NewRow(); dr[0] = 0; dr[2] = "ALL"; dtbl.Rows.InsertAt(dr, 0); cmbAccountLedger.DataSource = dtbl; cmbAccountLedger.ValueMember = "ledgerId"; cmbAccountLedger.DisplayMember = "ledgerName"; cmbAccountLedger.SelectedIndex = 0; } catch (Exception ex) { formMDI.infoError.ErrorString = "DRNTREP3:" + ex.Message; } }
/// <summary> /// Function to fill AccountLedger combobox /// </summary> public void AccountLedgerComboFill() { try { DataTable dtbl = new DataTable(); AccountLedgerSP spaccountledger = new AccountLedgerSP(); dtbl = spaccountledger.AccountLedgerViewAll(); DataRow dr = dtbl.NewRow(); dr[0] = 0; dr[2] = "All"; dtbl.Rows.InsertAt(dr, 0); cmbAccountLedger.DataSource = dtbl; cmbAccountLedger.ValueMember = "ledgerId"; cmbAccountLedger.DisplayMember = "ledgerName"; cmbAccountLedger.SelectedIndex = -1; } catch (Exception ex) { MessageBox.Show("PPREP2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }