duheng
2025-01-22 d6111ca1fa9f70afc50c8213f81c9d78c14a6527
WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-viewmodel/04-link/02-translation/HydroTranslationViewModel.cs
@@ -15,6 +15,7 @@
        /// </summary>
        public HydroTranslationViewModel(Yw.Model.HydroTranslationInfo rhs, Yw.Model.HydroModelInfo hydroInfo) : base(rhs, hydroInfo)
        {
            this.Elev = Math.Round(rhs.Elev, 4);
            this.Material = rhs.Material;
            this.Length = Math.Round(rhs.Length, 0);
            this.Roughness = Math.Round(rhs.Roughness, 0);
@@ -24,12 +25,23 @@
        }
        /// <summary>
        /// 标高/高程
        /// </summary>
        [Category("数据")]
        [DisplayName("标高")]
        [DisplayUnit("m")]
        [Display(Name = "标高(m)")]
        [PropertyOrder(2001)]
        [Browsable(true)]
        public virtual double Elev { get; set; }
        /// <summary>
        /// 材质
        /// </summary>
        [Category("数据")]
        [Display(Name = "材质")]
        [DisplayName("材质")]
        [PropertyOrder(2001)]
        [PropertyOrder(2002)]
        [Browsable(true)]
        public string Material { get; set; }