using Yw.Model; namespace HStation.Model { /// /// 压缩机型号 /// public class AssetsCompressorMain : BaseModel, IParas, IFlags, ITagName, ISorter, System.ICloneable { /// /// /// public AssetsCompressorMain() { } /// /// /// public AssetsCompressorMain(AssetsCompressorMain rhs) : base(rhs) { this.SeriesID = rhs.SeriesID; this.Name = rhs.Name; this.Material = rhs.Material; this.Diameter = rhs.Diameter; this.MinorLoss = rhs.MinorLoss; this.KeyWords = rhs.KeyWords?.ToList(); this.Paras = rhs.Paras == null ? null : new Dictionary(rhs.Paras); this.Flags = rhs.Flags?.ToList(); this.TagName = rhs.TagName; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } /// /// /// public void Reset(AssetsCompressorMain rhs) { this.ID = rhs.ID; this.SeriesID = rhs.SeriesID; this.Name = rhs.Name; this.Material = rhs.Material; this.Diameter = rhs.Diameter; this.MinorLoss = rhs.MinorLoss; this.KeyWords = rhs.KeyWords?.ToList(); this.Paras = rhs.Paras == null ? null : new Dictionary(rhs.Paras); this.Flags = rhs.Flags?.ToList(); this.TagName = rhs.TagName; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } /// /// 系列id /// public long SeriesID { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 材料 /// public string Material { get; set; } /// /// 直径 mm /// public double? Diameter { get; set; } /// /// 局阻系数 /// public double MinorLoss { get; set; } /// /// 关键字 /// public List KeyWords { get; set; } /// /// 参数 /// public Dictionary Paras { get; set; } /// /// 标签 /// public List Flags { get; set; } /// /// 标志 /// public string TagName { get; set; } /// /// 排序码 /// public int SortCode { get; set; } /// /// 说明 /// public string Description { get; set; } /// /// /// public AssetsCompressorMain Clone() { return new AssetsCompressorMain(this); } object ICloneable.Clone() { return this.Clone(); } } }