From fb6d929a21ea364313dc5ca5c99ed743cf7df9cc Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期五, 25 十月 2024 16:23:06 +0800 Subject: [PATCH] 优化包装行为支持不打印客户标签 --- Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs | 38 ++++++++++++++++++++++++++++---------- 1 files changed, 28 insertions(+), 10 deletions(-) diff --git a/Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs b/Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs index 7bff7c9..dd09f36 100644 --- a/Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs +++ b/Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs @@ -38,9 +38,17 @@ /// </summary> public string SN { get; set; } /// <summary> + /// 鏁伴噺 + /// </summary> + public string Qty { get; set; } + /// <summary> /// 褰撳墠鎿嶄綔鎻愪氦鐨勪笉鑹唬鐮侊紝娌℃湁鍒欑暀绌� /// </summary> public string DFT_CODE { get; set; } + /// <summary> + /// 褰撳墠鎿嶄綔闇�瑕佹彁浜ょ殑閫夐」 + /// </summary> + public Dictionary<string, string> Options { get; set; } = new Dictionary<string, string>(); /// <summary> /// 褰撳墠鎿嶄綔闇�瑕佹彁浜ょ殑鏁版嵁 /// </summary> @@ -57,14 +65,6 @@ /// 鐭秷鎭� /// </summary> public ShortMessage ShortMsg { get; set; } - /// <summary> - /// 褰撳墠鎿嶄綔鐨勫伐鍗曞璞� - /// </summary> - public BIZ_MES_WO CurWO { get; set; } - /// <summary> - /// 褰撳墠鎿嶄綔鐨勫伐鍗曟壒娆″璞� - /// </summary> - public BIZ_MES_WO_BATCH CurBatch { get; set; } /// <summary> /// 褰撳墠鎿嶄綔鐨勮妭鐐瑰悕绉� /// </summary> @@ -89,7 +89,14 @@ /// 宸ュ簭淇℃伅 /// </summary> public OperInfo OperInfo { get; set; } - + /// <summary> + /// 褰撳墠鎿嶄綔鐨勫伐鍗曞璞� + /// </summary> + public BIZ_MES_WO CurWO { get; set; } + /// <summary> + /// 褰撳墠鎿嶄綔鐨勫伐鍗曟壒娆″璞� + /// </summary> + public BIZ_MES_WO_BATCH CurBatch { get; set; } } public class DefectOutput @@ -145,6 +152,10 @@ /// </summary> public int PkgLevel { get; set; } /// <summary> + /// 鏄惁闇�瑕� + /// </summary> + public bool RealPrint { get; set; } = true; + /// <summary> /// 褰撳墠闇�瑕佹墦鍗扮殑鍖呰灞傜骇鐨勬爣绛句俊鎭� /// </summary> public BAS_LABEL_TEMP PrintLable { get; set; } @@ -155,12 +166,17 @@ /// </summary> public class WipPkg { + public string WorkBatch { get; set; } public string RULE_CODE { get; set; } public string RULE_NAME { get; set; } + public string PROD_CODE { get; set; } + public MES_CUST_SN CustSN { 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; + public bool IsReachedEndNode { get; set; } = false; } /// <summary> @@ -174,10 +190,11 @@ public int PKG_LEVEL { get; set; } public int PKG_QTY { get; set; } public string LABEL_CODE { get; set; } + public string SN { get; set; } 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> @@ -240,6 +257,7 @@ { public string NextNode { get; set; } = " 鈥� "; public string CurNode { get; set; } = " 鈥� "; + public bool IsReachedEndNode { get; set; } = false; public int InputQty { get; set; } = 0; public List<WorkStepInfo> StepsInfo { get; set; } = new List<WorkStepInfo>(); } -- Gitblit v1.9.3