25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
930 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace BPASmartClient.CustomResource.Pages.Model
  7. {
  8. [AttributeUsage(AttributeTargets.Property)]
  9. public class AlarmAttribute : Attribute
  10. {
  11. public AlarmAttribute(string Info, AlarmTriggerType alarmTriggerType = AlarmTriggerType.Rising, AlarmLevel alarmLevel = AlarmLevel.一般报警)
  12. {
  13. AlarmInfo = Info;
  14. AlarmType = alarmTriggerType;
  15. @AlarmLevel = alarmLevel;
  16. }
  17. /// <summary>
  18. /// 报警信息
  19. /// </summary>
  20. public string AlarmInfo { get; set; }
  21. /// <summary>
  22. /// 告警类型
  23. /// </summary>
  24. public AlarmTriggerType AlarmType { get; set; }
  25. /// <summary>
  26. /// 告警级别
  27. /// </summary>
  28. public AlarmLevel @AlarmLevel { get; set; }
  29. }
  30. }