namespace HStation.WinFrmUI.Assets { public class PackageViewModel { public PackageViewModel() { } public PackageViewModel(Vmo.AssetsPackageMainVmo rhs, string manufacturer) { this.ID = rhs.ID; this.Name = rhs.Name; this.Manufacturer = manufacturer; this.NO = rhs.NO; this.CatalogID = rhs.CatalogID; this.SeriesID = rhs.SeriesID; this.EquipmentCount = rhs.PumpTotal; this.UseCount = rhs.PumpUseCount; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } public void Reset(Vmo.AssetsPackageMainVmo rhs) { this.ID = rhs.ID; this.Name = rhs.Name; this.NO = rhs.NO; this.CatalogID = rhs.CatalogID; this.SeriesID = rhs.SeriesID; this.EquipmentCount = rhs.PumpTotal; this.UseCount = rhs.PumpUseCount; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } /// /// UserID /// public long ID { get; set; } /// /// 名称 /// [DisplayName("名称")] [Browsable(true)] public string Name { get; set; } /// /// 系列 id /// [DisplayName(" 系列id")] [Browsable(false)] public long SeriesID { get; set; } /// /// 编号 /// [DisplayName(" 编号")] [Browsable(true)] public string NO { get; set; } /// /// 类别 /// [DisplayName(" 类别")] [Browsable(false)] public long CatalogID { get; set; } /// /// 厂商 /// [DisplayName(" 厂商")] [Browsable(true)] public string Manufacturer { get; set; } /// /// 设备型号 /// [DisplayName(" 设备型号")] [Browsable(false)] public string ModelType { get; set; } /// /// 设备数量 /// [DisplayName(" 设备数量")] [Browsable(true)] public int EquipmentCount { get; set; } /// /// 使用数量 /// [DisplayName(" 使用数量")] [Browsable(true)] public int UseCount { get; set; } /// /// 排序码 /// [DisplayName(" 排序码")] [Browsable(true)] public int SortCode { get; set; } /// /// 说明 /// [DisplayName(" 说明")] [Browsable(true)] public string Description { get; set; } } }