From 3ca43609f47e555df4368ecff037794b7a167abf Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期日, 29 九月 2024 21:41:27 +0800 Subject: [PATCH] 下发时保存下发时间和下发人 --- Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs | 42 +++++++++++++++++++++++++++++++++++++----- 1 files changed, 37 insertions(+), 5 deletions(-) diff --git a/Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs b/Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs index 7e85a3f..ddd2199 100644 --- a/Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs +++ b/Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs @@ -107,7 +107,8 @@ /// 鍖呰琛屼负褰撳墠鎵ц鐨勬搷浣滀唬鐮侊紝鍖呮嫭锛�<br/> /// Scan锛氭壂鐮侊紝鎵弿褰撳墠鍖呰灞傜骇鐨勬潯鐮�<br/> /// Print锛氭墦鍗帮紝鎵撳嵃褰撳墠鍖呰灞傜骇鐨勬爣绛�<br/> - /// Complete锛氬畬鎴愶紝瀹屾垚鍏ㄩ儴鍖呰鍚庣粨鏉熻涓�<br/> + /// Complete锛氬畬鎴愶紝瀹屾垚鍏ㄩ儴鍖呰<br/> + /// Weighing锛氱О閲嶏紝瀹屾垚鍖呰鍚庡鏁翠釜鍖呰鎴愮О閲�<br/> /// </summary> public string ExecCode { get; set; } /// <summary> @@ -122,6 +123,10 @@ /// 褰撳墠鎿嶄綔鐨勫寘瑁呭眰绾х殑鏍囩鏉$爜 /// </summary> public string PkgSN { get; set; } + /// <summary> + /// 褰撳墠鎿嶄綔鐨勫寘瑁呭眰绾х殑閲嶉噺淇℃伅 + /// </summary> + public WeightInfo WeightInfo { get; set; } } public class PackingActionOutput @@ -132,6 +137,7 @@ /// Scan锛氭壂鐮侊紝鎵弿褰撳墠鍖呰灞傜骇鐨勬潯鐮�<br/> /// Print锛氭墦鍗帮紝鎵撳嵃褰撳墠鍖呰灞傜骇鐨勬爣绛�<br/> /// Complete锛氬畬鎴愶紝宸蹭繚瀛樺寘瑁呮暟鎹�<br/> + /// Weighing锛氱О閲嶏紝瀹屾垚鍖呰鍚庡鏁翠釜鍖呰鎴愮О閲�<br/> /// </summary> public string ExecCode { get; set; } /// <summary> @@ -149,9 +155,14 @@ /// </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; } @@ -169,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> @@ -211,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; } @@ -229,8 +241,28 @@ /// </summary> public class OperInfo { - public string NextNode { get; set; } - public string CurNode { get; set; } - public int InputQty { get; set; } + public string NextNode { get; set; } = " 鈥� "; + public string CurNode { get; set; } = " 鈥� "; + public int InputQty { get; set; } = 0; + public List<WorkStepInfo> StepsInfo { get; set; } = new List<WorkStepInfo>(); } + + /// <summary> + /// 宸ユ淇℃伅 + /// </summary> + 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; } + public MES_WO_NODE Node { get; set; } + public MES_WO_OPER OperSetting { get; set; } + public MES_WO_NODE_ACT NodeAct { get; set; } + public MES_WO_ACTION ActSetting { get; set; } + public string Status { get; set; } + public string Message { get; set; } + } + } -- Gitblit v1.9.3