1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace NEIntelligentControl2.Models.Alarm
- {
-
-
-
- public class FaultInfoModel
- {
-
-
-
- public bool AllowRest { get; set; }
-
-
-
- public string ThingId { get; set; }
-
-
-
- public string ThingName { get; set; }
-
-
-
- public DateTime AlertTime { get; set; }
-
-
-
- public string AlertText { get; set; }
- public int AgCount { get; set; }
-
-
-
- public FaultInfo FaultInfo { get; set; }
- public string AlertTimeString { get => AlertTime.ToString("yyyy-MM-dd HH:mm:ss"); }
- public string AlertString
- {
- get
- {
- if (FaultInfo.MessageType == 3)
- {
- return $"{AlertText} [解除]";
- }
- return AlertText;
- }
- }
- }
- }
|