コード例 #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
ファイル: frmDebitNoteReport.cs プロジェクト: hnjm/OneAccount
 /// <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);
     }
 }