using Yw.Model;
namespace IBox.WinFrmUI
{
///
/// 测点
///
public partial class MonitorPoint
{
///
///
///
public MonitorPoint() { }
///
///
///
public MonitorPoint(MonitorPoint rhs)
{
this.ID = rhs.ID;
this.GroupID = rhs.GroupID;
this.Name = rhs.Name;
this.CronType = rhs.CronType;
this.CronParas = rhs.CronParas;
this.SourceType = rhs.SourceType;
this.SerialNO = rhs.SerialNO;
this.Importance = rhs.Importance;
this.Paras = rhs.Paras == null ? null : new Dictionary(rhs.Paras);
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.GroupID = rhs.GroupID;
this.Name = rhs.Name;
this.CronType = rhs.CronType;
this.CronParas = rhs.CronParas;
this.SourceType = rhs.SourceType;
this.SerialNO = rhs.SerialNO;
this.Importance = rhs.Importance;
this.Paras = rhs.Paras == null ? null : new Dictionary(rhs.Paras);
this.Flags = rhs.Flags?.ToList();
this.TagName = rhs.TagName;
this.UseStatus = rhs.UseStatus;
this.SortCode = rhs.SortCode;
this.Description = rhs.Description;
}
public long ID { get; set; }
///
/// 组id
///
public long GroupID { get; set; }
///
/// 名称
///
public string Name { get; set; }
///
/// 计划类型
///
public eCronType CronType { get; set; }
///
/// 计划参数
///
public string CronParas { get; set; }
///
/// 来源类型
///
public IBox.WinFrmUI.eSourceType SourceType { get; set; }
///
/// 序列号
///
public int SerialNO { get; set; }
///
/// 重要度
///
public int Importance { get; set; }
///
/// 参数字典
///
public Dictionary Paras { 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);
}
}
}