终端一体化运控平台
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

AlarmSet.cs 1.3 KiB

123456789101112131415161718192021222324252627282930313233343536
  1. using BPASmart.Model;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Collections.ObjectModel;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.ComponentModel.DataAnnotations.Schema;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace BPASmart.Model
  11. {
  12. public class AlarmSet : NoticeBase
  13. {
  14. /// <summary>
  15. /// 报警标签
  16. /// </summary>
  17. public string AlarmTag { get { return _mAlarmTag; } set { _mAlarmTag = value; OnPropertyChanged(); } }
  18. private string _mAlarmTag = string.Empty;
  19. public EAlarmType AlarmType { get { return _mAlarmType; } set { _mAlarmType = value; OnPropertyChanged(); } }
  20. private EAlarmType _mAlarmType;
  21. /// <summary>
  22. /// 模拟量报警信息
  23. /// </summary>
  24. public ObservableCollection<AnalogAlarmModel> AnalogAlarmModels { get; set; } = new ObservableCollection<AnalogAlarmModel>();
  25. /// <summary>
  26. /// 离散量报警信息
  27. /// </summary>
  28. public DiscreteAlarmInfo DiscreteAlarmInfoSet { get { return _mDiscreteAlarmInfoSet; } set { _mDiscreteAlarmInfoSet = value; OnPropertyChanged(); } }
  29. private DiscreteAlarmInfo _mDiscreteAlarmInfoSet = new DiscreteAlarmInfo();
  30. }
  31. }