using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Aitex.Core.Util; using MECF.Framework.Common.OperationCenter; using FurnaceUI.Models; namespace FurnaceUI.Views.Status { public class LoadPortStateViewModel : FurnaceUIViewModelBase { [Subscription("TransferState", "LP1")] public string TransferStateLp1 { get; set; } [Subscription("AccessMode", "LP1")] public string AccessModeLp1 { get; set; } [Subscription("AssociationState", "LP1")] public string AssociationStateLp1 { get; set; } [Subscription("ReserveState", "LP1")] public string ReserveStateLp1 { get; set; } public void LP1SetInService() { InvokeClient.Instance.Service.DoOperation($"LP1.SetInService"); } public void LP1SetOutService() { InvokeClient.Instance.Service.DoOperation($"LP1.SetOutService"); } public void LP1SetAuto() { InvokeClient.Instance.Service.DoOperation($"LP1.SetAMHS"); } public void LP1SetManual() { InvokeClient.Instance.Service.DoOperation($"LP1.SetManual"); } [Subscription("TransferState", "LP2")] public string TransferStateLp2 { get; set; } [Subscription("AccessMode", "LP2")] public string AccessModeLp2 { get; set; } [Subscription("AssociationState", "LP2")] public string AssociationStateLp2 { get; set; } [Subscription("ReserveState", "LP2")] public string ReserveStateLp2 { get; set; } public void LP2SetInService() { InvokeClient.Instance.Service.DoOperation($"LP2.SetInService"); } public void LP2SetOutService() { InvokeClient.Instance.Service.DoOperation($"LP2.SetOutService"); } public void LP2SetAuto() { InvokeClient.Instance.Service.DoOperation($"LP2.SetAMHS"); } public void LP2SetManual() { InvokeClient.Instance.Service.DoOperation($"LP2.SetManual"); } } }