using System; using System.Text; using System.Collections.Generic; using System.Data; using System.Runtime.Serialization; using System.ComponentModel.DataAnnotations; using static IStation.Model.MonitorUnit; namespace IStation.Model { /// /// 信号单元 /// public partial class SignalUnit : System.ICloneable { /// /// /// public SignalUnit() { } /// /// /// public SignalUnit(SignalUnit rhs) { this.ID = rhs.ID; this.CorpID = rhs.CorpID; this.MonitorUnitID = rhs.MonitorUnitID; this.Name = rhs.Name; this.SignalType = rhs.SignalType; this.Flags = rhs.Flags?.ToList(); this.SortCode = rhs.SortCode; this.Description = rhs.Description; } /// /// /// public void Reset(SignalUnit rhs) { this.ID = rhs.ID; this.CorpID = rhs.CorpID; this.MonitorUnitID = rhs.MonitorUnitID; this.Name = rhs.Name; this.SignalType = rhs.SignalType; this.Flags = rhs.Flags?.ToList(); this.SortCode = rhs.SortCode; this.Description = rhs.Description; } /// /// 标识 /// public long ID { get; set; } /// /// 客户标识 /// public long CorpID { get; set; } /// /// 监测单元标识 /// public long MonitorUnitID { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 信号类型 /// public string SignalType { get; set; } /// /// 标签列表 /// public List Flags { get; set; } /// /// 排序码 /// public int SortCode { get; set; } /// /// 说明 /// public string Description { get; set; } /// /// /// public SignalUnit Clone() { return (SignalUnit)this.MemberwiseClone(); } object ICloneable.Clone() { return this.MemberwiseClone(); } } }