From fe256a7afaa132910875d3dc73783d9ab2d7ace5 Mon Sep 17 00:00:00 2001
From: liulijun <liulijun@hnkhzn.com>
Date: 星期四, 12 三月 2026 18:57:44 +0800
Subject: [PATCH] 老厂排程单页面增加用纸顺序号和是否缺料
---
项目代码/WMS/WMSServices/WIDESEA_External/ERPService/InvokeERPService.cs | 45 +++++++++++++++++++++++++++++++++++++++++----
1 files changed, 41 insertions(+), 4 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_External/ERPService/InvokeERPService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_External/ERPService/InvokeERPService.cs"
index 5a5b191..759c6e8 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_External/ERPService/InvokeERPService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_External/ERPService/InvokeERPService.cs"
@@ -8,6 +8,7 @@
using WIDESEA_Common.APIEnum;
using WIDESEA_Common.CommonEnum;
using WIDESEA_Core.Helper;
+using WIDESEA_DTO.ERP;
using WIDESEA_External.Model;
using WIDESEA_IBasicRepository;
using WIDESEA_Model.Models;
@@ -59,9 +60,8 @@
return response;
}
/// <summary>
- /// 鎺ㄩ�佸師绾搁噰璐叆搴�
+ /// ERP涓婁紶閲囪喘淇℃伅
/// </summary>
- /// <param name="eRPPurchaseUpModel"></param>
/// <returns></returns>
public string ERPPurchaseUp(ERPPurchaseUpModel eRPPurchaseUpModel)
{
@@ -72,9 +72,8 @@
return response;
}
/// <summary>
- /// 鎺ㄩ�佹垚鍝侀攢鍞嚭搴�
+ /// ERP鎴愬搧閿�鍞嚭搴撲笂浼犱俊鎭�
/// </summary>
- /// <param name="eRPProOutUpModel"></param>
/// <returns></returns>
public string ERPProOutUp(ERPProOutUpModel eRPProOutUpModel)
{
@@ -84,5 +83,43 @@
return response;
}
+ /// <summary>
+ /// ERP涓婁紶鎴愬搧鍏ュ簱淇℃伅
+ /// </summary>
+ /// <returns></returns>
+ public string ERPProInUp(ERPProInUpModel eRPProInUpModel)
+ {
+ Dt_ApiInfo apiInfo = _apiInfoRepository.QueryFirst(x => x.ApiCode == APIEnum.ERPProInUp.ToString() && x.Enable == WhetherEnum.True.ObjToInt());
+
+ string response = HttpHelper.Post(apiInfo.ApiAddress, eRPProInUpModel.Serialize().ToUpper());
+
+ return response;
+ }
+ /// <summary>
+ /// ERP涓婁紶鍗婃垚鍝佸叆搴撲俊鎭�
+ /// </summary>
+ /// <returns></returns>
+ public string ERPSemiProInUp(ERPProInUpModel eRPProInUpModel)
+ {
+ Dt_ApiInfo apiInfo = _apiInfoRepository.QueryFirst(x => x.ApiCode == APIEnum.ERPSemiProInUp.ToString() && x.Enable == WhetherEnum.True.ObjToInt());
+
+ string response = HttpHelper.Post(apiInfo.ApiAddress, eRPProInUpModel.Serialize().ToUpper());
+
+ return response;
+ }
+ /// <summary>
+ /// BST绉伴噸鍥炰紶
+ /// </summary>
+ /// <returns></returns>
+ public string BSTWeightUp(BSTWeightUpDTO bSTWeightUpDTO)
+ {
+ Dt_ApiInfo apiInfo = _apiInfoRepository.QueryFirst(x => x.ApiCode == APIEnum.BSTWeightUp.ToString() && x.Enable == WhetherEnum.True.ObjToInt());
+
+ Dictionary<string, string> headers = new Dictionary<string, string>{{ "X-API-Token", "300883" }};
+ string request = JsonConvert.SerializeObject(bSTWeightUpDTO, settings);
+ string response = HttpHelper.Post(apiInfo.ApiAddress, request, headers: headers);
+
+ return response;
+ }
}
}
--
Gitblit v1.9.3