Exemplo n.º 1
0
        public DataSet RejectionInReportPrinting(DateTime fromDate, DateTime toDate, decimal decVoucherTypeId, string strVoucherNo, decimal decLedgerId, decimal decDlvryNteMstrId, decimal decEmployeeId, string strProductCode)
        {
            DataSet dst = new DataSet();

            try
            {
                dst = spRejectionInMaster.RejectionInReportPrinting(fromDate, toDate, decVoucherTypeId, strVoucherNo, decLedgerId, decDlvryNteMstrId, decEmployeeId, strProductCode);
            }
            catch (Exception ex)
            {
                MessageBox.Show("RI15:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(dst);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Function for Print
 /// </summary>
 public void PrintReport()
 {
     try
     {
         RejectionInMasterSP SpRejectionInMaster = new RejectionInMasterSP();
         DataSet             dsRejectionInReport = SpRejectionInMaster.RejectionInReportPrinting(dtFromDate, dtToDate, decVoucherType, strVocherNo, decCashOrParty, decDeliveryNoteNo, decSalesManId, strProductCode);
         frmReport           frmRepor            = new frmReport();
         frmRepor.MdiParent = formMDI.MDIObj;
         frmRepor.RejectionInReportPrinting(dsRejectionInReport);
     }
     catch (Exception ex)
     {
         MessageBox.Show("RIReport:08" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }