From de52e78ab9ae545ad8a65f665e280fd32a506de2 Mon Sep 17 00:00:00 2001 From: zzr99 <1940172413@qq.com> Date: 星期三, 09 三月 2022 17:30:24 +0800 Subject: [PATCH] MES扫二维码带出单据信息,保存提交到金蝶云生产订单(修改状态为开工状态) 同时写入本地生产订单 --- WebAPI/InvokeHelper.cs | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/WebAPI/InvokeHelper.cs b/WebAPI/InvokeHelper.cs index 1ba49f0..59d764c 100644 --- a/WebAPI/InvokeHelper.cs +++ b/WebAPI/InvokeHelper.cs @@ -186,6 +186,7 @@ return httpClient.SyncRequest(); } + //鍙嶅鏍� public static string UnAudit(string formId, string content) { HttpClient httpClient = new HttpClient(); @@ -199,7 +200,7 @@ httpClient.Content = JsonConvert.SerializeObject(Parameters); return httpClient.SyncRequest(); } - + //涓嬫帹 public static string Push(string formId, string content) { HttpClient httpClient = new HttpClient(); @@ -241,5 +242,22 @@ httpClient.Content = JsonConvert.SerializeObject(args); return httpClient.SyncRequest(); } + + //鐢熶骇璁㈠崟 鎵ц + public static string ExcuteOperation(string formId, string opNumber, string content) + { + HttpClient httpClient = new HttpClient(); + httpClient.Url = string.Concat(CloudUrl, "Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.ExcuteOperation.common.kdsvc"); + + List<object> Parameters = new List<object>(); + //涓氬姟瀵硅薄Id + Parameters.Add(formId); + //鎿嶄綔 寮�宸�"ToStart" + Parameters.Add(opNumber); + //Json瀛椾覆 + Parameters.Add(content); + httpClient.Content = JsonConvert.SerializeObject(Parameters); + return httpClient.SyncRequest(); + } } } -- Gitblit v1.9.1