From 3ffc9e207b22b4fff12e601aeb512b8d373e5a9d Mon Sep 17 00:00:00 2001
From: wxw <Administrator@DESKTOP-5BIMHQ3>
Date: 星期四, 30 十月 2025 17:01:05 +0800
Subject: [PATCH] 修改问题

---
 Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs b/Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs
index b2366e1..98006d1 100644
--- a/Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs
+++ b/Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs
@@ -417,7 +417,7 @@
                         //    DateTime lot22;
                         //    if (!DateTime.TryParse(detailModel.Lot1, out lot12))
                         //    {
-                        //        throw new Exception("闇�瑕佽楠岀墿鏂欑敓浜ф棩鏈熻浆鎹㈠け璐�");
+                        //        throw new Exception("闇�瑕佽楠屾枡鐢熶骇鏃ユ湡杞崲澶辫触");
                         //    }
                         //    if (!DateTime.TryParse(detailModel.Lot2, out lot22))
                         //    {
@@ -431,16 +431,16 @@
                             DateTime lot12;
                             if (!DateTime.TryParse(detailModel.Lot1, out lot12))
                             {
-                                throw new Exception("闇�瑕佽楠岀墿鏂欑敓浜ф棩鏈熻浆鎹㈠け璐�");
+                                throw new Exception("鐢熶骇鏃ユ湡杞崲澶辫触锛岃妫�鏌ユ牸寮忔槸鍚︽纭�");
                             }
                             lot1 = lot12.ToString("yyyy-MM-dd");
                         }
                         if (!string.IsNullOrEmpty(lot2))
                         {
                             DateTime lot22;
-                            if (!DateTime.TryParse(detailModel.Lot1, out lot22))
+                            if (!DateTime.TryParse(detailModel.Lot2, out lot22))
                             {
-                                throw new Exception("闇�瑕佽楠岀墿鏂欑敓浜ф棩鏈熻浆鎹㈠け璐�");
+                                throw new Exception("鍒版湡鏃ユ湡杞崲澶辫触锛岃妫�鏌ユ牸寮忔槸鍚︽纭�");
                             }
                             lot2 = lot22.ToString("yyyy-MM-dd");
                         }
@@ -520,6 +520,7 @@
             }
             catch (Exception ex)
             {
+                Db.Ado.RollbackTran();
                 throw new Exception(ex.Message);
             }
         }
@@ -695,16 +696,16 @@
                             DateTime lot12;
                             if (!DateTime.TryParse(detailModel.Lot1, out lot12))
                             {
-                                throw new Exception("闇�瑕佽楠岀墿鏂欑敓浜ф棩鏈熻浆鎹㈠け璐�");
+                                throw new Exception("鐢熶骇鏃ユ湡杞崲澶辫触锛岃妫�鏌ユ牸寮忔槸鍚︽纭�");
                             }
                             detailModel.Lot1 = lot12.ToString("yyyy-MM-dd");
                         }
                         if (!string.IsNullOrEmpty(detailModel.Lot2))
                         {
                             DateTime lot22;
-                            if (!DateTime.TryParse(detailModel.Lot1, out lot22))
+                            if (!DateTime.TryParse(detailModel.Lot2, out lot22))
                             {
-                                throw new Exception("闇�瑕佽楠岀墿鏂欑敓浜ф棩鏈熻浆鎹㈠け璐�");
+                                throw new Exception("鍒版湡鏃ユ湡杞崲澶辫触锛岃妫�鏌ユ牸寮忔槸鍚︽纭�");
                             }
                             detailModel.Lot2 = lot22.ToString("yyyy-MM-dd");
                         }
@@ -864,6 +865,7 @@
             }
             catch (Exception ex)
             {
+                Db.Ado.RollbackTran();
                 throw ex;
             }
         }

--
Gitblit v1.8.0