示例#1
0
        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);
        }
示例#2
0
        /// <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);
        }
示例#3
0
        /// <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);
        }
示例#4
0
 /// <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;
     }
 }
示例#5
0
 /// <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);
     }
 }