using System.ComponentModel; namespace HStation.WinFrmUI.Assets { public class AdaptingViewModel { public AdaptingViewModel() { } public AdaptingViewModel(Vmo.AdaptingManageVmo rhs) { this.EquipmentType = (Service.Assets.eAdaptingType)rhs.AdaptingType; this.Coefficient = rhs.Coefficient; this.Material = rhs.Material; this.ID = rhs.ID; this.Caliber = rhs.Caliber; this.Description = rhs.Description; this.Name = rhs.Name; this.SortCode = rhs.SortCode; } public void Reset(Vmo.AdaptingManageVmo rhs) { this.EquipmentType = (Service.Assets.eAdaptingType)rhs.AdaptingType; this.Coefficient = rhs.Coefficient; this.Material = rhs.Material; this.ID = rhs.ID; this.Caliber = rhs.Caliber; this.Description = rhs.Description; this.Name = rhs.Name; this.SortCode = rhs.SortCode; } /// /// ID /// public long ID { get; set; } /// /// 设备类型(弯头,三通,四通....) /// [DisplayName("系列ID")] [Browsable(false)] public Service.Assets.eAdaptingType EquipmentType { get; set; } /// /// 名称 /// [DisplayName("名称")] [Browsable(true)] public string Name { get; set; } /// /// 口径 /// [DisplayName("口径")] [Browsable(true)] public string Caliber { get; set; } /// /// 材料 /// [DisplayName("材料")] [Browsable(true)] public string Material { get; set; } /// /// 系数 /// [DisplayName("系数")] [Browsable(true)] public string Coefficient { get; set; } /// /// 排序码 /// [DisplayName("排序码")] [Browsable(true)] public int SortCode { get; set; } /// /// 说明 /// [DisplayName("说明")] [Browsable(true)] public string Description { get; set; } } }