From 976d3ae1547b896cc5c7875408c09616d5c2ee55 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期二, 26 十一月 2024 20:51:17 +0800 Subject: [PATCH] 箱数更新 --- Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs b/Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs index 63d1b41..0ec700f 100644 --- a/Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs +++ b/Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs @@ -195,9 +195,10 @@ public string SN { get; set; } public MES_WIP_PKG Package { get; set; } public bool IsFinished { get; set; } = false; + public bool PkgComplete => PKG_LEVEL == 1 || Items.Count(q => q.IsFinished) == PKG_QTY; public List<WipPkgItem> Items { get; set; } = new List<WipPkgItem>(); public Dictionary<string, string> WipSNs { get; set; } = new Dictionary<string, string>(); - public double TotalQty => Items.Any() ? Items.Sum(q => q.TotalQty) : Package.QTY; + public double TotalQty => Items.Any() ? Items.Sum(q => q.TotalQty) : Package?.QTY ?? 0; public List<MES_WIP_PKG> GetMinPackageList() { @@ -321,4 +322,13 @@ public string Message { get; set; } } + /// <summary> + /// 鍑鸿揣淇℃伅 + /// </summary> + public class ShipingInfo + { + public bool IsPrintCustomerLabel { get; set; } + public int ShipQty { get; set; } + } + } -- Gitblit v1.9.3