lixiaojun
2022-08-09 c7c696753fbe0b8ebf56eb6cfe584601a36c5fb2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace IStation
{
    /// <summary>
    /// 报警
    /// </summary>
    public class Alarm
    {
        public const string Type_数据不变 = "数据不变";
        public const string Type_数据突变 = "数据突变";
        public const string Type_缺数据 = "缺数据";
        public const string Type_数据中断 = "数据中断";
        public const string Type_数据越上限 = "数据越上限";
        public const string Type_数据越下限 = "数据越下限";
        public const string Type_非合理区间 = "非合理区间";
 
        public const int Status_未处理 = 0;
        public const int Status_已处理 = 1;
        public const int Status_搁置 = 2;
        public const int Status_屏蔽 = 3;
 
        /// <summary>
        /// 获取报警类型列表
        /// </summary>
        public static List<string> GetAlarmTypeList()
        {
            var list = new List<string>() 
            {
                Type_数据不变,
                Type_数据突变,
                Type_缺数据,
                Type_数据中断,
                Type_数据越上限,
                Type_数据越下限,
                Type_非合理区间
            };
            return list;
        }
 
    }
}