From c9259bb264b7ca591a326f0297020c3b07b5076b Mon Sep 17 00:00:00 2001 From: IPC-610 <IPC-610@DESKTOP-6LEOOS3> Date: 星期三, 16 十月 2024 10:48:35 +0800 Subject: [PATCH] 转换排 --- Admin.NET/WCS.Application/PLC/PLCCommon.cs | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Admin.NET/WCS.Application/PLC/PLCCommon.cs b/Admin.NET/WCS.Application/PLC/PLCCommon.cs index dafb2a2..e020f08 100644 --- a/Admin.NET/WCS.Application/PLC/PLCCommon.cs +++ b/Admin.NET/WCS.Application/PLC/PLCCommon.cs @@ -432,7 +432,10 @@ taskInfo.EndPai = paiVal.ToString(); taskInfo.EndCeng = cengNum.ToString(); taskInfo.EndLie = lieNum.ToString() ; - + if (taskInfo.EndPai == "0" || taskInfo.EndCeng == "0" || taskInfo.EndLie == "0") + { + throw new Exception("鎺掑垪灞傝浆鎹㈠け璐�"); + } return taskInfo; } @@ -878,7 +881,10 @@ } } } - + if (paiVal == 0) + { + throw new Exception("鎺掕浆鎹㈠け璐�"); + } return paiVal; } -- Gitblit v1.8.0