using IStation.Model; using IStation.Model.Monitor; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IStation.Application { /// /// /// public class MonitorPointLogicDto { /// /// /// public MonitorPointLogicDto() { } /// /// /// public MonitorPointLogicDto(Model.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.CronType = rhs.CronType; this.CronParas = rhs.GetCronParas(); 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 eCronType CronType { get; set; } /// /// 计划参数 /// public object 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; } } }