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:
GeorgeandClaude Sonnet 5.5 committed 2026-10-05 17:53:41 -05:00
commit 2b82744eb8
168 files changed
+11066

No files matched your search

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.Authenticate
{
public class BE_AuthenticateRequest
{
public string client_id { get; set; }
public string client_secret { get; set; }
}
}
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.Authenticate
{
public class BE_AuthenticateResponse
{
public string Token { get; set; }
public string Type { get; set; }
}
}
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.Authenticate
{
public class ModelCredential
{
public string client_id { get; set; }
public string client_secret { get; set; }
}
}
@@ -0,0 +1,11 @@
namespace Net.Business.Entities
{
public class BE_EmailSenderOptions
{
public int Port { get; set; }
public string Email { get; set; }
public string Password { get; set; }
public bool EnableSsl { get; set; }
public string Host { get; set; }
}
}
@@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Net.Connection.Attributes\Net.Connection.Attributes.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Email\" />
</ItemGroup>
</Project>
@@ -0,0 +1,45 @@
using System.Collections.Generic;
namespace Net.Business.Entities
{
public class BE_ResultadoTransaccion<T>
{
/// <summary>
/// ID de un nuevo registro o Id de registro actualizar
/// </summary>
public int? DocEntry { get; set; }
public string DocNum { get; set; }
/// <summary>
/// Resultado de Codigo, Obtenido de la Base de Datos
/// 0 => Correcto
/// -1 => Error
/// </summary>
public int StatusCode { get; set; }
/// <summary>
/// Descripcion de la acción al finalizar el metodo invocado
/// </summary>
public string Message { get; set; }
public string Error { get; set; }
/// <summary>
/// Nombre de la Aplicación
/// </summary>
public string AppName { get; set; }
/// <summary>
/// Nombre del Método
/// </summary>
public string MethodName { get; set; }
/// <summary>
/// Lista del Resultado al finalizar el método invocado
/// </summary>
public IEnumerable<T> ListData { get; set; }
/// <summary>
/// Data Resultado al finalizar el método invocado
/// </summary>
public T Data { get; set; }
/// <summary>
/// Nombre de la estación de trabajo
/// </summary>
public string NombreEstacion { get => System.Environment.MachineName; set => NombreEstacion = System.Environment.MachineName; }
}
}
@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer
{
public class BE_BaseResponseSap
{
public decimal DocTotal { get; set; }
public decimal DocTotalSys { get; set; }
public long? TransNum { get; set; }
public long? DocEntry { get; set; }
public long? AbsoluteEntry { get; set; }
public long TransId { get; set; }
public long Number { get; set; }
public long Original { get; set; }
public long DocNum { get; set; }
public bool Exito { get; set; }
public string Mensaje { get; set; }
public string CodigoHttp { get; set; }
public string U_BPP_MDCD { get; set; }
public string Currency { get; set; }
public string DocumentStatus { get; set; }
}
}
@@ -0,0 +1,115 @@
using Net.Connection.Attributes;
using System.Data;
namespace Net.Business.Entities.ServicesLayer
{
public class BE_BusinessPartners
{
[DBParameter(SqlDbType.VarChar, 15, ActionType.Everything)]
public string CardCode { get; set; }
[DBParameter(SqlDbType.VarChar, 100, ActionType.Everything)]
public string CardType { get; set; }
[DBParameter(SqlDbType.VarChar, 100, ActionType.Everything)]
public string CardName { get; set; }
[DBParameter(SqlDbType.VarChar, 32, ActionType.Everything)]
public string FederalTaxID { get; set; }
[DBParameter(SqlDbType.VarChar, 250, ActionType.Everything)]
public string Address { get; set; }
[DBParameter(SqlDbType.VarChar, 250, ActionType.Everything)]
public string MailAddress { get; set; }
[DBParameter(SqlDbType.VarChar, 250, ActionType.Everything)]
public string EmailAddress { get; set; }
[DBParameter(SqlDbType.VarChar, 250, ActionType.Everything)]
public string Phone1 { get; set; }
[DBParameter(SqlDbType.VarChar, 250, ActionType.Everything)]
public string U_BPP_BPTD { get; set; }
public string EstadoSocio { get; set; }
public string TablaEstadoSocioNegocio { get; set; }
public string EstadoSocioStyle { get; set; }
}
public class BE_BusinessPartnersCustomersUpdate
{
[DBParameter(SqlDbType.VarChar, 15, ActionType.Everything)]
public string CardCode { get; set; }
[DBParameter(SqlDbType.VarChar, 250, ActionType.Everything)]
public string Address { get; set; }
[DBParameter(SqlDbType.VarChar, 250, ActionType.Everything)]
public string MailAddress { get; set; }
[DBParameter(SqlDbType.VarChar, 250, ActionType.Everything)]
public string EmailAddress { get; set; }
[DBParameter(SqlDbType.VarChar, 250, ActionType.Everything)]
public string Phone1 { get; set; }
public int PriceListNum { get; set; }
}
public class BE_BusinessPartnersCustomers
{
[DBParameter(SqlDbType.VarChar, 15, ActionType.Everything)]
public string CardCode { get; set; }
[DBParameter(SqlDbType.VarChar, 100, ActionType.Everything)]
public string CardType { get; set; }
[DBParameter(SqlDbType.VarChar, 100, ActionType.Everything)]
public string CardName { get; set; }
[DBParameter(SqlDbType.VarChar, 32, ActionType.Everything)]
public string FederalTaxID { get; set; }
[DBParameter(SqlDbType.VarChar, 250, ActionType.Everything)]
public string Address { get; set; }
[DBParameter(SqlDbType.VarChar, 250, ActionType.Everything)]
public string MailAddress { get; set; }
[DBParameter(SqlDbType.VarChar, 250, ActionType.Everything)]
public string EmailAddress { get; set; }
[DBParameter(SqlDbType.VarChar, 250, ActionType.Everything)]
public string Phone1 { get; set; }
[DBParameter(SqlDbType.Int, 0, ActionType.Everything)]
public int U_BPP_BPTD { get; set; }
public int PriceListNum { get; set; }
//U_BPP_BPTD = 6,
}
}
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer.CreditNotes
{
public class BE_CreditNotesBatchNumbers
{
public string BatchNumber { get; set; }
public double Quantity { get; set; }
}
}
@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer.CreditNotes
{
public class BE_CreditNotesDocumentReferences
{
public int RefDocEntr { get; set; }
public string RefObjType { get; set; }
public DateTime IssueDate { get; set; }
public string Remark { get; set; }
}
}
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer.CreditNotes
{
public class BE_CreditNotesLine
{
public string ItemCode { get; set; }
public string ItemDescription { get; set; }
public decimal Quantity { get; set; }
public decimal PriceAfterVAT { get; set; }
public string WarehouseCode { get; set; }
public string Currency { get; set; }
public int? BaseType { get; set; }
public int? BaseEntry { get; set; }
public int? BaseLine { get; set; }
public int LineNum { get; set; }
public string U_ITC_ALMDES { get; set; }
public List<BE_CreditNotesBatchNumbers> BatchNumbers { get; set; }
}
}
@@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
namespace Net.Business.Entities.ServicesLayer.CreditNotes
{
public class BE_CreditNotesNotes
{
public DateTime DocDate { get; set; }
public DateTime DocDueDate { get; set; }
public string CardCode { get; set; }
public string CardName { get; set; }
public string DocCurrency { get; set; }
public string PaymentGroupCode { get; set; }
public string DocObjectCode { get; set; }
public string NumAtCard { get; set; }
public string U_SYP_MDSD { get; set; }
public string U_SYP_MDCD { get; set; }
public string U_SYP_MDTD { get; set; }
public string U_SYP_MDSO { get; set; }
public string U_SYP_MDCO { get; set; }
public string U_SYP_MDTO { get; set; }
public string U_SYP_FECHAREF { get; set; }
public string U_SYP_TPONC { get; set; }
public string U_SYP_MOTNC { get; set; }
public string U_SYP_FEESUNAT { get; set; } = "000";
public string U_SYP_FEEST { get; set; } = "PE";
public string U_SYP_FEMEX { get; set; } = "1";
public List<BE_CreditNotesLine> DocumentLines { get; set; }
}
}
@@ -0,0 +1,17 @@
using Net.Connection.Attributes;
using System.Data;
namespace Net.Business.Entities.ServicesLayer
{
public class FE_BusinessPartners
{
[DBParameter(SqlDbType.VarChar, 30, ActionType.Everything)]
public string CardCode { get; set; }
[DBParameter(SqlDbType.VarChar, 100, ActionType.Everything)]
public string CardName { get; set; }
[DBParameter(SqlDbType.VarChar, 32, ActionType.Everything)]
public string FederalTaxID { get; set; }
[DBParameter(SqlDbType.VarChar, 20, ActionType.Everything)]
public string Usuario { get; set; }
}
}
@@ -0,0 +1,78 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer.HR
{
public class BE_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 class HojaRutaSAP
{
//public int DocEntry { get; set; }
//public int DocNum { get; set; }
public int U_ARD_PHR_CNTDOC { get; set; }
public string U_ARD_PHR_PLACA { get; set; }
public string U_ARD_PHR_LICCON { get; set; }
public string U_ARD_PHR_NOMCON { get; set; }
public string U_ARD_PHR_MARVEH { get; set; }
public DateTime U_ARD_PHR_FECCRE { get; set; }
public string U_ARD_PHR_CERINS { get; set; }
public string U_ARD_PHR_PLATOL { get; set; }
public string U_ARD_PHR_NOMDESP { get; set; }
public string U_ARD_PHR_ESTDESP { get; set; }
public string U_ARD_PHR_OBSERVA { get; set; }
public string U_ARD_PHR_ZONDIS { get; set; }
public string U_ARD_PHR_TERRI { get; set; }
public string U_ARD_PHR_MODTRANSP { get; set; }
public string U_ARD_PHR_NOMAGENTRANS { get; set; }
public string U_ARD_PHR_CODAGENTRANS { get; set; }
public string U_ARD_PHR_RUCAGENTRANS { get; set; }
public double U_MSV_PKH_PESM { get; set; }
public string Object { get; set; } = "ARD_PHR";
public string U_MSV_PKH_ORIG { get; set; }
public List<HojaRutaDetailsEntities> ARD_PCK_HJRT_DETCollection { get; set; }
}
public class HojaRutaDetailsEntities
{
public int DocEntry { get; set; }
public int LineId { get; set; }
public int VisOrder { get; set; }
public string U_ARD_PHR_NROPED { get; set; }
public string U_ARD_PHR_NOMCLI { get; set; }
public string U_ARD_PHR_RUCCLI { get; set; }
public string U_ARD_PHR_DIRDESP { get; set; }
public string U_ARD_PHR_FORPAG { get; set; }
public string U_ARD_PHR_NROGRE { get; set; }
public string U_ARD_PHR_NROFACT { get; set; }
public string U_ARD_PHR_ZONA { get; set; }
public string U_ARD_PHR_TERRIT { get; set; }
public DateTime U_ARD_PHR_FEENPED { get; set; }
public string U_ARD_PHR_MONED { get; set; }
public decimal U_ARD_TOTALFC { get; set; }
public decimal U_ARD_PHR_TOTALPD { get; set; }
public string U_MSV_PKH_DORV { get; set; }
public string U_MSV_PKH_DGRE { get; set; }
public string U_MSV_PKH_DCPE { get; set; }
public int U_MSV_PKH_PEOV { get; set; }
public string U_ITC_PHR_NOMVEN { get; set; }
public string U_MSV_PKH_CGUI { get; set; }
public string U_ARD_PHR_ESTDESP { get; set; } = "Embarcado";
public string U_MSV_PKH_APLG { get; set; }
public string Object { get; set; } = "ARD_PHR";
}
}
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer.HR
{
public class BE_HojaRutaCreateDetalle
{
public string NumeroFactura { get; set; }
public string CodigoInterno { get; set; }
}
}
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer
{
public class ITC_SOLINGMER
{
public string U_ITC_MDTI { get; set; }
public string U_ITC_MDWC { get; set; }
public string U_ITC_USRSOL { get; set; }
public string U_ITC_MDCM { get; set; }
public List<ITC_SOLINGMER_Details> ITC_SOLINGMERDETCollection { get; set; }
}
public class ITC_SOLINGMER_Details
{
public int LineId { get; set; }
public string U_ITC_CCOSTO { get; set; }
public string U_ITC_ACCCODE { get; set; }
public string U_ITC_ITEMNAME { get; set; }
}
}
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer
{
public class ITC_SOLSALMER
{
public string U_ITC_MDTS { get; set; }
public string U_ITC_USRSOL { get; set; }
public string U_ITC_MDCM { get; set; }
public List<ITC_SOLSALMER_Details> ITCA_SOLSALMERDETCollection { get; set; }
}
public class ITC_SOLSALMER_Details
{
public int LineId { get; set; }
public string U_ITC_CCOST { get; set; }
public string U_ITC_AccCode { get; set; }
public string U_ITC_ItemName { get; set; }
}
}
@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer.InventoryGenEntries
{
public class BE_InventoryGenEntries
{
public DateTime DocDate { get; set; }
public DateTime DocDueDate { get; set; }
public string DocCurrency { get; set; }
public string PaymentGroupCode { get; set; }
public string DocObjectCode { get; set; }
public double DocRate { get; set; }
public string U_SYP_TPOENTME { get; set; }
public string U_ITC_WMS_NUMINV { get; set; }
public string U_ARD_PERSOLIC { get; set; }
public string Comments { get; set; }
public List<BE_InventoryGenEntriesLine> DocumentLines { get; set; }
}
}
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer.InventoryGenEntries
{
public class BE_InventoryGenEntriesBatchNumbers
{
public string BatchNumber { get; set; }
public double Quantity { get; set; }
}
}
@@ -0,0 +1,20 @@
using System.Collections.Generic;
namespace Net.Business.Entities.ServicesLayer.InventoryGenEntries
{
public class BE_InventoryGenEntriesLine
{
public int LineNum { get; set; }
public string ItemCode { get; set; }
public string ItemDescription { get; set; }
public double Quantity { get; set; }
public double PriceAfterVAT { get; set; }
public string WarehouseCode { get; set; }
public string Currency { get; set; }
public double LineTotal { get; set; }
public string AccountCode { get; set; }
public string CostingCode { get; set; } = "";
public List<BE_InventoryGenEntriesBatchNumbers> BatchNumbers { get; set; }
}
}
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer.InventoryGenExits
{
public class BE_InventoryGenExits
{
public DateTime DocDate { get; set; }
public DateTime DocDueDate { get; set; }
public string DocCurrency { get; set; }
public string PaymentGroupCode { get; set; }
public string DocObjectCode { get; set; }
//public string DocObjectCode2 { get; set; }
public double DocRate { get; set; }
public string U_SYP_TPOSALME { get; set; }
public string U_ITC_WMS_NUMINV { get; set; }
public string U_ARD_PERSOLIC { get; set; }
public string Comments { get; set; }
public List<BE_InventoryGenExitsLine> DocumentLines { get; set; }
}
}
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer.InventoryGenExits
{
public class BE_InventoryGenExitsBatchNumbers
{
public string BatchNumber { get; set; }
public double Quantity { get; set; }
}
}
@@ -0,0 +1,20 @@
using System.Collections.Generic;
namespace Net.Business.Entities.ServicesLayer.InventoryGenExits
{
public class BE_InventoryGenExitsLine
{
public int LineNum { get; set; }
public string ItemCode { get; set; }
public string ItemDescription { get; set; }
public double Quantity { get; set; }
public double PriceAfterVAT { get; set; }
public string WarehouseCode { get; set; }
public string Currency { get; set; }
public double LineTotal { get; set; }
public string AccountCode { get; set; }
public string CostingCode { get; set; } = "";
public List<BE_InventoryGenExitsBatchNumbers> BatchNumbers { get; set; }
}
}
@@ -0,0 +1,21 @@
using System.Collections.Generic;
namespace Net.Business.Entities.ServicesLayer.InventoryTransferRequest
{
// Shape minimo del GET InventoryTransferRequests({docEntry}) de Service Layer -
// solo lo que SolicitudTransferenciaRepository.Update necesita leer (el Rate
// real de cada linea antes del PATCH). Los campos del JSON de SAP que no estan
// mapeados aca se ignoran al deserializar (comportamiento default de
// Newtonsoft.Json), no hace falta mapear el documento completo.
public class BE_InventoryTransferRequest
{
public int DocEntry { get; set; }
public List<BE_InventoryTransferRequestLine> StockTransferLines { get; set; }
}
public class BE_InventoryTransferRequestLine
{
public int LineNum { get; set; }
public double Rate { get; set; }
}
}
@@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer.Invoices
{
public class BE_Invoices
{
public DateTime DocDate { get; set; }
public DateTime DocDueDate { get; set; }
public string CardCode { get; set; }
public string CardName { get; set; }
public string DocCurrency { get; set; }
public string PaymentGroupCode { get; set; }
public string DocObjectCode { get; set; }
public int DocEntry { get; set; }
public string U_SYP_MDSD { get; set; }
public string U_SYP_MDCD { get; set; }
public string U_SYP_MDTD { get; set; }
public List<BE_InvoicesLine> DocumentLines { get; set; }
}
public class BE_InvoicesConsulta
{
public DateTime DocDate { get; set; }
public DateTime DocDueDate { get; set; }
public string CardCode { get; set; }
public string CardName { get; set; }
public string DocCurrency { get; set; }
public string PaymentGroupCode { get; set; }
public string DocObjectCode { get; set; }
public int DocEntry { get; set; }
public string DocumentStatus { get; set; }
public string U_SYP_MDSD { get; set; }
public string U_SYP_MDCD { get; set; }
public string U_SYP_MDTD { get; set; }
public List<BE_InvoicesLine> DocumentLines { get; set; }
}
}
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer.Invoices
{
public class BE_InvoicesBatchNumbers
{
public string BatchNumber { get; set; }
public double Quantity { get; set; }
}
}
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer.Invoices
{
public class BE_InvoicesLine
{
public int LineNum { get; set; }
public string ItemCode { get; set; }
public string ItemDescription { get; set; }
public decimal Quantity { get; set; }
public decimal PriceAfterVAT { get; set; }
public string WarehouseCode { get; set; }
public string Currency { get; set; }
public int? BaseLine { get; set; }
public List<BE_InvoicesBatchNumbers> BatchNumbers { get; set; }
}
}
@@ -0,0 +1,17 @@
using System;
namespace Net.Business.Entities.ServicesLayer.Items
{
public class BE_ItemStock
{
public string ItemCode { get; set; }
public string ItemName { get; set; }
public string WhsCode { get; set; }
public string WhsName { get; set; }
public string DistNumber { get; set; }
public DateTime ExpDate { get; set; }
public string BinCode { get; set; }
public double OnHandQty { get; set; }
public double AvgPrice { get; set; }
}
}
@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace Net.Business.Entities.ServicesLayer.PurchaseDeliveryNotes
{
public class BE_PurchaseDeliveryNotes
{
public DateTime DocDate { get; set; }
public DateTime DocDueDate { get; set; }
public string CardCode { get; set; }
public string CardName { get; set; }
public string DocCurrency { get; set; }
public string PaymentGroupCode { get; set; }
public string DocObjectCode { get; set; }
public string NumAtCard { get; set; }
public string U_SYP_MDTD { get; set; }
public string U_SYP_MDSD { get; set; }
public string U_SYP_MDCD { get; set; }
public List<BE_PurchaseDeliveryNotesLine> DocumentLines { get; set; }
}
}
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer.PurchaseDeliveryNotes
{
public class BE_PurchaseDeliveryNotesBatchNumbers
{
public string BatchNumber { get; set; }
public double Quantity { get; set; }
}
}
@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer.PurchaseDeliveryNotes
{
public class BE_PurchaseDeliveryNotesLine
{
public string ItemCode { get; set; }
public string ItemDescription { get; set; }
public double Quantity { get; set; }
public decimal PriceAfterVAT { get; set; }
public string WarehouseCode { get; set; }
public string Currency { get; set; }
public int? BaseType { get; set; }
public int? BaseEntry { get; set; }
public int? BaseLine { get; set; }
public int LineNum { get; set; }
public List<BE_PurchaseDeliveryNotesBatchNumbers> BatchNumbers { get; set; }
}
}
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer.PurchaseInvoices
{
public class BE_PurchaseInvoices
{
public DateTime DocDate { get; set; }
public DateTime DocDueDate { get; set; }
public string CardCode { get; set; }
public string CardName { get; set; }
public string DocCurrency { get; set; }
public string PaymentGroupCode { get; set; }
public string DocObjectCode { get; set; }
public int DocEntry { get; set; }
public List<BE_PurchaseInvoicesLine> DocumentLines { get; set; }
}
}
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer.PurchaseInvoices
{
public class BE_PurchaseInvoicesBatchNumbers
{
public string BatchNumber { get; set; }
public string Quantity { get; set; }
}
}
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer.PurchaseInvoices
{
public class BE_PurchaseInvoicesLine
{
public int LineNum { get; set; }
public string ItemCode { get; set; }
public string ItemDescription { get; set; }
public decimal Quantity { get; set; }
public decimal PriceAfterVAT { get; set; }
public string WarehouseCode { get; set; }
public string Currency { get; set; }
public List<BE_PurchaseInvoicesBatchNumbers> BatchNumbers { get; set; }
}
}
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer.PurchaseOrders
{
public class BE_PurchaseOrders
{
public DateTime DocDate { get; set; }
public DateTime DocDueDate { get; set; }
public string CardCode { get; set; }
public string CardName { get; set; }
public string DocCurrency { get; set; }
public string PaymentGroupCode { get; set; }
public string DocObjectCode { get; set; }
public int DocEntry { get; set; }
public List<BE_PurchaseOrdersLine> DocumentLines { get; set; }
}
}
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer.PurchaseOrders
{
public class BE_PurchaseOrdersBatchNumbers
{
public string BatchNumber { get; set; }
public string Quantity { get; set; }
}
}
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer.PurchaseOrders
{
public class BE_PurchaseOrdersLine
{
public int LineNum { get; set; }
public string ItemCode { get; set; }
public string ItemDescription { get; set; }
public decimal Quantity { get; set; }
public decimal PriceAfterVAT { get; set; }
public string WarehouseCode { get; set; }
public string Currency { get; set; }
public List<BE_PurchaseOrdersBatchNumbers> BatchNumbers { get; set; }
}
}
@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer.ReturnRequest
{
public class BE_ReturnRequest
{
public DateTime DocDate { get; set; }
public DateTime DocDueDate { get; set; }
public string CardCode { get; set; }
public string CardName { get; set; }
public string DocCurrency { get; set; }
public string PaymentGroupCode { get; set; }
public string DocObjectCode { get; set; }
public int DocEntry { get; set; }
public string U_SYP_TPONC { get; set; }
public string U_SYP_MOTNC { get; set; }
public string U_SYP_MDSO { get; set; }
public string U_SYP_MDCO { get; set; }
public string U_SYP_MDTO { get; set; }
public DateTime U_SYP_FECHAREF { get; set; }
public List<BE_ReturnRequestLine> DocumentLines { get; set; }
}
}
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer.ReturnRequest
{
public class BE_ReturnRequestBatchNumbers
{
public string BatchNumber { get; set; }
public string Quantity { get; set; }
}
}
@@ -0,0 +1,21 @@
using System.Collections.Generic;
namespace Net.Business.Entities.ServicesLayer.ReturnRequest
{
public class BE_ReturnRequestLine
{
public int LineNum { get; set; }
public string ItemCode { get; set; }
public string ItemDescription { get; set; }
public decimal Quantity { get; set; }
public decimal PriceAfterVAT { get; set; }
public string WarehouseCode { get; set; }
public string Currency { get; set; }
public int? BaseEntry { get; set; }
public int? BaseLine { get; set; }
public int? BaseType { get; set; }
public string U_ITC_ALMDES { get;set; }
public List<BE_ReturnRequestBatchNumbers> BatchNumbers { get; set; }
}
}
@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer.StockTransfer
{
public class BE_StockTransfer
{
public DateTime DocDate { get; set; }
public DateTime DueDate { get; set; }
public string Comments { get; set; }
public string FromWarehouse { get; set; }
public string ToWarehouse { get; set; }
public DateTime TaxDate { get; set; }
public string U_SYP_MDTS { get; set; }
public string U_SYP_MDMT { get; set; }
public string U_ITC_WMS_NUMINV { get; set; }
public string U_SYP_TPOENTME { get; set; }
public List<BE_StockTransferLine> StockTransferLines { get; set; }
public List<BE_StockTransferDocumentReferences> DocumentReferences { get; set; }
}
public class BE_StockTransferAutomatico
{
public DateTime DocDate { get; set; }
public DateTime DueDate { get; set; }
public string Comments { get; set; }
public string FromWarehouse { get; set; }
public string ToWarehouse { get; set; }
public DateTime TaxDate { get; set; }
public string U_SYP_MDTS { get; set; }
public string U_SYP_MDMT { get; set; }
public string U_ITC_WMS_NUMINV { get; set; }
public string U_SYP_TPOENTME { get; set; }
public int PriceList { get; set; }
public List<BE_StockTransferLine> StockTransferLines { get; set; }
public List<BE_StockTransferDocumentReferences> DocumentReferences { get; set; }
}
}
@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer.StockTransfer
{
public class BE_StockTransferDocumentReferences
{
public int RefDocEntr { get; set; }
public string RefObjType { get; set; }
public string Remark { get; set; }
public DateTime IssueDate { get; set; } = DateTime.Now;
}
}
@@ -0,0 +1,18 @@
using System.Collections.Generic;
namespace Net.Business.Entities.ServicesLayer.StockTransfer
{
public class BE_StockTransferLine
{
public int LineNum { get; set; }
public string ItemCode { get; set; }
public string ItemDescription { get; set; }
public double Quantity { get; set; }
public string WarehouseCode { get; set; }
public string FromWarehouseCode { get; set; }
public int? BaseLine { get; set; }
public int? BaseEntry { get; set; }
public string BaseType { get; set; }
public List<BE_StockTransferLineBatchNumber> BatchNumbers { get; set; }
}
}
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.ServicesLayer.StockTransfer
{
public class BE_StockTransferLineBatchNumber
{
public string BatchNumber { get; set; }
public double Quantity { get; set; }
}
}
@@ -0,0 +1,13 @@
namespace Net.Business.Entities.WMS.HojaRuta
{
public class BE_HojaRutaEntities
{
public int DocEntry { get; set; }
public int IdEstadoCubico { get; set; }
public string Estado { get; set; }
public string Proceso { get; set; }
public string CodMotivo { get; set; }
public string HoraInicio { get; set; }
public string FinRuta { get; set; }
}
}
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
namespace Net.Business.Entities.WMS.Inventario
{
public class BE_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 string NroInventario { get; set; }
public List<BE_InventarioItems> Detalle { get; set; }
}
}
@@ -0,0 +1,15 @@
using System.Collections.Generic;
namespace Net.Business.Entities.WMS.Inventario
{
public class BE_InventarioItems
{
public string CodigoArticulo { get; set; }
public string DescripcionArticulo { get; set; }
public decimal Cantidad { get; set; }
public string UnidadMedida { get; set; }
public double PrecioPromedio { get; set; }
public string CentroCosto { get; set; }
public List<BE_InventarioItemsLotes> Lotes { get; set; }
}
}
@@ -0,0 +1,11 @@
using System;
namespace Net.Business.Entities.WMS.Inventario
{
public class BE_InventarioItemsLotes
{
public string Lote { get; set; }
public DateTime FechaVencimiento { get; set; }
public decimal Cantidad { get; set; }
}
}
@@ -0,0 +1,14 @@
namespace Net.Business.Entities.WMS.Picking
{
public class BE_PickingDetalle
{
public int Item { get; set; }
public string CodigoArticulo { get; set; }
public string CodigoUM { get; set; }
public string LoteProducto { get; set; }
public decimal CantidadPedida { get; set; }
public string CodigoSubAlmacen { get; set; }
public string Estado { get; set; }
public double PrecioPromedio { get; set; }
}
}
@@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.WMS.Picking
{
public class BE_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 DocEntry { get; set; }
public int IdEstadoCubico { 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 decimal Longitud { get; set; }
public decimal Latitud { get; set; }
public List<BE_PickingDetalle> Detalle { get; set; }
}
}
@@ -0,0 +1,10 @@
namespace Net.Business.Entities.WMS.ProcesoPicking
{
public class BE_ProcesoPicking
{
public string Code { get; set; }
public string U_ITCA_PROCESO { get; set; }
public string U_ITCA_GNRPROC { get; set; }
public string U_ITCA_ESTADO { get; set; }
}
}
@@ -0,0 +1,11 @@
namespace Net.Business.Entities.WMS.Recibo
{
public class BE_ReciboDetalle
{
public int Item { get; set; }
public string CodigoArticulo { get; set; }
public string CodigoUM { get; set; }
public string LoteProducto { get; set; }
public decimal CantidadPedida { get; set; }
}
}
@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.WMS.Recibo
{
public class BE_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 DocEntry { get; set; }
public int Accion { 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; }
}
}
@@ -0,0 +1,22 @@
using System.Collections.Generic;
namespace Net.Business.Entities.WMS.SolicitudTransferencia
{
// Contrato propio del PATCH de SolicitudTransferencia - funcionalidad nueva, sin
// equivalente en el .NET original. El PATCH real SOLO actualiza cantidades de
// linea existentes en SAP (InventoryTransferRequests) y ELIMINA una linea
// cuando Cantidad = 0 - no toca fechas, almacenes ni ningun otro campo del
// documento, por eso no reusa BE_TransferenciaRequest.
public class BE_SolicitudTransferenciaPatchDetalle
{
public int Linea { get; set; }
public double Cantidad { get; set; }
}
public class BE_SolicitudTransferenciaPatchRequest
{
// No se usa para el PATCH a SAP - solo trazabilidad en el log de auditoria.
public string NumOrden { get; set; }
public List<BE_SolicitudTransferenciaPatchDetalle> Detalle { get; set; }
}
}
@@ -0,0 +1,12 @@
namespace Net.Business.Entities.WMS.Transferencia
{
public class BE_TransferenciaDetalle
{
public int Item { get; set; }
public string CodigoArticulo { get; set; }
public string CodigoUM { get; set; }
public string LoteProducto { get; set; }
public decimal CantidadPedida { get; set; }
public int Accion { get; set; }
}
}
@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Business.Entities.WMS.Transferencia
{
public class BE_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> TransferenciaDetalles { get; set; }
}
}