using System.ComponentModel; namespace HStation.WinFrmUI { public class HydrantCoefficientViewModel { public HydrantCoefficientViewModel() { } public HydrantCoefficientViewModel(Vmo.AssetsHydrantCoefficientVmo rhs) { this.ID = rhs.ID; this.Name = rhs.Name; this.Caliber = rhs.Caliber; this.Material = rhs.Material; this.MinorLoss = rhs.MinorLoss; } /// /// id /// public long ID { get; set; } /// /// 名称 /// [DisplayName("名称")] [Browsable(true)] public string Name { get; set; } /// /// 口径 /// [DisplayName("口径")] [Browsable(true)] public double? Caliber { get; set; } /// /// 材料 /// [DisplayName("材料")] [Browsable(true)] public string Material { get; set; } /// /// 喷射系数 /// [DisplayName("喷射系数")] [Browsable(true)] public double MinorLoss { get; set; } /// /// 流量系数 /// [DisplayName("流量系数")] [Browsable(true)] public double? FlowMinorLoss { get; set; } } }