lixiaojun
2025-02-19 aaac84e4ed86d089c01c5b180e4249db73cc78d7
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>
        /// 匹配上游直径