| | |
| | | /// </summary> |
| | | public string DFT_CODE { get; set; } |
| | | /// <summary> |
| | | /// 当前操作需要提交的选项 |
| | | /// </summary> |
| | | public Dictionary<string, string> Options { get; set; } = new Dictionary<string, string>(); |
| | | /// <summary> |
| | | /// 当前操作需要提交的数据 |
| | | /// </summary> |
| | | public string Data { get; set; } |
| | |
| | | /// </summary> |
| | | public int PkgLevel { get; set; } |
| | | /// <summary> |
| | | /// 是否需要 |
| | | /// </summary> |
| | | public bool RealPrint { get; set; } = true; |
| | | /// <summary> |
| | | /// 当前需要打印的包装层级的标签信息 |
| | | /// </summary> |
| | | public BAS_LABEL_TEMP PrintLable { get; set; } |
| | |
| | | public WeightInfo WeightInfo { get; set; } = new WeightInfo(); |
| | | public bool IsFinished => Item.IsFinished; |
| | | public bool IsReachedEndNode { get; set; } = false; |
| | | public string InStoreActID { get; set; } |
| | | public BAS_LABEL_TEMP InStoreLabel { get; set; } |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | 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; |
| | | |
| | | public List<MES_WIP_PKG> GetMinPackageList() |
| | | { |
| | | var list = new List<MES_WIP_PKG>(); |
| | | if (Items.Any()) |
| | | { |
| | | foreach (var item in Items) |
| | | { |
| | | item.Package.PARENT_SN = Package?.SN; |
| | | list.AddRange(item.GetMinPackageList()); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (Package != null) |
| | | { |
| | | list.Add(Package); |
| | | } |
| | | } |
| | | return list; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |