服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
2024-11-15 3e23a18bcc7b63963c430b72eb7b5df09f6a063f
Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs
@@ -196,6 +196,7 @@
        public MES_WIP_PKG Package { get; set; }
        public bool IsFinished { get; set; } = false;
        public List<WipPkgItem> Items { get; set; } = new List<WipPkgItem>();
        public Dictionary<string, string> WipSNs { get; set; } = new Dictionary<string, string>();
        public int TotalQty => Items.Any() ? Items.Sum(q => q.TotalQty) : 1;
        public List<MES_WIP_PKG> GetMinPackageList()
@@ -218,6 +219,23 @@
            }
            return list;
        }
        public List<KeyValuePair<string, string>> GetWipSnList()
        {
            var list = new List<KeyValuePair<string, string>>();
            if (Items.Any())
            {
                foreach (var item in Items)
                {
                    list.AddRange(item.GetWipSnList());
                }
            }
            else
            {
                list.AddRange(WipSNs.ToList());
            }
            return list;
        }
    }
    /// <summary>