using System; using System.Collections.Generic; using System.Linq; namespace IStation.Model { /// /// 测点组 /// public class MonitorPointGroup : BaseModel, System.ICloneable { /// /// /// public MonitorPointGroup() { } /// /// /// public MonitorPointGroup(MonitorPointGroup rhs) : base(rhs) { this.BelongType = rhs.BelongType; this.BelongID = rhs.BelongID; this.ParentIds = rhs.ParentIds?.ToList(); this.Name = rhs.Name; this.Flags = rhs.Flags?.ToList(); this.TagName = rhs.TagName; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } /// /// /// public void Reset(MonitorPointGroup rhs) { this.ID = rhs.ID; this.BelongType = rhs.BelongType; this.BelongID = rhs.BelongID; this.ParentIds = rhs.ParentIds?.ToList(); this.Name = rhs.Name; this.Flags = rhs.Flags?.ToList(); this.TagName = rhs.TagName; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } /// /// 所属类型 /// public string BelongType { get; set; } /// /// 所属 id /// public long BelongID { get; set; } /// /// 父级 id 列表 /// public List ParentIds { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 标签列表 /// public List Flags { get; set; } /// /// 标记名称 /// public string TagName { get; set; } /// /// 排序码 /// public int SortCode { get; set; } /// /// 说明 /// public string Description { get; set; } /// /// /// public MonitorPointGroup Clone() { return new MonitorPointGroup(this); } object ICloneable.Clone() { return Clone(); } } }