From 24fb6d95e0416ac3c00a93b87359567e45568a89 Mon Sep 17 00:00:00 2001 From: Shuxia Ning <NingShuxia0927@outlook.com> Date: 星期二, 17 十二月 2024 10:07:13 +0800 Subject: [PATCH] 曲线关联 bug更新 --- Service/HStation.Service.Assets.Core/02-model/06-PipeLine/AssetsPipeSeries.cs | 35 +++++++++++++++++++++-------------- 1 files changed, 21 insertions(+), 14 deletions(-) diff --git a/Service/HStation.Service.Assets.Core/02-model/06-PipeLine/AssetsPipeSeries.cs b/Service/HStation.Service.Assets.Core/02-model/06-PipeLine/AssetsPipeSeries.cs index 9b8b523..a3a0985 100644 --- a/Service/HStation.Service.Assets.Core/02-model/06-PipeLine/AssetsPipeSeries.cs +++ b/Service/HStation.Service.Assets.Core/02-model/06-PipeLine/AssetsPipeSeries.cs @@ -6,7 +6,7 @@ /// 闃�闂ㄧ郴鍒� /// </summary> [SysType("assets_pipe_series")] - public class AssetsPipeSeries : BaseModel, IParas, IFlags, ITagName, ISorter, IUseStatus, System.ICloneable + public class AssetsPipeSeries : BaseModel, IParas, IFlags, ITagName, ISorter, System.ICloneable { /// <summary> /// @@ -20,11 +20,12 @@ public AssetsPipeSeries(AssetsPipeSeries rhs) : base(rhs) { this.ID = rhs.ID; + this.ParentIds = rhs.ParentIds; + this.CatalogID = rhs.CatalogID; this.Name = rhs.Name; - this.Paras = rhs.Paras; - this.Flags = rhs.Flags; + this.Paras = rhs.Paras == null ? null : new Dictionary<string, string>(rhs.Paras); + this.Flags = rhs.Flags?.ToList(); this.TagName = rhs.TagName; - this.UseStatus = rhs.UseStatus; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } @@ -32,14 +33,25 @@ public void Reset(AssetsPipeSeries rhs) { this.ID = rhs.ID; + this.ParentIds = rhs.ParentIds; + this.CatalogID = rhs.CatalogID; this.Name = rhs.Name; - this.Paras = rhs.Paras; - this.Flags = rhs.Flags; + this.Paras = rhs.Paras == null ? null : new Dictionary<string, string>(rhs.Paras); + this.Flags = rhs.Flags?.ToList(); this.TagName = rhs.TagName; - this.UseStatus = rhs.UseStatus; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } + + /// <summary> + /// 鐖剁骇id鍒楄〃 + /// </summary> + public List<long> ParentIds { get; set; } + + /// <summary> + /// 鎵�灞炵被鍒獻D + /// </summary> + public long CatalogID { get; set; } /// <summary> /// 鍚嶇О @@ -62,19 +74,14 @@ public string TagName { get; set; } /// <summary> - /// 浣跨敤鐘舵�� + /// 鎺掑簭鐮� /// </summary> - public eUseStatus UseStatus { get; set; } + public int SortCode { get; set; } /// <summary> /// 璇存槑 /// </summary> public string Description { get; set; } - - /// <summary> - /// 鎺掑簭鐮� - /// </summary> - public int SortCode { get; set; } /// <summary> /// -- Gitblit v1.9.3