From 9c5740fd7f58c29e2a361c7f6378fcb2e45842f8 Mon Sep 17 00:00:00 2001 From: Juj <1005539536@qq.com> Date: Tue, 26 Dec 2023 12:33:43 +0800 Subject: [PATCH] no message --- .../WMS/ProductionIssueApp.cs | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/WMS-BS/NFine.Application/WMS/ProductionIssueApp.cs b/WMS-BS/NFine.Application/WMS/ProductionIssueApp.cs index 2e755bf..7d2e5c9 100644 --- a/WMS-BS/NFine.Application/WMS/ProductionIssueApp.cs +++ b/WMS-BS/NFine.Application/WMS/ProductionIssueApp.cs @@ -500,8 +500,7 @@ where a.ApplyNegCode='" + ApplyNegCode + "'"; keyValue = keyValue.Substring(1, keyValue.Length - 2); string sql = string.Empty; string sqlSeach = string.Empty; - try - { + sqlSeach = string.Format(@"select * from ICSMOApplyNeg a inner join dbo.ICSInventoryLotDetail b on a.ApplyNegCode=b.TransCode and a.WorkPoint=b.WorkPoint inner join dbo.ICSInventoryLot c on b.LotNo=c.LotNo and b.WorkPoint=c.WorkPoint @@ -517,20 +516,21 @@ where a.ApplyNegCode='" + ApplyNegCode + "'"; sql += string.Format(@"DELETE FROM dbo.ICSMOApplyNeg WHERE ApplyNegCode IN ({0}) and WorkPoint ='{1}'", keyValue.TrimEnd(','), WorkPoint); sql += string.Format(@"DELETE FROM dbo.ICSMOApplyNegDetail WHERE ApplyNegCode IN ({0}) and WorkPoint ='{1}'", keyValue.TrimEnd(','), WorkPoint); } - - try - { - if (SqlHelper.CmdExecuteNonQueryLi(sql) > 0) + + try { - + if (SqlHelper.CmdExecuteNonQueryLi(sql) > 0) + { + + } } + catch (Exception ex) + { + msg = ex.Message; + } + return msg; + } - catch (Exception ex) - { - throw new Exception(ex.Message); - } - return msg; - }