private void ProcessGenerateSummaryRoutesReportCommand(SummaryRoutesReportCommand command, ReportStatus statusReport) { using ( var reportStream = ReportService.GenerateSummaryRoutesReport(command, statusReport)) { if (reportStream == null) { ReportService.SendEmptyReport(command, command.ReportName, false); } ReportService.SendReport(reportStream, command, command.ReportName); } }
private void ProcessGenerateFinalExceutionReportCommand(FinalExecutionCommand command, ReportStatus statusReport) { var reportExecution = ReportService.GenerateFinalExcecutionReport(command, statusReport); ReportService.SendReport(reportExecution, "Reporte de Ejecucion"); }
private void ProcessGenerateOdometersReportCommand(OdometersReportCommand command, ReportStatus statusReport) { if (ProgramacionReporte.FormatoReporte.Excel.Equals(command.ReportFormat)) { using (var reportStream = ReportService.GenerateOdometersReport(command, statusReport)) { if (reportStream == null) { ReportService.SendEmptyReport(command, command.ReportName, false); } ReportService.SendReport(reportStream, command, command.ReportName); } } else { var report = ReportService.GenerateSummarizedOdometersReport(command, statusReport); if (report == null) { ReportService.SendEmptyReport(command, command.ReportName, false); } ReportService.SendHtmlReport(report, command.Email, command.ReportName); } }
private void ProcessVehicleVerifierReportCommand(VehicleVerifierCommand command, ReportStatus statusReport) { var reportExecution = ReportService.GenerateVehicleVerifierReport(command, statusReport); ReportService.SendHtmlReport(reportExecution, command.Email, "Verificador de Vehiculos"); }