duheng
2024-12-04 ca1ccd0dd9f2d6936368f07d14a2b29b309fd151
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/05-elbows/01-elbowsinglematching/ElbowSingleMatchingViewModel.cs
@@ -1,4 +1,6 @@
namespace HStation.WinFrmUI.Xhs
using HStation.Assets;
namespace HStation.WinFrmUI
{
    public class ElbowSingleMatchingViewModel
    {
@@ -6,13 +8,15 @@
        {
        }
        public ElbowSingleMatchingViewModel(Vmo.ElbowMainVmo rhs)
        public ElbowSingleMatchingViewModel(Vmo.AssetsElbowMainVmo rhs)
        {
            this.Caliber = rhs.Caliber;
            this.ID = rhs.ID;
            this.Material = rhs.MaterialName;
            this.Material = rhs.Material;
            this.ModelType = rhs.Name;
            this.MinorLoss = rhs.Coefficient;
            this.MinorLoss = rhs.MinorLoss;
            this.Angle = rhs.Angle;
            this.ElbowType = rhs.ElbowType;
        }
        /// <summary>
@@ -49,5 +53,21 @@
        [DisplayName("损失系数")]
        [Browsable(true)]
        public double? MinorLoss { get; set; }
        /// <summary>
        /// 管路连接长度
        /// </summary>
        [DisplayName("弯头类型")]
        [Browsable(true)]
        public HStation.Assets.eElbowType? ElbowType { get; set; }
        /// <summary>
        /// 角度
        /// </summary>
        [DisplayName("角度")]
        [Browsable(true)]
        public int? Angle { get; set; }
    }
}