Finalización de Endpoints para la gestión de Reportes. Se continúa con el Frontend.

This commit is contained in:
2025-05-28 16:01:59 -03:00
parent cdd4d3e0f7
commit 2273ebb1e0
17 changed files with 581 additions and 62 deletions

View File

@@ -0,0 +1,11 @@
using System.Collections.Generic;
namespace GestionIntegral.Api.Dtos.Reportes
{
public class ControlDevolucionesDataResponseDto
{
public IEnumerable<ControlDevolucionesReporteDto> DetallesCtrlDevoluciones { get; set; } = new List<ControlDevolucionesReporteDto>();
public IEnumerable<DevueltosOtrosDiasDto> DevolucionesOtrosDias { get; set; } = new List<DevueltosOtrosDiasDto>();
public IEnumerable<ObtenerCtrlDevolucionesDto> RemitosIngresados { get; set; } = new List<ObtenerCtrlDevolucionesDto>();
}
}

View File

@@ -0,0 +1,7 @@
namespace GestionIntegral.Api.Dtos.Reportes
{
public class DevueltosOtrosDiasDto
{
public int Devueltos { get; set; }
}
}

View File

@@ -0,0 +1,10 @@
using System.Collections.Generic;
namespace GestionIntegral.Api.Dtos.Reportes
{
public class ListadoDistribucionCanillasResponseDto
{
public IEnumerable<ListadoDistribucionCanillasSimpleDto> DetalleSimple { get; set; } = new List<ListadoDistribucionCanillasSimpleDto>();
public IEnumerable<ListadoDistribucionCanillasPromedioDiaDto> PromediosPorDia { get; set; } = new List<ListadoDistribucionCanillasPromedioDiaDto>();
}
}

View File

@@ -0,0 +1,10 @@
using System.Collections.Generic;
namespace GestionIntegral.Api.Dtos.Reportes
{
public class ListadoDistribucionGeneralResponseDto
{
public IEnumerable<ListadoDistribucionGeneralResumenDto> Resumen { get; set; } = new List<ListadoDistribucionGeneralResumenDto>();
public IEnumerable<ListadoDistribucionGeneralPromedioDiaDto> PromediosPorDia { get; set; } = new List<ListadoDistribucionGeneralPromedioDiaDto>();
}
}

View File

@@ -0,0 +1,10 @@
using System.Collections.Generic;
namespace GestionIntegral.Api.Dtos.Reportes
{
public class MovimientoBobinasPorEstadoResponseDto
{
public IEnumerable<MovimientoBobinaEstadoDetalleDto> Detalle { get; set; } = new List<MovimientoBobinaEstadoDetalleDto>();
public IEnumerable<MovimientoBobinaEstadoTotalDto> Totales { get; set; } = new List<MovimientoBobinaEstadoTotalDto>();
}
}

View File

@@ -2,6 +2,6 @@ namespace GestionIntegral.Api.Dtos.Reportes
{
public class ObtenerCtrlDevolucionesDto
{
public int Remito { get; set; } // El SP devuelve una columna 'Remito' que en la tabla es 'Entrada'
public int Remito { get; set; }
}
}

View File

@@ -0,0 +1,14 @@
using System.Collections.Generic;
namespace GestionIntegral.Api.Dtos.Reportes
{
public class ReporteCuentasDistribuidorResponseDto
{
public IEnumerable<BalanceCuentaDistDto> EntradasSalidas { get; set; } = new List<BalanceCuentaDistDto>();
public IEnumerable<BalanceCuentaDebCredDto> DebitosCreditos { get; set; } = new List<BalanceCuentaDebCredDto>();
public IEnumerable<BalanceCuentaPagosDto> Pagos { get; set; } = new List<BalanceCuentaPagosDto>();
public IEnumerable<SaldoDto> Saldos { get; set; } = new List<SaldoDto>(); // O podría ser SaldoDto SaldoActual si siempre es uno
public string? NombreDistribuidor { get; set; } // Para el título del reporte
public string? NombreEmpresa { get; set; } // Para el título del reporte
}
}

View File

@@ -0,0 +1,16 @@
using System.Collections.Generic;
namespace GestionIntegral.Api.Dtos.Reportes
{
public class ReporteDistribucionCanillasResponseDto
{
public IEnumerable<DetalleDistribucionCanillaDto> Canillas { get; set; } = new List<DetalleDistribucionCanillaDto>();
public IEnumerable<DetalleDistribucionCanillaDto> CanillasAccionistas { get; set; } = new List<DetalleDistribucionCanillaDto>();
public IEnumerable<DetalleDistribucionCanillaAllDto> CanillasTodos { get; set; } = new List<DetalleDistribucionCanillaAllDto>();
public IEnumerable<DetalleDistribucionCanillaDto> CanillasLiquidadasOtraFecha { get; set; } = new List<DetalleDistribucionCanillaDto>();
public IEnumerable<DetalleDistribucionCanillaDto> CanillasAccionistasLiquidadasOtraFecha { get; set; } = new List<DetalleDistribucionCanillaDto>();
public IEnumerable<ObtenerCtrlDevolucionesDto> ControlDevolucionesRemitos { get; set; } = new List<ObtenerCtrlDevolucionesDto>();
public IEnumerable<ControlDevolucionesReporteDto> ControlDevolucionesDetalle { get; set; } = new List<ControlDevolucionesReporteDto>();
public IEnumerable<DevueltosOtrosDiasDto> ControlDevolucionesOtrosDias { get; set; } = new List<DevueltosOtrosDiasDto>();
}
}