namespace HStation.WinFrmUI { /// /// /// public class AssetsTranslationSingleMatchingViewModel { /// /// /// public AssetsTranslationSingleMatchingViewModel() { } /// /// /// public AssetsTranslationSingleMatchingViewModel(AssetsTranslationMainVmo rhs) { this.ID = rhs.ID; this.Name = rhs.Name; this.Material = rhs.Material; this.Coefficient = rhs.MinorLoss; this.KeyWords = HStation.Service.Assets.KeyWordHelper.ToString(rhs.KeyWords); this.Flags = Yw.Untity.FlagsHelper.ToString(rhs.Flags); this.TagName = rhs.TagName; this.SortCode = rhs.SortCode; this.Description = rhs.Description; this.Vmo = rhs; } /// /// id /// [Display(Name = "ID")] public long ID { get; set; } /// /// 型号 /// [DisplayName("型号")] public string Name { get; set; } /// /// 材质 /// [DisplayName("材质")] public string Material { get; set; } /// /// 口径 mm /// [DisplayName("口径(mm)")] public double? Caliber { get; set; } /// /// 喷射系数 /// [DisplayName("喷射系数")] public double Coefficient { get; set; } /// /// 上游直径 /// [DisplayName("上游直径")] public double StartDiameter { get; set; } /// /// 下游直径 /// [DisplayName("下游直径")] public double EndDiameter { get; set; } /// /// 粗糙系数 /// [DisplayName("粗糙系数")] public double Roughness { get; set; } /// /// 算法类型 /// [DisplayName("算法类型")] public HStation.Assets.eTranslationType eAlgorithmType { get; set; } /// /// 关键字 /// [DisplayName("关键字")] public string KeyWords { get; set; } /// /// 角度 /// [Display(Name = "角度")] public int? Angle { get; set; } /// /// 标签 /// [DisplayName("标签")] public string Flags { get; set; } /// /// 标志 /// [DisplayName("标志")] public string TagName { get; set; } /// /// 排序码 /// [DisplayName("排序码")] public int SortCode { get; set; } /// /// 说明 /// [DisplayName("说明")] public string Description { get; set; } /// /// /// public AssetsTranslationMainVmo Vmo { get; set; } } }