Example #1
0
        public DataSet PurchaseOrderReportPrinting(decimal decCompanyId, string strInvoiceNo, decimal decLedgerId, decimal decVouchertypeId, DateTime FromDate, DateTime ToDate, string strStatus)
        {
            DataSet ds = new DataSet();
            PurchaseOrderMasterSP SPPurchaseOrderMaster = new PurchaseOrderMasterSP();

            try
            {
                ds = SPPurchaseOrderMaster.PurchaseOrderReportPrinting(decCompanyId, strInvoiceNo, decLedgerId, decVouchertypeId, FromDate, ToDate, strStatus);
            }
            catch (Exception ex)
            {
                MessageBox.Show("PoBll 24:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(ds);
        }
Example #2
0
 /// <summary>
 /// On 'Print' button click to print the data
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnPrint_Click(object sender, EventArgs e)
 {
     try
     {
         if (dgvPurchaseOrderReport.Rows.Count > 0)
         {
             PurchaseOrderMasterSP spPurchaseOrderMaster = new PurchaseOrderMasterSP();
             DataSet   dsPurchaseOrderReport             = spPurchaseOrderMaster.PurchaseOrderReportPrinting(1, strInvoiceNo, decLedgerId, decVoucherTypeId, this.dtpFromDate.Value, this.dtpToDate.Value, strStatus);
             frmReport frmRepor = new frmReport();
             frmRepor.MdiParent = formMDI.MDIObj;
             frmRepor.PurchaseOrderReportPrinting(dsPurchaseOrderReport, txtTotalAmount.Text);
         }
         else
         {
             Messages.InformationMessage("No data found");
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("PORP:5" + ex.Message, "Open Miracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }