From 40ed954d9d351005b7e353de31e51ababb90b4ce Mon Sep 17 00:00:00 2001
From: wxw <Administrator@DESKTOP-5BIMHQ3>
Date: 星期六, 20 九月 2025 18:29:25 +0800
Subject: [PATCH] 托盘明细增加到期日期

---
 HTML/views/StatisticalReport/BoxInfor.html |    1 +
 Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs   |    8 ++++++++
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/HTML/views/StatisticalReport/BoxInfor.html b/HTML/views/StatisticalReport/BoxInfor.html
index 3a9707f..9ab7017 100644
--- a/HTML/views/StatisticalReport/BoxInfor.html
+++ b/HTML/views/StatisticalReport/BoxInfor.html
@@ -407,6 +407,7 @@
 				{ field: 'BitPalletMark', title: '闆舵墭鏍囪', align: 'center', templet: '#BitPalletMarkStatus', width: 100, },
 
 				{ field: 'ProductionTime', title: '鐢熶骇鏃ユ湡', align: 'center', templet: '#templetProductionTime' },
+				{ field: 'ExpirationTime', title: '杩囨湡鏃ユ湡', align: 'center', templet: '#templetExpirationTime' },
 				{ field: 'OwnerNo', title: '璐т富缂栫爜', align: 'center', width: 100, },
 				{ field: 'OwnerName', title: '璐т富鍚嶇О', align: 'center', width: 100, },
 				{ field: 'SupplierNo', title: '渚涘簲鍟嗙紪鐮�', align: 'center', width: 100, },
diff --git a/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs b/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs
index cd81f01..ae98c96 100644
--- a/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs
+++ b/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs
@@ -325,6 +325,14 @@
                             CreateUser = 0,
                             CreateTime = comTime
                         };
+                        if (!string.IsNullOrEmpty(detail.Lot1))
+                        {
+                            sd1.ProductionTime = Convert.ToDateTime(detail.Lot1);//鐢熶骇鏃ユ湡
+                        }
+                        if (!string.IsNullOrEmpty(detail.Lot2))
+                        {
+                            sd1.ExpirationTime = Convert.ToDateTime(detail.Lot2);//鍒版湡鏃ユ湡
+                        }
                         var palletData = Db.Queryable<DataStockDetail>().First(w => w.IsDel == "0" && w.PalletNo == sd1.PalletNo && !string.IsNullOrEmpty(w.LocatNo));
                         if (palletData != null)
                         {

--
Gitblit v1.8.0