Se agrega control de secuencia de estatus

develop
Al Garcia 2 years ago
parent c1b8aff920
commit 20dce25012
  1. 1
      Contracts/Operaciones/IOpViajesRepository.cs
  2. 8
      Controllers/Operaciones/OpViajesController.cs
  3. 14
      DTO/Operaciones/DTOOpViajesEstatusSecuencia.cs
  4. 1
      DTO/Operaciones/DTOOpViajesServicios.cs
  5. 10
      Repository/Operaciones/OpViajesRepository.cs
  6. BIN
      bin/Debug/net6.0/AOLBackend.dll
  7. BIN
      bin/Debug/net6.0/AOLBackend.pdb
  8. 2
      obj/Debug/net6.0/AOLBackend.csproj.CoreCompileInputs.cache
  9. BIN
      obj/Debug/net6.0/AOLBackend.dll
  10. BIN
      obj/Debug/net6.0/AOLBackend.pdb
  11. BIN
      obj/Debug/net6.0/ref/AOLBackend.dll
  12. BIN
      obj/Debug/net6.0/refint/AOLBackend.dll
  13. 6
      obj/staticwebassets.pack.sentinel

@ -9,6 +9,7 @@ namespace AOLBackend.Contracts.Operaciones
public Task<IEnumerable<DTOOpViajes>> GetAll(); public Task<IEnumerable<DTOOpViajes>> GetAll();
public Task<IEnumerable<DTOOpViajesServicios>> GetAllServices(); public Task<IEnumerable<DTOOpViajesServicios>> GetAllServices();
public Task<DTOUltimaCaja> GetLastTrailerBox(int idViaje); public Task<DTOUltimaCaja> GetLastTrailerBox(int idViaje);
public Task<IEnumerable<DTOOpViajesEstatusSecuencia>> GetStatusSecuence();
public Task<Boolean> Delete(int id); public Task<Boolean> Delete(int id);
public Task<Boolean> DeleteService(int id); public Task<Boolean> DeleteService(int id);
} }

@ -55,6 +55,14 @@ namespace AOLBackend.Controllers.Operaciones
return entrada; return entrada;
} }
[HttpGet]
[Route("GetStatusSecuence")]
public async Task<IEnumerable<DTOOpViajesEstatusSecuencia>> GetStatusSecuence()
{
var entrada = await _Repo.GetStatusSecuence();
return entrada;
}
[HttpDelete("Delete/{id}")] [HttpDelete("Delete/{id}")]
public async Task<IActionResult> Delete(int id) public async Task<IActionResult> Delete(int id)

@ -0,0 +1,14 @@
namespace AOLBackend.DTO.Operaciones
{
public class DTOOpViajesEstatusSecuencia
{
public int id { get; set; } = 0;
public byte TipoOperacion { get; set; } = 0;
public string sTipoOperacion { get; set; } = null!;
public byte Estatus { get; set; } = 0;
public string sEstatus { get; set; } = null!;
public byte Secuencia { get; set; } = 0;
public byte Activo { get; set; } = 0;
}
}

@ -12,5 +12,6 @@ namespace AOLBackend.DTO.Operaciones
public string sProveedor { get; set; } = null!; public string sProveedor { get; set; } = null!;
public string NoCaja { get; set; } = null!; public string NoCaja { get; set; } = null!;
public byte Activo { get; set; } = 1; public byte Activo { get; set; } = 1;
public string Cita { get; set; } = null!;
} }
} }

@ -49,7 +49,8 @@ namespace AOLBackend.Repository.Operaciones
@Aduana = data.Aduana, @Aduana = data.Aduana,
@Comentarios = data.Comentarios, @Comentarios = data.Comentarios,
@IdProveedor = data.IdProveedor, @IdProveedor = data.IdProveedor,
@NoCaja = data.NoCaja @NoCaja = data.NoCaja,
@Cita = data.Cita
}, commandType: CommandType.StoredProcedure); }, commandType: CommandType.StoredProcedure);
return entrada.ToList(); return entrada.ToList();
} }
@ -74,6 +75,13 @@ namespace AOLBackend.Repository.Operaciones
var entrada = await connection.QueryAsync<DTOUltimaCaja>(query, new { @IdViaje = idViaje }, commandType: CommandType.StoredProcedure); var entrada = await connection.QueryAsync<DTOUltimaCaja>(query, new { @IdViaje = idViaje }, commandType: CommandType.StoredProcedure);
return entrada.First(); return entrada.First();
} }
public async Task<IEnumerable<DTOOpViajesEstatusSecuencia>> GetStatusSecuence()
{
var query = "[Operaciones.Viajes.Estatus.Secuencia.Get]";
using var connection = _context.CreateConnection();
var entrada = await connection.QueryAsync<DTOOpViajesEstatusSecuencia>(query, new { }, commandType: CommandType.StoredProcedure);
return entrada;
}
public async Task<Boolean> Delete(int id) public async Task<Boolean> Delete(int id)
{ {
var query = "[Operaciones.Viajes.Delete]"; var query = "[Operaciones.Viajes.Delete]";

Binary file not shown.

Binary file not shown.

@ -1 +1 @@
c0f740fe94be39b114995af40d7aa7f7834175d9 426ec8bbce8e97d6039a98b067cc59727cdd5187

Binary file not shown.

Binary file not shown.

@ -124,3 +124,9 @@
2.0 2.0
2.0 2.0
2.0 2.0
2.0
2.0
2.0
2.0
2.0
2.0

Loading…
Cancel
Save