示例#1
0
        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);
            }
        }
示例#2
0
        private void ProcessGenerateFinalExceutionReportCommand(FinalExecutionCommand command, ReportStatus statusReport)
        {
            var reportExecution = ReportService.GenerateFinalExcecutionReport(command, statusReport);

            ReportService.SendReport(reportExecution, "Reporte de Ejecucion");
        }
示例#3
0
        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);
            }
        }
示例#4
0
        private void ProcessVehicleVerifierReportCommand(VehicleVerifierCommand command, ReportStatus statusReport)
        {
            var reportExecution = ReportService.GenerateVehicleVerifierReport(command, statusReport);

            ReportService.SendHtmlReport(reportExecution, command.Email, "Verificador de Vehiculos");
        }