| | | 1 | | namespace FAU.Logica.DTOs; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// DTO simplificado para listado de personal |
| | | 5 | | /// </summary> |
| | | 6 | | public class PersonalListDto |
| | | 7 | | { |
| | 0 | 8 | | public long Id { get; set; } |
| | 0 | 9 | | public string Ci { get; set; } = string.Empty; |
| | | 10 | | |
| | | 11 | | // Nombres completos |
| | 0 | 12 | | public string PrimerNombre { get; set; } = string.Empty; |
| | 0 | 13 | | public string? SegundoNombre { get; set; } |
| | 0 | 14 | | public string PrimerApellido { get; set; } = string.Empty; |
| | 0 | 15 | | public string? SegundoApellido { get; set; } |
| | | 16 | | |
| | | 17 | | // Campos derivados para facilitar visualización |
| | 0 | 18 | | public string NombreCompleto => $"{PrimerNombre} {SegundoNombre}".Trim(); |
| | 0 | 19 | | public string ApellidoCompleto => $"{PrimerApellido} {SegundoApellido}".Trim(); |
| | | 20 | | |
| | 0 | 21 | | public string Cargo { get; set; } = string.Empty; |
| | 0 | 22 | | public string Grado { get; set; } = string.Empty; |
| | 0 | 23 | | public string Ley { get; set; } = string.Empty; |
| | 0 | 24 | | public string Estado { get; set; } = string.Empty; |
| | 0 | 25 | | public DateTime FechaIngreso { get; set; } |
| | | 26 | | } |
| | | 27 | | |