public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { SystemBalancing rpt = new SystemBalancing(); rpt.Site = this.Site; return(rpt); }
public void ShowSystemBalancingReport(DataSet dsReportsDataSet, DateTime StartDate, DateTime EndDate) { string sVersion = string.Empty; string sSiteName = string.Empty; try { LogManager.WriteLog("Inside ShowSystemBalancingReport method", LogManager.enumLogLevel.Info); GetVersion_SiteName(out sVersion, out sSiteName); SystemBalancing SystemBalancingReport = new SystemBalancing(); LogManager.WriteLog("Setting Report Datasource...", LogManager.enumLogLevel.Info); SystemBalancingReport.SetDataSource(dsReportsDataSet); LogManager.WriteLog("Report DataSource set successfully", LogManager.enumLogLevel.Info); LogManager.WriteLog("Setting Report Parameters...", LogManager.enumLogLevel.Info); SystemBalancingReport.SetParameterValue("@StartDate", StartDate); SystemBalancingReport.SetParameterValue("@EndDate", EndDate); SystemBalancingReport.SetParameterValue("DateCulture", ExtensionMethods.CurrentDateCulture); SystemBalancingReport.SetParameterValue("Version", sVersion); SystemBalancingReport.SetParameterValue("CurrencyCulture", ExtensionMethods.CurrentCurrenyCulture); SystemBalancingReport.SetParameterValue("CurrencySymbol", ExtensionMethods.CurrentCurrenyCulture.GetCurrencySymbol()); LogManager.WriteLog("Report Parameters set successfully", LogManager.enumLogLevel.Info); LogManager.WriteLog("Setting Report Source...", LogManager.enumLogLevel.Info); crystalReportViewer.ReportSource = SystemBalancingReport; LogManager.WriteLog("Report Source set successfully", LogManager.enumLogLevel.Info); AuditReports(); strReportName = "System Balancing Report"; } catch (Exception ex) { throw ex; } }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { SystemBalancing rpt = new SystemBalancing(); rpt.Site = this.Site; return rpt; }