From 1e6795bce9daa1ef06ec063cc9be8c4aa656db5b Mon Sep 17 00:00:00 2001 From: Ray Date: Tue, 21 Feb 2023 08:13:22 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E9=81=8E=E7=AB=99=E7=A8=8B=E5=BC=8FKp?= =?UTF-8?q?=E9=A1=9E=E5=9E=8B=E6=94=B9=E7=B5=B1=E4=B8=80=E8=BD=89=E5=A4=A7?= =?UTF-8?q?=E5=AF=AB=E5=88=A4=E6=96=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AMESCoreStudio.Web/Controllers/PCSController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AMESCoreStudio.Web/Controllers/PCSController.cs b/AMESCoreStudio.Web/Controllers/PCSController.cs index abb97264..56f5e2d1 100644 --- a/AMESCoreStudio.Web/Controllers/PCSController.cs +++ b/AMESCoreStudio.Web/Controllers/PCSController.cs @@ -6382,7 +6382,7 @@ namespace AMESCoreStudio.Web.Controllers var ExceptWipKp = model.WipKps.ToList(); foreach (var item in BarCodeItems) { - var ByItemWipKp = ExceptWipKp.Where(w => w.KpNo == item.ItemNo).FirstOrDefault(); + var ByItemWipKp = ExceptWipKp.Where(w => w.KpNo.Trim().ToUpper() == item.ItemNo.Trim().ToUpper()).FirstOrDefault(); if (ByItemWipKp != null) ExceptWipKp.Remove(ByItemWipKp); } @@ -6501,7 +6501,7 @@ namespace AMESCoreStudio.Web.Controllers { // 組件資料 var items = await _pcsApi.GetItems(); - items = items.Where(w => model.WipKps.Any(wi => wi.KpNo == w.ItemNo)).ToList(); + items = items.Where(w => model.WipKps.Any(wi => wi.KpNo.Trim().ToUpper() == w.ItemNo.Trim().ToUpper())).ToList(); // 判斷Input為指定KeyParts順序 if (items.Any(a => a.ItemName.ToUpper() == Data.ToUpper())) {