From bef933e7e166b085ba7e46e38ea62d9ae0129ec6 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期一, 20 一月 2025 10:47:23 +0800 Subject: [PATCH] 远程API模式阶段性提交 --- WinFrmUI/HStation.WinFrmUI.Assets.Core/12-package/02-main/PackageViewModel.cs | 24 +++++++++++++++--------- 1 files changed, 15 insertions(+), 9 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Assets.Core/12-package/02-main/PackageViewModel.cs b/WinFrmUI/HStation.WinFrmUI.Assets.Core/12-package/02-main/PackageViewModel.cs index 379ae83..939984e 100644 --- a/WinFrmUI/HStation.WinFrmUI.Assets.Core/12-package/02-main/PackageViewModel.cs +++ b/WinFrmUI/HStation.WinFrmUI.Assets.Core/12-package/02-main/PackageViewModel.cs @@ -1,6 +1,4 @@ -锘縰sing System.ComponentModel; - -namespace HStation.WinFrmUI.Assets +锘縩amespace 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(" 璁惧鍨嬪彿")] -- Gitblit v1.9.3