using Yw.Model; namespace HStation.Model { /// /// 泵系列 /// [SysType("xhs-pumpseries")] public class PumpSeries : BaseModel, IParas, IFlags, ITagName, ISorter, IUseStatus, System.ICloneable { public PumpSeries() { } public PumpSeries(PumpSeries rhs) : base(rhs) { this.ID = rhs.ID; this.Name = rhs.Name; this.Paras = rhs.Paras == null ? null : new Dictionary(rhs.Paras); this.Flags = rhs.Flags; this.CatalogID = rhs.CatalogID; this.TagName = rhs.TagName; this.MotorFrequency = rhs.MotorFrequency; this.UseStatus = rhs.UseStatus; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } public void Reset(PumpSeries rhs) { this.ID = rhs.ID; this.Name = rhs.Name; this.CatalogID = rhs.CatalogID; this.MotorFrequency = rhs.MotorFrequency; this.Paras = rhs.Paras == null ? null : new Dictionary(rhs.Paras); this.Flags = rhs.Flags; this.TagName = rhs.TagName; this.UseStatus = rhs.UseStatus; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } /// /// 名称 /// public string Name { get; set; } /// /// 所属类别ID /// public long CatalogID { 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 MotorFrequency { get; set; } = "50hz"; /// /// 说明 /// public string Description { get; set; } /// /// /// public PumpSeries Clone() { return (PumpSeries)this.MemberwiseClone(); } object ICloneable.Clone() { return this.MemberwiseClone(); } } }