| | |
| | | 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() |
| | |
| | | } |
| | | 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> |