加入erp的相关服务
This commit is contained in:
@@ -0,0 +1,85 @@
|
||||
{
|
||||
"ExtendedData": {
|
||||
"inputs": [
|
||||
"http://119.23.206.129/K3cloud/erpgw.asmx?WSDL"
|
||||
],
|
||||
"collectionTypes": [
|
||||
"System.Array",
|
||||
"System.Collections.Generic.Dictionary`2"
|
||||
],
|
||||
"namespaceMappings": [
|
||||
"*, ERP"
|
||||
],
|
||||
"references": [
|
||||
"BouncyCastle.Crypto, {BouncyCastle.NetCore, 1.8.5}",
|
||||
"Google.Protobuf, {Google.Protobuf, 3.19.4}",
|
||||
"ICSharpCode.SharpZipLib, {SharpZipLib, 1.2.0}",
|
||||
"K4os.Compression.LZ4, {K4os.Compression.LZ4, 1.2.6}",
|
||||
"K4os.Compression.LZ4.Streams, {K4os.Compression.LZ4.Streams, 1.2.6}",
|
||||
"K4os.Hash.xxHash, {K4os.Hash.xxHash, 1.0.6}",
|
||||
"Microsoft.EntityFrameworkCore, {Microsoft.EntityFrameworkCore, 5.0.10}",
|
||||
"Microsoft.EntityFrameworkCore.Abstractions, {Microsoft.EntityFrameworkCore.Abstractions, 5.0.10}",
|
||||
"Microsoft.EntityFrameworkCore.Relational, {Microsoft.EntityFrameworkCore.Relational, 5.0.10}",
|
||||
"Microsoft.Extensions.Caching.Abstractions, {Microsoft.Extensions.Caching.Abstractions, 6.0.0}",
|
||||
"Microsoft.Extensions.Caching.Memory, {Microsoft.Extensions.Caching.Memory, 6.0.1}",
|
||||
"Microsoft.Extensions.Configuration.Abstractions, {Microsoft.Extensions.Configuration.Abstractions, 6.0.0}",
|
||||
"Microsoft.Extensions.DependencyInjection, {Microsoft.Extensions.DependencyInjection, 5.0.2}",
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions, {Microsoft.Extensions.DependencyInjection.Abstractions, 6.0.0}",
|
||||
"Microsoft.Extensions.Diagnostics.HealthChecks, {Microsoft.Extensions.Diagnostics.HealthChecks, 2.2.0}",
|
||||
"Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions, {Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions, 2.2.0}",
|
||||
"Microsoft.Extensions.FileProviders.Abstractions, {Microsoft.Extensions.FileProviders.Abstractions, 2.2.0}",
|
||||
"Microsoft.Extensions.Hosting.Abstractions, {Microsoft.Extensions.Hosting.Abstractions, 2.2.0}",
|
||||
"Microsoft.Extensions.Logging, {Microsoft.Extensions.Logging, 5.0.0}",
|
||||
"Microsoft.Extensions.Logging.Abstractions, {Microsoft.Extensions.Logging.Abstractions, 6.0.0}",
|
||||
"Microsoft.Extensions.Options, {Microsoft.Extensions.Options, 6.0.0}",
|
||||
"Microsoft.Extensions.Primitives, {Microsoft.Extensions.Primitives, 6.0.0}",
|
||||
"Microsoft.IdentityModel.Logging, {Microsoft.IdentityModel.Logging, 5.5.0}",
|
||||
"Microsoft.IdentityModel.Tokens, {Microsoft.IdentityModel.Tokens, 5.5.0}",
|
||||
"MySql.Data, {MySql.Data, 8.0.29}",
|
||||
"MySqlConnector, {MySqlConnector, 1.3.13}",
|
||||
"Newtonsoft.Json, {Newtonsoft.Json, 13.0.1}",
|
||||
"NPinyin.Core, {NPinyin.Core, 3.0.0}",
|
||||
"NPOI, {NPOI, 2.5.1}",
|
||||
"Npoi.Mapper, {Npoi.Mapper, 3.5.1}",
|
||||
"NPOI.OOXML, {NPOI, 2.5.1}",
|
||||
"NPOI.OpenXml4Net, {NPOI, 2.5.1}",
|
||||
"NPOI.OpenXmlFormats, {NPOI, 2.5.1}",
|
||||
"PinYinConverterCore, {PinYinConverterCore, 1.0.2}",
|
||||
"Pipelines.Sockets.Unofficial, {Pipelines.Sockets.Unofficial, 2.2.0}",
|
||||
"Pomelo.EntityFrameworkCore.MySql, {Pomelo.EntityFrameworkCore.MySql, 5.0.2}",
|
||||
"Quartz, {Quartz, 3.4.0}",
|
||||
"Quartz.AspNetCore, {Quartz.AspNetCore, 3.4.0}",
|
||||
"Quartz.Extensions.DependencyInjection, {Quartz.Extensions.DependencyInjection, 3.4.0}",
|
||||
"Quartz.Extensions.Hosting, {Quartz.Extensions.Hosting, 3.4.0}",
|
||||
"Quartz.Serialization.Json, {Quartz.Serialization.Json, 3.4.0}",
|
||||
"StackExchange.Redis, {StackExchange.Redis, 2.2.79}",
|
||||
"System.Collections.Immutable, {System.Collections.Immutable, 5.0.0}",
|
||||
"System.ComponentModel.Annotations, {System.ComponentModel.Annotations, 5.0.0}",
|
||||
"System.Configuration.ConfigurationManager, {System.Configuration.ConfigurationManager, 5.0.0}",
|
||||
"System.Diagnostics.DiagnosticSource, {System.Diagnostics.DiagnosticSource, 5.0.1}",
|
||||
"System.Diagnostics.PerformanceCounter, {System.Diagnostics.PerformanceCounter, 5.0.0}",
|
||||
"System.Drawing.Common, {System.Drawing.Common, 5.0.0}",
|
||||
"System.IO, {System.IO, 4.3.0}",
|
||||
"System.IO.Pipelines, {System.IO.Pipelines, 5.0.0}",
|
||||
"System.Json, {System.Json, 4.7.1}",
|
||||
"System.Reflection, {System.Reflection, 4.3.0}",
|
||||
"System.Reflection.Emit, {System.Reflection.Emit, 4.3.0}",
|
||||
"System.Reflection.Emit.ILGeneration, {System.Reflection.Emit.ILGeneration, 4.3.0}",
|
||||
"System.Reflection.Primitives, {System.Reflection.Primitives, 4.3.0}",
|
||||
"System.Runtime, {System.Runtime, 4.3.0}",
|
||||
"System.Runtime.CompilerServices.Unsafe, {System.Runtime.CompilerServices.Unsafe, 6.0.0}",
|
||||
"System.Security.AccessControl, {System.Security.AccessControl, 5.0.0}",
|
||||
"System.Security.Cryptography.Cng, {System.Security.Cryptography.Cng, 4.5.0}",
|
||||
"System.Security.Permissions, {System.Security.Permissions, 5.0.0}",
|
||||
"System.Security.Principal.Windows, {System.Security.Principal.Windows, 5.0.0}",
|
||||
"System.Text.Encoding, {System.Text.Encoding, 4.3.0}",
|
||||
"System.Text.Encoding.CodePages, {System.Text.Encoding.CodePages, 4.4.0}",
|
||||
"System.Threading.Tasks, {System.Threading.Tasks, 4.3.0}",
|
||||
"System.Windows.Extensions, {System.Windows.Extensions, 5.0.0}",
|
||||
"Ubiety.Dns.Core, {MySql.Data, 8.0.29}",
|
||||
"ZstdNet, {MySql.Data, 8.0.29}"
|
||||
],
|
||||
"targetFramework": "netcoreapp3.1",
|
||||
"typeReuseMode": "All"
|
||||
}
|
||||
}
|
||||
1241
src/WMS.Web.Core/Connected Services/ERP/Reference.cs
Normal file
1241
src/WMS.Web.Core/Connected Services/ERP/Reference.cs
Normal file
File diff suppressed because it is too large
Load Diff
30
src/WMS.Web.Core/Dto/Erp/ErpBillQueryDto.cs
Normal file
30
src/WMS.Web.Core/Dto/Erp/ErpBillQueryDto.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace WMS.Web.Core.Dto.Erp
|
||||
{
|
||||
/// <summary>
|
||||
/// ERP:单据查询-dto
|
||||
/// </summary>
|
||||
public class ErpBillQueryDto
|
||||
{
|
||||
public ErpBillQueryDto() { }
|
||||
|
||||
public ErpBillQueryDto(string accessToken)
|
||||
{
|
||||
this.AccessToken = accessToken;
|
||||
}
|
||||
/// <summary>
|
||||
/// 令牌
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "ACCESSTOKEN")]
|
||||
public string AccessToken { get; set; }
|
||||
/// <summary>
|
||||
/// 参数
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "data")]
|
||||
public string Data { get; set; }
|
||||
}
|
||||
}
|
||||
48
src/WMS.Web.Core/Dto/Erp/ErpBillQueryParamDto.cs
Normal file
48
src/WMS.Web.Core/Dto/Erp/ErpBillQueryParamDto.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace WMS.Web.Core.Dto.Erp
|
||||
{
|
||||
/// <summary>
|
||||
/// ERP:单据查询-参数-dto
|
||||
/// </summary>
|
||||
public class ErpBillQueryParamDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 业务对象表单Id(必录)
|
||||
/// </summary>
|
||||
public string FormId { get; set; } = "STK_InStock";
|
||||
/// <summary>
|
||||
/// 需查询的字段key集合,字符串类型,格式:"key1,key2,..."(必录) 注(查询单据体内码,需加单据体Key和下划线,如:FEntryKey_FEntryId)
|
||||
/// </summary>
|
||||
public string FieldKeys { get; set; } = "FBillNo,FUOM";
|
||||
/// <summary>
|
||||
/// 过滤条件,数组类型,如:[{"Left":"(","FieldName":"Field1","Compare":"=","Value":"111","Right":")","Logic":"AND"},{"Left":"(","FieldName":"Field2","Compare":"=","Value":"222","Right":")","Logic":""}]
|
||||
/// </summary>
|
||||
public string FilterString { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序字段,字符串类型(非必录)
|
||||
/// </summary>
|
||||
public string OrderString { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 返回总行数,整型(非必录)
|
||||
/// </summary>
|
||||
public int TopRowCount { get; set; }
|
||||
/// <summary>
|
||||
/// 开始行索引,整型(非必录)
|
||||
/// </summary>
|
||||
public int StartRow { get; set; } = 1;
|
||||
/// <summary>
|
||||
/// 最大行数,整型,不能超过10000(非必录)
|
||||
/// </summary>
|
||||
public int Limit { get; set; } = 10;
|
||||
|
||||
/// <summary>
|
||||
/// 表单所在的子系统内码,字符串类型(非必录)
|
||||
/// </summary>
|
||||
public string SubSystemId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace WMS.Web.Core.Dto.Erp.Purchase
|
||||
{
|
||||
/// <summary>
|
||||
/// erp-采购入库-返回数据源
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class ErpPurchaseInStockResultDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 单据编号
|
||||
/// </summary>
|
||||
public string BillNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 物料规格信号
|
||||
/// </summary>
|
||||
public string Specifications { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -26,6 +26,10 @@
|
||||
<PackageReference Include="StackExchange.Redis" Version="2.2.79" />
|
||||
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
|
||||
<PackageReference Include="System.Json" Version="4.7.1" />
|
||||
<PackageReference Include="System.ServiceModel.Duplex" Version="4.7.*" />
|
||||
<PackageReference Include="System.ServiceModel.Http" Version="4.7.*" />
|
||||
<PackageReference Include="System.ServiceModel.NetTcp" Version="4.7.*" />
|
||||
<PackageReference Include="System.ServiceModel.Security" Version="4.7.*" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user