From 4717389bfc9cdd522b32f2bc04d0e59af8d76621 Mon Sep 17 00:00:00 2001
From: wxw <Administrator@DESKTOP-5BIMHQ3>
Date: 星期三, 29 十月 2025 08:47:21 +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