| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 | 
							- using System;
 
- using System.Collections.Generic;
 
- using System.ComponentModel;
 
- using System.Linq;
 
- using System.Reflection;
 
- using System.Runtime.Serialization;
 
- using System.Text;
 
- using System.Windows.Input;
 
- using Aitex.Core.UI.MVVM;
 
- using MECF.Framework.Common.CommonData;
 
- namespace Aitex.Core.Common.DeviceData
 
- {
 
-     [DataContract]
 
-     [Serializable]
 
-     public class AITValveData : NotifiableItem, IDeviceData
 
-     {
 
-         [DataMember]
 
-         public string UniqueName { get; set; }
 
-         [DataMember]
 
-         public string DeviceName { get; set; }
 
-         /// <summary>
 
-         /// 显示在界面上的名称
 
-         /// </summary>
 
-         [DataMember]
 
-         public string DisplayName { get; set; }
 
-         /// <summary>
 
-         /// IO 表中定义的物理编号,物理追溯使用 比如: V122
 
-         /// </summary>
 
-         [DataMember]
 
-         public string DeviceSchematicId { get; set; }
 
-      /// <summary>
 
-         /// 当前设定值
 
-         /// </summary>
 
-         [DataMember]
 
-         
 
-         public bool SetPoint { get; set; }
 
-    [DataMember]
 
-         public bool ILKDiValue { get; set; }
 
-         /// <summary>
 
-         /// 默认值
 
-         /// </summary>
 
-         [DataMember]
 
-         public bool DefaultValue { get; set; }
 
-         /// <summary>
 
-         /// 实际反馈值
 
-         /// </summary>
 
-         [DataMember]
 
-         public bool Feedback { get; set; }
 
-         /// <summary>
 
-         /// 虚拟反馈值
 
-         /// </summary>
 
-         [DataMember]
 
-         public bool VirtualFeedback { get; set; }
 
-         public bool IsOpen {
 
-             get { return Feedback;  }
 
-         }
 
-         public AITValveData()
 
-         {
 
-             DisplayName = "未定义阀门";
 
-         }
 
-         public void Update(IDeviceData data)
 
-         {
 
-             AITValveData item = data as AITValveData;
 
-             if (item == null)
 
-                 return;
 
-             this.DefaultValue = item.DefaultValue;
 
-             this.DeviceSchematicId = item.DeviceSchematicId;
 
-             this.DeviceName = item.DeviceName;
 
-             this.DisplayName = item.DisplayName;
 
-             this.Feedback = item.Feedback;
 
-             this.SetPoint = item.SetPoint;
 
-             this.VirtualFeedback = item.VirtualFeedback;
 
-             InvokePropertyChanged();
 
-         }
 
-         public override bool Equals(object obj)
 
-         {
 
-             if (obj == null || GetType() != obj.GetType())
 
-             {
 
-                 return false;
 
-             }
 
-            
 
-            AITValveData objAIT = (AITValveData)obj;
 
-             if (IsOpen == objAIT.IsOpen && Feedback == objAIT.Feedback && SetPoint == objAIT.SetPoint && VirtualFeedback == objAIT.VirtualFeedback)
 
-             {
 
-                 return true;
 
-             }
 
-             return false;
 
-         }
 
-     }
 
-     public class AITValveOperation
 
-     {
 
-         public const string GVTurnValve = "GVTurnValve";
 
-         public const string GVVirtualTurnValve = "GVVirtualTurnValve";
 
-     }
 
-     public class AITValveDataPropertyName
 
-     {
 
-         public const string Status = "Status";
 
-         public const string SetPoint = "SetPoint";
 
-     }
 
- }
 
 
  |