From b7b077770d2bb0c2f9d6f5108dc08014d816d7c6 Mon Sep 17 00:00:00 2001 From: HCL <1625932291@qq.com> Date: Wed, 27 Dec 2023 09:16:26 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=A2=9E=E5=8A=A0=E5=BC=B9=E6=A1=86=E6=8F=90?= =?UTF-8?q?=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SicUI/Models/Maintenances/TM/EFEMViewModel.cs | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/SicUI/Models/Maintenances/TM/EFEMViewModel.cs b/SicUI/Models/Maintenances/TM/EFEMViewModel.cs index 2662f978..19babf35 100644 --- a/SicUI/Models/Maintenances/TM/EFEMViewModel.cs +++ b/SicUI/Models/Maintenances/TM/EFEMViewModel.cs @@ -4,6 +4,8 @@ using MECF.Framework.Common.CommonData; using SicUI.Models; using System; using System.Collections.Generic; +using System.Reflection; +using System.Windows; namespace SicUI.Models.Maintenances.TM { @@ -293,10 +295,21 @@ namespace SicUI.Models.Maintenances.TM cSlot = 0; } - if ((TraySelectedModule == "CassBL" && !IsOnlineCassBL) || (TraySelectedModule == "LoadLock" && !IsOnlineLoad)) + if (TraySelectedModule == "CassBL" && IsOnlineCassBL) { - InvokeClient.Instance.Service.DoOperation($"TrayRobot.PickTray", TraySelectedModule, cSlot); + MessageBox.Show("CassBL is still in online"); + return; } + + if (TraySelectedModule == "LoadLock" && IsOnlineLoad) + { + MessageBox.Show("LoadLock is still in online"); + return; + } + + + InvokeClient.Instance.Service.DoOperation($"TrayRobot.PickTray", TraySelectedModule, cSlot); + } public void TrayRobotPlaceRoutine() {