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 |  134 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 134 insertions(+), 0 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
new file mode 100644
index 0000000..bc1b3c7
--- /dev/null
+++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/14-matching/13-translation/HydroTranslationMatchingViewModel.cs
@@ -0,0 +1,134 @@
+锘縩amespace Yw.WinFrmUI
+{
+    /// <summary>
+    /// 杩囨浮浠跺尮閰峍iewModel
+    /// </summary>
+    public class HydroTranslationMatchingViewModel
+    {
+        /// <summary>
+        ///
+        /// </summary>
+        public HydroTranslationMatchingViewModel() { }
+
+        /// <summary>
+        ///
+        /// </summary>
+        public HydroTranslationMatchingViewModel(Yw.Model.HydroTranslationInfo rhs, Yw.Model.HydroModelInfo hydroInfo)
+        {
+            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.StartDiameter = rhs.StartDiameter;
+            this.EndDiameter = rhs.EndDiameter;
+            this.Roughness = rhs.Roughness;
+            this.MinorLoss = rhs.MinorLoss;
+        }
+
+        /// <summary>
+        ///
+        /// </summary>
+        public HydroTranslationMatchingViewModel(HydroTranslationViewModel rhs) : this(rhs.Vmo, rhs.HydroInfo) { }
+
+
+        /// <summary>
+        /// 缂栫爜
+        /// </summary>
+        public string Code { get; set; }
+
+        /// <summary>
+        /// 鍚嶇О
+        /// </summary>
+        public string Name { get; set; }
+
+        /// <summary>
+        /// Db閿佸畾
+        /// </summary>
+        public bool DbLocked { get; set; }
+
+        /// <summary>
+        ///DbId
+        /// </summary>
+        public string DbId { get; set; }
+
+        /// <summary>
+        /// 鍨嬪彿
+        /// </summary>
+        public string ModelType { get; set; }
+
+        /// <summary>
+        /// 杩囨浮浠剁被鍨�
+        /// </summary>
+        public eTranslationType? TranslationType { get; set; }
+
+        /// <summary>
+        /// 鏉愯川
+        /// </summary>
+        public string Material { get; set; }
+
+        /// <summary>
+        /// 涓婃父鐩村緞
+        /// </summary>
+        public double StartDiameter { get; set; }
+
+        /// <summary>
+        /// 涓嬫父鐩村緞
+        /// </summary>
+        public double EndDiameter { get; set; }
+
+        /// <summary>
+        /// 绮楃硻绯绘暟
+        /// </summary>
+        public double Roughness { get; set; }
+
+        /// <summary>
+        /// 鎹熷け绯绘暟
+        /// </summary>
+        public double MinorLoss { get; set; }
+
+        /// <summary>
+        /// 鍖归厤鍨嬪彿
+        /// </summary>
+        public string MatchingModelType { get; set; }
+
+        /// <summary>
+        /// 鍖归厤Dbid
+        /// </summary>
+        public string MatchingDbId { get; set; }
+
+        /// <summary>
+        /// 鍖归厤杩囨浮浠剁被鍨�
+        /// </summary>
+        public eTranslationType? MatchingTranslationType { get; set; }
+
+        /// <summary>
+        /// 鍖归厤鏉愯川
+        /// </summary>
+        public string MatchingMaterial { get; set; }
+
+        /// <summary>
+        /// 鍖归厤涓婃父鐩村緞
+        /// </summary>
+        public double? MatchingStartDiameter { get; set; }
+
+        /// <summary>
+        /// 鍖归厤涓嬫父鐩村緞
+        /// </summary>
+        public double? MatchingEndDiameter { get; set; }
+
+        /// <summary>
+        /// 鍖归厤绮楃硻绯绘暟
+        /// </summary>
+        public double? MatchingRoughness { get; set; }
+
+        /// <summary>
+        /// 鍖归厤鎹熷け绯绘暟
+        /// </summary>
+        public double? MatchingMinorLoss { get; set; }
+
+
+    }
+}

--
Gitblit v1.9.3