From 706b85f10a01393f66cbb9412de271af36156698 Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期三, 27 十一月 2024 19:05:45 +0800
Subject: [PATCH] 一些更改

---
 Tiger.Business.MES/Transaction/Position.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Tiger.Business.MES/Transaction/Position.cs b/Tiger.Business.MES/Transaction/Position.cs
index 6bc6cc8..707f714 100644
--- a/Tiger.Business.MES/Transaction/Position.cs
+++ b/Tiger.Business.MES/Transaction/Position.cs
@@ -659,7 +659,7 @@
                                         if (_orderAction != null)
                                         {
                                             var snList = _orderAction.CurPkg.Item.GetWipSnList().Select(q => q.Value).ToList();
-                                            if (!snList.Any())
+                                            //if (!snList.Any())
                                             {
                                                 snList.Add(_orderAction.CurPkg.CustSN?.FLOW_SN);
                                             }
@@ -675,12 +675,12 @@
                                 case "GetXH":
                                     return "";
                                 case "GetCardNo":
-                                    return $"{Context["CurWaitShipmentCarton"].ToInt32() + 1}";
+                                    return $"{Context.GetOrDefault("CurWaitShipmentCarton").ToInt32() + 1}";
                                 case "GetCardTotal":
                                     var total = "";
                                     var _curaction = curAction is PackingAction ? curAction as PackingAction : null;
                                     if (!_curaction.IsNullOrEmpty()) {
-                                        total = $"{Math.Ceiling(Context["CurShipQty"].ToDecimal()/_curaction.PkgRule.GetTotalQty().ToDecimal())}";
+                                        total = $"{Math.Ceiling(Context.GetOrDefault("CurShipQty").ToDecimal()/_curaction.PkgRule.GetTotalQty().ToDecimal())}";
                                     }
                                     return total;
                                 case "GetModelSpec": //Model+绌烘牸+SPEC,

--
Gitblit v1.9.3