public DataSet ReceiptReportPrinting(DateTime dtpFromDate, DateTime dtpToDate, decimal decLedgerId, decimal decVoucherTypeId, decimal decCashOrBankId, decimal decCompanyId)
        {
            DataSet dSreportPrinting = new DataSet();

            try
            {
                ReceiptMasterSP spReceiptMaster = new ReceiptMasterSP();
                dSreportPrinting = spReceiptMaster.ReceiptReportPrinting(dtpFromDate, dtpToDate, decLedgerId, decVoucherTypeId, decCashOrBankId, decCompanyId);
            }
            catch (Exception ex)
            {
                MessageBox.Show("RD12:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(dSreportPrinting);
        }
Esempio n. 2
0
 /// <summary>
 /// Function to print the details
 /// </summary>
 public void Print()
 {
     try
     {
         ReceiptMasterSP SpReceiptMaster = new ReceiptMasterSP();
         DataSet         dsReceiptReport = SpReceiptMaster.ReceiptReportPrinting(Convert.ToDateTime(dtpFromDate.Value.ToString()), Convert.ToDateTime(dtpToDate.Value.ToString()), Convert.ToDecimal(cmbLedger.SelectedValue), Convert.ToDecimal(cmbVoucherType.SelectedValue), Convert.ToDecimal(cmbCashOrBank.SelectedValue), 1);
         frmReport       frmRepor        = new frmReport
         {
             MdiParent = formMDI.MDIObj
         };
         frmRepor.ReceiptReportPrinting(dsReceiptReport);
     }
     catch (Exception ex)
     {
         MessageBox.Show("RRP1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }