| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- using System.ComponentModel;
- using System.Reflection;
- using System.Runtime.Serialization;
- using System.Windows.Input;
- namespace OldWorldData.CommonData.DeviceData
- {
- [DataContract]
- [Serializable]
- public class AITDeveloperCoupleData
- {
- /// <summary>
- /// 设备的唯一名称,UI与RT交互的ID
- /// </summary>
- [DataMember]
- public string DeviceName { get; set; }
- /// <summary>
- /// 显示在界面上的名称
- /// </summary>
- [DataMember]
- public string DisplayName { get; set; }
- /// <summary>
- /// IO 表中定义的物理编号,物理追溯使用 比如: M122
- /// </summary>
- [DataMember]
- public string DeviceSchematicId { get; set; }
- [DataMember]
- public string Unit { get; set; }
- [DataMember]
- public string Description { get; set; }
- /// <summary>
- /// 量程
- /// </summary>
- [DataMember]
- public bool IsWarning { get; set; }
- /// <summary>
- /// 设定值
- /// </summary>
- [DataMember]
- public bool IsOutOfTolerance { get; set; }
- [DataMember]
- public double FeedBack { get; set; }
- /// <summary>
- /// 默认值
- /// </summary>
- [DataMember]
- public bool IsAlarm { get; set; }
- /// <summary>
- /// 是否有报警
- /// </summary>
- [DataMember]
- public bool IsBroken { get; set; }
- /// <summary>
- /// alarm或是erro时显示的信息
- /// </summary>
- [DataMember]
- public string ErroMessage { get; set; }
- /// <summary>
- /// MFC,PC
- /// </summary>
- [DataMember]
- public string Type { get; set; }
- [DataMember]
- public double Factor { get; set; }
- public AITDeveloperCoupleData()
- {
- DisplayName = "Undefined";
- Factor = 1.0;
- Unit = "℃";
- Type = "TC";
- }
- }
- public class AITDeveloperCoupleProperty
- {
- public const string IsTcBroken = "IsTcBroken";
- public const string Feedback = "Feedback";
- }
- }
|