using HStation.Assets; using Yw.Model; namespace HStation.Model { /// /// 业务站 /// [SysType("assets_valve_main")] public class AssetsValveMain : BaseModel, ISorter, IFlags, IParas, ITagName, System.ICloneable { /// /// /// public AssetsValveMain() { } /// /// /// public AssetsValveMain(AssetsValveMain rhs) : base(rhs) { this.Name = rhs.Name; this.SeriesID = rhs.SeriesID; this.Material = rhs.Material; this.Caliber = rhs.Caliber; this.KeyWord = rhs.KeyWord; this.MinorLoss = rhs.MinorLoss; this.ValveSetting = rhs.ValveSetting; 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(AssetsValveMain rhs) { this.ID = rhs.ID; this.Name = rhs.Name; this.SeriesID = rhs.SeriesID; this.Material = rhs.Material; this.Caliber = rhs.Caliber; this.KeyWord = rhs.KeyWord; this.MinorLoss = rhs.MinorLoss; this.ValveSetting = rhs.ValveSetting; 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 eValveType ValveType { get; set; } /// /// 口径 /// public double? Caliber { get; set; } /// /// 阀门设置 /// public string ValveSetting { get; set; } /// /// 材料 /// public string Material { get; set; } /// /// 系数 /// public double MinorLoss { get; set; } /// /// 识别关键字 /// public List KeyWord { 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 AssetsValveMain Clone() { return (AssetsValveMain)this.MemberwiseClone(); } object ICloneable.Clone() { return this.MemberwiseClone(); } } }