< Summary

Information
Class: FAU.Logica.DTOs.AscensoRequest
Assembly: FAU.Logica
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Logica/DTOs/PersonalDetalleDto.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 119
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_NuevoGradoId()100%11100%
get_FechaAscenso()100%11100%
get_Observacion()100%11100%
get_UnidadId()100%11100%
get_SubUnidadId()100%11100%
get_ProgramaId()100%11100%
get_Puesto()100%11100%
get_Plaza()100%11100%

File(s)

/home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Logica/DTOs/PersonalDetalleDto.cs

#LineLine coverage
 1namespace FAU.Logica.DTOs;
 2
 3/// <summary>
 4/// DTO detallado para consulta individual de personal
 5/// </summary>
 6public 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
 14public 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    public CuentaBancariaDto? CuentaBancaria { get; set; }
 30}
 31
 32public class CuentaBancariaDto
 33{
 34    public long Id { get; set; }
 35    public long BancoId { get; set; }
 36    public string Banco { get; set; } = string.Empty;
 37    public string? NumeroCuenta { get; set; }
 38}
 39
 40public class DatosLaboralesDto
 41{
 42    public long RelacionLaboralId { get; set; }
 43    public string Estado { get; set; } = string.Empty;
 44    public DateTime FechaInicio { get; set; }
 45    public DateTime? FechaFin { get; set; }
 46
 47    public long RegimenId { get; set; }
 48    public string Regimen { get; set; } = string.Empty;
 49    public string Ley { get; set; } = string.Empty;
 50
 51    public long EscalafonId { get; set; }
 52    public string Escalafon { get; set; } = string.Empty;
 53
 54    public long GradoId { get; set; }
 55    public string Grado { get; set; } = string.Empty;
 56
 57    public long SituacionId { get; set; }
 58    public string Situacion { get; set; } = string.Empty;
 59
 60    public long ProgramaId { get; set; }
 61    public string Programa { get; set; } = string.Empty;
 62
 63    public long UnidadId { get; set; }
 64    public string Unidad { get; set; } = string.Empty;
 65
 66    public long? SubUnidadId { get; set; }
 67    public string? SubUnidad { get; set; }
 68
 69    public long? MotivoBajaId { get; set; }
 70    public string? MotivoBaja { get; set; }
 71
 72    public decimal? RiesgoVuelo { get; set; }
 73    public short CategoriaViatico { get; set; }
 74    public bool UsaFonasa { get; set; }
 75    public short AniosServicioAnterior { get; set; }
 76    public string? PrimaTecnica { get; set; }
 77    public string? PrimaSolidariaFamiliar { get; set; }
 78    public int? AniosInactivos { get; set; }
 79    public string? Observaciones { get; set; }
 80}
 81
 82public class HistorialMovimientoDto
 83{
 84    public long Id { get; set; }
 85    public string TipoMovimiento { get; set; } = string.Empty;
 86    public bool EsAlta { get; set; }
 87    public DateTime FechaMovimiento { get; set; }
 88    public string? Observaciones { get; set; }
 89    public string RegistradoPor { get; set; } = string.Empty;
 90    public DateTime FechaRegistro { get; set; }
 91}
 92
 93public class AscensoRequest
 94{
 95    [System.ComponentModel.DataAnnotations.Required(ErrorMessage = "El nuevo grado es requerido")]
 1496    public long NuevoGradoId { get; set; }
 97
 98    [System.ComponentModel.DataAnnotations.Required(ErrorMessage = "La fecha de ascenso es requerida")]
 1399    public DateTime FechaAscenso { get; set; }
 100
 101    [System.ComponentModel.DataAnnotations.Required(ErrorMessage = "La razón del ascenso es requerida")]
 102    [System.ComponentModel.DataAnnotations.MaxLength(500)]
 5103    public string? Observacion { get; set; }
 104
 105    [System.ComponentModel.DataAnnotations.Required(ErrorMessage = "La unidad es requerida")]
 3106    public long? UnidadId { get; set; }
 107
 1108    public long? SubUnidadId { get; set; }
 109
 110    [System.ComponentModel.DataAnnotations.Required(ErrorMessage = "El programa es requerido")]
 8111    public long ProgramaId { get; set; }
 112
 113    [System.ComponentModel.DataAnnotations.MaxLength(100)]
 2114    public string? Puesto { get; set; }
 115
 116    [System.ComponentModel.DataAnnotations.MaxLength(50)]
 2117    public string? Plaza { get; set; }
 118}
 119