using HStation.Assets; namespace HStation.WinFrmUI { public class ElbowSingleMatchingViewModel { public ElbowSingleMatchingViewModel() { } public ElbowSingleMatchingViewModel(Vmo.AssetsElbowMainVmo rhs) { this.Caliber = rhs.Caliber; this.ID = rhs.ID; this.Material = rhs.Material; this.ModelType = rhs.Name; this.MinorLoss = rhs.MinorLoss; this.Angle = rhs.Angle; this.ElbowType = rhs.ElbowType; } /// /// ID /// [DisplayName("ID")] [Browsable(false)] public long ID { get; set; } /// /// 型号名 /// [DisplayName("型号名")] [Browsable(true)] public string ModelType { get; set; } /// /// 材质 /// [DisplayName("材质")] [Browsable(true)] public string Material { get; set; } /// /// 口径 /// [DisplayName("口径")] [Browsable(true)] public double? Caliber { get; set; } /// /// 损失系数 /// [DisplayName("损失系数")] [Browsable(true)] public double? MinorLoss { get; set; } /// /// 管路连接长度 /// [DisplayName("弯头类型")] [Browsable(true)] public HStation.Assets.eElbowType? ElbowType { get; set; } /// /// 角度 /// [DisplayName("角度")] [Browsable(true)] public int? Angle { get; set; } } }