namespace HStation.WinFrmUI { /// /// /// public class AssetsExchangerSingleMatchingViewModel { /// /// /// public AssetsExchangerSingleMatchingViewModel() { } /// /// /// public AssetsExchangerSingleMatchingViewModel(AssetsExchangerMainVmo rhs) { this.ID = rhs.ID; this.Name = rhs.Name; this.Material = rhs.Material; this.Diameter = rhs.Diameter; this.MinorLoss = 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? Diameter { get; set; } /// /// 局阻系数 m /// [DisplayName("局阻系数(m)")] public double MinorLoss { get; set; } /// /// 关键字 /// [DisplayName("关键字")] public string KeyWords { 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 AssetsExchangerMainVmo Vmo { get; set; } } }