Shuxia Ning
2024-08-28 1a8a81785470302fc7fbd6914a9df5d1094dac2a
Test/IStation.Win.View/ViewModel/SetScada/RealTimePumpScadaSetViewModel.cs
ÎļþÃû´Ó Test/IStation.Win.View/ViewModel/RealTimePumpScadaViewModel.cs ÐÞ¸Ä
@@ -2,13 +2,13 @@
namespace IStation.Win.View.ViewModel
{
    public class RealTimePumpScadaViewModel
    public class RealTimePumpScadaSetViewModel
    {
        [Display(Name = "æ³µ")]
        public int Flag { get; set; }
        [Display(Name = "运行状态")]
        public double? RunStatus { get; set; }
        public eRunStatus RunStatus { get; set; }
        [Display(Name = "进口水位")]
        public double? InletWaterLevel { get; set; }
@@ -26,23 +26,33 @@
        public double? RotateSpeed { get; set; }
        [Display(Name = "检修状态")]
        public double? MaintenanceState { get; set; }
        public double? MaintenanceState { get; set; }
        public void Set()
        {
            if (this.RunStatus != 1)
            if (this.RunStatus != eRunStatus.Open)
            {
                this.RunStatus = null;
                this.RunStatus = eRunStatus.Close;
                this.InletWaterLevel = null;
                this.OutletPressure = null;
                this.InstantaneousFlow = null;
                this.ActivePower = null;
                this.RotateSpeed = null;
                this.RotateSpeed = null;
            }
        }
        public enum eRunStatus
        {
            [Display(Name = "检修")]
            Maintenance = -1,
            [Display(Name = "关闭")]
            Close = 0,
            [Display(Name = "开启")]
            Open = 1
        }
    }
}