ÎļþÃû´Ó Test/IStation.Win.View/ViewModel/RealTimePumpScadaViewModel.cs ÐÞ¸Ä |
| | |
| | | |
| | | 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; } |
| | |
| | | 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 |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | } |