first commit

This commit is contained in:
2026-09-02 16:31:50 +08:00
commit a461727193
911 changed files with 692450 additions and 0 deletions
@@ -0,0 +1,46 @@
using JSMachine.WMS.RPC.ErpRPC.IService;
using JSMachine.WMS.RPC.ErpRPC.Service.XinRong;
using JSMachine.WMS.RPC.RcsRPC.Dto.In;
using JSMachine.WMS.RPC.RcsRPC.IService;
using JSMachine.WMS.RPC.RcsRPC.Service;
namespace JSMachine.WMS.RPCTest.ErpRPC.Service
{
[TestClass()]
/// <summary>
/// ERP 与 RCS RPC 服务的手工联调测试集合。
/// 测试依赖外部服务配置,不能视为完全隔离的单元测试。
/// </summary>
public class ErpServiceTest
{
[TestMethod()]
/// <summary>
/// 调用信荣 ERP 物料信息接口,保留当前联调断言行为。
/// </summary>
public void ErpTest()
{
// 使用真实实现验证外部接口响应;执行前需要准备对应的 ERP 网络和配置环境。
IPaperStorageService paperStorageService = new XinRongPaperStorageService();
var result = paperStorageService.GetMateriaInfo("HZYD2401040039_0_1");
var bb = result;
Assert.Fail();
//IRcsService rcsService = new RcsService();
//var jsonParam = new CreateTaskParam
//{
// orderId = "8888"
//};
//jsonParam.taskOrderDetail = new TaskOrderDetailDto
//{
// taskPath = "货架区,工作台,货架区",
// shelfNumber = "000002"
//};
//var result2 = rcsService.CreateTask(jsonParam);
//var a = new List<CancelTaskParam>();
//a.Add(new CancelTaskParam {orderId="88888",destPosition="点位1" });
//rcsService.CancelTask(a);
}
}
}
@@ -0,0 +1,46 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>
<ItemGroup>
<None Remove="appSettingsWebhost.Development.json" />
<None Remove="appSettingsWebhost.json" />
</ItemGroup>
<ItemGroup>
<Content Include="appSettingsWebhost.Development.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</Content>
<Content Include="appSettingsWebhost.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\JSMachine.WMS.Netty\JSMachine.WMS.Netty.csproj" />
<ProjectReference Include="..\JSMachine.WMS.RPC\JSMachine.WMS.RPC.csproj" />
</ItemGroup>
<ItemGroup>
<Using Include="Microsoft.VisualStudio.TestTools.UnitTesting" />
</ItemGroup>
</Project>
@@ -0,0 +1,8 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
}
@@ -0,0 +1,45 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"urls": "http://*:8078",
"AppSettings": {
//"DataBaseCon": "Server=219.140.177.52,40001;Database=wms_jst;User ID=sa;Password=ibs-2017;MultipleActiveResultSets=True;Encrypt=True;TrustServerCertificate=True;Connection Timeout=5",
"DataBaseCon": "Server=219.140.177.52,40001;Database=wms_jst;User ID=sa;Password=123456;MultipleActiveResultSets=True;Encrypt=True;TrustServerCertificate=True;Connection Timeout=5",
"DelLogDate": 100,
"ErpConfig": {
"ErpType": 3, //Erp类型 0-企望ERP 1-IBS 2-晨龙 3-新荣
"ErpUrl": "http://192.168.8.43:8069/",
"ErpIP": "127.0.0.1",
"ErpUploadBefore": -2, //回传Erp前几天数据
//IBS需要配置
"QueryByPaperLabelUrl": "pub/Mysoft.IBS.Paper.Interface.IPaperPublicAppService/GetPaperInfo?paperLabel=", //获取原纸信息接口地址
"QueryByPaperWidthAndCodeUrl": "pub/Mysoft.IBS.Paper.Interface.IPaperPublicAppService/GetPaperStockInfo", //原纸基础信息,按门幅、纸质编码查询接口地址
"PaperStockOutUrl": "pub/Mysoft.IBS.Paper.Interface.IPaperPublicAppService/PaperStockOut", //原纸出库接口地址
"RePaperStockInUrl": "pub/Mysoft.IBS.Paper.Interface.IPaperPublicAppService/RePaperStockIn", //残卷回库接口地址
"AppId": "Mysoft",
"AppKey": "ff483a6526ddf275",
//新荣需要配置
"QueryMateriaInforUrl": "wms_erp_interface/select/materiaInformation", //PDA扫合格证码获取物料信息
"ProduceInUrl": "wms_erp_interface/api/wms/produce/in", //生产入库
"ProduceOutUrl": "wms_erp_interface/erp/produce/out", //(生产退库)
"SaleOutUrl": "wms_erp_interface/wms/sale/out", //销售出库接口
"Userkey": "a373bab21d8611efa2ddabfbda94a9d1" //用户标识
},
"RcsConfig": {
"RcsUrl": "http://172.18.101.10:7000/",
"CreateTaskUrl": "ics/taskOrder/addTask", //创建任务Url
"CancelTaskUrl": "ics/out/task/cancelTask" //取消任务Url
},
"ElevatorConfig": {
}
}
}