public List <DataTable> AccountLedgerComboFill(bool Isall)
        {
            List <DataTable> ListObj = new List <DataTable>();

            try
            {
                ListObj = spPdcPayableMaster.AccountLedgerComboFill(Isall);
            }
            catch (Exception ex)
            {
                MessageBox.Show("PDCP13:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(ListObj);
        }
Пример #2
0
 /// <summary>
 /// Function to fill AccountLedger combobox
 /// </summary>
 public void AccountLedgerComboFill()
 {
     try
     {
         DataTable          dtbl         = new DataTable();
         PDCPayableMasterSP sppdcpayable = new PDCPayableMasterSP();
         dtbl = sppdcpayable.AccountLedgerComboFill(false);
         DataRow dr = dtbl.NewRow();
         dr["ledgerId"]   = 0;
         dr["ledgerName"] = "All";
         dtbl.Rows.InsertAt(dr, 0);
         cmbAccountLedger.DataSource    = dtbl;
         cmbAccountLedger.ValueMember   = "ledgerId";
         cmbAccountLedger.DisplayMember = "ledgerName";
         cmbAccountLedger.SelectedIndex = 0;
     }
     catch (Exception ex)
     {
         MessageBox.Show("PRREP3:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }