< Summary

Information
Class: FAU.Logica.DTOs.HistorialMovimientoDto
Assembly: FAU.Logica
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Logica/DTOs/PersonalDetalleDto.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 7
Coverable lines: 7
Total lines: 110
Line coverage: 0%
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_Id()100%210%
get_TipoMovimiento()100%210%
get_EsAlta()100%210%
get_FechaMovimiento()100%210%
get_Observaciones()100%210%
get_RegistradoPor()100%210%
get_FechaRegistro()100%210%

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}
 30
 31public class DatosLaboralesDto
 32{
 33    public long RelacionLaboralId { get; set; }
 34    public string Estado { get; set; } = string.Empty;
 35    public DateTime FechaInicio { get; set; }
 36    public DateTime? FechaFin { get; set; }
 37
 38    public long RegimenId { get; set; }
 39    public string Regimen { get; set; } = string.Empty;
 40    public string Ley { get; set; } = string.Empty;
 41
 42    public long EscalafonId { get; set; }
 43    public string Escalafon { get; set; } = string.Empty;
 44
 45    public long GradoId { get; set; }
 46    public string Grado { get; set; } = string.Empty;
 47
 48    public long SituacionId { get; set; }
 49    public string Situacion { get; set; } = string.Empty;
 50
 51    public long ProgramaId { get; set; }
 52    public string Programa { get; set; } = string.Empty;
 53
 54    public long UnidadId { get; set; }
 55    public string Unidad { get; set; } = string.Empty;
 56
 57    public long? SubUnidadId { get; set; }
 58    public string? SubUnidad { get; set; }
 59
 60    public long? MotivoBajaId { get; set; }
 61    public string? MotivoBaja { get; set; }
 62
 63    public decimal? RiesgoVuelo { get; set; }
 64    public short CategoriaViatico { get; set; }
 65    public bool UsaFonasa { get; set; }
 66    public short AniosServicioAnterior { get; set; }
 67    public string? PrimaTecnica { get; set; }
 68    public string? PrimaSolidariaFamiliar { get; set; }
 69    public int? AniosInactivos { get; set; }
 70    public string? Observaciones { get; set; }
 71}
 72
 73public class HistorialMovimientoDto
 74{
 075    public long Id { get; set; }
 076    public string TipoMovimiento { get; set; } = string.Empty;
 077    public bool EsAlta { get; set; }
 078    public DateTime FechaMovimiento { get; set; }
 079    public string? Observaciones { get; set; }
 080    public string RegistradoPor { get; set; } = string.Empty;
 081    public DateTime FechaRegistro { get; set; }
 82}
 83
 84public class AscensoRequest
 85{
 86    [System.ComponentModel.DataAnnotations.Required(ErrorMessage = "El nuevo grado es requerido")]
 87    public long NuevoGradoId { get; set; }
 88
 89    [System.ComponentModel.DataAnnotations.Required(ErrorMessage = "La fecha de ascenso es requerida")]
 90    public DateTime FechaAscenso { get; set; }
 91
 92    [System.ComponentModel.DataAnnotations.Required(ErrorMessage = "La razón del ascenso es requerida")]
 93    [System.ComponentModel.DataAnnotations.MaxLength(500)]
 94    public string? Observacion { get; set; }
 95
 96    [System.ComponentModel.DataAnnotations.Required(ErrorMessage = "La unidad es requerida")]
 97    public long? UnidadId { get; set; }
 98
 99    public long? SubUnidadId { get; set; }
 100
 101    [System.ComponentModel.DataAnnotations.Required(ErrorMessage = "El programa es requerido")]
 102    public long ProgramaId { get; set; }
 103
 104    [System.ComponentModel.DataAnnotations.MaxLength(100)]
 105    public string? Puesto { get; set; }
 106
 107    [System.ComponentModel.DataAnnotations.MaxLength(50)]
 108    public string? Plaza { get; set; }
 109}
 110