Esempio n. 1
0
 public async Task <IActionResult> Exportar([FromServices] IExecucaoRelatorioService execucaoRelatorioService, Guid requestId)
 {
     return(Ok(await execucaoRelatorioService.PostExportacao(requestId,
                                                             new ExportacaoRelatorioRequisicaoDto()
     {
         AnexosPrefixo = "./images/",
         FormatoSaida = "html",
         Paginas = "10-20"
     })));
 }
 public GerarRelatorioAssincronoCommandHandler(IExecucaoRelatorioService execucaoRelatorioService,
                                               IServicoFila servicoFila,
                                               ILoginService loginService,
                                               IConfiguration configuration)
 {
     this.execucaoRelatorioService = execucaoRelatorioService ?? throw new System.ArgumentNullException(nameof(execucaoRelatorioService));
     this.servicoFila   = servicoFila ?? throw new ArgumentNullException(nameof(servicoFila));
     this.loginService  = loginService ?? throw new ArgumentNullException(nameof(loginService));
     this.configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
 }
Esempio n. 3
0
 public async Task <IActionResult> EmExecucao([FromServices] IExecucaoRelatorioService execucaoRelatorioService)
 {
     return(Ok(await execucaoRelatorioService.ObterRelatoriosTarefasEmAndamento(
                   new RelatoriosTarefasEmAndamentoRequisicaoDto()
     {
         DataFim = DateTime.Today,
         DataInicio = DateTime.MinValue,
         RelatorioUri = "/Nova_pasta/Report",
         TarefaId = "",
         TarefaLabel = "",
         UsuarioNome = "Teste"
     }
                   )));
 }
Esempio n. 4
0
 public async Task <IActionResult> Parametros([FromServices] IExecucaoRelatorioService execucaoRelatorioService, Guid requestId)
 {
     return(Ok(await execucaoRelatorioService.PostModificarParametros(requestId,
                                                                      new ModificarParametrosRelatorioRequisicaoDto()
     {
         Parametros = new ParametroDto[]
         {
             new ParametroDto()
             {
                 Nome = "a",
                 Valor = new string[] { "teste" }
             }
         }
     })));
 }
 public RelatorioGamesCommandHandler(IExecucaoRelatorioService execucaoRelatorioService, IRelatorioService relatorioService)
 {
     this.execucaoRelatorioService = execucaoRelatorioService ?? throw new ArgumentNullException(nameof(execucaoRelatorioService));
     this.relatorioService         = relatorioService ?? throw new ArgumentNullException(nameof(relatorioService));
 }
 public ObterDetalhesRelatorioQueryHandler(IExecucaoRelatorioService execucaoRelatorioService)
 {
     this.execucaoRelatorioService = execucaoRelatorioService ?? throw new ArgumentNullException(nameof(execucaoRelatorioService));
 }
Esempio n. 7
0
 public async Task <IActionResult> Parar([FromServices] IExecucaoRelatorioService execucaoRelatorioService, Guid requestId)
 {
     return(Ok(await execucaoRelatorioService.InterromperRelatoriosTarefas(requestId)));
 }
Esempio n. 8
0
 public async Task <IActionResult> PoolExportacao([FromServices] IExecucaoRelatorioService execucaoRelatorioService, Guid requestId, Guid exportID)
 {
     return(Ok(await execucaoRelatorioService.ObterPoolExportacao(requestId, exportID)));
 }
Esempio n. 9
0
 public async Task <IActionResult> Anexo([FromServices] IExecucaoRelatorioService execucaoRelatorioService, Guid requestId, Guid exportID, string fileName)
 {
     return(Ok(await execucaoRelatorioService.ObterAnexos(requestId, exportID, fileName)));
 }
Esempio n. 10
0
 public async Task <IActionResult> Detalhes([FromServices] IExecucaoRelatorioService execucaoRelatorioService, Guid requestId)
 {
     return(Ok(await execucaoRelatorioService.ObterDetalhes(requestId, string.Empty)));
 }
Esempio n. 11
0
 public async Task <IActionResult> Pool([FromServices] IExecucaoRelatorioService execucaoRelatorioService, Guid requestId)
 {
     return(Ok(await execucaoRelatorioService.ObterPool(requestId)));
 }
Esempio n. 12
0
        public async Task <IActionResult> PostAsync([FromServices] ILoginService loginService, [FromServices] IExecucaoRelatorioService execucaoRelatorioService)
        {
            var post = new ExecucaoRelatorioRequisicaoDto()
            {
                Async            = true,
                FormatoSaida     = "pdf",
                IgnorarCache     = true,
                IgnorarPaginacao = true,
                Interativo       = false,
                Parametros       = new ParametrosRelatorioDto()
                {
                    ParametrosRelatorio = new ParametroDto[] {
                        new ParametroDto()
                        {
                            Nome  = "Parametro",
                            Valor = new string[] { "a" }
                        }
                    }
                },
                SalvarSnapshot      = false,
                UnidadeRelatorioUri = "/Nova_pasta/Report",
                Paginas             = null
            };
            var jsessionId = await loginService.ObterTokenAutenticacao("user", "bitnami");

            return(Ok(await execucaoRelatorioService.SolicitarRelatorio(post, jsessionId)));
        }