222
schangxiang@126.com
2025-05-11 61361fabdb34b5aab1b7b349be827681b7c56c53
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();