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 | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs b/Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs
index a850df2..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");
}
@@ -732,7 +733,7 @@
// 澶勭悊浠锋牸榛樿鍊�
detailModel.Price ??= 0;
-
+ detailModel.BoxCodeStr = detailModel.LotNo;
// 鐢熸垚绠辩爜锛堣嚜鏈夋壒娆¢�昏緫锛�
if (detailModel.Id == 0 || detailModel.Id == null || string.IsNullOrWhiteSpace(detailModel.LotNo))
{
@@ -864,6 +865,7 @@
}
catch (Exception ex)
{
+ Db.Ado.RollbackTran();
throw ex;
}
}
--
Gitblit v1.8.0