| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | |
| | | 3 | | namespace FAU.Logica.DTOs; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// Request para actualizar datos de personal |
| | | 7 | | /// Incluye campo estado para activar/desactivar |
| | | 8 | | /// </summary> |
| | | 9 | | public class UpdatePersonalRequest |
| | | 10 | | { |
| | | 11 | | // Campo para activar/desactivar |
| | | 12 | | [MaxLength(20)] |
| | 3 | 13 | | public string? Estado { get; set; } // "activo", "inactivo" |
| | | 14 | | |
| | | 15 | | // Datos Personales editables |
| | | 16 | | [MaxLength(100)] |
| | 5 | 17 | | public string? PrimerNombre { get; set; } |
| | | 18 | | |
| | | 19 | | [MaxLength(100)] |
| | 2 | 20 | | public string? SegundoNombre { get; set; } |
| | | 21 | | |
| | | 22 | | [MaxLength(100)] |
| | 4 | 23 | | public string? PrimerApellido { get; set; } |
| | | 24 | | |
| | | 25 | | [MaxLength(100)] |
| | 2 | 26 | | public string? SegundoApellido { get; set; } |
| | | 27 | | |
| | 2 | 28 | | public DateTime? FechaNacimiento { get; set; } |
| | | 29 | | |
| | | 30 | | [EmailAddress(ErrorMessage = "El email no es válido")] |
| | | 31 | | [MaxLength(150)] |
| | 4 | 32 | | public string? Email { get; set; } |
| | | 33 | | |
| | | 34 | | [MaxLength(30)] |
| | 2 | 35 | | public string? Telefono { get; set; } |
| | | 36 | | |
| | | 37 | | [MaxLength(200)] |
| | 2 | 38 | | public string? Direccion { get; set; } |
| | | 39 | | |
| | | 40 | | [MaxLength(10)] |
| | 2 | 41 | | public string? CodigoPostal { get; set; } |
| | | 42 | | |
| | | 43 | | [MaxLength(100)] |
| | 2 | 44 | | public string? Departamento { get; set; } |
| | | 45 | | |
| | | 46 | | [MaxLength(100)] |
| | 2 | 47 | | public string? Localidad { get; set; } |
| | | 48 | | |
| | | 49 | | // Datos Laborales |
| | 5 | 50 | | public long? RegimenId { get; set; } |
| | 5 | 51 | | public long? EscalafonId { get; set; } |
| | 8 | 52 | | public long? GradoId { get; set; } |
| | 5 | 53 | | public long? SituacionId { get; set; } |
| | 5 | 54 | | public long? ProgramaId { get; set; } |
| | 5 | 55 | | public long? UnidadId { get; set; } |
| | 5 | 56 | | public long? SubUnidadId { get; set; } |
| | | 57 | | |
| | | 58 | | [MaxLength(500)] |
| | 2 | 59 | | public string? Observaciones { get; set; } |
| | | 60 | | |
| | | 61 | | // Compensaciones |
| | 4 | 62 | | public decimal? RiesgoVuelo { get; set; } |
| | | 63 | | |
| | | 64 | | [MaxLength(10)] |
| | 4 | 65 | | public string? PrimaTecnica { get; set; } |
| | | 66 | | |
| | | 67 | | [MaxLength(30)] |
| | 4 | 68 | | public string? PrimaSolidariaFamiliar { get; set; } |
| | | 69 | | |
| | 4 | 70 | | public int? AniosInactivos { get; set; } |
| | | 71 | | } |