using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IStation { /// /// 报警 /// 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; /// /// 获取报警类型列表 /// public static List GetAlarmTypeList() { var list = new List() { Type_数据不变, Type_数据突变, Type_缺数据, Type_数据中断, Type_数据越上限, Type_数据越下限, Type_非合理区间 }; return list; } } }