duheng
2024-12-04 ca1ccd0dd9f2d6936368f07d14a2b29b309fd151
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/02-pump/01-pumpsinglematching/PumpSingleMatchingViewModel.cs
@@ -1,23 +1,23 @@
namespace HStation.WinFrmUI.Xhs
namespace HStation.WinFrmUI
{
    public class PumpSingleMatchingViewModel
    {
        public PumpSingleMatchingViewModel(Vmo.PumpSeriesVmo rhs)
        public PumpSingleMatchingViewModel(Vmo.AssetsPumpSeriesVmo rhs)
        {
            this.ID = rhs.ID;
            this.Name = rhs.Name;
            this.IsPump = false;
        }
        public PumpSingleMatchingViewModel(Vmo.PumpGroupVmo rhs)
        public PumpSingleMatchingViewModel(Vmo.AssetsPumpGroupVmo rhs)
        {
            this.ID = rhs.ID;
            this.Name = rhs.Name;
            this.ParentID = rhs.PumpSeriesID;
            this.ParentID = rhs.SeriesID;
            this.IsPump = false;
        }
        public PumpSingleMatchingViewModel(Vmo.PumpMainVmo rhs, long GroupID)
        public PumpSingleMatchingViewModel(Vmo.AssetsPumpMainVmo rhs, long GroupID)
        {
            this.ID = rhs.ID;
            this.Name = rhs.Name;
@@ -25,16 +25,17 @@
            this.IsPump = true;
        }
        public PumpSingleMatchingViewModel(Vmo.PumpMainVmo rhs)
        public PumpSingleMatchingViewModel(Vmo.AssetsPumpMainVmo rhs)
        {
            this.ID = rhs.ID;
            this.Name = rhs.Name;
            this.ParentID = rhs.PumpSeriesID;
            this.ParentID = rhs.SeriesID;
            this.IsPump = true;
            this.Erosion = rhs.Erosion;
            this.RatedPower = rhs.RatedPower;
            this.RatedFlow = rhs.RatedFlow;
            this.RatedSpeed = rhs.RatedSpeed;
            this.RatedHead = rhs.RatedHead;
            this.RatedEfficiency = rhs.RatedEfficiency;
            this.D2 = rhs.D2;
            this.Description = rhs.Description;
@@ -111,4 +112,12 @@
        /// </summary>
        public string Description { get; set; }
    }
}
public class PhartViewModel
{
    public long ID { get; set; }
    public string OtherName { get; set; }
    public int Importance { get; set; }
    public int SortCode { get; set; }
}