| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace FAU.Entidades; |
| | | 5 | | |
| | | 6 | | [Table("aguinaldo_baja")] |
| | | 7 | | public class AguinaldoBaja |
| | | 8 | | { |
| | | 9 | | [Key] |
| | | 10 | | [Column("id")] |
| | 10 | 11 | | public long Id { get; set; } |
| | | 12 | | |
| | | 13 | | [Required] |
| | | 14 | | [Column("persona_id")] |
| | 27 | 15 | | public long PersonaId { get; set; } |
| | | 16 | | |
| | | 17 | | [Required] |
| | | 18 | | [MaxLength(20)] |
| | | 19 | | [Column("cedula")] |
| | 31 | 20 | | public string Cedula { get; set; } = string.Empty; |
| | | 21 | | |
| | | 22 | | [Required] |
| | | 23 | | [MaxLength(150)] |
| | | 24 | | [Column("nombre_completo")] |
| | 27 | 25 | | public string NombreCompleto { get; set; } = string.Empty; |
| | | 26 | | |
| | | 27 | | [Required] |
| | | 28 | | [Column("fecha_baja", TypeName = "date")] |
| | 13 | 29 | | public DateTime FechaBaja { get; set; } |
| | | 30 | | |
| | | 31 | | [MaxLength(20)] |
| | | 32 | | [Column("motivo_baja_codigo")] |
| | 3 | 33 | | public string? MotivoBajaCodigo { get; set; } |
| | | 34 | | |
| | | 35 | | [Required] |
| | | 36 | | [Column("anio")] |
| | 22 | 37 | | public short Anio { get; set; } |
| | | 38 | | |
| | | 39 | | [Required] |
| | | 40 | | [Column("mes")] |
| | 22 | 41 | | public short Mes { get; set; } |
| | | 42 | | |
| | | 43 | | [Required] |
| | | 44 | | [Column("semestre")] |
| | 12 | 45 | | public short Semestre { get; set; } |
| | | 46 | | |
| | | 47 | | [Required] |
| | | 48 | | [Column("total_haberes_gravados", TypeName = "numeric(14,2)")] |
| | 10 | 49 | | public decimal TotalHaberesGravados { get; set; } |
| | | 50 | | |
| | | 51 | | [Required] |
| | | 52 | | [Column("meses_computados")] |
| | 9 | 53 | | public short MesesComputados { get; set; } |
| | | 54 | | |
| | | 55 | | [Column("mes_inicio_periodo")] |
| | 1 | 56 | | public short? MesInicioPeriodo { get; set; } |
| | | 57 | | |
| | | 58 | | [Column("mes_fin_periodo")] |
| | 1 | 59 | | public short? MesFinPeriodo { get; set; } |
| | | 60 | | |
| | | 61 | | [Column("mes_liquidacion")] |
| | 1 | 62 | | public short? MesLiquidacion { get; set; } |
| | | 63 | | |
| | | 64 | | [Required] |
| | | 65 | | [Column("nominal", TypeName = "numeric(14,2)")] |
| | 17 | 66 | | public decimal Nominal { get; set; } |
| | | 67 | | |
| | | 68 | | [Required] |
| | | 69 | | [Column("montepio", TypeName = "numeric(14,2)")] |
| | 13 | 70 | | public decimal Montepio { get; set; } |
| | | 71 | | |
| | | 72 | | [Required] |
| | | 73 | | [Column("sanidad", TypeName = "numeric(14,2)")] |
| | 13 | 74 | | public decimal Sanidad { get; set; } |
| | | 75 | | |
| | | 76 | | [Required] |
| | | 77 | | [Column("total_descuentos", TypeName = "numeric(14,2)")] |
| | 13 | 78 | | public decimal TotalDescuentos { get; set; } |
| | | 79 | | |
| | | 80 | | [Required] |
| | | 81 | | [Column("liquido", TypeName = "numeric(14,2)")] |
| | 13 | 82 | | public decimal Liquido { get; set; } |
| | | 83 | | |
| | | 84 | | [Column("redondeo", TypeName = "numeric(14,2)")] |
| | 7 | 85 | | public decimal Redondeo { get; set; } |
| | | 86 | | |
| | | 87 | | [Required] |
| | | 88 | | [MaxLength(20)] |
| | | 89 | | [Column("estado")] |
| | 22 | 90 | | public string Estado { get; set; } = string.Empty; |
| | | 91 | | |
| | 22 | 92 | | public virtual ICollection<AguinaldoBajaItem> Items { get; set; } = new List<AguinaldoBajaItem>(); |
| | | 93 | | } |