Refinamiento de permisos y ajustes en controles. Añade gestión sobre saldos y visualización. Entre otros..
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace GestionIntegral.Api.Dtos.Distribucion
|
||||
{
|
||||
public class DistribuidorDropdownDto
|
||||
{
|
||||
public int IdDistribuidor { get; set; }
|
||||
public string Nombre { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace GestionIntegral.Api.Dtos.Distribucion
|
||||
{
|
||||
public class DistribuidorLookupDto
|
||||
{
|
||||
public int IdDistribuidor { get; set; }
|
||||
public string Nombre { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace GestionIntegral.Api.Dtos.Empresas
|
||||
{
|
||||
public class EmpresaDropdownDto
|
||||
{
|
||||
public int IdEmpresa { get; set; }
|
||||
public string Nombre { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace GestionIntegral.Api.Dtos.Empresas
|
||||
{
|
||||
public class EmpresaLookupDto
|
||||
{
|
||||
public int IdEmpresa { get; set; }
|
||||
public string Nombre { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user