From 4360d2034ec5396ef3a388d89a21ec085f779993 Mon Sep 17 00:00:00 2001 From: Marvin Date: Wed, 11 Oct 2023 22:47:01 +0800 Subject: [PATCH] =?UTF-8?q?1.=E8=A3=9C=E5=89=8D=E4=B8=80=E5=80=8B=E7=89=88?= =?UTF-8?q?=E6=9C=AC=20//=20=E5=88=A4=E6=96=B7=E6=98=AF=E5=90=A6=E9=A0=90?= =?UTF-8?q?=E8=A8=AD=E6=89=93=E5=8B=BE=E6=8E=83=E6=AF=92=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20else=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20{=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20var=20AntivirusItemNo=20=3D=20new?= =?UTF-8?q?=20List=20{=20"E1582",=20"E1583",=20"E1584",=20"E1585",?= =?UTF-8?q?=20"E1586",=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20"E1587","E1588","E1589","E158C"};=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20if=20(AntivirusIte?= =?UTF-8?q?mNo.Any(item=20=3D>=20model.wipAtt.ItemNO.StartsWith(item)))=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20{?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20model.wipSystem=20=3D=20new=20WipSystem();=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20model.wipSystem.Antivirus=20=3D=20"Y";=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20}=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AMESCoreStudio.Web/Controllers/PCSController.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/AMESCoreStudio.Web/Controllers/PCSController.cs b/AMESCoreStudio.Web/Controllers/PCSController.cs index a00fac37..74019177 100644 --- a/AMESCoreStudio.Web/Controllers/PCSController.cs +++ b/AMESCoreStudio.Web/Controllers/PCSController.cs @@ -2623,6 +2623,18 @@ namespace AMESCoreStudio.Web.Controllers model.wipSystem.Engineer_Name = UserInof.UserName; } } + // 判斷是否預設打勾掃毒 + else + { + var AntivirusItemNo = new List { "E1582", "E1583", "E1584", "E1585", "E1586", + "E1587","E1588","E1589","E158C"}; + if (AntivirusItemNo.Any(item => model.wipAtt.ItemNO.StartsWith(item))) + { + model.wipSystem = new WipSystem(); + model.wipSystem.Antivirus = "Y"; + } + } + model.wipMACs = await _pcsApi.GetWipMAC(model.wipInfo.WipNO);