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 MonitorUnit : System.ICloneable
{
///
///
///
public MonitorUnit() { }
///
///
///
public MonitorUnit(MonitorUnit rhs)
{
this.ID = rhs.ID;
this.CorpID = rhs.CorpID;
this.BelongType = rhs.BelongType;
this.BelongID = rhs.BelongID;
this.Name = rhs.Name;
this.MonitorType = rhs.MonitorType;
this.CronType = rhs.CronType;
this.CronParas = rhs.CronParas;
this.Flags = rhs.Flags?.ToList();
this.TagName = rhs.TagName;
this.SortCode = rhs.SortCode;
this.UseStatus = rhs.UseStatus;
this.Description = rhs.Description;
}
///
///
///
public void Reset(MonitorUnit rhs)
{
this.ID = rhs.ID;
this.CorpID = rhs.CorpID;
this.BelongType = rhs.BelongType;
this.BelongID = rhs.BelongID;
this.Name = rhs.Name;
this.MonitorType = rhs.MonitorType;
this.CronType = rhs.CronType;
this.CronParas = rhs.CronParas;
this.Flags = rhs.Flags?.ToList();
this.TagName = rhs.TagName;
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 string Name { get; set; }
///
/// 监测类型
///
public eMonitorType MonitorType { get; set; }
///
/// 计划类型
///
public eCronType CronType { get; set; }
///
/// 计划参数
///
public string CronParas { get; set; }
///
/// 标签列表
///
public List Flags { get; set; }
///
/// 标签名称
///
public string TagName { get; set; }
///
/// 排序码
///
public int SortCode { get; set; }
///
/// 使用状态
///
public Model.eUseStatus UseStatus { get; set; }
///
/// 说明
///
public string Description { get; set; }
///
///
///
public MonitorUnit Clone()
{
return (MonitorUnit)this.MemberwiseClone();
}
object ICloneable.Clone()
{
return this.MemberwiseClone();
}
}
}