金蝶字段配置

This commit is contained in:
tongfei
2023-10-26 09:37:14 +08:00
parent 5a270d12af
commit c8fca23519
5 changed files with 23 additions and 4 deletions

View File

@@ -14,6 +14,7 @@ using WMS.Web.Core.Internal.Results;
using WMS.Web.Domain.IService.Public;
using WMS.Web.Domain.Options;
using WMS.Web.Domain.Values;
using WMS.Web.Domain.Values.Erp;
namespace WMS.Web.Domain.Services.Public
{
@@ -68,7 +69,7 @@ namespace WMS.Web.Domain.Services.Public
ERPGWSoapClient client = new ERPGWSoapClient(binding, address);
var token_result = await client.ValidateSystemAsync(this._erpOptions.UserName, this._erpOptions.Password, this._erpOptions.ErpId, "");
var query = new ErpBillQueryDto(token_result.AccessToken);
var param = new ErpBillQueryParamDto();
var param = new ErpBillQueryParamDto(FormIdParam.STK_InStock.ToString());
query.Data = JsonConvert.SerializeObject(param);
var json = JsonConvert.SerializeObject(query);
var result_json = await client.ExecuteBillQueryAsync(json);