| | | 1 | | namespace FAU.Logica.DTOs; |
| | | 2 | | |
| | | 3 | | public class ItemLoteCompensacionDto |
| | | 4 | | { |
| | | 5 | | public long Id { get; set; } |
| | | 6 | | public long LoteCompensacionId { get; set; } |
| | | 7 | | public string CedulaPersona { get; set; } = string.Empty; |
| | | 8 | | public string NombrePersona { get; set; } = string.Empty; |
| | | 9 | | public decimal UnidadCantidad { get; set; } |
| | | 10 | | public decimal? Monto { get; set; } |
| | | 11 | | public string Estado { get; set; } = string.Empty; |
| | | 12 | | public string? Incidencia { get; set; } |
| | | 13 | | public string? Observaciones { get; set; } |
| | | 14 | | public string? Funcion { get; set; } |
| | | 15 | | /// SDL: true = impacta base de descuentos legales (FONASA, Montepio, IRPF) |
| | | 16 | | public bool SujetoDescLegales { get; set; } |
| | | 17 | | /// Categoría de vuelo: A=Aviador, N=No Aviador, S=Subalterno |
| | | 18 | | public string? Ala { get; set; } |
| | | 19 | | /// Categoría de SAR: PARASAR, RESCATISTA, OPERADOR_GRUA, MEDICO |
| | | 20 | | public string? CategoriaCompensacion { get; set; } |
| | | 21 | | /// Unidad de medida del tipo de compensación: dia | hora | monto |
| | | 22 | | public string UnidadMedida { get; set; } = string.Empty; |
| | | 23 | | // Snapshots al momento de carga |
| | | 24 | | public string? SnapshotGrado { get; set; } |
| | | 25 | | public string? SnapshotSituacion { get; set; } |
| | | 26 | | public string? SnapshotUnidad { get; set; } |
| | | 27 | | public string? SnapshotPrograma { get; set; } |
| | | 28 | | } |
| | | 29 | | |
| | | 30 | | public class CreateItemLoteRequest |
| | | 31 | | { |
| | | 32 | | public long? PersonaId { get; set; } |
| | | 33 | | public string CedulaPersona { get; set; } = string.Empty; |
| | | 34 | | public decimal UnidadCantidad { get; set; } |
| | | 35 | | public decimal? Monto { get; set; } |
| | | 36 | | public string? Incidencia { get; set; } |
| | | 37 | | public string? Observaciones { get; set; } |
| | | 38 | | public string? Funcion { get; set; } |
| | | 39 | | /// Categoría de vuelo: A, N o S (solo para ASID_VUELO) |
| | | 40 | | public string? Ala { get; set; } |
| | | 41 | | /// Categoría SAR: PARASAR, RESCATISTA, OPERADOR_GRUA, MEDICO (solo para SAR) |
| | | 42 | | public string? CategoriaCompensacion { get; set; } |
| | | 43 | | } |
| | | 44 | | |
| | | 45 | | public class UpdateItemLoteRequest |
| | | 46 | | { |
| | | 47 | | public decimal? UnidadCantidad { get; set; } |
| | | 48 | | public decimal? Monto { get; set; } |
| | | 49 | | public string? Estado { get; set; } |
| | | 50 | | public string? Incidencia { get; set; } |
| | | 51 | | public string? Observaciones { get; set; } |
| | | 52 | | public string? Funcion { get; set; } |
| | | 53 | | public string? Ala { get; set; } |
| | | 54 | | public string? CategoriaCompensacion { get; set; } |
| | | 55 | | } |
| | | 56 | | |
| | | 57 | | public class BulkImportResultDto |
| | | 58 | | { |
| | | 59 | | public int Procesados { get; set; } |
| | | 60 | | public int Exitosos { get; set; } |
| | | 61 | | public int Fallidos { get; set; } |
| | | 62 | | public bool Exitoso => Fallidos == 0 && Procesados > 0; |
| | | 63 | | public bool EsDryRun { get; set; } |
| | | 64 | | public string Modo { get; set; } = "reemplazar"; |
| | | 65 | | public List<BulkImportLineResultDto> Resultados { get; set; } = new(); |
| | | 66 | | } |
| | | 67 | | |
| | | 68 | | public class BulkImportLineResultDto |
| | | 69 | | { |
| | 2 | 70 | | public int Linea { get; set; } |
| | 2 | 71 | | public string Cedula { get; set; } = string.Empty; |
| | 2 | 72 | | public bool Exito { get; set; } |
| | 2 | 73 | | public string? Error { get; set; } |
| | 1 | 74 | | public long? ItemId { get; set; } |
| | | 75 | | } |