From bc9a1fc998caa26ad1ea7f2f235757b74eab69e2 Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期日, 13 十月 2024 01:19:58 +0800
Subject: [PATCH] 返回包装信息更新

---
 Tiger.Business.MES/Transaction/PackingNode.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Tiger.Business.MES/Transaction/PackingNode.cs b/Tiger.Business.MES/Transaction/PackingNode.cs
index c51b140..769c5d4 100644
--- a/Tiger.Business.MES/Transaction/PackingNode.cs
+++ b/Tiger.Business.MES/Transaction/PackingNode.cs
@@ -613,7 +613,7 @@
 
             //淇濆瓨鎴愬姛锛岃繑鍥炶繃绔欐秷鎭�
             CurOperInfo(locale).InputQty += CurWipSNs.Count;
-            action.Data.Data = new PackingActionOutput() { PkgInfo = Context["CurPackage"] as WipPkg };
+            action.Data.Data = new PackingActionOutput() { PkgInfo = Context.ContainsKey("CurPackage") ? Context["CurPackage"] as WipPkg : null };
             action.Data.OperInfo = SetOperNodeInfo(CurOperInfo(locale));
             action.Data.ShortMsg = new(CurWipSNs.Any(q => q.DFT_FLAG == "Y") ? "涓嶈壇杩囩珯" : "鑹搧杩囩珯", ShortMessage.Types.Success);
             //action.LocaleMsg = new($"宸ュ崟[{CurWipSN.WORK_ORDER}]鐨勬潯鐮乕{CurWipSN.SN}]鍦ㄥ矖浣峓{CurWipSN.POST_CODE}]宸ュ簭[{CurWipSN.NODE_NAME}]杩囩珯鎴愬姛锛岀姸鎬乕{CurWipSN.STATUS.GetEnumDesc<MES_WIP_DATA.STATUSs>()}]");

--
Gitblit v1.9.3