using System; using System.Text; using System.Collections.Generic; using System.Data; using System.Runtime.Serialization; using System.ComponentModel.DataAnnotations; using IStation.Unit; using IStation.Model.Monitor; namespace IStation.Model { /// /// 信号类型 /// public partial class SignalType : System.ICloneable { /// /// /// public SignalType() { } /// /// /// public SignalType(SignalType rhs) { this.ID = rhs.ID; this.Identifier = rhs.Identifier; this.GroupID = rhs.GroupID; this.Name = rhs.Name; this.UnitType = rhs.UnitType; this.UnitValue = rhs.UnitValue; this.DecimalPlaces = rhs.DecimalPlaces; this.ValueType = rhs.ValueType; this.ValueSettings = rhs.ValueSettings; this.TagName = rhs.TagName; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } /// /// /// public void Reset(SignalType rhs) { this.ID = rhs.ID; this.Identifier = rhs.Identifier; this.GroupID = rhs.GroupID; this.Name = rhs.Name; this.UnitType = rhs.UnitType; this.UnitValue = rhs.UnitValue; this.DecimalPlaces = rhs.DecimalPlaces; this.ValueType = rhs.ValueType; this.ValueSettings = rhs.ValueSettings; this.TagName = rhs.TagName; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } /// /// 标识 /// public long ID { get; set; } /// /// 组标识 /// public long GroupID { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 唯一标识 /// public string Identifier { get; set; } /// /// 单位类型 /// public eUnitType UnitType { get; set; } /// /// 单位值 /// public string UnitValue { get; set; } /// /// 保存小数位数 /// public int? DecimalPlaces { get; set; } /// /// 值类型 /// public eValueType ValueType { get; set; } /// /// 值设置 /// public string ValueSettings { get; set; } /// /// 标记名称 /// public string TagName { get; set; } /// /// 排序码 /// public int SortCode { get; set; } /// /// 说明 /// public string Description { get; set; } /// /// /// public SignalType Clone() { return (SignalType)this.MemberwiseClone(); } object ICloneable.Clone() { return this.MemberwiseClone(); } } }