using Yw.Model; namespace HStation.Model { /// /// 泵系列 /// [SysType("assets_pump_series")] public class AssetsPumpSeries : BaseModel, IParas, IFlags, ITagName, ISorter, System.ICloneable { public AssetsPumpSeries() { } public AssetsPumpSeries(AssetsPumpSeries 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.SortCode = rhs.SortCode; this.Description = rhs.Description; } public void Reset(AssetsPumpSeries 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.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 int SortCode { get; set; } /// /// 电机频率 /// public string MotorFrequency { get; set; } = "50hz"; /// /// 说明 /// public string Description { get; set; } /// /// /// public AssetsPumpSeries Clone() { return (AssetsPumpSeries)this.MemberwiseClone(); } object ICloneable.Clone() { return this.MemberwiseClone(); } } }