| | |
| | | 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 |
| | | { |
| | |
| | | } |
| | | 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 |
| | |
| | | }; |
| | | 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(); |