feature/ReportesContabilidad_FacturasTraficosConsolidadosAlen_20240116
parent
b9f26944fb
commit
2d2819ba97
@ -0,0 +1,5 @@ |
||||
namespace CORRESPONSALBackend.Contracts.Reportes.Alen{ |
||||
public interface IReportesAlenRepository{ |
||||
public Task<IEnumerable<DTOReporteFacturasTraficosConsolidados>> GetFacturasTraficoConsolidado(int idTrafico, string referencia); |
||||
} |
||||
} |
@ -0,0 +1,20 @@ |
||||
public class DTOReporteFacturasTraficosConsolidados{ |
||||
public string trafico { get; set; } |
||||
public string TipoOperacion { get; set; } |
||||
public string Cliente { get; set; } |
||||
public string Proveedor { get; set; } |
||||
public string Corresponsal { get; set; } |
||||
public int Aduana { get; set; } |
||||
public int Patente { get; set; } |
||||
public string Pedimento { get; set; } |
||||
public int PedimentoMaster { get; set; } |
||||
public string Fecha { get; set; } |
||||
public string Cuenta { get; set; } |
||||
public string Factura { get; set; } |
||||
public string Descripcion { get; set; } |
||||
public string Semaforo { get; set; } |
||||
public string ClavePedimento { get; set; } |
||||
public string TipoCambio { get; set; } |
||||
public string Operacion { get; set; } |
||||
public string Contenedor { get; set; } |
||||
} |
@ -0,0 +1,22 @@ |
||||
using System.Data; |
||||
using CORRESPONSALBackend.Context; |
||||
using CORRESPONSALBackend.Contracts.Reportes.Alen; |
||||
using Dapper; |
||||
|
||||
public class ReportesAlenRepository : IReportesAlenRepository |
||||
{ |
||||
private readonly DapperContext _context; |
||||
public ReportesAlenRepository(DapperContext context) { _context = context; } |
||||
public async Task<IEnumerable<DTOReporteFacturasTraficosConsolidados>> GetFacturasTraficoConsolidado(int idTrafico, string referencia) |
||||
{ |
||||
var query = "[Reportes.Alen.FacturasTraficosConsolidados]"; |
||||
using var connection = _context.CreateConnection(); |
||||
var entrada = await connection.QueryAsync<DTOReporteFacturasTraficosConsolidados>(query, new |
||||
{ |
||||
@IdTrafico = idTrafico, |
||||
@Referencia = referencia |
||||
}, |
||||
commandType: CommandType.StoredProcedure); |
||||
return entrada; |
||||
} |
||||
} |
Loading…
Reference in new issue