From e8734db76fbbb3149ba663beff3b4f7451012b03 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周二, 03 12月 2024 13:28:34 +0800
Subject: [PATCH] 11

---
 LA24030_LuLiPackageLine_Print/LA24030_LuLiPackageLine_PrintService/WindowsFormsApplication1/Form1.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/LA24030_LuLiPackageLine_Print/LA24030_LuLiPackageLine_PrintService/WindowsFormsApplication1/Form1.cs b/LA24030_LuLiPackageLine_Print/LA24030_LuLiPackageLine_PrintService/WindowsFormsApplication1/Form1.cs
index bd0ea2f..f95c236 100644
--- a/LA24030_LuLiPackageLine_Print/LA24030_LuLiPackageLine_PrintService/WindowsFormsApplication1/Form1.cs
+++ b/LA24030_LuLiPackageLine_Print/LA24030_LuLiPackageLine_PrintService/WindowsFormsApplication1/Form1.cs
@@ -312,7 +312,7 @@
                     Dictionary<string, object> data = new Dictionary<string, object>();
                     if (printClassifyEnum == PrintClassifyEnum.鍖呰鏉$爜)
                     {
-                        data.Add("Info4", item.Info4);//鍚堝悓鍗曞彿
+                        data.Add("Info4", item.Info4 ?? "");//鍚堝悓鍗曞彿
                         data.Add("Info5", item.Info5 ?? "");//鐢熶骇鍗曞彿
                         data.Add("Info6", "绗�" + (item.Info6 ?? "") + "鍖�");//绗嚑鍖�
                         data.Add("bar", item.PackageCode);//浜岀淮鐮侊紙鍖呭彿锛�
@@ -325,7 +325,7 @@
                         data.Add("Info13", item.Info13 ?? "");//褰撳墠鍖呴潰绉�
                         data.Add("printTime", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
 
-                        var finsiList = mycontext.mes_package_gather.Where(x => x.Info5 == item.Info5 && x.UpiStatus >= (int)UpiStatusEnum.宸插悎鍖�);
+                        var finsiList = mycontext.mes_package_gather.Where(x => x.Info5 == item.Info5 && x.UpiStatus >= (int)UpiStatusEnum.宸插悎鍖�).ToList();
                         double leijisaomiaomj = 0;
                         foreach (var aa in finsiList)
                         {

--
Gitblit v1.9.3