public string GenerateReport(DateTime startPeriod, DateTime endPeriod)
 {
     string fileName = @"c:\Unip Reports\HughesSpeedTestReports\HughesSpeedTestReport.xlsx";
     HughesSpeedTestReport report = new HughesSpeedTestReport();
     List<SerialNumberReportEntry> serialNumberReportEntries = _hughesSpeedTestDataSource.GetSerialNumberReportData(startPeriod, endPeriod);
     List<AddressReportEntry> addressReportEntries = _hughesSpeedTestDataSource.GetAddressReportData(startPeriod, endPeriod);
     List<HourReportEntry> hourReportEntries = _hughesSpeedTestDataSource.GetHourReportData(startPeriod, endPeriod);
     report.SaveHughesSpeedTestReport(fileName, startPeriod, endPeriod, serialNumberReportEntries, addressReportEntries, hourReportEntries);
     return fileName;
 }
Exemple #2
0
        public string GenerateReport(DateTime startPeriod, DateTime endPeriod)
        {
            string fileName = @"c:\Unip Reports\HughesSpeedTestReports\HughesSpeedTestReport.xlsx";
            HughesSpeedTestReport          report = new HughesSpeedTestReport();
            List <SerialNumberReportEntry> serialNumberReportEntries = _hughesSpeedTestDataSource.GetSerialNumberReportData(startPeriod, endPeriod);
            List <AddressReportEntry>      addressReportEntries      = _hughesSpeedTestDataSource.GetAddressReportData(startPeriod, endPeriod);
            List <HourReportEntry>         hourReportEntries         = _hughesSpeedTestDataSource.GetHourReportData(startPeriod, endPeriod);

            report.SaveHughesSpeedTestReport(fileName, startPeriod, endPeriod, serialNumberReportEntries, addressReportEntries, hourReportEntries);
            return(fileName);
        }
 public string GenerateSearchResultExcelFile(
     HughesSpeedTest filter,
     Dictionary<string, string> sortOptions,
     DateTime startPeriod,
     DateTime endPeriod)
 {
     string fileName = @"c:\Unip Reports\HughesSpeedTestReports\HughesSpeedTestSearchResults.xlsx";
     HughesSpeedTestReport report = new HughesSpeedTestReport();
     _hughesSpeedTestDataSource.AdditionalQueryParameters = filter;
     _hughesSpeedTestDataSource.SortOptions = sortOptions;
     _hughesSpeedTestDataSource.StartPeriod = startPeriod;
     _hughesSpeedTestDataSource.EndPeriod = endPeriod;
     List<HughesSpeedTest> searchResultsList = _hughesSpeedTestDataSource.GetHughesSpeedTests();
     report.SaveSearchResults(fileName, searchResultsList);
     return fileName;
 }
Exemple #4
0
        public string GenerateSearchResultExcelFile(
            HughesSpeedTest filter,
            Dictionary <string, string> sortOptions,
            DateTime startPeriod,
            DateTime endPeriod)
        {
            string fileName = @"c:\Unip Reports\HughesSpeedTestReports\HughesSpeedTestSearchResults.xlsx";
            HughesSpeedTestReport report = new HughesSpeedTestReport();

            _hughesSpeedTestDataSource.AdditionalQueryParameters = filter;
            _hughesSpeedTestDataSource.SortOptions = sortOptions;
            _hughesSpeedTestDataSource.StartPeriod = startPeriod;
            _hughesSpeedTestDataSource.EndPeriod   = endPeriod;
            List <HughesSpeedTest> searchResultsList = _hughesSpeedTestDataSource.GetHughesSpeedTests();

            report.SaveSearchResults(fileName, searchResultsList);
            return(fileName);
        }