Shuxia Ning
2024-08-12 d2cee56db11f0ee475e9f9dbdc8bfd03ad982e18
WinFrmUI/HStation.WinFrmUI.Assets.Core/00-PumpProductManage/00-ViewModel/TreelistViewModel.cs
@@ -1,11 +1,10 @@
using HStation.Dto;
using Yw.Model;
using Yw.Model;
namespace HStation.WinFrmUI.Xhs.PumpProduct
{
    public class CurrentTreeViewModel
    {
        public CurrentTreeViewModel(PumpSeriesDto rhs) : base()
        public CurrentTreeViewModel(Vmo.PumpSeries rhs) : base()
        {
            this.ID = rhs.ID;
            this.CatalogID = rhs.CatalogID;
@@ -13,14 +12,14 @@
            this.Paras = rhs.Paras;
            this.Flags = rhs.Flags;
            this.TagName = rhs.TagName;
            this.UseStatus = rhs.UseStatus;
            this.UseStatus = (eUseStatus)rhs.UseStatus;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
            this.Model = rhs;
            this.ImageIndex = ImageLib.Series;
        }
        public CurrentTreeViewModel(PumpGroupDto rhs) : base()
        public CurrentTreeViewModel(Vmo.PumpGroup rhs) : base()
        {
            this.ID = rhs.ID;
            this.Name = rhs.Name;
@@ -33,7 +32,7 @@
            this.ImageIndex = ImageLib.Group;
        }
        public void Reset(UpdatePumpSeriesDto rhs)
        public void Reset(Vmo.PumpSeries rhs)
        {
            this.ID = rhs.ID;
            this.CatalogID = rhs.CatalogID;
@@ -46,7 +45,7 @@
            this.Model = rhs;
        }
        public void Reset(UpdatePumpGroupDto rhs)
        public void Reset(Vmo.PumpGroup rhs)
        {
            this.ID = rhs.ID;
            this.Name = rhs.Name;