Test Reportes con Razor y Puppeteer
All checks were successful
Build and Deploy / remote-build-and-deploy (push) Successful in 28m23s
All checks were successful
Build and Deploy / remote-build-and-deploy (push) Successful in 28m23s
This commit is contained in:
@@ -44,7 +44,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
try
|
||||
{
|
||||
using var connection = _dbConnectionFactory.CreateConnection();
|
||||
var result = await connection.QueryAsync<ExistenciaPapelDto>(spName, parameters, commandType: CommandType.StoredProcedure);
|
||||
var result = await connection.QueryAsync<ExistenciaPapelDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120);
|
||||
_logger.LogInformation("SP {SPName} ejecutado, {Count} filas devueltas.", spName, result.Count());
|
||||
return result;
|
||||
}
|
||||
@@ -68,7 +68,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
try
|
||||
{
|
||||
using var connection = _dbConnectionFactory.CreateConnection();
|
||||
return await connection.QueryAsync<MovimientoBobinasDto>(spName, parameters, commandType: CommandType.StoredProcedure);
|
||||
return await connection.QueryAsync<MovimientoBobinasDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -84,7 +84,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
return await conn.QueryAsync<DevueltosOtrosDiasDto>(
|
||||
"SP_DistCanillasCantidadEntradaSalidaOtrosDias",
|
||||
parametros,
|
||||
commandType: CommandType.StoredProcedure
|
||||
commandType: CommandType.StoredProcedure, commandTimeout: 120
|
||||
);
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
try
|
||||
{
|
||||
using var connection = _dbConnectionFactory.CreateConnection();
|
||||
return await connection.QueryAsync<MovimientoBobinaEstadoDetalleDto>(spName, parameters, commandType: CommandType.StoredProcedure);
|
||||
return await connection.QueryAsync<MovimientoBobinaEstadoDetalleDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -123,7 +123,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
try
|
||||
{
|
||||
using var connection = _dbConnectionFactory.CreateConnection();
|
||||
return await connection.QueryAsync<MovimientoBobinaEstadoTotalDto>(spName, parameters, commandType: CommandType.StoredProcedure);
|
||||
return await connection.QueryAsync<MovimientoBobinaEstadoTotalDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -140,7 +140,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
parameters.Add("@Mes", fechaDesde.Month, DbType.Int32);
|
||||
parameters.Add("@Anio", fechaDesde.Year, DbType.Int32);
|
||||
// El SP no usa fechaHasta explícitamente, calcula el fin de mes internamente
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<ListadoDistribucionGeneralResumenDto>(spName, parameters, commandType: CommandType.StoredProcedure); }
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<ListadoDistribucionGeneralResumenDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120); }
|
||||
catch (Exception ex) { _logger.LogError(ex, "Error SP {SPName}", spName); return Enumerable.Empty<ListadoDistribucionGeneralResumenDto>(); }
|
||||
}
|
||||
|
||||
@@ -151,7 +151,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
parameters.Add("@Id_Publicacion", idPublicacion, DbType.Int32);
|
||||
parameters.Add("@Mes", fechaDesde.Month, DbType.Int32);
|
||||
parameters.Add("@Anio", fechaDesde.Year, DbType.Int32);
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<ListadoDistribucionGeneralPromedioDiaDto>(spName, parameters, commandType: CommandType.StoredProcedure); }
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<ListadoDistribucionGeneralPromedioDiaDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120); }
|
||||
catch (Exception ex) { _logger.LogError(ex, "Error SP {SPName}", spName); return Enumerable.Empty<ListadoDistribucionGeneralPromedioDiaDto>(); }
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
parameters.Add("@idPublicacion", idPublicacion, DbType.Int32);
|
||||
parameters.Add("@fechaDesde", fechaDesde, DbType.DateTime);
|
||||
parameters.Add("@fechaHasta", fechaHasta, DbType.DateTime);
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<ListadoDistribucionCanillasSimpleDto>(spName, parameters, commandType: CommandType.StoredProcedure); }
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<ListadoDistribucionCanillasSimpleDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120); }
|
||||
catch (Exception ex) { _logger.LogError(ex, "Error SP {SPName}", spName); return Enumerable.Empty<ListadoDistribucionCanillasSimpleDto>(); }
|
||||
}
|
||||
|
||||
@@ -173,7 +173,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
parameters.Add("@idPublicacion", idPublicacion, DbType.Int32);
|
||||
parameters.Add("@fechaDesde", fechaDesde, DbType.DateTime);
|
||||
parameters.Add("@fechaHasta", fechaHasta, DbType.DateTime);
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<ListadoDistribucionCanillasPromedioDiaDto>(spName, parameters, commandType: CommandType.StoredProcedure); }
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<ListadoDistribucionCanillasPromedioDiaDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120); }
|
||||
catch (Exception ex) { _logger.LogError(ex, "Error SP {SPName}", spName); return Enumerable.Empty<ListadoDistribucionCanillasPromedioDiaDto>(); }
|
||||
}
|
||||
|
||||
@@ -185,7 +185,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
parameters.Add("@fechaDesde", fechaDesde, DbType.DateTime);
|
||||
parameters.Add("@fechaHasta", fechaHasta, DbType.DateTime);
|
||||
parameters.Add("@accionista", esAccionista, DbType.Boolean);
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<ListadoDistribucionCanillasImporteDto>(spName, parameters, commandType: CommandType.StoredProcedure); }
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<ListadoDistribucionCanillasImporteDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120); }
|
||||
catch (Exception ex) { _logger.LogError(ex, "Error SP {SPName}", spName); return Enumerable.Empty<ListadoDistribucionCanillasImporteDto>(); }
|
||||
}
|
||||
|
||||
@@ -195,7 +195,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
var parameters = new DynamicParameters();
|
||||
parameters.Add("@fechaDesde", fechaDesde, DbType.DateTime);
|
||||
parameters.Add("@fechaHasta", fechaHasta, DbType.DateTime);
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<VentaMensualSecretariaElDiaDto>(spName, parameters, commandType: CommandType.StoredProcedure); }
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<VentaMensualSecretariaElDiaDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120); }
|
||||
catch (Exception ex) { _logger.LogError(ex, "Error SP {SPName}", spName); return Enumerable.Empty<VentaMensualSecretariaElDiaDto>(); }
|
||||
}
|
||||
|
||||
@@ -205,7 +205,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
var parameters = new DynamicParameters();
|
||||
parameters.Add("@fechaDesde", fechaDesde, DbType.DateTime);
|
||||
parameters.Add("@fechaHasta", fechaHasta, DbType.DateTime);
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<VentaMensualSecretariaElPlataDto>(spName, parameters, commandType: CommandType.StoredProcedure); }
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<VentaMensualSecretariaElPlataDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120); }
|
||||
catch (Exception ex) { _logger.LogError(ex, "Error SP {SPName}", spName); return Enumerable.Empty<VentaMensualSecretariaElPlataDto>(); }
|
||||
}
|
||||
|
||||
@@ -215,7 +215,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
var parameters = new DynamicParameters();
|
||||
parameters.Add("@fechaDesde", fechaDesde, DbType.DateTime);
|
||||
parameters.Add("@fechaHasta", fechaHasta, DbType.DateTime);
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<VentaMensualSecretariaTirDevoDto>(spName, parameters, commandType: CommandType.StoredProcedure); }
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<VentaMensualSecretariaTirDevoDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120); }
|
||||
catch (Exception ex) { _logger.LogError(ex, "Error SP {SPName}", spName); return Enumerable.Empty<VentaMensualSecretariaTirDevoDto>(); }
|
||||
}
|
||||
|
||||
@@ -225,7 +225,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
var parameters = new DynamicParameters();
|
||||
parameters.Add("@fecha", fecha, DbType.DateTime);
|
||||
parameters.Add("@idEmpresa", idEmpresa, DbType.Int32);
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<DetalleDistribucionCanillaDto>(spName, parameters, commandType: CommandType.StoredProcedure); }
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<DetalleDistribucionCanillaDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120); }
|
||||
catch (Exception ex) { _logger.LogError(ex, "Error SP {SPName}", spName); return Enumerable.Empty<DetalleDistribucionCanillaDto>(); }
|
||||
}
|
||||
|
||||
@@ -235,7 +235,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
var parameters = new DynamicParameters();
|
||||
parameters.Add("@fecha", fecha, DbType.DateTime);
|
||||
parameters.Add("@idEmpresa", idEmpresa, DbType.Int32);
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<DetalleDistribucionCanillaDto>(spName, parameters, commandType: CommandType.StoredProcedure); }
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<DetalleDistribucionCanillaDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120); }
|
||||
catch (Exception ex) { _logger.LogError(ex, "Error SP {SPName}", spName); return Enumerable.Empty<DetalleDistribucionCanillaDto>(); }
|
||||
}
|
||||
|
||||
@@ -245,7 +245,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
var parameters = new DynamicParameters();
|
||||
parameters.Add("@fecha", fecha, DbType.DateTime);
|
||||
parameters.Add("@idEmpresa", idEmpresa, DbType.Int32);
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<DetalleDistribucionCanillaAllDto>(spName, parameters, commandType: CommandType.StoredProcedure); }
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<DetalleDistribucionCanillaAllDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120); }
|
||||
catch (Exception ex) { _logger.LogError(ex, "Error SP {SPName}", spName); return Enumerable.Empty<DetalleDistribucionCanillaAllDto>(); }
|
||||
}
|
||||
|
||||
@@ -255,7 +255,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
var parameters = new DynamicParameters();
|
||||
parameters.Add("@fecha", fechaLiquidacion, DbType.DateTime);
|
||||
parameters.Add("@idEmpresa", idEmpresa, DbType.Int32);
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<DetalleDistribucionCanillaDto>(spName, parameters, commandType: CommandType.StoredProcedure); }
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<DetalleDistribucionCanillaDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120); }
|
||||
catch (Exception ex) { _logger.LogError(ex, "Error SP {SPName}", spName); return Enumerable.Empty<DetalleDistribucionCanillaDto>(); }
|
||||
}
|
||||
|
||||
@@ -265,7 +265,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
var parameters = new DynamicParameters();
|
||||
parameters.Add("@fecha", fechaLiquidacion, DbType.DateTime);
|
||||
parameters.Add("@idEmpresa", idEmpresa, DbType.Int32);
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<DetalleDistribucionCanillaDto>(spName, parameters, commandType: CommandType.StoredProcedure); }
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<DetalleDistribucionCanillaDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120); }
|
||||
catch (Exception ex) { _logger.LogError(ex, "Error SP {SPName}", spName); return Enumerable.Empty<DetalleDistribucionCanillaDto>(); }
|
||||
}
|
||||
|
||||
@@ -275,7 +275,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
var parameters = new DynamicParameters();
|
||||
parameters.Add("@Fecha", fecha, DbType.DateTime);
|
||||
parameters.Add("@IdEmpresa", idEmpresa, DbType.Int32);
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<ObtenerCtrlDevolucionesDto>(spName, parameters, commandType: CommandType.StoredProcedure); }
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<ObtenerCtrlDevolucionesDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120); }
|
||||
catch (Exception ex) { _logger.LogError(ex, "Error SP {SPName}", spName); return Enumerable.Empty<ObtenerCtrlDevolucionesDto>(); }
|
||||
}
|
||||
|
||||
@@ -285,7 +285,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
var parameters = new DynamicParameters();
|
||||
parameters.Add("@fecha", fecha, DbType.DateTime);
|
||||
parameters.Add("@idEmpresa", idEmpresa, DbType.Int32);
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<ControlDevolucionesReporteDto>(spName, parameters, commandType: CommandType.StoredProcedure); }
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<ControlDevolucionesReporteDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120); }
|
||||
catch (Exception ex) { _logger.LogError(ex, "Error SP {SPName}", spName); return Enumerable.Empty<ControlDevolucionesReporteDto>(); }
|
||||
}
|
||||
|
||||
@@ -297,7 +297,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
parameters.Add("@FechaInicio", fechaDesde, DbType.Date);
|
||||
parameters.Add("@FechaFin", fechaHasta, DbType.Date);
|
||||
parameters.Add("@IdPlanta", idPlanta, DbType.Int32);
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<TiradasPublicacionesSeccionesDto>(spName, parameters, commandType: CommandType.StoredProcedure); }
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<TiradasPublicacionesSeccionesDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120); }
|
||||
catch (Exception ex) { _logger.LogError(ex, "Error SP {SPName}", spName); return Enumerable.Empty<TiradasPublicacionesSeccionesDto>(); }
|
||||
}
|
||||
|
||||
@@ -308,7 +308,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
parameters.Add("@IdPublicacion", idPublicacion, DbType.Int32);
|
||||
parameters.Add("@FechaInicio", fechaDesde, DbType.Date);
|
||||
parameters.Add("@FechaFin", fechaHasta, DbType.Date);
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<TiradasPublicacionesSeccionesDto>(spName, parameters, commandType: CommandType.StoredProcedure); }
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<TiradasPublicacionesSeccionesDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120); }
|
||||
catch (Exception ex) { _logger.LogError(ex, "Error SP {SPName}", spName); return Enumerable.Empty<TiradasPublicacionesSeccionesDto>(); }
|
||||
}
|
||||
|
||||
@@ -319,7 +319,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
parameters.Add("@FechaInicio", fechaDesde, DbType.DateTime2);
|
||||
parameters.Add("@FechaFin", fechaHasta, DbType.DateTime2);
|
||||
parameters.Add("@idPlanta", idPlanta, DbType.Int32);
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<ConsumoBobinasSeccionDto>(spName, parameters, commandType: CommandType.StoredProcedure); }
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<ConsumoBobinasSeccionDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120); }
|
||||
catch (Exception ex) { _logger.LogError(ex, "Error SP {SPName}", spName); return Enumerable.Empty<ConsumoBobinasSeccionDto>(); }
|
||||
}
|
||||
|
||||
@@ -329,7 +329,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
var parameters = new DynamicParameters();
|
||||
parameters.Add("@FechaInicio", fechaDesde, DbType.DateTime2);
|
||||
parameters.Add("@FechaFin", fechaHasta, DbType.DateTime2);
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<ConsumoBobinasSeccionDto>(spName, parameters, commandType: CommandType.StoredProcedure); }
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<ConsumoBobinasSeccionDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120); }
|
||||
catch (Exception ex) { _logger.LogError(ex, "Error SP {SPName}", spName); return Enumerable.Empty<ConsumoBobinasSeccionDto>(); }
|
||||
}
|
||||
|
||||
@@ -339,7 +339,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
var parameters = new DynamicParameters();
|
||||
parameters.Add("@FechaInicio", fechaDesde, DbType.DateTime2);
|
||||
parameters.Add("@FechaFin", fechaHasta, DbType.DateTime2);
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<ConsumoBobinasPublicacionDto>(spName, parameters, commandType: CommandType.StoredProcedure); }
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<ConsumoBobinasPublicacionDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120); }
|
||||
catch (Exception ex) { _logger.LogError(ex, "Error SP {SPName}", spName); return Enumerable.Empty<ConsumoBobinasPublicacionDto>(); }
|
||||
}
|
||||
|
||||
@@ -352,7 +352,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
parameters.Add("@FechaInicioMesB", fechaInicioMesB, DbType.Date);
|
||||
parameters.Add("@FechaFinMesB", fechaFinMesB, DbType.Date);
|
||||
parameters.Add("@IdPlanta", idPlanta, DbType.Int32);
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<ComparativaConsumoBobinasDto>(spName, parameters, commandType: CommandType.StoredProcedure); }
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<ComparativaConsumoBobinasDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120); }
|
||||
catch (Exception ex) { _logger.LogError(ex, "Error SP {SPName}", spName); return Enumerable.Empty<ComparativaConsumoBobinasDto>(); }
|
||||
}
|
||||
|
||||
@@ -364,7 +364,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
parameters.Add("@FechaFinMesA", fechaFinMesA, DbType.Date);
|
||||
parameters.Add("@FechaInicioMesB", fechaInicioMesB, DbType.Date);
|
||||
parameters.Add("@FechaFinMesB", fechaFinMesB, DbType.Date);
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<ComparativaConsumoBobinasDto>(spName, parameters, commandType: CommandType.StoredProcedure); }
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<ComparativaConsumoBobinasDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120); }
|
||||
catch (Exception ex) { _logger.LogError(ex, "Error SP {SPName}", spName); return Enumerable.Empty<ComparativaConsumoBobinasDto>(); }
|
||||
}
|
||||
|
||||
@@ -377,7 +377,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
parameters.Add("@idEmpresa", idEmpresa, DbType.Int32);
|
||||
parameters.Add("@fechaDesde", fechaDesde, DbType.DateTime);
|
||||
parameters.Add("@fechaHasta", fechaHasta, DbType.DateTime);
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<BalanceCuentaDistDto>(spName, parameters, commandType: CommandType.StoredProcedure); }
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<BalanceCuentaDistDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120); }
|
||||
catch (Exception ex) { _logger.LogError(ex, "Error SP {SPName}", spName); return Enumerable.Empty<BalanceCuentaDistDto>(); }
|
||||
}
|
||||
|
||||
@@ -390,7 +390,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
parameters.Add("@idEmpresa", idEmpresa, DbType.Int32);
|
||||
parameters.Add("@fechaDesde", fechaDesde, DbType.DateTime);
|
||||
parameters.Add("@fechaHasta", fechaHasta, DbType.DateTime);
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<BalanceCuentaDebCredDto>(spName, parameters, commandType: CommandType.StoredProcedure); }
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<BalanceCuentaDebCredDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120); }
|
||||
catch (Exception ex) { _logger.LogError(ex, "Error SP {SPName}", spName); return Enumerable.Empty<BalanceCuentaDebCredDto>(); }
|
||||
}
|
||||
|
||||
@@ -403,7 +403,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
parameters.Add("@idEmpresa", idEmpresa, DbType.Int32);
|
||||
parameters.Add("@fechaDesde", fechaDesde, DbType.DateTime);
|
||||
parameters.Add("@fechaHasta", fechaHasta, DbType.DateTime);
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<BalanceCuentaPagosDto>(spName, parameters, commandType: CommandType.StoredProcedure); }
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<BalanceCuentaPagosDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120); }
|
||||
catch (Exception ex) { _logger.LogError(ex, "Error SP {SPName}", spName); return Enumerable.Empty<BalanceCuentaPagosDto>(); }
|
||||
}
|
||||
|
||||
@@ -415,7 +415,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
parameters.Add("@Destino", destino, DbType.String);
|
||||
parameters.Add("@idDestino", idDestino, DbType.Int32);
|
||||
parameters.Add("@idEmpresa", idEmpresa, DbType.Int32);
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<SaldoDto>(spName, parameters, commandType: CommandType.StoredProcedure); }
|
||||
try { using var connection = _dbConnectionFactory.CreateConnection(); return await connection.QueryAsync<SaldoDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120); }
|
||||
catch (Exception ex) { _logger.LogError(ex, "Error SP {SPName}", spName); return Enumerable.Empty<SaldoDto>(); }
|
||||
}
|
||||
|
||||
@@ -430,7 +430,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
try
|
||||
{
|
||||
using var connection = _dbConnectionFactory.CreateConnection(); // <--- CORREGIDO AQUÍ
|
||||
return await connection.QueryAsync<ListadoDistribucionDistSimpleDto>(spName, parameters, commandType: CommandType.StoredProcedure);
|
||||
return await connection.QueryAsync<ListadoDistribucionDistSimpleDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -450,7 +450,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
try
|
||||
{
|
||||
using var connection = _dbConnectionFactory.CreateConnection(); // <--- CORREGIDO AQUÍ
|
||||
return await connection.QueryAsync<ListadoDistribucionDistPromedioDiaDto>(spName, parameters, commandType: CommandType.StoredProcedure);
|
||||
return await connection.QueryAsync<ListadoDistribucionDistPromedioDiaDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -489,7 +489,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
try
|
||||
{
|
||||
using var connection = _dbConnectionFactory.CreateConnection();
|
||||
return await connection.QueryAsync<LiquidacionCanillaDetalleDto>(spName, parameters, commandType: CommandType.StoredProcedure);
|
||||
return await connection.QueryAsync<LiquidacionCanillaDetalleDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -507,7 +507,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
try
|
||||
{
|
||||
using var connection = _dbConnectionFactory.CreateConnection();
|
||||
return await connection.QueryAsync<LiquidacionCanillaGananciaDto>(spName, parameters, commandType: CommandType.StoredProcedure);
|
||||
return await connection.QueryAsync<LiquidacionCanillaGananciaDto>(spName, parameters, commandType: CommandType.StoredProcedure, commandTimeout: 120);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -528,7 +528,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
return await connection.QueryAsync<ListadoDistCanMensualDiariosDto>(
|
||||
"dbo.SP_DistCanillasAccConImporteEntreFechasDiarios",
|
||||
parameters,
|
||||
commandType: CommandType.StoredProcedure
|
||||
commandType: CommandType.StoredProcedure, commandTimeout: 120
|
||||
);
|
||||
}
|
||||
|
||||
@@ -544,7 +544,7 @@ namespace GestionIntegral.Api.Data.Repositories.Reportes
|
||||
return await connection.QueryAsync<ListadoDistCanMensualPubDto>(
|
||||
"dbo.SP_DistCanillasAccConImporteEntreFechas",
|
||||
parameters,
|
||||
commandType: CommandType.StoredProcedure
|
||||
commandType: CommandType.StoredProcedure, commandTimeout: 120
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user