public DataSet PdcpayableReportPrinting(DateTime dtFromdate, DateTime dtToDate, string strVoucherType, string strLedgerName, DateTime dtcheckfromdate, DateTime dtCheckdateto, string strchequeNo, string strvoucherNo, string strstatus, decimal decCompanyId)
        {
            DataSet dSt = new DataSet();

            try
            {
                dSt = spPdcPayableMaster.PdcpayableReportPrinting(dtFromdate, dtToDate, strVoucherType, strLedgerName, dtcheckfromdate, dtCheckdateto, strchequeNo, strvoucherNo, strstatus, decCompanyId);
            }
            catch (Exception ex)
            {
                MessageBox.Show("PDCP18:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(dSt);
        }
Esempio n. 2
0
 /// <summary>
 /// Function to print the details
 /// </summary>
 public void Print()
 {
     try
     {
         string             strFromDate        = txtFromDate.Text.ToString();
         string             strToDate          = txtTodate.Text.ToString();
         decimal            decVoucherTypeId   = Convert.ToDecimal(cmbVoucherType.SelectedValue.ToString());
         decimal            decLedgerId        = Convert.ToDecimal(cmbAccountLedger.SelectedValue.ToString());
         PDCPayableMasterSP sppdcpayable       = new PDCPayableMasterSP();
         DataSet            dsPdcPayableReport = sppdcpayable.PdcpayableReportPrinting(Convert.ToDateTime(dtpFrmDate.Value.ToString()), Convert.ToDateTime(dtpTodate.Value.ToString()), cmbVoucherType.Text.ToString(), cmbAccountLedger.Text.ToString(), Convert.ToDateTime(dtpCheckDateFrom.Value.ToString()), Convert.ToDateTime(dtpCheckdateTo.Value.ToString()), txtcheckNo.Text.Trim(), txtVoucherNo.Text.Trim(), cmbStatus.Text.Trim(), 1);
         frmReport          frmRepor           = new frmReport();
         frmRepor.MdiParent = formMDI.MDIObj;
         frmRepor.PdcpayablereportReportPrinting(dsPdcPayableReport);
     }
     catch (Exception ex)
     {
         MessageBox.Show("PPREP6:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }