From 9e3b715b524d4389801532d477ebe7afb8427045 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周一, 02 12月 2024 09:40:45 +0800
Subject: [PATCH] 222
---
LA24030_LuLiPackageLine_Print/LA24030_LuLiPackageLine_PrintService/WindowsFormsApplication1/Form1.cs | 16 ++++++++++++++--
1 files changed, 14 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 2ac9750..bd0ea2f 100644
--- a/LA24030_LuLiPackageLine_Print/LA24030_LuLiPackageLine_PrintService/WindowsFormsApplication1/Form1.cs
+++ b/LA24030_LuLiPackageLine_Print/LA24030_LuLiPackageLine_PrintService/WindowsFormsApplication1/Form1.cs
@@ -325,8 +325,20 @@
data.Add("Info13", item.Info13 ?? "");//褰撳墠鍖呴潰绉�
data.Add("printTime", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
- //mycontext.mes
- data.Add("leijisaomiaomj", item.Info13 ?? "");//绱鎵弿闈㈢Н
+ var finsiList = mycontext.mes_package_gather.Where(x => x.Info5 == item.Info5 && x.UpiStatus >= (int)UpiStatusEnum.宸插悎鍖�);
+ double leijisaomiaomj = 0;
+ foreach (var aa in finsiList)
+ {
+ if (!string.IsNullOrEmpty(aa.Info13))
+ {
+ leijisaomiaomj += Convert.ToDouble(aa.Info13);
+ }
+ }
+ if (!string.IsNullOrEmpty(item.Info13))
+ {
+ leijisaomiaomj += Convert.ToDouble(item.Info13);
+ }
+ data.Add("leijisaomiaomj", leijisaomiaomj);//绱鎵弿闈㈢Н
//鏌ヨ涓� 鍖呮暟鎹�
var mylist = mycontext.mes_batchOrderUPI_new.Where(x => x.PackageCode == item.PackageCode).ToList();
--
Gitblit v1.9.3