Beispiel #1
0
        public List <DataTable> AgainstBillDetailsGridViewByLedgerId(decimal decLedgerId, string strCrDr, decimal decVoucherTypeId, decimal decVoucherTypeNameId)
        {
            List <DataTable> listObj = new List <DataTable>();

            try
            {
                listObj = SPPartyBalance.AgainstBillDetailsGridViewByLedgerId(decLedgerId, strCrDr, decVoucherTypeId, decVoucherTypeNameId);
            }
            catch (Exception ex)
            {
                MessageBox.Show("PBBLL:1" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(listObj);
        }
Beispiel #2
0
 /// <summary>
 /// Function to fill datagridview
 /// </summary>
 public void GridFill()
 {
     try
     {
         PartyBalanceInfo infoPartyBalance     = new PartyBalanceInfo();
         PartyBalanceSP   SpPartyBalance       = new PartyBalanceSP();
         DataTable        dtbl                 = new DataTable();
         decimal          decVoucherTypeId     = 0;
         decimal          decVoucherTypeNameId = 0;
         decVoucherTypeId     = Convert.ToDecimal(cmbVoucherType.SelectedValue.ToString());
         decVoucherTypeNameId = Convert.ToDecimal(cmbVoucherTypeName.SelectedValue.ToString());
         dtbl = SpPartyBalance.AgainstBillDetailsGridViewByLedgerId(decledgerId, strDebitOrCredit, decVoucherTypeId, decVoucherTypeNameId);
         dgvAgainstBillDetails.DataSource = dtbl;
     }
     catch (Exception ex)
     {
         MessageBox.Show("AB3:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }