ningshuxia
2025-03-13 982cde7e9372dc218f23b204265d8e54f7e9ce4f
WinFrmUI/HStation.WinFrmUI.Assets.Core/01-pump/00-ViewModel/PumpMainViewModel.cs
@@ -1,11 +1,11 @@
namespace HStation.WinFrmUI.Xhs.PumpProduct
namespace HStation.WinFrmUI
{
    public class AssetsPumpMainViewModel
    {
        public AssetsPumpMainViewModel(Vmo.AssetsPumpMainVmo rhs) : base()
        {
            this.ID = rhs.ID;
            this.PumpSeriesID = rhs.PumpSeriesID;
            this.PumpSeriesID = rhs.SeriesID;
            this.Paras = rhs.Paras;
            this.RatedPower = rhs.RatedPower;
            this.RatedEfficiency = rhs.RatedEfficiency;
@@ -13,6 +13,7 @@
            this.D2 = rhs.D2;
            this.Name = rhs.Name;
            this.TagName = rhs.TagName;
            this.Flags = Yw.Untity.FlagsHelper.ToString(rhs.Flags);
            this.SortCode = rhs.SortCode;
            this.RatedSpeed = rhs.RatedSpeed;
            this.RatedHead = rhs.RatedHead;
@@ -21,37 +22,23 @@
            this.Model = rhs;
        }
        /*       public AssetsPumpMainViewModel(Vmo.AssetsPumpMainVmo rhs) : base()
               {
                   this.PumpSeriesID = rhs.PumpSeriesID;
                   this.RatedPower = rhs.RatedPower;
                   this.RatedEfficiency = rhs.RatedEfficiency;
                   this.Erosion = rhs.Erosion;
                   this.D2 = rhs.D2;
                   this.Name = rhs.Name;
                   this.TagName = rhs.TagName;
                   this.SortCode = rhs.SortCode;
                   this.RatedSpeed = rhs.RatedSpeed;
                   this.RatedHead = rhs.RatedHead;
                   this.RatedFlow = rhs.RatedFlow;
                   this.Description = rhs.Description;
               }*/
        public void Reset(Vmo.AssetsPumpMainVmo rhs)
        {
            this.ID = rhs.ID;
            this.PumpSeriesID = rhs.PumpSeriesID;
            this.Name = rhs.Name;
            this.PumpSeriesID = rhs.SeriesID;
            this.RatedPower = rhs.RatedPower;
            this.RatedEfficiency = rhs.RatedEfficiency;
            this.Erosion = rhs.Erosion;
            this.D2 = rhs.D2;
            this.Name = rhs.Name;
            this.TagName = rhs.TagName;
            this.Flags = Yw.Untity.FlagsHelper.ToString(rhs.Flags);
            this.SortCode = rhs.SortCode;
            this.RatedSpeed = rhs.RatedSpeed;
            this.RatedHead = rhs.RatedHead;
            this.RatedFlow = rhs.RatedFlow;
            this.Description = rhs.Description;
            this.Model = rhs;
        }
        /// <summary>
@@ -77,7 +64,7 @@
        /// <summary>
        /// 标签
        /// </summary>
        public List<string> Flags { get; set; }
        public string Flags { get; set; }
        /// <summary>
        /// 标志