using HStation.Assets; namespace HStation.WinFrmUI { public class TranslationSingleMatchingViewModel { public TranslationSingleMatchingViewModel() { } public TranslationSingleMatchingViewModel(Vmo.AssetsTranslationMainVmo rhs) { this.ID = rhs.ID; this.Material = rhs.Material; this.Caliber = rhs.Diameter; this.StartDiameter = rhs.StartDiameter; this.EndDiameter = rhs.EndDiameter; this.Roughness = rhs.Roughness; this.eAlgorithmType = rhs.eAlgorithmType; this.ModelType = rhs.Name; this.MinorLoss = rhs.MinorLoss; } /// /// 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 double Diameter { get; set; } /// /// 上游直径 /// [DisplayName("上游直径")] [Browsable(true)] public double StartDiameter { get; set; } /// /// 下游直径 /// [DisplayName("下游直径")] [Browsable(true)] public double EndDiameter { get; set; } /// /// 粗糙系数 /// [DisplayName("粗糙系数")] [Browsable(true)] public double Roughness { get; set; } /// /// 算法类型 /// [DisplayName("算法类型")] [Browsable(true)] public HStation.Assets.eAlgorithmType eAlgorithmType { get; set; } } }