using System; using System.Text; using System.Collections.Generic; using System.Data; using System.Runtime.Serialization; using System.ComponentModel.DataAnnotations; using IStation.Model.Monitor; namespace IStation.Model { /// /// 测点 /// public partial class MonitorPoint : System.ICloneable { /// /// /// public MonitorPoint() { } /// /// /// public MonitorPoint(MonitorPoint rhs) { this.ID = rhs.ID; this.CorpID = rhs.CorpID; this.BelongType = rhs.BelongType; this.BelongID = rhs.BelongID; this.GroupID = rhs.GroupID; this.Name = rhs.Name; this.MonitorType = rhs.MonitorType; this.SourceType = rhs.SourceType; this.SourceParas = rhs.SourceParas; this.CronType = rhs.CronType; this.CronParas = rhs.CronParas; this.Elevation = rhs.Elevation; this.PipeDia = rhs.PipeDia; this.TagName = rhs.TagName; this.TerminalId = rhs.TerminalId; this.Flags = rhs.Flags?.ToList(); this.ImportanceIndex=rhs.ImportanceIndex; this.SortCode = rhs.SortCode; this.UseStatus = rhs.UseStatus; this.Description = rhs.Description; } /// /// /// public void Reset(MonitorPoint rhs) { this.ID = rhs.ID; this.CorpID = rhs.CorpID; this.BelongType = rhs.BelongType; this.BelongID = rhs.BelongID; this.GroupID = rhs.GroupID; this.Name = rhs.Name; this.MonitorType = rhs.MonitorType; this.SourceType = rhs.SourceType; this.SourceParas = rhs.SourceParas; this.CronType = rhs.CronType; this.CronParas = rhs.CronParas; this.Elevation = rhs.Elevation; this.PipeDia = rhs.PipeDia; this.TagName = rhs.TagName; this.TerminalId = rhs.TerminalId; this.Flags = rhs.Flags?.ToList(); this.ImportanceIndex = rhs.ImportanceIndex; this.SortCode = rhs.SortCode; this.UseStatus = rhs.UseStatus; this.Description = rhs.Description; } /// /// 标识 /// public long ID { get; set; } /// /// 客户标识 /// public long CorpID { get; set; } /// /// 所属类型 /// public string BelongType { get; set; } /// /// 所属标识 /// public long BelongID { get; set; } /// /// 组标识 /// public long GroupID { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 监测类型 /// public eMonitorType MonitorType { get; set; } /// /// 来源类型 /// public eSourceType SourceType { get; set; } /// /// 来源参数 /// public string SourceParas { get; set; } /// /// 计划类型 /// public eCronType CronType { get; set; } /// /// 计划参数 /// public string CronParas { get; set; } /// /// 标高 (m) /// public double? Elevation { get; set; } /// /// 管径(mm) /// public double? PipeDia { get; set; } /// /// 标记名称 /// public string TagName { get; set; } /// /// 终端标识 /// public string TerminalId { get; set; } /// /// 标签列表 /// public List Flags { get; set; } /// /// 重要指数 /// public int? ImportanceIndex { get; set; } /// /// 排序码 /// public int SortCode { get; set; } /// /// 使用状态 /// public eUseStatus UseStatus { get; set; } /// /// 说明 /// public string Description { get; set; } /// /// /// public MonitorPoint Clone() { return (MonitorPoint)this.MemberwiseClone(); } object ICloneable.Clone() { return this.MemberwiseClone(); } } }