From 6f0a6b40e86e2024c218d1d38cbdc5515fb95209 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期日, 22 九月 2024 19:03:57 +0800 Subject: [PATCH] 获取工单模板变量 --- Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs b/Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs index aae3cde..ddd2199 100644 --- a/Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs +++ b/Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs @@ -155,9 +155,12 @@ /// </summary> public class WipPkg { + public string WorkBatch { get; set; } public string RULE_CODE { get; set; } public string RULE_NAME { get; set; } + public string ITEM_CODE { get; set; } public WipPkgItem Item { get; set; } + public bool NeedWeighing { get; set; } = false; public bool IsWeighed { get; set; } = false; public WeightInfo WeightInfo { get; set; } = new WeightInfo(); public bool IsFinished => Item.IsFinished; @@ -177,7 +180,7 @@ public MES_WIP_PKG Package { get; set; } public bool IsFinished { get; set; } = false; public List<WipPkgItem> Items { get; set; } = new List<WipPkgItem>(); - + public int TotalQty => Items.Any() ? Items.Sum(q => q.TotalQty) : 1; } /// <summary> @@ -219,6 +222,7 @@ /// 鏄惁鎵规鐗╂枡 /// </summary> public bool IsBatchItem { get; set; } + public List<BAS_ITEM> SubItems { get; set; } = new List<BAS_ITEM>(); public List<MES_WIP_ASSY> Records { get; set; } = new List<MES_WIP_ASSY>(); public bool IsFinished { get; set; } = false; } @@ -249,6 +253,7 @@ public class WorkStepInfo { public string ID { get; set; } + public string Name { get; set; } public int Sequence { get; set; } public string NodeID { get; set; } public string NodeType { get; set; } -- Gitblit v1.9.3