From 61361fabdb34b5aab1b7b349be827681b7c56c53 Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周日, 11 5月 2025 21:55:32 +0800 Subject: [PATCH] 222 --- PipeLineLems/server/src/CMS.Plugin.PipeLineLems/ProjectService/PipeLineLemsProjectService.cs | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) diff --git a/PipeLineLems/server/src/CMS.Plugin.PipeLineLems/ProjectService/PipeLineLemsProjectService.cs b/PipeLineLems/server/src/CMS.Plugin.PipeLineLems/ProjectService/PipeLineLemsProjectService.cs index 179286e..d2f6d29 100644 --- a/PipeLineLems/server/src/CMS.Plugin.PipeLineLems/ProjectService/PipeLineLemsProjectService.cs +++ b/PipeLineLems/server/src/CMS.Plugin.PipeLineLems/ProjectService/PipeLineLemsProjectService.cs @@ -19,6 +19,7 @@ using CMS.Plugin.PipeLineLems.Application.Contracts.Services; using CMS.Plugin.PipeLineLems.Domain.WorkPlan; using CMS.Plugin.PipeLineLems.Domain.CallMaterialOrder; +using System.Collections.Generic; namespace CMS.Plugin.PipeLineLems.ProjectService { @@ -250,6 +251,16 @@ } else { + + //TODO:鏆傛椂鐢熸垚浜у搧ID + var productID = DateTime.Now.ToString("yyyyMMddHHmmssfff"); + //var productID = new_workPlanList.Last().PipeSpecCode; + Dictionary<string, object?> keyValuePairs_productID = new Dictionary<string, object?> + { + { "鎵撶爜_ProductID", productID}, + }; + var ret = _variableService.WriteValueAsync(keyValuePairs_productID); + var myTaskNo = plcTaskNo.Content.Value.SafeString().ToString(); CallMaterialOrder callMaterialOrder = null; try @@ -309,14 +320,7 @@ }; var ret2 = _variableService.WriteValueAsync(keyValuePairs); - //TODO:鏆傛椂鐢熸垚浜у搧ID - var productID = DateTime.Now.ToString("yyyyMMddHHmmssfff"); - //var productID = new_workPlanList.Last().PipeSpecCode; - keyValuePairs = new Dictionary<string, object?> - { - { "鎵撶爜_ProductID", productID}, - }; - var ret = _variableService.WriteValueAsync(keyValuePairs); + uow.CompleteAsync(); -- Gitblit v1.9.3