| | | 1 | | namespace FAU.Logica.DTOs; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// DTO detallado para consulta individual de personal |
| | | 5 | | /// </summary> |
| | | 6 | | public class PersonalDetalleDto |
| | | 7 | | { |
| | | 8 | | public long Id { get; set; } |
| | | 9 | | public DatosPersonalesDto DatosPersonales { get; set; } = new(); |
| | | 10 | | public DatosLaboralesDto DatosLaborales { get; set; } = new(); |
| | | 11 | | public List<HistorialMovimientoDto> Historial { get; set; } = new(); |
| | | 12 | | } |
| | | 13 | | |
| | | 14 | | public class DatosPersonalesDto |
| | | 15 | | { |
| | | 16 | | public long PersonaId { get; set; } |
| | | 17 | | public string Ci { get; set; } = string.Empty; |
| | | 18 | | public string PrimerNombre { get; set; } = string.Empty; |
| | | 19 | | public string? SegundoNombre { get; set; } |
| | | 20 | | public string PrimerApellido { get; set; } = string.Empty; |
| | | 21 | | public string? SegundoApellido { get; set; } |
| | | 22 | | public DateTime? FechaNacimiento { get; set; } |
| | | 23 | | public string? Email { get; set; } |
| | | 24 | | public string? Telefono { get; set; } |
| | | 25 | | public string? Direccion { get; set; } |
| | | 26 | | public string? CodigoPostal { get; set; } |
| | | 27 | | public string? Departamento { get; set; } |
| | | 28 | | public string? Localidad { get; set; } |
| | | 29 | | } |
| | | 30 | | |
| | | 31 | | public class DatosLaboralesDto |
| | | 32 | | { |
| | 2 | 33 | | public long RelacionLaboralId { get; set; } |
| | 11 | 34 | | public string Estado { get; set; } = string.Empty; |
| | 2 | 35 | | public DateTime FechaInicio { get; set; } |
| | 2 | 36 | | public DateTime? FechaFin { get; set; } |
| | | 37 | | |
| | 3 | 38 | | public long RegimenId { get; set; } |
| | 8 | 39 | | public string Regimen { get; set; } = string.Empty; |
| | 8 | 40 | | public string Ley { get; set; } = string.Empty; |
| | | 41 | | |
| | 2 | 42 | | public long EscalafonId { get; set; } |
| | 8 | 43 | | public string Escalafon { get; set; } = string.Empty; |
| | | 44 | | |
| | 2 | 45 | | public long GradoId { get; set; } |
| | 8 | 46 | | public string Grado { get; set; } = string.Empty; |
| | 8 | 47 | | public string Cargo { get; set; } = string.Empty; |
| | | 48 | | |
| | 2 | 49 | | public long SituacionId { get; set; } |
| | 8 | 50 | | public string Situacion { get; set; } = string.Empty; |
| | | 51 | | |
| | 2 | 52 | | public long ProgramaId { get; set; } |
| | 8 | 53 | | public string Programa { get; set; } = string.Empty; |
| | | 54 | | |
| | 2 | 55 | | public long UnidadId { get; set; } |
| | 8 | 56 | | public string Unidad { get; set; } = string.Empty; |
| | | 57 | | |
| | 2 | 58 | | public long? SubUnidadId { get; set; } |
| | 2 | 59 | | public string? SubUnidad { get; set; } |
| | | 60 | | |
| | 2 | 61 | | public long? MotivoBajaId { get; set; } |
| | 2 | 62 | | public string? MotivoBaja { get; set; } |
| | | 63 | | |
| | 2 | 64 | | public decimal? RiesgoVuelo { get; set; } |
| | 2 | 65 | | public string? PrimaTecnica { get; set; } |
| | 2 | 66 | | public string? PrimaSolidariaFamiliar { get; set; } |
| | 2 | 67 | | public int? AniosInactivos { get; set; } |
| | 2 | 68 | | public string? Observaciones { get; set; } |
| | | 69 | | } |
| | | 70 | | |
| | | 71 | | public class HistorialMovimientoDto |
| | | 72 | | { |
| | | 73 | | public long Id { get; set; } |
| | | 74 | | public string TipoMovimiento { get; set; } = string.Empty; |
| | | 75 | | public bool EsAlta { get; set; } |
| | | 76 | | public DateTime FechaMovimiento { get; set; } |
| | | 77 | | public string? Observaciones { get; set; } |
| | | 78 | | public string RegistradoPor { get; set; } = string.Empty; |
| | | 79 | | public DateTime FechaRegistro { get; set; } |
| | | 80 | | } |
| | | 81 | | |
| | | 82 | | public class AscensoRequest |
| | | 83 | | { |
| | | 84 | | [System.ComponentModel.DataAnnotations.Required(ErrorMessage = "El nuevo grado es requerido")] |
| | | 85 | | public long NuevoGradoId { get; set; } |
| | | 86 | | |
| | | 87 | | [System.ComponentModel.DataAnnotations.Required(ErrorMessage = "La fecha de ascenso es requerida")] |
| | | 88 | | public DateTime FechaAscenso { get; set; } |
| | | 89 | | |
| | | 90 | | // Raz�n del ascenso que se guardar� en auditor�a |
| | | 91 | | [System.ComponentModel.DataAnnotations.Required(ErrorMessage = "La raz�n del ascenso es requerida")] |
| | | 92 | | [System.ComponentModel.DataAnnotations.MaxLength(500)] |
| | | 93 | | public string? Observacion { get; set; } |
| | | 94 | | |
| | | 95 | | // Unidad a la que se asigna tras el ascenso |
| | | 96 | | [System.ComponentModel.DataAnnotations.Required(ErrorMessage = "La unidad es requerida")] |
| | | 97 | | public long? UnidadId { get; set; } |
| | | 98 | | |
| | | 99 | | // Ley/r�gimen asociado al ascenso (obligatoria) |
| | | 100 | | [System.ComponentModel.DataAnnotations.Required(ErrorMessage = "La ley es requerida")] |
| | | 101 | | [System.ComponentModel.DataAnnotations.MaxLength(50)] |
| | | 102 | | public string Ley { get; set; } = string.Empty; |
| | | 103 | | } |
| | | 104 | | |