lixiaojun
2025-01-20 bef933e7e166b085ba7e46e38ea62d9ae0129ec6
WinFrmUI/HStation.WinFrmUI.Assets.Core/12-package/02-main/PackageViewModel.cs
@@ -1,6 +1,4 @@
using System.ComponentModel;
namespace HStation.WinFrmUI.Assets
namespace HStation.WinFrmUI.Assets
{
    public class PackageViewModel
    {
@@ -8,15 +6,16 @@
        {
        }
        public PackageViewModel(Vmo.AssetsPackageMainVmo rhs)
        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.EquipmentCount;
            this.UseCount = rhs.UseCount;
            this.EquipmentCount = rhs.PumpTotal;
            this.UseCount = rhs.PumpUseCount;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
        }
@@ -28,14 +27,14 @@
            this.NO = rhs.NO;
            this.CatalogID = rhs.CatalogID;
            this.SeriesID = rhs.SeriesID;
            this.EquipmentCount = rhs.EquipmentCount;
            this.UseCount = rhs.UseCount;
            this.EquipmentCount = rhs.PumpTotal;
            this.UseCount = rhs.PumpUseCount;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
        }
        /// <summary>
        /// ID
        /// UserID
        /// </summary>
        public long ID { get; set; }
@@ -68,6 +67,13 @@
        public long CatalogID { get; set; }
        /// <summary>
        /// 厂商
        /// </summary>
        [DisplayName(" 厂商")]
        [Browsable(true)]
        public string Manufacturer { get; set; }
        /// <summary>
        /// 设备型号
        /// </summary>
        [DisplayName(" 设备型号")]