1Febrero 2023

main
Luis Angel Rendon Arrazola 2 years ago
parent 89feee2651
commit 5e07467bc1
  1. BIN
      .vs/AMAZONBackend/DesignTimeBuild/.dtbcache.v2
  2. BIN
      .vs/AMAZONBackend/FileContentIndex/0202cbdd-b767-486e-9dff-a9d11125902c.vsidx
  3. BIN
      .vs/AMAZONBackend/FileContentIndex/09101eb2-8c39-4997-9bbb-f4c851051775.vsidx
  4. BIN
      .vs/AMAZONBackend/FileContentIndex/36d9c54f-3dfc-4e10-a158-44b13c6348bf.vsidx
  5. BIN
      .vs/AMAZONBackend/FileContentIndex/38f8d4fe-7b51-46e0-9dc9-71693e13388f.vsidx
  6. BIN
      .vs/AMAZONBackend/FileContentIndex/78fabd2c-406f-4194-9286-ddfccec0e988.vsidx
  7. BIN
      .vs/AMAZONBackend/FileContentIndex/7a693f00-0b2c-46fa-85c7-dccffed04f2e.vsidx
  8. BIN
      .vs/AMAZONBackend/FileContentIndex/8edeb720-1936-46b8-93f1-2967f6e56ac9.vsidx
  9. BIN
      .vs/AMAZONBackend/FileContentIndex/ab87a971-1056-4376-a9f1-5009541240dd.vsidx
  10. BIN
      .vs/AMAZONBackend/v17/.futdcache.v2
  11. BIN
      .vs/AMAZONBackend/v17/.suo
  12. BIN
      .vs/ProjectEvaluation/amazonbackend.metadata.v5.2
  13. BIN
      .vs/ProjectEvaluation/amazonbackend.projects.v5.2
  14. 4
      AMAZONBackend/Clientes/Amazon/Contracts/IAmazonRepository.cs
  15. 16
      AMAZONBackend/Clientes/Amazon/Model/IRpt2096InvoicePedPagados.cs
  16. 35
      AMAZONBackend/Clientes/Amazon/Repository/AmazonRepository.cs
  17. 38
      AMAZONBackend/Controllers/Clientes/Amazon/AmazonInvoiceController.cs
  18. BIN
      AMAZONBackend/bin/Debug/net6.0/AMAZONBackend.dll
  19. BIN
      AMAZONBackend/bin/Debug/net6.0/AMAZONBackend.pdb
  20. BIN
      AMAZONBackend/obj/Debug/net6.0/AMAZONBackend.dll
  21. BIN
      AMAZONBackend/obj/Debug/net6.0/AMAZONBackend.pdb
  22. BIN
      AMAZONBackend/obj/Debug/net6.0/ref/AMAZONBackend.dll
  23. BIN
      AMAZONBackend/obj/Debug/net6.0/refint/AMAZONBackend.dll

Binary file not shown.

@ -36,7 +36,9 @@ namespace AMAZONBackend.Clientes.Amazon.Contracts
public Task<bool> EnviaEsperaRespuestaAmazon(int id);
public Task<bool> AssignInvoice(int IdUsuario, int IdFactura);
public Task <IEnumerable <IRpt2096InvoicePedPagados>>Rpt2096InvocePedPagados(DateTime FechaIncio, DateTime FechaFin, int TipoOperacion);
//public Task<IEnumerable<IRpt2096InvoicePedPagados>> Rpt2096InvocePedPagados(string Inicio, string Fin, int TipoOperacion);
public Task<IEnumerable<IRpt2096InvoicePedPagados>> Rpt2096InvocePedPagados(DateTime Inicio, DateTime Fin, int TipoOperacion);

@ -4,10 +4,21 @@ namespace AMAZONBackend.Clientes.Amazon.Model
{
public class IRpt2096InvoicePedPagados
{
//public string? sNumeroLargo { get; set; } = null;
//public string? sPedimento { get; set; } = null;
//public string dFechaFirmaBanco { get; set; } = null!;
//public string? sClave { get; set;} = null;
//public double nValoresDolares { get; set; }
//public double nValorAduana { get; set; }
//public string? sRazonSocial { get; set; }
//public byte TipoOp { get; set; }
//public int Aduana { get; set; }
public string? sNumeroLargo { get; set; } = null;
public string? sPedimento { get; set; } = null;
public DateTime dFechaFirmaBanco { get; set; }
public string? sClave { get; set;}
public DateTime dFechaFirmaBanco { get; set; }
public string? sClave { get; set; } = null;
public double nValoresDolares { get; set; }
public double nValorAduana { get; set; }
public string? sRazonSocial { get; set; }
@ -17,5 +28,6 @@ namespace AMAZONBackend.Clientes.Amazon.Model
}
}

@ -413,22 +413,45 @@ namespace AMAZONBackend.Clientes.Amazon.Repository
}
public async Task <IEnumerable <IRpt2096InvoicePedPagados>> Rpt2096InvocePedPagados( DateTime FechaIncio , DateTime FechaFin , int TipoOperacion )
//public async Task<IEnumerable<IRpt2096InvoicePedPagados>> Rpt2096InvocePedPagados(string Inicio, string Fin,int TipoOperaciones)
//{
// var querry = "[Reportes.Web.Clientes.Amazon.Get]";
// using var connection = _context.CreateConnection();
// var result = await connection.QueryAsync<IRpt2096InvoicePedPagados>(querry, new
// {
// @Inicio ,
// @Fin ,
// @TipoOperaciones
// }, commandType : CommandType.StoredProcedure);
// return result.ToList();
//}
public async Task<IEnumerable<IRpt2096InvoicePedPagados>> Rpt2096InvocePedPagados(DateTime Inicio, DateTime Fin, int TipoOperaciones)
{
var querry = " [Reportes.Web.Clientes.Amazon.Get]";
var querry = "[Reportes.Web.Clientes.Amazon.Get]";
using var connection = _context.CreateConnection();
var result = await connection.QueryAsync<IRpt2096InvoicePedPagados>(querry, new
{
@FechaIncio,
@FechaFin
@Inicio,
@Fin,
@TipoOperaciones
}, commandType : CommandType.StoredProcedure);
}, commandType: CommandType.StoredProcedure);
return result;
return result.ToList();
}
}
}

@ -338,30 +338,24 @@ namespace AMAZONBackend.Controllers.Clientes.Amazon
[HttpGet]
[Route(" Rpt2096InvoicePediPagadosGET")]
public async Task<IEnumerable< IRpt2096InvoicePedPagados>>Rpt2096InvocePedPagados(DateTime FechaInicio, DateTime FechaFin, int TipoOperacion)
{
DateTime horaInicio = new DateTime(00, 00, 01);
DateTime horafin = new DateTime(23, 59, 59);
if (FechaInicio == horaInicio)
{
BadRequest(" La Fecha Y Hora no puede ser 00-00-00 ");
}
if (FechaFin == horafin)
{
BadRequest(" La Fecha Y Hora no puede ser 00-00-00 ");
}
//await _Repo.Rpt2096InvocePedPagados(FechaInicio, FechaFin, TipoOperacion);
return await _Repo.Rpt2096InvocePedPagados(FechaInicio, FechaFin, TipoOperacion);
//[HttpGet]
//[Route("Rpt2096InvoicePediPagadosGET")]
//public async Task<IEnumerable<IRpt2096InvoicePedPagados>> Rpt2096InvocePedPagados([FromQuery] string Inicio, string Fin, int TipoOperacion)
//{
// //DateTime fechaYhora = new DateTime(00, 00, 00, 12, 00, 00);
// var Entrada = await _Repo.Rpt2096InvocePedPagados(Inicio, Fin, TipoOperacion);
// return Entrada;
//}
[HttpGet]
[Route("Rpt2096InvoicePediPagadosGET")]
public async Task<IEnumerable<IRpt2096InvoicePedPagados>> Rpt2096InvocePedPagados([FromQuery] DateTime Inicio, DateTime Fin , int TipoOperacion )
{
//DateTime fechaYhora = new DateTime(00, 00, 00, 12, 00, 00);
var Entrada = await _Repo.Rpt2096InvocePedPagados(Inicio, Fin, TipoOperacion);
return Entrada;
}

Loading…
Cancel
Save