From 455fe321566448484275e632a6c6606def1f7362 Mon Sep 17 00:00:00 2001 From: Sai Date: Tue, 15 Aug 2023 13:26:15 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=BF=AE=E6=AD=A3PCS003=E5=B7=A5=E5=96=AE?= =?UTF-8?q?=E7=B6=AD=E8=AD=B7=E4=B8=8D=E8=83=BD=E5=84=B2=E5=AD=98=E5=95=8F?= =?UTF-8?q?=E9=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AMESCoreStudio.Web/Controllers/PCSController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AMESCoreStudio.Web/Controllers/PCSController.cs b/AMESCoreStudio.Web/Controllers/PCSController.cs index 57e012b..59f8059 100644 --- a/AMESCoreStudio.Web/Controllers/PCSController.cs +++ b/AMESCoreStudio.Web/Controllers/PCSController.cs @@ -2403,7 +2403,7 @@ namespace AMESCoreStudio.Web.Controllers if (wipInfoQuery.Any()) { // 判斷是否有開重複 工單+生產單位+線別 - if (wipInfoQuery.Where(w => w.UnitNO == model.wipInfo.UnitNO && w.LineID == model.wipInfo.LineID).Any()) + if (wipInfoQuery.Where(w => w.WipID != model.wipInfo.WipID && w.LineID == model.wipInfo.LineID).Any()) Msg += ",該線別已有建立相同工單號碼了,請在確認"; }