< Summary

Information
Class: FAU.Logica.DTOs.DatosLaboralesDto
Assembly: FAU.Logica
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Logica/DTOs/PersonalDetalleDto.cs
Line coverage
100%
Covered lines: 29
Uncovered lines: 0
Coverable lines: 29
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_RelacionLaboralId()100%11100%
get_Estado()100%11100%
get_FechaInicio()100%11100%
get_FechaFin()100%11100%
get_RegimenId()100%11100%
get_Regimen()100%11100%
get_Ley()100%11100%
get_EscalafonId()100%11100%
get_Escalafon()100%11100%
get_GradoId()100%11100%
get_Grado()100%11100%
get_SituacionId()100%11100%
get_Situacion()100%11100%
get_ProgramaId()100%11100%
get_Programa()100%11100%
get_UnidadId()100%11100%
get_Unidad()100%11100%
get_SubUnidadId()100%11100%
get_SubUnidad()100%11100%
get_MotivoBajaId()100%11100%
get_MotivoBaja()100%11100%
get_RiesgoVuelo()100%11100%
get_CategoriaViatico()100%11100%
get_UsaFonasa()100%11100%
get_AniosServicioAnterior()100%11100%
get_PrimaTecnica()100%11100%
get_PrimaSolidariaFamiliar()100%11100%
get_AniosInactivos()100%11100%
get_Observaciones()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{
 442    public long RelacionLaboralId { get; set; }
 1743    public string Estado { get; set; } = string.Empty;
 444    public DateTime FechaInicio { get; set; }
 445    public DateTime? FechaFin { get; set; }
 46
 547    public long RegimenId { get; set; }
 1448    public string Regimen { get; set; } = string.Empty;
 1449    public string Ley { get; set; } = string.Empty;
 50
 451    public long EscalafonId { get; set; }
 1452    public string Escalafon { get; set; } = string.Empty;
 53
 454    public long GradoId { get; set; }
 1455    public string Grado { get; set; } = string.Empty;
 56
 457    public long SituacionId { get; set; }
 1458    public string Situacion { get; set; } = string.Empty;
 59
 460    public long ProgramaId { get; set; }
 1461    public string Programa { get; set; } = string.Empty;
 62
 463    public long UnidadId { get; set; }
 1464    public string Unidad { get; set; } = string.Empty;
 65
 466    public long? SubUnidadId { get; set; }
 467    public string? SubUnidad { get; set; }
 68
 469    public long? MotivoBajaId { get; set; }
 470    public string? MotivoBaja { get; set; }
 71
 472    public decimal? RiesgoVuelo { get; set; }
 473    public short CategoriaViatico { get; set; }
 474    public bool UsaFonasa { get; set; }
 475    public short AniosServicioAnterior { get; set; }
 476    public string? PrimaTecnica { get; set; }
 477    public string? PrimaSolidariaFamiliar { get; set; }
 478    public int? AniosInactivos { get; set; }
 479    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")]
 96    public long NuevoGradoId { get; set; }
 97
 98    [System.ComponentModel.DataAnnotations.Required(ErrorMessage = "La fecha de ascenso es requerida")]
 99    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)]
 103    public string? Observacion { get; set; }
 104
 105    [System.ComponentModel.DataAnnotations.Required(ErrorMessage = "La unidad es requerida")]
 106    public long? UnidadId { get; set; }
 107
 108    public long? SubUnidadId { get; set; }
 109
 110    [System.ComponentModel.DataAnnotations.Required(ErrorMessage = "El programa es requerido")]
 111    public long ProgramaId { get; set; }
 112
 113    [System.ComponentModel.DataAnnotations.MaxLength(100)]
 114    public string? Puesto { get; set; }
 115
 116    [System.ComponentModel.DataAnnotations.MaxLength(50)]
 117    public string? Plaza { get; set; }
 118}
 119