Пример #1
0
        /// <summary>
        /// Generate a report targeted at Application Licensing
        /// </summary>
        protected void GeneratePresetReport(string reportName)
        {
            // Get our work item controller as some of the report filters are not specific to the report as such
            ReportsWorkItemController wiController = (ReportsWorkItemController)workItem.Controller;

            // Pass this report definition to the WIC who will in turn pass it to the TabView to display
            wiController.RunReport(reportName);
        }
Пример #2
0
        /// <summary>
        /// Generate a report targeted at File System Usage
        /// </summary>
        protected void GenerateFileSystemReport()
        {
            // Ensure any options are saved
            UpdateReportOptions();

            // Get our work item controller as some of the report filters are not specific to the report as such
            ReportsWorkItemController wiController = (ReportsWorkItemController)workItem.Controller;

            // Create the licensing report object
            FileSystemReportDefinition report = (FileSystemReportDefinition)wiController.CurrentReport;

            report.PublisherFilter = wiController.PublisherFilter;

            // Pass this report definition to the WIC who will in turn pass it to the TabView to display
            wiController.RunReport(report);
        }
Пример #3
0
        /// <summary>
        /// Generate a report targeted at Application Licensing
        /// </summary>
        protected void GenerateLicensingReport()
        {
            // Get our work item controller as some of the report filters are not specific to the report as such
            ReportsWorkItemController wiController = (ReportsWorkItemController)workItem.Controller;

            // Create the licensing report object
            LicensingReportDefinition report = (LicensingReportDefinition)wiController.CurrentReport;

            report.PublisherFilter = wiController.PublisherFilter;

            // Set show included/ignored applications flags
            report.ShowIgnoredApplications  = wiController.ShowIgnoredApplications;
            report.ShowIncludedApplications = wiController.ShowIncludedApplications;

            // Pass this report definition to the WIC who will in turn pass it to the TabView to display
            wiController.RunReport(report);
        }