using Yw.Model; namespace HStation.Model { /// /// 管道管理 /// [SysType("assets_pipe_main")] public class AssetsPipeMain : BaseModel, ISorter, IFlags, IParas, ITagName, System.ICloneable { /// /// /// public AssetsPipeMain() { } public AssetsPipeMain(AssetsPipeMain rhs) : base(rhs) { this.Name = rhs.Name; this.SeriesID = rhs.SeriesID; this.Caliber = rhs.Caliber; this.Material = rhs.Material; this.MinorLoss = rhs.MinorLoss; this.Hazen = rhs.Hazen; this.Darcy = rhs.Darcy; this.Manning = rhs.Manning; this.KeyWord = rhs.KeyWord; 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(AssetsPipeMain rhs) { this.ID = rhs.ID; this.Name = rhs.Name; this.SeriesID = rhs.SeriesID; this.Caliber = rhs.Caliber; this.Material = rhs.Material; this.MinorLoss = rhs.MinorLoss; this.Hazen = rhs.Hazen; this.Darcy = rhs.Darcy; this.Manning = rhs.Manning; this.KeyWord = rhs.KeyWord; 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 string Name { get; set; } /// /// 系列ID /// public long SeriesID { get; set; } /// /// 口径 /// public double? Caliber { get; set; } /// /// 材料 /// public string Material { get; set; } /// /// 识别关键字 /// public List KeyWord { get; set; } /// /// 参数 /// public Dictionary Paras { get; set; } /// /// 标签 /// public List Flags { get; set; } /// /// 标志 /// public string TagName { get; set; } /// /// 系数 /// public double MinorLoss { get; set; } /// ///Hazen /// public double Hazen { get; set; } /// ///Darcy /// public double? Darcy { get; set; } /// ///Manning /// public double? Manning { get; set; } /// /// 排序码 /// public int SortCode { get; set; } /// /// 说明 /// public string Description { get; set; } /// /// /// public AssetsPumpGroupAndMainMapping Clone() { return (AssetsPumpGroupAndMainMapping)this.MemberwiseClone(); } object ICloneable.Clone() { return this.MemberwiseClone(); } } }