namespace HStation.WinFrmUI { /// /// /// public class AssetsFourlinkSingleMatchingViewModel { /// /// /// public AssetsFourlinkSingleMatchingViewModel() { } /// /// /// public AssetsFourlinkSingleMatchingViewModel(AssetsFourlinkMainVmo rhs) { this.ID = rhs.ID; this.Name = rhs.Name; this.Material = rhs.Material; this.Caliber = rhs.Caliber; 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 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 AssetsFourlinkMainVmo Vmo { get; set; } } }