| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace FAU.Entidades; |
| | | 5 | | |
| | | 6 | | [Table("items_lote_compensacion")] |
| | | 7 | | public class ItemLoteCompensacion |
| | | 8 | | { |
| | | 9 | | [Key] |
| | | 10 | | [Column("id")] |
| | 55 | 11 | | public long Id { get; set; } |
| | | 12 | | |
| | | 13 | | [Required] |
| | | 14 | | [Column("lote_compensacion_id")] |
| | 42 | 15 | | public long LoteCompensacionId { get; set; } |
| | | 16 | | |
| | | 17 | | [Required] |
| | | 18 | | [Column("persona_id")] |
| | 41 | 19 | | public long PersonaId { get; set; } |
| | | 20 | | |
| | | 21 | | [Required] |
| | | 22 | | [Column("unidad_cantidad", TypeName = "numeric(10,2)")] |
| | 37 | 23 | | public decimal UnidadCantidad { get; set; } |
| | | 24 | | |
| | | 25 | | [Column("monto", TypeName = "numeric(14,2)")] |
| | 47 | 26 | | public decimal? Monto { get; set; } |
| | | 27 | | |
| | | 28 | | [Required] |
| | | 29 | | [MaxLength(20)] |
| | | 30 | | [Column("estado")] |
| | 67 | 31 | | public string Estado { get; set; } = "ok"; // ok, verificar, error |
| | | 32 | | |
| | | 33 | | [MaxLength(200)] |
| | | 34 | | [Column("incidencia")] |
| | 14 | 35 | | public string? Incidencia { get; set; } |
| | | 36 | | |
| | | 37 | | [Column("observaciones")] |
| | 14 | 38 | | public string? Observaciones { get; set; } |
| | | 39 | | |
| | | 40 | | [MaxLength(50)] |
| | | 41 | | [Column("funcion")] |
| | 14 | 42 | | public string? Funcion { get; set; } |
| | | 43 | | |
| | | 44 | | /// SDL: derivado de config_compensaciones.sujeto_desc_legales al crear el ítem |
| | | 45 | | [Column("sujeto_desc_legales")] |
| | 16 | 46 | | public bool SujetoDescLegales { get; set; } = false; |
| | | 47 | | |
| | | 48 | | /// Categoría de vuelo para ASID_VUELO: A=Aviador, N=No Aviador, S=Subalterno |
| | | 49 | | [MaxLength(1)] |
| | | 50 | | [Column("ala")] |
| | 17 | 51 | | public string? Ala { get; set; } |
| | | 52 | | |
| | | 53 | | /// Categoría/función para SAR: PARASAR, RESCATISTA, OPERADOR_GRUA, MEDICO |
| | | 54 | | [MaxLength(50)] |
| | | 55 | | [Column("categoria_compensacion")] |
| | 17 | 56 | | public string? CategoriaCompensacion { get; set; } |
| | | 57 | | |
| | | 58 | | // Snapshots de la relación laboral al momento de cargar el ítem |
| | | 59 | | [Column("snapshot_grado_id")] |
| | 14 | 60 | | public long? SnapshotGradoId { get; set; } |
| | | 61 | | |
| | | 62 | | [Column("snapshot_situacion_id")] |
| | 12 | 63 | | public long? SnapshotSituacionId { get; set; } |
| | | 64 | | |
| | | 65 | | [Column("snapshot_unidad_id")] |
| | 12 | 66 | | public long? SnapshotUnidadId { get; set; } |
| | | 67 | | |
| | | 68 | | /// Programa presupuestal del personal al momento de carga |
| | | 69 | | [Column("snapshot_programa_id")] |
| | 13 | 70 | | public long? SnapshotProgramaId { get; set; } |
| | | 71 | | |
| | | 72 | | // Navegacion |
| | | 73 | | [ForeignKey("LoteCompensacionId")] |
| | 1 | 74 | | public virtual LoteCompensacion LoteCompensacion { get; set; } = null!; |
| | | 75 | | |
| | | 76 | | [ForeignKey("PersonaId")] |
| | 6 | 77 | | public virtual Persona Persona { get; set; } = null!; |
| | | 78 | | |
| | | 79 | | [ForeignKey("SnapshotGradoId")] |
| | 2 | 80 | | public virtual Grado? SnapshotGrado { get; set; } |
| | | 81 | | |
| | | 82 | | [ForeignKey("SnapshotSituacionId")] |
| | 2 | 83 | | public virtual Situacion? SnapshotSituacion { get; set; } |
| | | 84 | | |
| | | 85 | | [ForeignKey("SnapshotUnidadId")] |
| | 2 | 86 | | public virtual Unidad? SnapshotUnidad { get; set; } |
| | | 87 | | |
| | | 88 | | [ForeignKey("SnapshotProgramaId")] |
| | 2 | 89 | | public virtual Programa? SnapshotPrograma { get; set; } |
| | | 90 | | } |