From aaac84e4ed86d089c01c5b180e4249db73cc78d7 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期三, 19 二月 2025 14:08:04 +0800 Subject: [PATCH] 监测分析改造 --- WinFrmUI/Yw.WinFrmUI.Hydro.Core/14-matching/13-translation/HydroTranslationMatchingViewModel.cs | 46 ++++++++++++---------------------------------- 1 files changed, 12 insertions(+), 34 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/14-matching/13-translation/HydroTranslationMatchingViewModel.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/14-matching/13-translation/HydroTranslationMatchingViewModel.cs index e50fd9e..bc1b3c7 100644 --- a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/14-matching/13-translation/HydroTranslationMatchingViewModel.cs +++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/14-matching/13-translation/HydroTranslationMatchingViewModel.cs @@ -15,41 +15,24 @@ /// </summary> public HydroTranslationMatchingViewModel(Yw.Model.HydroTranslationInfo rhs, Yw.Model.HydroModelInfo hydroInfo) { - this.ID = rhs.ID; this.Name = rhs.Name; this.Code = rhs.Code; this.DbLocked = rhs.DbLocked; this.DbId = rhs.DbId; this.ModelType = rhs.ModelType; + this.TranslationType = HydroTranslationTypeEnumHelper.GetTranslationType(rhs.TranslationType); this.Material = rhs.Material; - this.Diameter = rhs.Diameter; this.StartDiameter = rhs.StartDiameter; this.EndDiameter = rhs.EndDiameter; this.Roughness = rhs.Roughness; this.MinorLoss = rhs.MinorLoss; - this.eAlgorithmType = eAlgorithmType.Hazen; } /// <summary> /// /// </summary> - public HydroTranslationMatchingViewModel(Yw.Model.HydroTranslationInfo rhs, Yw.Model.HydroModelInfo hydroInfo, HydroCalcuLinkResult calcuResult) : this(rhs, hydroInfo) - { + public HydroTranslationMatchingViewModel(HydroTranslationViewModel rhs) : this(rhs.Vmo, rhs.HydroInfo) { } - } - - /// <summary> - /// - /// </summary> - public HydroTranslationMatchingViewModel(HydroTranslationViewModel rhs) : this(rhs.Vmo, rhs.HydroInfo) - { - - } - - /// <summary> - /// ID - /// </summary> - public long ID { get; set; } /// <summary> /// 缂栫爜 @@ -77,14 +60,14 @@ public string ModelType { get; set; } /// <summary> + /// 杩囨浮浠剁被鍨� + /// </summary> + public eTranslationType? TranslationType { get; set; } + + /// <summary> /// 鏉愯川 /// </summary> public string Material { get; set; } - - /// <summary> - /// 鐩村緞 - /// </summary> - public double Diameter { get; set; } /// <summary> /// 涓婃父鐩村緞 @@ -107,11 +90,6 @@ public double MinorLoss { get; set; } /// <summary> - /// 绠楁硶绫诲瀷 - /// </summary> - public eAlgorithmType eAlgorithmType { get; set; } - - /// <summary> /// 鍖归厤鍨嬪彿 /// </summary> public string MatchingModelType { get; set; } @@ -122,14 +100,14 @@ public string MatchingDbId { get; set; } /// <summary> + /// 鍖归厤杩囨浮浠剁被鍨� + /// </summary> + public eTranslationType? MatchingTranslationType { get; set; } + + /// <summary> /// 鍖归厤鏉愯川 /// </summary> public string MatchingMaterial { get; set; } - - /// <summary> - /// 鍖归厤鐩村緞 - /// </summary> - public double? MatchingDiameter { get; set; } /// <summary> /// 鍖归厤涓婃父鐩村緞 -- Gitblit v1.9.3