| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | |
| | | 3 | | namespace FAU.Logica.DTOs; |
| | | 4 | | |
| | | 5 | | public class GradoDto |
| | | 6 | | { |
| | | 7 | | public long Id { get; set; } |
| | | 8 | | public string Codigo { get; set; } = string.Empty; |
| | | 9 | | public string Denominacion { get; set; } = string.Empty; |
| | | 10 | | public long? EscalafonId { get; set; } |
| | | 11 | | public short Orden { get; set; } |
| | | 12 | | } |
| | | 13 | | |
| | | 14 | | public class CrearGradoRequest |
| | | 15 | | { |
| | | 16 | | [Required(ErrorMessage = "El código es requerido")] |
| | | 17 | | [MaxLength(30)] |
| | 6 | 18 | | public string Codigo { get; set; } = string.Empty; |
| | | 19 | | |
| | | 20 | | [Required(ErrorMessage = "La denominación es requerida")] |
| | | 21 | | [MaxLength(100)] |
| | 6 | 22 | | public string Denominacion { get; set; } = string.Empty; |
| | | 23 | | |
| | 4 | 24 | | public short Orden { get; set; } |
| | 3 | 25 | | public long? EscalafonId { get; set; } |
| | 2 | 26 | | public bool EsOficial { get; set; } |
| | 2 | 27 | | public bool EsSubalterno { get; set; } |
| | 4 | 28 | | public bool Vigente { get; set; } = true; |
| | | 29 | | } |
| | | 30 | | |
| | | 31 | | public class ActualizarGradoRequest |
| | | 32 | | { |
| | | 33 | | [MaxLength(30)] |
| | | 34 | | public string? Codigo { get; set; } |
| | | 35 | | |
| | | 36 | | [MaxLength(100)] |
| | | 37 | | public string? Denominacion { get; set; } |
| | | 38 | | |
| | | 39 | | public short? Orden { get; set; } |
| | | 40 | | public long? EscalafonId { get; set; } |
| | | 41 | | public bool? EsOficial { get; set; } |
| | | 42 | | public bool? EsSubalterno { get; set; } |
| | | 43 | | public bool? Vigente { get; set; } |
| | | 44 | | } |