< Summary

Information
Class: FAU.Entidades.RelacionLaboral
Assembly: FAU.Entidades
File(s): /home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Entidades/RelacionLaboral.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 27
Coverable lines: 27
Total lines: 104
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_PersonaId()100%210%
get_RegimenId()100%210%
get_UnidadId()100%210%
get_ProgramaId()100%210%
get_SituacionId()100%210%
get_EscalafonId()100%210%
get_GradoId()100%210%
get_FechaInicio()100%210%
get_FechaFin()100%210%
get_Estado()100%210%
get_FechaActualizacion()100%210%
get_PrimaTecnica()100%210%
get_PrimaSolidariaFamiliar()100%210%
get_RiesgoVuelo()100%210%
get_AniosInactivos()100%210%
get_Observaciones()100%210%
get_CompaniaId()100%210%
get_Persona()100%210%
get_Regimen()100%210%
get_Unidad()100%210%
get_Programa()100%210%
get_Situacion()100%210%
get_Escalafon()100%210%
get_Grado()100%210%
get_Compania()100%210%
get_MovimientosLaborales()100%210%

File(s)

/home/runner/work/Sistema.Liquidacion.BE/Sistema.Liquidacion.BE/FAU.Entidades/RelacionLaboral.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace FAU.Entidades;
 5
 6[Table("relaciones_laborales")]
 7public class RelacionLaboral
 8{
 9    [Key]
 10    [Column("id")]
 011    public long Id { get; set; }
 12
 13    [Required]
 14    [Column("persona_id")]
 015    public long PersonaId { get; set; }
 16
 17    [Required]
 18    [Column("regimen_id")]
 019    public long RegimenId { get; set; }
 20
 21    [Required]
 22    [Column("unidad_id")]
 023    public long UnidadId { get; set; }
 24
 25    [Required]
 26    [Column("programa_id")]
 027    public long ProgramaId { get; set; }
 28
 29    [Required]
 30    [Column("situacion_id")]
 031    public long SituacionId { get; set; }
 32
 33    [Required]
 34    [Column("escalafon_id")]
 035    public long EscalafonId { get; set; }
 36
 37    [Required]
 38    [Column("grado_id")]
 039    public long GradoId { get; set; }
 40
 41    [Required]
 42    [Column("fecha_inicio", TypeName = "date")]
 043    public DateTime FechaInicio { get; set; }
 44
 45    [Column("fecha_fin", TypeName = "date")]
 046    public DateTime? FechaFin { get; set; }
 47
 48    [Required]
 49    [MaxLength(20)]
 50    [Column("estado")]
 051    public string Estado { get; set; } = "activo"; // activo, inactivo
 52
 53    [Column("fecha_actualizacion")]
 054    public DateTime FechaActualizacion { get; set; } = DateTime.UtcNow;
 55
 56    // Campos adicionales para compensaciones
 57    [MaxLength(10)]
 58    [Column("prima_tecnica")]
 059    public string? PrimaTecnica { get; set; } = "VACIO"; // VACIO, A, B, C
 60
 61    [MaxLength(30)]
 62    [Column("prima_solidaria_familiar")]
 063    public string? PrimaSolidariaFamiliar { get; set; }
 64
 65    [Column("riesgo_vuelo", TypeName = "decimal(14,2)")]
 066    public decimal? RiesgoVuelo { get; set; }
 67
 68    [Column("anios_inactivos")]
 069    public int? AniosInactivos { get; set; }
 70
 71    [Column("observaciones")]
 072    public string? Observaciones { get; set; }
 73
 74    [Column("compania_id")]
 075    public long? CompaniaId { get; set; }
 76
 77    // Navegación
 78    [ForeignKey("PersonaId")]
 079    public virtual Persona Persona { get; set; } = null!;
 80
 81    [ForeignKey("RegimenId")]
 082    public virtual Regimen Regimen { get; set; } = null!;
 83
 84    [ForeignKey("UnidadId")]
 085    public virtual Unidad Unidad { get; set; } = null!;
 86
 87    [ForeignKey("ProgramaId")]
 088    public virtual Programa Programa { get; set; } = null!;
 89
 90    [ForeignKey("SituacionId")]
 091    public virtual Situacion Situacion { get; set; } = null!;
 92
 93    [ForeignKey("EscalafonId")]
 094    public virtual Escalafon Escalafon { get; set; } = null!;
 95
 96    [ForeignKey("GradoId")]
 097    public virtual Grado Grado { get; set; } = null!;
 98
 99    [ForeignKey("CompaniaId")]
 0100    public virtual Compania? Compania { get; set; }
 101
 0102    public virtual ICollection<MovimientoLaboral> MovimientosLaborales { get; set; } = new List<MovimientoLaboral>();
 103}
 104