示例#1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            ExceptionVoucherDetails rpt = new ExceptionVoucherDetails();

            rpt.Site = this.Site;
            return(rpt);
        }
        public void ShowExceptionVoucherDetail(string reportName, DataSet dsReportsDataSet, DateTime fromdate, DateTime toDate, bool? IsDeclaredOnly, Int32 BatchNumber,string SiteCode)
        {
            try
            {
                string sVersion, sSiteName;

                var vExceptionVoucherDetail = new ExceptionVoucherDetails();

                vExceptionVoucherDetail.SetDataSource(dsReportsDataSet);
                vExceptionVoucherDetail.SetParameterValue("fromdate", fromdate);
                vExceptionVoucherDetail.SetParameterValue("toDate", toDate);

                GetVersion_SiteName(out  sVersion, out  sSiteName);
                vExceptionVoucherDetail.SetParameterValue("siteName", sSiteName);
                vExceptionVoucherDetail.SetParameterValue("BMCVersion", sVersion);
                vExceptionVoucherDetail.SetParameterValue("CurrencyCulture", ExtensionMethods.CurrentCurrenyCulture);
                vExceptionVoucherDetail.SetParameterValue("CurrencySymbol", ExtensionMethods.CurrentCurrenyCulture.GetCurrencySymbol());
                vExceptionVoucherDetail.SetParameterValue("DateCulture", ExtensionMethods.CurrentDateCulture);
                vExceptionVoucherDetail.SetParameterValue("IsDeclaredOnly", IsDeclaredOnly.Value ? "Yes" : "No");
                vExceptionVoucherDetail.SetParameterValue("Batch", BatchNumber == 0 ? "All" : Convert.ToString(BatchNumber));
                vExceptionVoucherDetail.SetParameterValue("SiteCode", SiteCode);

                crystalReportViewer.ReportSource = vExceptionVoucherDetail;
                AuditReports();

                strReportName = "Exception Voucher Detail Report";

            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
            }
        }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
     ExceptionVoucherDetails rpt = new ExceptionVoucherDetails();
     rpt.Site = this.Site;
     return rpt;
 }