cloudflight
2023-12-02 1a5ef6b2bf25de50b685b44299d9a049a2feac80
Hydro.MapView/Model/PumpViewModel.cs
@@ -1,4 +1,4 @@
using Hydro.CommonBase;
using CommonBase;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -13,13 +13,17 @@
namespace Hydro.MapView
{
    public class PumpViewModel:LinkViewModel
    public class PumpViewModel : LinkViewModel
    {
        [Browsable(false)]
        public override string Name { get; set; }
        public new string Name
        {
            get { return base.Name; }
            set { base.Name = value; }
        }
        [Category("1、基本信息")]
        [DisplayName("水泵类型")]
        public PumpType Type { get; set; }
        public new PumpType Type { get; set; }
        [Browsable(false)]
        public Dictionary<string, Dataset> Datasets { get; set; } = new Dictionary<string, Dataset>();
@@ -73,7 +77,7 @@
        [Browsable(false)]
        public string factoryName
        {
            set;get;
            set; get;
            //get
            //{
            //    if (factory != null)
@@ -568,10 +572,10 @@
        [Category("3、计算结果")]
        [DisplayName("2)扬程")]
        [Browsable(true)]
        public float EN_HEADLOSS { get { return -base.EN_HEADLOSS; } }
        public new float EN_HEADLOSS { get { return -base.EN_HEADLOSS; } }
        [Browsable(false)]
        public float EN_VELOCITY { get { return base.EN_VELOCITY; } }
        public new float EN_VELOCITY { get { return base.EN_VELOCITY; } }
        public override string ToString()