Shuxia Ning
2024-11-25 d4898c5d7e1bbbbba384a0e29f29c066d6f502a7
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.ElbowLengthType = rhs.ElbowLengthType;
        }
        /// <summary>
@@ -49,5 +53,21 @@
        [DisplayName("损失系数")]
        [Browsable(true)]
        public double? MinorLoss { get; set; }
        /// <summary>
        /// 管路连接长度
        /// </summary>
        [DisplayName("弯头类型")]
        [Browsable(true)]
        public eLengthType? ElbowLengthType { get; set; }
        /// <summary>
        /// 角度
        /// </summary>
        [DisplayName("角度")]
        [Browsable(true)]
        public int? Angle { get; set; }
    }
}