コード例 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            SystemBalancing rpt = new SystemBalancing();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
        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;
            }
        }
コード例 #3
0
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
     SystemBalancing rpt = new SystemBalancing();
     rpt.Site = this.Site;
     return rpt;
 }