Exemplo n.º 1
0
        public List <DataTable> AccountLedgerGetByDebtorAndCreditorWithBalance()
        {
            List <DataTable> listObj = new List <DataTable>();

            try
            {
                listObj = SPPartyBalance.AccountLedgerGetByDebtorAndCreditorWithBalance();
            }
            catch (Exception ex)
            {
                MessageBox.Show("PBBLL:1" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(listObj);
        }
Exemplo n.º 2
0
 /// <summary>
 /// To fill combo with all ledgers to whome interest enabled is true
 /// </summary>
 public void FillInterestEnabledLedgersCombo()
 {
     try
     {
         PartyBalanceSP SpPartyBalance  = new PartyBalanceSP();
         DataTable      dtblCashOrParty = SpPartyBalance.AccountLedgerGetByDebtorAndCreditorWithBalance();
         DataRow        dr1             = dtblCashOrParty.NewRow();
         dr1["ledgerName"] = "All";
         dr1["ledgerId"]   = 0;
         dtblCashOrParty.Rows.InsertAt(dr1, 0);
         cmbLedger.DataSource    = dtblCashOrParty;
         cmbLedger.DisplayMember = "ledgerName";
         cmbLedger.ValueMember   = "ledgerId";
     }
     catch (Exception ex)
     {
         MessageBox.Show("AR2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }