Commit inicial: ITCA_API_SAP_WMS (.NET Core 3.1)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
2b82744eb8
168 files changed
+11066
No files matched your search
@@ -0,0 +1,22 @@
|
||||
using Net.Business.Entities.Authenticate;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Net.Business.DTO.Authenticate
|
||||
{
|
||||
public class Dto_AuthenticateRequest
|
||||
{
|
||||
public string client_id { get; set; }
|
||||
public string client_secret { get; set; }
|
||||
|
||||
public BE_AuthenticateRequest RetornaModelo()
|
||||
{
|
||||
return new BE_AuthenticateRequest()
|
||||
{
|
||||
client_id = client_id,
|
||||
client_secret = client_secret,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Net.Business.Entities\Net.Business.Entities.csproj" />
|
||||
<ProjectReference Include="..\Net.CrossCotting\Net.CrossCotting.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,29 @@
|
||||
using Net.Business.Entities.WMS.HojaRuta;
|
||||
|
||||
namespace Net.Business.DTO.WMS.HojaRuta
|
||||
{
|
||||
public class Dto_HojaRuta
|
||||
{
|
||||
public int DocEntry { get; set; }
|
||||
public string CodEstado { get; set; }
|
||||
public string Estado { get; set; }
|
||||
public string Proceso { get; set; }
|
||||
public int IdEstadoCubico { get; set; }
|
||||
public string HoraInicio { get; set; }
|
||||
public string FinRuta { get; set; }
|
||||
public string CodMotivo { get; set; }
|
||||
public BE_HojaRutaEntities RetornaModelo()
|
||||
{
|
||||
return new BE_HojaRutaEntities()
|
||||
{
|
||||
DocEntry = DocEntry,
|
||||
IdEstadoCubico = IdEstadoCubico,
|
||||
Estado = Estado,
|
||||
Proceso = Proceso,
|
||||
CodMotivo = CodMotivo,
|
||||
FinRuta = FinRuta,
|
||||
HoraInicio = HoraInicio
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using iTextSharp.text;
|
||||
using Net.Business.Entities.ServicesLayer.HR;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Net.Business.DTO.WMS.HojaRuta
|
||||
{
|
||||
public class Dto_HojaRutaCreate
|
||||
{
|
||||
public string ModalidadTransporte { get; set; }
|
||||
public string Zona { get; set; }
|
||||
public string Territorio { get; set; }
|
||||
public string Despachador { get; set; }
|
||||
public DateTime FechaDespacho { get; set; }
|
||||
public string AgenciaTransporte { get; set; }
|
||||
public string NombreConductor { get; set; }
|
||||
public string LicenciaConductor { get; set; }
|
||||
public string PlacaVehiculo { get; set; }
|
||||
public string Estado { get; set; }
|
||||
public List<BE_HojaRutaCreateDetalle> Detalle { get; set; }
|
||||
|
||||
public BE_HojaRutaCreate RetornaModelo()
|
||||
{
|
||||
return new BE_HojaRutaCreate()
|
||||
{
|
||||
AgenciaTransporte = AgenciaTransporte,
|
||||
Despachador = Despachador,
|
||||
Detalle = Detalle,
|
||||
Estado = Estado,
|
||||
FechaDespacho = FechaDespacho,
|
||||
LicenciaConductor = LicenciaConductor,
|
||||
ModalidadTransporte = ModalidadTransporte,
|
||||
NombreConductor = NombreConductor,
|
||||
PlacaVehiculo = PlacaVehiculo,
|
||||
Territorio = Territorio,
|
||||
Zona = Zona
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
using Net.Business.Entities.WMS.Inventario;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Net.Business.DTO.WMS.Inventario
|
||||
{
|
||||
public class Dto_Inventario
|
||||
{
|
||||
public DateTime Fecha { get; set; }
|
||||
public DateTime FechaVencimiento { get; set; }
|
||||
public string TipoMovimientoSAP { get; set; }
|
||||
public string TipoMovimiento { get; set; }
|
||||
public string TipoInventario { get; set; }
|
||||
public string Almacen { get; set; }
|
||||
public string SubAlmacen { get; set; }
|
||||
public List<BE_InventarioItems> Detalle { get; set; }
|
||||
public string NroInventario { get; set; }
|
||||
public BE_Inventario RetornaModelo()
|
||||
{
|
||||
return new BE_Inventario()
|
||||
{
|
||||
Almacen = Almacen,
|
||||
Detalle = Detalle,
|
||||
Fecha = Fecha,
|
||||
FechaVencimiento = FechaVencimiento,
|
||||
SubAlmacen = SubAlmacen,
|
||||
TipoMovimiento = TipoMovimiento,
|
||||
NroInventario = NroInventario,
|
||||
TipoInventario = TipoInventario,
|
||||
TipoMovimientoSAP = TipoMovimientoSAP,
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
using Net.Business.Entities.WMS.Picking;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Net.Business.DTO.WMS.Picking
|
||||
{
|
||||
public class Dto_PickingRequest
|
||||
{
|
||||
public string NumOrden { get; set; }
|
||||
public DateTime FechaOrden { get; set; }
|
||||
public string FechaEntrega { get; set; }
|
||||
public string CodigoAlmacen { get; set; }
|
||||
public DateTime FechaLlegada { get; set; }
|
||||
public string CodigoERPCliente { get; set; }
|
||||
public string CodigoERPDireccion { get; set; }
|
||||
public int IdTipo { get; set; }
|
||||
public int IdTipoDoc { get; set; }
|
||||
public string Observacion { get; set; }
|
||||
public int IdCondicion { get; set; }
|
||||
public int Accion { get; set; }
|
||||
public int IdEstadoCubico { get; set; }
|
||||
public int DocEntry { get; set; }
|
||||
public string Proceso { get; set; }
|
||||
public string CodMotivo { get; set; }
|
||||
// "preliminar" | "cierre" - cualquier otro valor o ausente se trata como
|
||||
// "preliminar" (default seguro, nunca crea documentos en SAP por accidente).
|
||||
public string Notificacion { get; set; }
|
||||
public List<BE_PickingDetalle> Detalle { get; set; }
|
||||
|
||||
public decimal Longitud { get; set; }
|
||||
public decimal Latitud { get; set; }
|
||||
public BE_PickingRequest RetornaModelo()
|
||||
{
|
||||
return new BE_PickingRequest()
|
||||
{
|
||||
Accion = Accion,
|
||||
CodigoAlmacen = CodigoAlmacen,
|
||||
CodigoERPCliente = CodigoERPCliente,
|
||||
IdEstadoCubico = IdEstadoCubico,
|
||||
CodigoERPDireccion = CodigoERPDireccion,
|
||||
Detalle = Detalle,
|
||||
FechaEntrega = FechaEntrega,
|
||||
FechaLlegada = FechaLlegada,
|
||||
FechaOrden = FechaOrden,
|
||||
IdCondicion = IdCondicion,
|
||||
IdTipo = IdTipo,
|
||||
IdTipoDoc = IdTipoDoc,
|
||||
NumOrden = NumOrden,
|
||||
Observacion = Observacion,
|
||||
DocEntry = DocEntry,
|
||||
Proceso = Proceso,
|
||||
CodMotivo = CodMotivo,
|
||||
Notificacion = Notificacion,
|
||||
Latitud = Latitud,
|
||||
Longitud = Longitud,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
using Net.Business.Entities.WMS.Recibo;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Net.Business.DTO.WMS.Recibo
|
||||
{
|
||||
public class Dto_ReciboRequest
|
||||
{
|
||||
public string NumOrden { get; set; }
|
||||
public DateTime FechaOrden { get; set; }
|
||||
public string CodigoAlmacen { get; set; }
|
||||
public DateTime FechaLlegada { get; set; }
|
||||
public string CodigoERPProveedor { get; set; }
|
||||
public int IdTipo { get; set; }
|
||||
public int IdTipoDoc { get; set; }
|
||||
public string Observacion { get; set; }
|
||||
public int IdCuenta { get; set; }
|
||||
public int Accion { get; set; }
|
||||
public int DocEntry { get; set; }
|
||||
public string DocImportacion { get; set; }
|
||||
public string U_SYP_MDTD { get; set; }
|
||||
public string U_SYP_MDSD { get; set; }
|
||||
public string U_SYP_MDCD { get; set; }
|
||||
public string Comentario { get; set; }
|
||||
public List<BE_ReciboDetalle> Detalle { get; set; }
|
||||
|
||||
public BE_ReciboRequest RetornaModelo()
|
||||
{
|
||||
return new BE_ReciboRequest()
|
||||
{
|
||||
Accion = Accion,
|
||||
CodigoAlmacen = CodigoAlmacen,
|
||||
CodigoERPProveedor = CodigoERPProveedor,
|
||||
Detalle = Detalle,
|
||||
FechaLlegada = FechaLlegada,
|
||||
FechaOrden = FechaOrden,
|
||||
IdTipo = IdTipo,
|
||||
IdTipoDoc = IdTipoDoc,
|
||||
Observacion = Observacion,
|
||||
IdCuenta = IdCuenta,
|
||||
NumOrden = NumOrden,
|
||||
DocEntry = DocEntry,
|
||||
DocImportacion = DocImportacion,
|
||||
Comentario = Comentario,
|
||||
U_SYP_MDSD = U_SYP_MDSD,
|
||||
U_SYP_MDCD = U_SYP_MDCD,
|
||||
U_SYP_MDTD = U_SYP_MDTD
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using Net.Business.Entities.WMS.SolicitudTransferencia;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Net.Business.DTO.WMS.SolicitudTransferencia
|
||||
{
|
||||
public class Dto_SolicitudTransferenciaPatchDetalle
|
||||
{
|
||||
public int Linea { get; set; }
|
||||
public double Cantidad { get; set; }
|
||||
}
|
||||
|
||||
public class Dto_SolicitudTransferenciaPatchRequest
|
||||
{
|
||||
public string NumOrden { get; set; }
|
||||
public List<Dto_SolicitudTransferenciaPatchDetalle> Detalle { get; set; }
|
||||
|
||||
public BE_SolicitudTransferenciaPatchRequest RetornaModelo()
|
||||
{
|
||||
return new BE_SolicitudTransferenciaPatchRequest()
|
||||
{
|
||||
NumOrden = NumOrden,
|
||||
Detalle = Detalle?.Select(d => new BE_SolicitudTransferenciaPatchDetalle
|
||||
{
|
||||
Linea = d.Linea,
|
||||
Cantidad = d.Cantidad,
|
||||
}).ToList(),
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
using Net.Business.Entities.WMS.Transferencia;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Net.Business.DTO.WMS.Transferencia
|
||||
{
|
||||
public class Dto_TransferenciaRequest
|
||||
{
|
||||
public string NumOrden { get; set; }
|
||||
public DateTime FechaOrden { get; set; }
|
||||
public int IdTipo { get; set; }
|
||||
public string CodigoAlmacenOrigen { get; set; }
|
||||
public string CodigoSubAlmacenOrigen { get; set; }
|
||||
public int IdCondicionOrigen { get; set; }
|
||||
public string CodigoAlmacenDestino { get; set; }
|
||||
public string CodigoSubAlmacenDestino { get; set; }
|
||||
public int IdCondicionDestino { get; set; }
|
||||
public string Observacion { get; set; }
|
||||
public int IdCuenta { get; set; }
|
||||
public int Accion { get; set; }
|
||||
public int DocEntry { get; set; }
|
||||
public int DocEntryEM { get; set; }
|
||||
public List<BE_TransferenciaDetalle> Detalle { get; set; }
|
||||
|
||||
public BE_TransferenciaRequest RetornaModelo()
|
||||
{
|
||||
return new BE_TransferenciaRequest()
|
||||
{
|
||||
Accion = Accion,
|
||||
TransferenciaDetalles = Detalle,
|
||||
CodigoAlmacenDestino = CodigoAlmacenDestino,
|
||||
CodigoAlmacenOrigen = CodigoAlmacenOrigen,
|
||||
CodigoSubAlmacenDestino = CodigoSubAlmacenDestino,
|
||||
CodigoSubAlmacenOrigen = CodigoSubAlmacenOrigen,
|
||||
FechaOrden = FechaOrden,
|
||||
IdCondicionDestino = IdCondicionDestino,
|
||||
IdCondicionOrigen = IdCondicionOrigen,
|
||||
IdCuenta = IdCuenta,
|
||||
IdTipo = IdTipo,
|
||||
NumOrden = NumOrden,
|
||||
Observacion = Observacion,
|
||||
DocEntry = DocEntry,
|
||||
DocEntryEM = DocEntryEM
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user