public DataSet MaterialReceiptReportPrinting(decimal decCompanyId, string strInvoiceNo, string strStatus, decimal decLedgerId, string strProductCode, decimal decVouchertypeId, DateTime FromDate, DateTime ToDate, decimal decOrderMasterId)
        {
            DataSet ds = new DataSet();

            try
            {
                ds = spMaterialReceiptMaster.MaterialReceiptReportPrinting(decCompanyId, strInvoiceNo, strStatus, decLedgerId, strProductCode, decVouchertypeId, FromDate, ToDate, decOrderMasterId);
            }
            catch (Exception ex)
            {
                MessageBox.Show("MRBLL20:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(ds);
        }
Esempio n. 2
0
 /// <summary>
 /// Print button click
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnPrint_Click(object sender, EventArgs e)
 {
     try
     {
         if (dgvMaterialReceiptReport.RowCount > 0)
         {
             MaterialReceiptMasterSP spMaterialReceiptMaster = new MaterialReceiptMasterSP();
             DataSet   dsMaterialReceiptReport = spMaterialReceiptMaster.MaterialReceiptReportPrinting(1, strInvoiceNo, strStatus, decLedgerId, strproductCode, decVoucherTypeId, this.dtpFromDate.Value, this.dtpToDate.Value, decOrderId);
             frmReport frmRepor = new frmReport();
             frmRepor.MdiParent = formMDI.MDIObj;
             frmRepor.MaterialReceiptReportPrinting(dsMaterialReceiptReport);
         }
         else
         {
             Messages.InformationMessage("No data found");
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("MRR15:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }