Refinamiento de permisos y ajustes en controles. Añade gestión sobre saldos y visualización. Entre otros..

This commit is contained in:
2025-06-06 18:33:09 -03:00
parent 8fb94f8cef
commit 35e24ab7d2
104 changed files with 5917 additions and 1205 deletions

View File

@@ -0,0 +1,19 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace GestionIntegral.Api.Dtos.Distribucion
{
public class CreateNovedadCanillaDto
{
// IdCanilla se tomará de la ruta o de un campo oculto si el POST es a un endpoint genérico.
// Por ahora, lo incluimos si el endpoint es /api/novedadescanilla
[Required]
public int IdCanilla { get; set; }
[Required]
public DateTime Fecha { get; set; }
[MaxLength(250)]
public string? Detalle { get; set; }
}
}

View File

@@ -0,0 +1,8 @@
namespace GestionIntegral.Api.Dtos.Distribucion
{
public class DistribuidorDropdownDto
{
public int IdDistribuidor { get; set; }
public string Nombre { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,8 @@
namespace GestionIntegral.Api.Dtos.Distribucion
{
public class DistribuidorLookupDto
{
public int IdDistribuidor { get; set; }
public string Nombre { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,8 @@
namespace GestionIntegral.Api.Dtos.Empresas
{
public class EmpresaDropdownDto
{
public int IdEmpresa { get; set; }
public string Nombre { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,8 @@
namespace GestionIntegral.Api.Dtos.Empresas
{
public class EmpresaLookupDto
{
public int IdEmpresa { get; set; }
public string Nombre { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,13 @@
using System;
namespace GestionIntegral.Api.Dtos.Distribucion
{
public class NovedadCanillaDto
{
public int IdNovedad { get; set; }
public int IdCanilla { get; set; }
public string NombreCanilla { get; set; } = string.Empty; // Para mostrar en UI
public DateTime Fecha { get; set; }
public string? Detalle { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
using System.ComponentModel.DataAnnotations;
namespace GestionIntegral.Api.Dtos.Distribucion
{
public class UpdateNovedadCanillaDto
{
// No se permite cambiar IdCanilla ni Fecha
[MaxLength(250)]
public string? Detalle { get; set; }
}
}