using System; using System.Collections.Generic; using System.Linq; namespace IStation.Model { /// /// 测点 /// public partial class MonitorPoint : BaseModel, System.ICloneable { /// /// /// public MonitorPoint() { } /// /// /// public MonitorPoint(MonitorPoint rhs) : base(rhs) { this.BelongType = rhs.BelongType; this.BelongID = rhs.BelongID; this.GroupID = rhs.GroupID; this.Name = rhs.Name; this.SourceType = rhs.SourceType; this.SourceParas = rhs.SourceParas; this.Flags = rhs.Flags?.ToList(); this.TagName = rhs.TagName; this.UseStatus = rhs.UseStatus; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } /// /// /// public void Reset(MonitorPoint rhs) { this.ID = rhs.ID; this.BelongType = rhs.BelongType; this.BelongID = rhs.BelongID; this.GroupID = rhs.GroupID; this.Name = rhs.Name; this.SourceType = rhs.SourceType; this.SourceParas = rhs.SourceParas; this.Flags = rhs.Flags?.ToList(); this.TagName = rhs.TagName; this.UseStatus = rhs.UseStatus; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } /// /// 所属类型 /// public string BelongType { get; set; } /// /// 所属id /// public long BelongID { get; set; } /// /// 组id /// public long GroupID { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 来源类型 /// public eSourceType SourceType { get; set; } /// /// 来源参数 /// public string SourceParas { get; set; } /// /// 标签列表 /// public List Flags { get; set; } /// /// 标记名称 /// public string TagName { get; set; } /// /// 使用状态 /// public eUseStatus UseStatus { get; set; } /// /// 排序码 /// public int SortCode { get; set; } /// /// 说明 /// public string Description { get; set; } /// /// /// public MonitorPoint Clone() { return new MonitorPoint(this); } object ICloneable.Clone() { return Clone(); } } }