Continuación del módulo de reportes. -Backend

This commit is contained in:
2025-05-27 18:17:56 -03:00
parent 298bc0d094
commit cdd4d3e0f7
31 changed files with 1852 additions and 44 deletions

View File

@@ -0,0 +1,7 @@
public class BalanceCuentaDebCredDto // Para SP_BalanceCuentDistDebCred y SP_BalanceCuentDistDebCredEmpresa
{
public DateTime Fecha { get; set; }
public string? Referencia { get; set; }
public decimal Debe { get; set; }
public decimal Haber { get; set; }
}

View File

@@ -0,0 +1,11 @@
public class BalanceCuentaDistDto // Para SP_BalanceCuentaDistEntradaSalida y SP_BalanceCuentaDistEntradaSalidaPorEmpresa
{
public DateTime Fecha { get; set; }
public string Publicacion { get; set; } = string.Empty;
public string Distribuidor { get; set; } = string.Empty;
public int Cantidad { get; set; }
public string Remito { get; set; } = string.Empty; // En SP es int, pero en RDLC puede ser string
public string? Observacion { get; set; }
public decimal Debe { get; set; }
public decimal Haber { get; set; }
}

View File

@@ -0,0 +1,9 @@
public class BalanceCuentaPagosDto // Para SP_BalanceCuentDistPagos y SP_BalanceCuentDistPagosEmpresa
{
public DateTime Fecha { get; set; }
public int Recibo { get; set; }
public string Tipo { get; set; } = string.Empty;
public decimal Debe { get; set; }
public decimal Haber { get; set; }
public string? Detalle { get; set; }
}

View File

@@ -0,0 +1,13 @@
namespace GestionIntegral.Api.Dtos.Reportes
{
public class ComparativaConsumoBobinasDto
{
public string TipoBobina { get; set; } = string.Empty;
public int BobinasUtilizadasMesA { get; set; }
public int BobinasUtilizadasMesB { get; set; }
public int DiferenciaBobinasUtilizadas { get; set; }
public int KilosUtilizadosMesA { get; set; }
public int KilosUtilizadosMesB { get; set; }
public int DiferenciaKilosUtilizados { get; set; }
}
}

View File

@@ -0,0 +1,10 @@
namespace GestionIntegral.Api.Dtos.Reportes
{
public class ConsumoBobinasPublicacionDto
{
public string NombrePlanta { get; set; } = string.Empty;
public string NombrePublicacion { get; set; } = string.Empty;
public int TotalKilos { get; set; }
public int CantidadBobinas { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
namespace GestionIntegral.Api.Dtos.Reportes
{
public class ConsumoBobinasSeccionDto
{
public string NombrePublicacion { get; set; } = string.Empty;
public string NombreSeccion { get; set; } = string.Empty;
public string NombreBobina { get; set; } = string.Empty;
public int CantidadBobinas { get; set; }
public int TotalKilos { get; set; }
}
}

View File

@@ -0,0 +1,14 @@
namespace GestionIntegral.Api.Dtos.Reportes
{
public class ControlDevolucionesReporteDto
{
public int Ingresados { get; set; }
public int Sobrantes { get; set; }
public string Publicacion { get; set; } = string.Empty;
public int Llevados { get; set; }
public int Devueltos { get; set; }
public string Tipo { get; set; } = string.Empty; // "Accionistas" o "Canillitas"
public int TotalNoAccionistas { get; set; }
public int SinCargo {get; set; }
}
}

View File

@@ -0,0 +1,11 @@
namespace GestionIntegral.Api.Dtos.Reportes
{
public class DetalleDistribucionCanillaAllDto
{
public string Publicacion { get; set; } = string.Empty;
public int TotalCantSalida { get; set; }
public int TotalCantEntrada { get; set; }
public decimal TotalRendir { get; set; }
public string TipoVendedor { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,14 @@
namespace GestionIntegral.Api.Dtos.Reportes
{
public class DetalleDistribucionCanillaDto
{
public string Publicacion { get; set; } = string.Empty;
public string Canilla { get; set; } = string.Empty;
public int TotalCantSalida { get; set; }
public int TotalCantEntrada { get; set; }
public decimal TotalRendir { get; set; }
// 'Fecha' si es para SP_DistCanillasEntradaSalidaPubliFechaLiq
// y SP_DistCanillasAccEntradaSalidaPubliFechaLiq
public DateTime? Fecha { get; set; } // Hacemos nullable para adaptarlo
}
}

View File

@@ -0,0 +1,12 @@
namespace GestionIntegral.Api.Dtos.Reportes
{
public class ListadoDistribucionCanillasImporteDto
{
public string Fecha { get; set; } = string.Empty;
public int Llevados { get; set; }
public int Devueltos { get; set; }
public int Vendidos { get; set; }
public decimal TotalRendirPublicacion { get; set; }
public decimal TotalRendirGeneral { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
namespace GestionIntegral.Api.Dtos.Reportes
{
public class ListadoDistribucionCanillasPromedioDiaDto
{
public string Dia { get; set; } = string.Empty; // Nombre del día
public int Cant { get; set; } // Cantidad de días con ese nombre en el mes
public int Llevados { get; set; }
public int Devueltos { get; set; }
public int Promedio_Llevados { get; set; }
public int Promedio_Devueltos { get; set; }
public int Promedio_Ventas { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
namespace GestionIntegral.Api.Dtos.Reportes
{
public class ListadoDistribucionCanillasSimpleDto
{
public int Dia { get; set; } // Día del mes
public int Llevados { get; set; }
public int Devueltos { get; set; }
}
}

View File

@@ -0,0 +1,14 @@
namespace GestionIntegral.Api.Dtos.Reportes
{
public class ListadoDistribucionGeneralPromedioDiaDto
{
public string Dia { get; set; } = string.Empty;
public int CantidadDias { get; set; }
public int PromedioTirada { get; set; }
public int PromedioSinCargo { get; set; }
public int PromedioPerdidos { get; set; }
public int PromedioLlevados { get; set; }
public int PromedioDevueltos { get; set; }
public int PromedioVendidos { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
using System;
namespace GestionIntegral.Api.Dtos.Reportes
{
public class ListadoDistribucionGeneralResumenDto
{
public DateTime Fecha { get; set; }
public int CantidadTirada { get; set; }
public int SinCargo { get; set; }
public int Perdidos { get; set; }
public int Llevados { get; set; }
public int Devueltos { get; set; }
public int Vendidos { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
using System;
namespace GestionIntegral.Api.Dtos.Reportes
{
public class MovimientoBobinaEstadoDetalleDto
{
public string TipoBobina { get; set; } = string.Empty;
public string NumeroRemito { get; set; } = string.Empty;
public DateTime FechaMovimiento { get; set; }
public int Cantidad { get; set; }
public string TipoMovimiento { get; set; } = string.Empty; // "Ingreso", "Utilizada", "Dañada"
}
}

View File

@@ -0,0 +1,9 @@
namespace GestionIntegral.Api.Dtos.Reportes
{
public class MovimientoBobinaEstadoTotalDto
{
public string TipoMovimiento { get; set; } = string.Empty; // "Ingresos", "Utilizadas", "Dañadas"
public int TotalBobinas { get; set; }
public int TotalKilos { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
namespace GestionIntegral.Api.Dtos.Reportes
{
public class MovimientoBobinasDto
{
public string TipoBobina { get; set; } = string.Empty;
public int BobinasIniciales { get; set; }
public int KilosIniciales { get; set; }
public int BobinasCompradas { get; set; }
public int KilosComprados { get; set; }
public int BobinasConsumidas { get; set; }
public int KilosConsumidos { get; set; }
public int BobinasDaniadas { get; set; }
public int KilosDaniados { get; set; }
public int BobinasFinales { get; set; }
public int KilosFinales { get; set; }
}
}

View File

@@ -0,0 +1,7 @@
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'
}
}

View File

@@ -0,0 +1,4 @@
public class SaldoDto // Para SP_BalanceCuentSaldos y SP_BalanceCuentSaldosEmpresas
{
public decimal Monto { get; set; }
}

View File

@@ -0,0 +1,12 @@
namespace GestionIntegral.Api.Dtos.Reportes
{
public class TiradasPublicacionesSeccionesDto
{
public string NombreSeccion { get; set; } = string.Empty;
public int TotalPaginasImpresas { get; set; }
public int CantidadTiradas { get; set; }
public int TotalPaginasEjemplares { get; set; }
public int TotalEjemplares { get; set; }
public int PromedioPaginasPorEjemplar { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
namespace GestionIntegral.Api.Dtos.Reportes
{
public class VentaMensualSecretariaElDiaDto
{
public int Dia { get; set; }
public int CantidadCanillas { get; set; }
public int Tirajes { get; set; }
public int Ventas { get; set; }
public int Accionistas { get; set; }
public int TotalCooperativa { get; set; }
public int TotalGeneral { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
namespace GestionIntegral.Api.Dtos.Reportes
{
public class VentaMensualSecretariaElPlataDto
{
public int Dia { get; set; }
public int TiradaCoop { get; set; }
public int DevolucionCoop { get; set; }
public int VentaCoop { get; set; }
public int TiradaCan { get; set; }
public int VentaCan { get; set; }
public int Total { get; set; }
}
}

View File

@@ -0,0 +1,20 @@
namespace GestionIntegral.Api.Dtos.Reportes
{
public class VentaMensualSecretariaTirDevoDto
{
public int Dia { get; set; }
public int TiradaCoop { get; set; }
public int DevolucionCoop { get; set; }
public int VentaCoop { get; set; }
public int VentaCan { get; set; }
public int TiradaPopular { get; set; }
public int DevolucionPopular { get; set; }
public int VentaPopular { get; set; }
public int TiradaClarin { get; set; }
public int DevolucionClarin { get; set; }
public int VentaClarin { get; set; }
public int TiradaNacion { get; set; }
public int DevolucionNacion { get; set; }
public int VentaNacion { get; set; }
}
}