From 9eaf758e97367dbc2eca2bdbdc92ab39e08be9d0 Mon Sep 17 00:00:00 2001 From: zs <zhousong@weben-smart.com> Date: 周四, 15 5月 2025 13:12:17 +0800 Subject: [PATCH] Merge branch 'master' of http://222.71.245.114:9086/r/HIA24016N_PipeLineDemo --- 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