using System; using System.Text; using System.Collections.Generic; using System.Data; using System.Runtime.Serialization; 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 IStation.Unit.eUnitType UnitType { get; set; } /// /// 单位值 /// public string UnitValue { get; set; } /// /// 保存小数位数 /// public int? DecimalPlaces { get; set; } /// /// 值类型 /// public Monitor.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(); } } }