/// <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          frmReport          = new frmReport();
         frmReport.MdiParent = formMDI.MDIObj;
         frmReport.PdcpayablereportReportPrinting(dsPdcPayableReport);
     }
     catch (Exception ex)
     {
         MessageBox.Show("PPREP6:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Ejemplo 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 frmReport = new frmReport();
         frmReport.MdiParent = formMDI.MDIObj;
         frmReport.PdcpayablereportReportPrinting(dsPdcPayableReport);
     }
     catch (Exception ex)
     {
         MessageBox.Show("PPREP6:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }