Example #1
0
        public DataSet SalesReturnReportPrinting(DateTime fromDate, DateTime toDate, decimal decSalesMan, decimal decCashOrParty, string strVoucherNo, decimal decVoucherTypeName, string strProductCode)
        {
            DataSet ds = new DataSet();

            try
            {
                ds = spSalesReturnMaster.SalesReturnReportPrinting(fromDate, toDate, decSalesMan, decCashOrParty, strVoucherNo, decVoucherTypeName, strProductCode);
            }
            catch (Exception ex)
            {
                MessageBox.Show("AG1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(ds);
        }
Example #2
0
 /// <summary>
 /// Function to print
 /// </summary>
 /// <param name="fromDate"></param>
 /// <param name="toDate"></param>
 /// <param name="decSalesMan"></param>
 /// <param name="decCashOrParty"></param>
 /// <param name="strVoucherNo"></param>
 /// <param name="decVoucherTypeName"></param>
 /// <param name="strProductCode"></param>
 public void Print(DateTime fromDate, DateTime toDate, decimal decSalesMan, decimal decCashOrParty, string strVoucherNo, decimal decVoucherTypeName, string strProductCode)
 {
     try
     {
         DataSet   dsSalesReturnReport = spSalesReturnMaster.SalesReturnReportPrinting(fromDate, toDate, decSalesMan, decCashOrParty, strVoucherNo, decVoucherTypeName, strProductCode);
         frmReport frmRepor            = new frmReport();
         frmRepor.MdiParent = formMDI.MDIObj;
         frmRepor.SalesReturnReportPrinting(dsSalesReturnReport);
     }
     catch (Exception ex)
     {
         MessageBox.Show("SRRprt7:" + ex.Message, "Open sssMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }