From 1dbd9b02ebdeca70f55eb444bb0f597ec9a2dfb8 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周四, 15 5月 2025 09:21:06 +0800
Subject: [PATCH] 增加 CMS反馈请求生成切割产品码信号结果

---
 PipeLineLems/server/src/CMS.Plugin.PipeLineLems.Application/Implements/SharedService.cs |   32 ++++++++++++++++++++++++--------
 1 files changed, 24 insertions(+), 8 deletions(-)

diff --git a/PipeLineLems/server/src/CMS.Plugin.PipeLineLems.Application/Implements/SharedService.cs b/PipeLineLems/server/src/CMS.Plugin.PipeLineLems.Application/Implements/SharedService.cs
index c3dc2d5..9e1d4b1 100644
--- a/PipeLineLems/server/src/CMS.Plugin.PipeLineLems.Application/Implements/SharedService.cs
+++ b/PipeLineLems/server/src/CMS.Plugin.PipeLineLems.Application/Implements/SharedService.cs
@@ -34,12 +34,20 @@
 public class SharedService : CMSPluginAppService
 {
 
-
+    /// <summary>
+    /// 鍒嗘嫞鍔熻兘
+    /// </summary>
+    /// <param name="_serviceProvider"></param>
+    /// <param name="input"></param>
+    /// <param name="myCurrentUser"></param>
+    /// <returns></returns>
     public async Task<MesOrderResponse> CommonPick(IServiceProvider _serviceProvider, PickInput input, MyCurrentUser myCurrentUser)
     {
         //1銆佽褰曞垎鎷h褰曡〃
         //2銆佹洿鏂颁綔涓氳鍒掕〃鐨勭姸鎬� =宸插垎鎷�
         //3銆佸啓鍏� 鍒嗘嫞鍙橀噺
+        //4銆佸啓鍏ヨ拷婧姤琛�
+        //5銆佺墿鏂欑粍鐩�
 
         VariableService _variableService = _serviceProvider.GetRequiredService<VariableService>();
         var _workSectionManager = _serviceProvider.GetRequiredService<IWorkSectionManager>();
@@ -48,13 +56,13 @@
         var materialProvider = _serviceProvider.GetRequiredService<IMaterialProvider>();
         var workPlanAppService = _serviceProvider.GetRequiredService<IWorkPlanAppService>();
 
-        Dictionary<string, object?> keyValuePairs = new Dictionary<string, object?>
-                    {
-                        { "鍒嗘嫞鎵樼洏鍙�","鎵樼洏1"},
-                        { "鍒嗘嫞鏂瑰悜", "鐭瑁呴厤"},
-                        { "鍒嗘嫞浜�", myCurrentUser.UserAccount }
-                    };
-        _variableService.WriteValueAsync(keyValuePairs);
+        //Dictionary<string, object?> keyValuePairs = new Dictionary<string, object?>
+        //            {
+        //                { "鍒嗘嫞鎵樼洏鍙�","鎵樼洏1"},
+        //                { "鍒嗘嫞鏂瑰悜", "鐭瑁呴厤"},
+        //                { "鍒嗘嫞浜�", myCurrentUser.UserAccount }
+        //            };
+        //_variableService.WriteValueAsync(keyValuePairs);
 
         //鏍规嵁宸ュ簭鍚嶈幏鍙栧伐搴忓璞�
         var workSection = await _workSectionManager.GetByNameAsync("鍒嗘嫞宸ュ簭");
@@ -129,6 +137,14 @@
             {
                 _value = "鐭瑁呴厤";
             }
+            if (item.Name == "鍒嗘嫞鎵樼洏鍙�")
+            {
+                _value = input.ContinerNo;
+            }
+            if (item.Name == "鍒嗘嫞浜�")
+            {
+                _value = myCurrentUser.UserAccount;
+            }
             //item.Key
             TraceParamModel traceParamModel = new TraceParamModel()
             {

--
Gitblit v1.9.3