ningshuxia
2023-02-06 1fc0b4ed96d4c4b1ff7142926239998de32b2ada
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace IStation
{
    /// <summary>
    /// 报警
    /// </summary>
    public class Alarm
    {
        #region 报警类型
 
        /// <summary>
        /// 数据不变
        /// </summary>
        public const string Type_UnChanged = "数据不变";
 
        /// <summary>
        /// 数据突变
        /// </summary>
        public const string Type_Mutation = "数据突变";
 
        /// <summary>
        /// 缺数据
        /// </summary>
        public const string Type_Lacked = "缺数据";
 
        /// <summary>
        /// 数据中断
        /// </summary>
        public const string Type_Interrupted = "数据中断";
 
        /// <summary>
        /// 数据越上限
        /// </summary>
        public const string Type_Upper = "数据越上限";
 
        /// <summary>
        /// 数据越下限
        /// </summary>
        public const string Type_Lower = "数据越下限";
 
        /// <summary>
        /// 非合理区间
        /// </summary>
        public const string Type_UnReasonable = "非合理区间";
 
        /// <summary>
        /// 获取报警类型列表
        /// </summary>
        public static List<string> GetAlarmTypeList()
        {
            var list = new List<string>()
            {
                Type_UnChanged,
                Type_Mutation,
                Type_Lacked,
                Type_Interrupted,
                Type_Upper,
                Type_Lower,
                Type_UnReasonable
            };
            return list;
        }
 
        #endregion
 
        #region 处理状态
 
        /// <summary>
        /// 未处理
        /// </summary>
        public const int HandleStatus_None = 0;
 
        /// <summary>
        /// 已处理
        /// </summary>
        public const int HandleStatus_Yes = 1;
 
        /// <summary>
        /// 搁置
        /// </summary>
        public const int HandleStatus_Shelve = 2;
 
        /// <summary>
        /// 屏蔽
        /// </summary>
        public const int HandleStatus_Shield = 3; 
 
        #endregion
 
 
 
    }
}