From 8c998a765b56cba071e4d41f417589f6c0159dce Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期二, 19 十一月 2024 20:33:53 +0800
Subject: [PATCH] 获取出货信息更新

---
 Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 49 insertions(+), 0 deletions(-)

diff --git a/Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs b/Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs
index ba389de..c0c5758 100644
--- a/Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs
+++ b/Tiger.Model.Net/Entitys/MES/ParameterEntity/PositionParameter.cs
@@ -46,6 +46,10 @@
         /// </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; }
@@ -148,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; }
@@ -169,6 +177,8 @@
         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>
@@ -186,7 +196,46 @@
         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()
+        {
+            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;
+        }
+
+        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>

--
Gitblit v1.9.3