新增审核和确认接口,优化登录逻辑
在 `WMS_U9C.ApproveMaterialReqProdReturn.cs` 中实现了 `ApproveReqReturn` 审核接口,并在 `WMS_U9C.ConfirmMaterialReqProdReturn.cs` 中实现了 `ConfirmReqReturn` 确认接口。修改了多个文件中的登录逻辑,确保使用审核人进行登录。重命名和添加了生产退料单相关的方法,更新了接口和参数类以支持新功能。
¶Ô±ÈÐÂÎļþ |
| | |
| | | using Tiger.Model; |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq.Expressions; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using Rhea.Common; |
| | | using System.Net; |
| | | using System.Linq; |
| | | using Newtonsoft.Json; |
| | | using Tiger.IBusiness; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Tiger.Model.Minsun; |
| | | using Org.BouncyCastle.Asn1.Tsp; |
| | | using Tiger.Model.Entitys.MES.Position; |
| | | using Apache.NMS.ActiveMQ.Commands; |
| | | using System.Security.Cryptography; |
| | | using System.Diagnostics; |
| | | using Tiger.Model.Entitys.MES.U9C; |
| | | using Newtonsoft.Json.Linq; |
| | | using System.Security.Policy; |
| | | using NetTaste; |
| | | |
| | | namespace Tiger.Business.WMS |
| | | { |
| | | public partial class WMS_U9C |
| | | { |
| | | /// <summary> |
| | | /// 颿åéæåå®¡æ ¸æ¥å£ |
| | | /// </summary> |
| | | public static string ApproveReqReturnUrl |
| | | { get; set; } = "http://172.16.80.20/u9c/webapi/IssueDoc/Approve"; // ApiConfig.IsTestServer ? Cache.SysParam["ApproveReqReturnUrl_Test", "U9CUrl"].PARAM_VALUE : Cache.SysParam["ApproveReqReturnUrl", "U9CUrl"].PARAM_VALUE; //http://172.16.80.20/u9c/webapi/IssueDoc/Approve |
| | | |
| | | /// <summary> |
| | | /// 颿åéæåå®¡æ ¸æ¥å£ |
| | | /// </summary> |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | public async Task<ApiAction<List<U9CReturnData>>> ApproveReqReturn(ApproveReqReturnInput input) |
| | | { |
| | | Logger.Interface.Info($"/**\r\n *è¿å
¥é¢æåéæåå®¡æ ¸æ¥å£....\r\n */\r\n"); //åºå®åæ³ |
| | | var action = new ApiAction<List<U9CReturnData>>(); |
| | | try |
| | | { |
| | | //妿已ç»ç»å½åä¸éè¦å次ç»å½ï¼ç´æ¥ä½¿ç¨ä¼ å
¥çtoken |
| | | if (input.IsLogin) |
| | | { |
| | | var u9CLoginResult = await HttpHelper.GetAsync<U9CLoginResult>($"{U9CAuthLoginUrl}userCode={Reviewer}{secret}"); |
| | | if (u9CLoginResult.Success) |
| | | { |
| | | input.token = u9CLoginResult.Data; |
| | | Logger.Interface.Info($"U9Cç»å½token: {input.token}"); |
| | | } |
| | | } |
| | | |
| | | var response = await HttpHelper.PostAsync(ConfirmReqReturnUrl, JsonConvert.SerializeObject(input.ApproveReqReturnParams), new Dictionary<string, string>() { { "token", input.token } }); |
| | | var result = JsonConvert.DeserializeObject<U9CResult>(response.Message); |
| | | if (result != null) |
| | | { |
| | | if (result.Success && result.Data[0].m_isSucess) |
| | | { |
| | | action.Data = result.Data; |
| | | Logger.Interface.Info($"颿åéæåå®¡æ ¸æ¥å£æäº¤Json: {JsonConvert.SerializeObject(input.ApproveReqReturnParams)}ï¼è¿åJson: {response.Message}"); |
| | | } |
| | | else |
| | | { |
| | | action.IsSuccessed = false; |
| | | action.LocaleMsg = new($"{action.Message}; {result.Data[0].m_errorMsg}"); |
| | | Logger.Interface.Info($"颿åéæåå®¡æ ¸æ¥å£å¤±è´¥:{result.Data[0].m_errorMsg}ï¼æäº¤Json: {JsonConvert.SerializeObject(input.ApproveReqReturnParams)}"); |
| | | } |
| | | } |
| | | } |
| | | catch (System.Exception ex) |
| | | { |
| | | action.CatchExceptionWithLog(ex, "颿å/éæååæ/éæç¡®è®¤å¼å¸¸"); |
| | | } |
| | | Logger.Interface.Info($"/* 颿åéæåå®¡æ ¸æ¥å£ç»æ */\r\n"); //åºå®åæ³ |
| | | return action; |
| | | } |
| | | } |
| | | } |
ÎļþÃû´Ó Tiger.Business.WMS/ERP/WMS_U9C.CreateMiscRcvTrans.cs ÐÞ¸Ä |
| | |
| | | //妿已ç»ç»å½åä¸éè¦å次ç»å½ï¼ç´æ¥ä½¿ç¨ä¼ å
¥çtoken |
| | | if (input.IsLogin) |
| | | { |
| | | var u9CLoginResult = await HttpHelper.GetAsync<U9CLoginResult>($"{U9CAuthLoginUrl}userCode={input.userId}{secret}"); |
| | | var u9CLoginResult = await HttpHelper.GetAsync<U9CLoginResult>($"{U9CAuthLoginUrl}userCode={Reviewer}{secret}"); |
| | | if (u9CLoginResult.Success) |
| | | { |
| | | input.token = u9CLoginResult.Data; |
ÎļþÃû´Ó Tiger.Business.WMS/ERP/WMS_U9C.CreateMiscShip.cs ÐÞ¸Ä |
| | |
| | | //妿已ç»ç»å½åä¸éè¦å次ç»å½ï¼ç´æ¥ä½¿ç¨ä¼ å
¥çtoken |
| | | if (input.IsLogin) |
| | | { |
| | | var u9CLoginResult = await HttpHelper.GetAsync<U9CLoginResult>($"{U9CAuthLoginUrl}userCode={input.userId}{secret}"); |
| | | var u9CLoginResult = await HttpHelper.GetAsync<U9CLoginResult>($"{U9CAuthLoginUrl}userCode={Reviewer}{secret}"); |
| | | if (u9CLoginResult.Success) |
| | | { |
| | | input.token = u9CLoginResult.Data; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using Tiger.Model; |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq.Expressions; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using Rhea.Common; |
| | | using System.Net; |
| | | using System.Linq; |
| | | using Newtonsoft.Json; |
| | | using Tiger.IBusiness; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Tiger.Model.Minsun; |
| | | using Org.BouncyCastle.Asn1.Tsp; |
| | | using Tiger.Model.Entitys.MES.Position; |
| | | using Apache.NMS.ActiveMQ.Commands; |
| | | using System.Security.Cryptography; |
| | | using System.Diagnostics; |
| | | using Tiger.Model.Entitys.MES.U9C; |
| | | using Newtonsoft.Json.Linq; |
| | | using System.Security.Policy; |
| | | using NetTaste; |
| | | |
| | | namespace Tiger.Business.WMS |
| | | { |
| | | public partial class WMS_U9C |
| | | { |
| | | /// <summary> |
| | | /// 颿å/éæå åæ/éæç¡®è®¤ |
| | | /// </summary> |
| | | public static string ConfirmReqReturnUrl |
| | | { get; set; } = "http://172.16.80.20/u9c/webapi/IssueDoc/Confirm"; // ApiConfig.IsTestServer ? Cache.SysParam["ConfirmReqReturnUrl_Test", "U9CUrl"].PARAM_VALUE : Cache.SysParam["ConfirmReqReturnUrl", "U9CUrl"].PARAM_VALUE; //http://172.16.80.20/u9c/webapi/IssueDoc/Confirm |
| | | |
| | | /// <summary> |
| | | /// 颿å/éæååæ/éæç¡®è®¤ |
| | | /// </summary> |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | public async Task<ApiAction<List<U9CReturnData>>> ConfirmReqReturn(ConfirmReqReturnInput input) |
| | | { |
| | | Logger.Interface.Info($"/**\r\n *è¿å
¥é¢æå/éæååæ/éæç¡®è®¤æ¥å£....\r\n */\r\n"); //åºå®åæ³ |
| | | var action = new ApiAction<List<U9CReturnData>>(); |
| | | try |
| | | { |
| | | //妿已ç»ç»å½åä¸éè¦å次ç»å½ï¼ç´æ¥ä½¿ç¨ä¼ å
¥çtoken |
| | | if (input.IsLogin) |
| | | { |
| | | var u9CLoginResult = await HttpHelper.GetAsync<U9CLoginResult>($"{U9CAuthLoginUrl}userCode={input.userId}{secret}"); |
| | | if (u9CLoginResult.Success) |
| | | { |
| | | input.token = u9CLoginResult.Data; |
| | | Logger.Interface.Info($"U9Cç»å½token: {input.token}"); |
| | | } |
| | | } |
| | | |
| | | var response = await HttpHelper.PostAsync(ConfirmReqReturnUrl, JsonConvert.SerializeObject(input.ConfirmReqReturnParams), new Dictionary<string, string>() { { "token", input.token } }); |
| | | var result = JsonConvert.DeserializeObject<U9CResult>(response.Message); |
| | | if (result != null) |
| | | { |
| | | if (result.Success && result.Data[0].m_isSucess) |
| | | { |
| | | action.Data = result.Data; |
| | | Logger.Interface.Info($"颿å/éæååæ/éæç¡®è®¤æ¥å£æäº¤Json: {JsonConvert.SerializeObject(input.ConfirmReqReturnParams)}ï¼è¿åJson: {response.Message}"); |
| | | } |
| | | else |
| | | { |
| | | action.IsSuccessed = false; |
| | | action.LocaleMsg = new($"{action.Message}; {result.Data[0].m_errorMsg}"); |
| | | Logger.Interface.Info($"颿å/éæååæ/éæç¡®è®¤æ¥å£å¤±è´¥:{result.Data[0].m_errorMsg}ï¼æäº¤Json: {JsonConvert.SerializeObject(input.ConfirmReqReturnParams)}"); |
| | | } |
| | | } |
| | | } |
| | | catch (System.Exception ex) |
| | | { |
| | | action.CatchExceptionWithLog(ex, "颿å/éæååæ/éæç¡®è®¤å¼å¸¸"); |
| | | } |
| | | Logger.Interface.Info($"/* 颿å/éæååæ/éæç¡®è®¤æ¥å£ç»æ */\r\n"); //åºå®åæ³ |
| | | return action; |
| | | } |
| | | } |
| | | } |
| | |
| | | /// </summary> |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | public async Task<ApiAction<List<U9CReturnData>>> CreateProdReturnOrder(CreateProdReturnOrderInput input) { |
| | | public async Task<ApiAction<List<U9CReturnData>>> CreateProdReturnOrderNew(CreateProdReturnOrderNewInput input) { |
| | | Logger.Interface.Info($"/**\r\n *è¿å
¥å建ç产éæå-æè¡éææ¥å£....\r\n */\r\n"); //åºå®åæ³ |
| | | var action = new ApiAction<List<U9CReturnData>>(); |
| | | try |
| | |
| | | } |
| | | } |
| | | |
| | | var response = await HttpHelper.PostAsync(CreateProdReturnOrderUrl, JsonConvert.SerializeObject(input.CreateProdReturnOrderParam), new Dictionary<string, string>() { { "token", input.token } }); |
| | | var response = await HttpHelper.PostAsync(CreateProdReturnOrderNewUrl, JsonConvert.SerializeObject(input.CreateProdReturnOrderNewParams), new Dictionary<string, string>() { { "token", input.token } }); |
| | | var result = JsonConvert.DeserializeObject<U9CResult>(response.Message); |
| | | if (result != null) |
| | | { |
| | | if (result.Success && result.Data[0].m_isSucess) |
| | | { |
| | | action.Data = result.Data; |
| | | Logger.Interface.Info($"å建ç产éæå-æè¡éææ¥å£æäº¤Json: {JsonConvert.SerializeObject(input.CreateProdReturnOrderParam)}ï¼è¿åJson: {response.Message}"); |
| | | Logger.Interface.Info($"å建ç产éæå-æè¡éææ¥å£æäº¤Json: {JsonConvert.SerializeObject(input.CreateProdReturnOrderNewParams)}ï¼è¿åJson: {response.Message}"); |
| | | } |
| | | else |
| | | { |
| | | action.IsSuccessed = false; |
| | | action.LocaleMsg = new($"{action.Message}; {result.Data[0].m_errorMsg}"); |
| | | Logger.Interface.Info($"å建ç产éæå-æè¡éææ¥å£å¤±è´¥:{result.Data[0].m_errorMsg}"); |
| | | Logger.Interface.Info($"å建ç产éæå-æè¡éææ¥å£å¤±è´¥:{result.Data[0].m_errorMsg}ï¼æäº¤Json: {JsonConvert.SerializeObject(input.CreateProdReturnOrderNewParams)}"); |
| | | } |
| | | } |
| | | } |
| | |
| | | Logger.Interface.Info($"/* å建ç产éæå-æè¡éææ¥å£ç»æ */\r\n"); //åºå®åæ³ |
| | | return action; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å建ç产éæå |
| | | /// </summary> |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | public async Task<ApiAction<List<U9CReturnData>>> CreateProdReturnOrder(CreateProdReturnOrderInput input) |
| | | { |
| | | Logger.Interface.Info($"/**\r\n *è¿å
¥å建ç产éæåæ¥å£....\r\n */\r\n"); //åºå®åæ³ |
| | | var action = new ApiAction<List<U9CReturnData>>(); |
| | | try |
| | | { |
| | | //妿已ç»ç»å½åä¸éè¦å次ç»å½ï¼ç´æ¥ä½¿ç¨ä¼ å
¥çtoken |
| | | if (input.IsLogin) |
| | | { |
| | | var u9CLoginResult = await HttpHelper.GetAsync<U9CLoginResult>($"{U9CAuthLoginUrl}userCode={input.userId}{secret}"); |
| | | if (u9CLoginResult.Success) |
| | | { |
| | | input.token = u9CLoginResult.Data; |
| | | Logger.Interface.Info($"U9Cç»å½token: {input.token}"); |
| | | } |
| | | } |
| | | |
| | | var response = await HttpHelper.PostAsync(CreateProdReturnOrderNewUrl, JsonConvert.SerializeObject(input.CreateProdReturnOrderParam), new Dictionary<string, string>() { { "token", input.token } }); |
| | | var result = JsonConvert.DeserializeObject<U9CResult>(response.Message); |
| | | if (result != null) |
| | | { |
| | | if (result.Success && result.Data[0].m_isSucess) |
| | | { |
| | | action.Data = result.Data; |
| | | Logger.Interface.Info($"å建ç产éæåæ¥å£æäº¤Json: {JsonConvert.SerializeObject(input.CreateProdReturnOrderParam)}ï¼è¿åJson: {response.Message}"); |
| | | } |
| | | else |
| | | { |
| | | action.IsSuccessed = false; |
| | | action.LocaleMsg = new($"{action.Message}; {result.Data[0].m_errorMsg}"); |
| | | Logger.Interface.Info($"å建ç产éæåæ¥å£å¤±è´¥:{result.Data[0].m_errorMsg}"); |
| | | } |
| | | } |
| | | } |
| | | catch (System.Exception ex) |
| | | { |
| | | action.CatchExceptionWithLog(ex, "å建ç产éæåå¼å¸¸"); |
| | | } |
| | | Logger.Interface.Info($"/* å建ç产éæåæ¥å£ç»æ */\r\n"); //åºå®åæ³ |
| | | return action; |
| | | } |
| | | } |
| | | } |
| | |
| | | //妿已ç»ç»å½åä¸éè¦å次ç»å½ï¼ç´æ¥ä½¿ç¨ä¼ å
¥çtoken |
| | | if (input.IsLogin) |
| | | { |
| | | var u9CLoginResult = await HttpHelper.GetAsync<U9CLoginResult>($"{U9CAuthLoginUrl}userCode={input.userId}{secret}"); |
| | | var u9CLoginResult = await HttpHelper.GetAsync<U9CLoginResult>($"{U9CAuthLoginUrl}userCode={Reviewer}{secret}"); |
| | | if (u9CLoginResult.Success) |
| | | { |
| | | input.token = u9CLoginResult.Data; |
| | |
| | | { get; set; } = "http://172.16.80.20/u9c/webapi/TransferIn/Approve"; // ApiConfig.IsTestServer ? Cache.SysParam["TransferInApproveUrl_Test", "U9CUrl"].PARAM_VALUE : Cache.SysParam["TransferInApproveUrl", "U9CUrl"].PARAM_VALUE; //http://172.16.80.20/u9c/webapi/TransferIn/Approve |
| | | |
| | | /// <summary> |
| | | /// å建ç产éæå-æè¡éææ¥å£ |
| | | /// å建è°å
¥åæ¥å£ |
| | | /// </summary> |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | public async Task<ApiAction<List<U9CReturnData>>> CreateTransferIn(CreateTransferInInput input) { |
| | | Logger.Interface.Info($"/**\r\n *è¿å
¥å建ç产éæå-æè¡éææ¥å£....\r\n */\r\n"); //åºå®åæ³ |
| | | Logger.Interface.Info($"/**\r\n *è¿å
¥å建è°å
¥åæ¥å£....\r\n */\r\n"); //åºå®åæ³ |
| | | var action = new ApiAction<List<U9CReturnData>>(); |
| | | try |
| | | { |
| | |
| | | if (result.Success && result.Data[0].m_isSucess) |
| | | { |
| | | action.Data = result.Data; |
| | | Logger.Interface.Info($"å建ç产éæå-æè¡éææ¥å£æäº¤Json: {JsonConvert.SerializeObject(input.CreateTransferInParam)}ï¼è¿åJson: {response.Message}"); |
| | | Logger.Interface.Info($"å建è°å
¥åæ¥å£æäº¤Json: {JsonConvert.SerializeObject(input.CreateTransferInParam)}ï¼è¿åJson: {response.Message}"); |
| | | } |
| | | else |
| | | { |
| | | action.IsSuccessed = false; |
| | | action.LocaleMsg = new($"{action.Message}; {result.Data[0].m_errorMsg}"); |
| | | Logger.Interface.Info($"å建ç产éæå-æè¡éææ¥å£å¤±è´¥:{result.Data[0].m_errorMsg}"); |
| | | Logger.Interface.Info($"å建è°å
¥åæ¥å£å¤±è´¥:{result.Data[0].m_errorMsg}"); |
| | | } |
| | | } |
| | | } |
| | | catch (System.Exception ex) |
| | | { |
| | | action.CatchExceptionWithLog(ex, "å建ç产éæå-æè¡éæå¼å¸¸"); |
| | | action.CatchExceptionWithLog(ex, "å建è°å
¥åå¼å¸¸"); |
| | | } |
| | | Logger.Interface.Info($"/* å建ç产éæå-æè¡éææ¥å£ç»æ */\r\n"); //åºå®åæ³ |
| | | Logger.Interface.Info($"/* å建è°å
¥åæ¥å£ç»æ */\r\n"); //åºå®åæ³ |
| | | return action; |
| | | } |
| | | |
| | |
| | | var action = new ApiAction<List<U9CReturnData2>>(); |
| | | try |
| | | { |
| | | action = await Submit(input); |
| | | if (action.IsSuccessed) |
| | | { |
| | | input.IsLogin = false; |
| | | action = await Approve(input); |
| | | } |
| | | //action = await Submit(input); |
| | | //if (action.IsSuccessed) |
| | | //{ |
| | | // input.IsLogin = false; |
| | | // action = await Approve(input); |
| | | //} |
| | | |
| | | action = await Approve(input); |
| | | } |
| | | catch (System.Exception ex) |
| | | { |
| | |
| | | public static string U9CAuthLoginUrl { get; set; } = ApiConfig.IsTestServer ? Cache.SysParam["U9CAuthLoginUrl_Test", "U9CUrl"].PARAM_VALUE : Cache.SysParam["U9CAuthLoginUrl", "U9CUrl"].PARAM_VALUE; // "http://172.16.80.20/U9C/webapi/OAuth2/AuthLogin?"; æµè¯ |
| | | //public static string U9CAuthLoginUrl { get; set; } = Cache.SysParam["U9CAuthLoginUrl", "U9CUrl"].PARAM_VALUE; //æ£å¼ |
| | | public static string secret = "&entcode=02&orgcode=101&clientid=mes&clientsecret=12c8ee7e9bb74ad2a6a0fb3315c8af20"; |
| | | /// <summary> |
| | | /// å®¡æ ¸äºº |
| | | /// </summary> |
| | | public static string Reviewer = Cache.SysParam["Reviewer", "U9CUrl"].PARAM_VALUE; |
| | | public static string CreateRcvBySrcASNUrl |
| | | { get; set; } = "http://172.16.80.20/U9C/webapi/Receivement/CreateRcvBySrcASN"; //ApiConfig.IsTestServer ? Cache.SysParam["CreateRcvBySrcASNUrl_Test", "U9CUrl"].PARAM_VALUE : Cache.SysParam["CreateRcvBySrcASNUrl", "U9CUrl"].PARAM_VALUE; //"http://172.16.80.20/U9C/webapi/Receivement/CreateRcvBySrcASN"; æµè¯ |
| | | public static string CreateReceivementUrl |
| | |
| | | { get; set; } = "http://172.16.80.20/u9c/webapi/Receivement/SubmitLine"; // ApiConfig.IsTestServer ? Cache.SysParam["SubmitLineUrl_Test", "U9CUrl"].PARAM_VALUE : Cache.SysParam["SubmitLineUrl", "U9CUrl"].PARAM_VALUE; //http://172.16.80.20/u9c/webapi/Receivement/SubmitLine; æµè¯ |
| | | public static string ApproveLineUrl |
| | | { get; set; } = "http://172.16.80.20/u9c/webapi/Receivement/ApproveLine"; // ApiConfig.IsTestServer ? Cache.SysParam["ApproveLineUrl_Test", "U9CUrl"].PARAM_VALUE : Cache.SysParam["ApproveLineUrl", "U9CUrl"].PARAM_VALUE; //http://172.16.80.20/u9c/webapi/Receivement/ApproveLine; æµè¯ |
| | | /// <summary> |
| | | /// å建çäº§é¢æå |
| | | /// </summary> |
| | | public static string CreateProdMaterialReqUrl |
| | | { get; set; } = "http://172.16.80.20/u9c/webapi/IssueDoc/Create"; // ApiConfig.IsTestServer ? Cache.SysParam["CreateProdMaterialReqUrl_Test", "U9CUrl"].PARAM_VALUE : Cache.SysParam["CreateProdMaterialReqUrl", "U9CUrl"].PARAM_VALUE; //http://172.16.80.20/u9c/webapi/IssueDoc/Create |
| | | public static string CreateProdReturnOrderUrl |
| | | /// <summary> |
| | | /// å建ç产éæå-æè¡éæ |
| | | /// </summary> |
| | | public static string CreateProdReturnOrderNewUrl |
| | | { get; set; } = "http://172.16.80.20/u9c/webapi/IssueDoc/CreateRecedeIssueDocNew"; // ApiConfig.IsTestServer ? Cache.SysParam["CreateProdReturnOrderUrl_Test", "U9CUrl"].PARAM_VALUE : Cache.SysParam["CreateProdReturnOrderUrl", "U9CUrl"].PARAM_VALUE; //http://172.16.80.20/u9c/webapi/IssueDoc/CreateRecedeIssueDocNew |
| | | /// <summary> |
| | | /// å建å§å¤çäº§é¢æå |
| | | /// </summary> |
| | | public static string CreateOutProdMaterialReqUrl |
| | | { get; set; } = "http://172.16.80.20/u9c/webapi/PMIssueDoc/Create"; // ApiConfig.IsTestServer ? Cache.SysParam["CreateOutProdMaterialReqUrl_Test", "U9CUrl"].PARAM_VALUE : Cache.SysParam["CreateOutProdMaterialReqUrl", "U9CUrl"].PARAM_VALUE; //http://172.16.80.20/u9c/webapi/PMIssueDoc/Create |
| | | /// <summary> |
| | | /// å建å§å¤ç产éæå |
| | | /// </summary> |
| | | public static string CreateOutProdReturnOrderUrl |
| | | { get; set; } = "http://172.16.80.20/u9c/webapi/PMIssueDoc/CreateRecedeIssueDoc"; // ApiConfig.IsTestServer ? Cache.SysParam["CreateOutProdReturnOrderUrl_Test", "U9CUrl"].PARAM_VALUE : Cache.SysParam["CreateOutProdReturnOrderUrl", "U9CUrl"].PARAM_VALUE; //http://172.16.80.20/u9c/webapi/PMIssueDoc/CreateRecedeIssueDoc |
| | | /// <summary> |
| | | /// å建è°å
¥å |
| | | /// </summary> |
| | | public static string CreateTransferInUrl |
| | | { get; set; } = "http://172.16.80.20/u9c/webapi/TransferIn/Create"; // ApiConfig.IsTestServer ? Cache.SysParam["CreateTransferInUrl_Test", "U9CUrl"].PARAM_VALUE : Cache.SysParam["CreateTransferInUrl", "U9CUrl"].PARAM_VALUE; //http://172.16.80.20/u9c/webapi/TransferIn/Create |
| | | |
| | |
| | | //妿已ç»ç»å½åä¸éè¦å次ç»å½ï¼ç´æ¥ä½¿ç¨ä¼ å
¥çtoken |
| | | if (input.IsLogin) |
| | | { |
| | | var u9CLoginResult = await HttpHelper.GetAsync<U9CLoginResult>($"{U9CAuthLoginUrl}userCode={input.userId}{secret}"); |
| | | var u9CLoginResult = await HttpHelper.GetAsync<U9CLoginResult>($"{U9CAuthLoginUrl}userCode={Reviewer}{secret}"); |
| | | if (u9CLoginResult.Success) |
| | | { |
| | | input.token = u9CLoginResult.Data; |
| | |
| | | public Task<ApiAction<List<U9CReturnData2>>> ReceivementApproveLine(SubmitLineInput input); |
| | | public Task<ApiAction<List<U9CReturnData>>> CreateProdMaterialReq(CreateProdMaterialReqInput input); |
| | | public Task<ApiAction<List<U9CReturnData>>> CreateProdReturnOrder(CreateProdReturnOrderInput input); |
| | | public Task<ApiAction<List<U9CReturnData>>> CreateProdReturnOrderNew(CreateProdReturnOrderNewInput input); |
| | | public Task<ApiAction<List<U9CReturnData>>> CreateOutProdMaterialReq(CreateOutProdMaterialReqInput input); |
| | | public Task<ApiAction<List<U9CReturnData>>> CreateOutProdReturnOrder(CreateOutProdReturnOrderInput input); |
| | | public Task<ApiAction<List<U9CReturnData>>> ConfirmReqReturn(ConfirmReqReturnInput input); |
| | | public Task<ApiAction<List<U9CReturnData>>> CreateTransferForm(CreateTransferFormInput input); |
| | | public Task<ApiAction<List<U9CReturnData2>>> TransferFormApprove(TransferFormSubmitInput input); |
| | | public Task<ApiAction<List<U9CReturnData>>> CreateTransferIn(CreateTransferInInput input); |
| | |
| | | #endregion |
| | | |
| | | #region å建ç产éæå-æè¡éææ¥å£ |
| | | public class CreateProdReturnOrderInput : U9CBaseInput |
| | | public class CreateProdReturnOrderNewInput : U9CBaseInput |
| | | { |
| | | public List<CreateProdReturnOrderParam> CreateProdReturnOrderParam { get; set; } |
| | | public List<CreateProdReturnOrderNewParam> CreateProdReturnOrderNewParams { get; set; } |
| | | } |
| | | |
| | | public class CreateProdReturnOrderParam |
| | | public class CreateProdReturnOrderNewParam |
| | | { |
| | | public List<RecedeItemAndSnDTOList> RecedeItemAndSnDTOList { get; set; } |
| | | public bool IsAutoIssued { get; set; } |
| | |
| | | public double IssueLineNum { get; set; } |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #region å建ç产éæå |
| | | public class CreateProdReturnOrderInput : U9CBaseInput |
| | | { |
| | | public List<CreateProdReturnOrderParam> CreateProdReturnOrderParam { get; set; } |
| | | } |
| | | |
| | | public class CreateProdReturnOrderParam |
| | | { |
| | | /// <summary> |
| | | /// ç©æç¼ç |
| | | /// </summary> |
| | | public string ItemCode { get; set; } |
| | | /// <summary> |
| | | /// å¤æè¡¨ID |
| | | /// </summary> |
| | | public string PickID { get; set; } |
| | | /// <summary> |
| | | /// éææ°é |
| | | /// </summary> |
| | | public double RecedeQty { get; set; } |
| | | /// <summary> |
| | | /// éæçç± 0 åæ£éæ 1å§å¤éæ 2æªæéæ 3é¢æå»ºè®®éæ 4åéæ 5çç¹å·®å¼éæ 6è·¨æé´åå¼å·¥éæ |
| | | /// </summary> |
| | | public int RecedeReason { get; set; } |
| | | /// <summary> |
| | | /// 颿åè¡ID |
| | | /// </summary> |
| | | public double IssueDocLine { get; set; } |
| | | /// <summary> |
| | | /// æ¹å· |
| | | /// </summary> |
| | | public string LotNo { get; set; } |
| | | /// <summary> |
| | | /// èªå¨æ£æ é»è®¤ false |
| | | /// </summary> |
| | | public bool IsAutoIssued { get; set; } = false; |
| | | public string OtherID { get; set; } = "WMS"; |
| | | /// <summary> |
| | | /// ç¶æ 1为æäº¤ç¶æ |
| | | /// </summary> |
| | | public int DocStatus { get; set; } |
| | | } |
| | | #endregion |
| | | |
| | | #region å建å§å¤çäº§é¢æå |
| | |
| | | |
| | | #endregion |
| | | |
| | | #region 颿å/éæååæ/éæç¡®è®¤ |
| | | public class ConfirmReqReturnInput : U9CBaseInput |
| | | { |
| | | public List<ConfirmReqReturnParam> ConfirmReqReturnParams { get; set; } |
| | | } |
| | | |
| | | public class ConfirmReqReturnParam |
| | | { |
| | | /// <summary> |
| | | /// 颿å/éæåå· |
| | | /// </summary> |
| | | public string DocNo { get; set; } |
| | | public bool IsSucceed { get; set; } = true; |
| | | public string ErrorMsg { get; set; } |
| | | public bool OperateType { get; set; } = true; |
| | | public string OtherID { get; set; } = "WMS"; |
| | | public bool IsNotNewTransaction { get; set; } = true; |
| | | public bool IsAutoApp { get; set; } = true; |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region 颿åéæåå®¡æ ¸æ¥å£ |
| | | public class ApproveReqReturnInput : U9CBaseInput |
| | | { |
| | | public List<ApproveReqReturnParam> ApproveReqReturnParams { get; set; } |
| | | } |
| | | |
| | | public class ApproveReqReturnParam: ConfirmReqReturnParam |
| | | { |
| | | } |
| | | #endregion |
| | | |
| | | #region å建è°å
¥å |
| | | public class CreateTransferInInput : U9CBaseInput |
| | | { |