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

59 lines
1.6 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using Microsoft.Toolkit.Mvvm.ComponentModel;
  8. namespace BPASmartClient.Model
  9. {
  10. public class Alarm : ObservableObject
  11. {
  12. /// <summary>
  13. /// ID
  14. /// </summary>
  15. [Key]
  16. public int Id { get { return _mId; } set { _mId = value; OnPropertyChanged(); } }
  17. private int _mId;
  18. /// <summary>
  19. /// 编号ID
  20. /// </summary>
  21. public int NumId { get { return _mNumId; } set { _mNumId = value; OnPropertyChanged(); } }
  22. private int _mNumId;
  23. /// <summary>
  24. /// 日期
  25. /// </summary>
  26. public string Date { get { return _mDate; } set { _mDate = value; OnPropertyChanged(); } }
  27. private string _mDate;
  28. /// <summary>
  29. /// 时间
  30. /// </summary>
  31. public string Time { get { return _mTime; } set { _mTime = value; OnPropertyChanged(); } }
  32. private string _mTime;
  33. /// <summary>
  34. /// 报警信息
  35. /// </summary>
  36. public string Info { get { return _mInfo; } set { _mInfo = value; OnPropertyChanged(); } }
  37. private string _mInfo;
  38. /// <summary>
  39. /// 报警值
  40. /// </summary>
  41. public string Value { get { return _mValue; } set { _mValue = value; OnPropertyChanged(); } }
  42. private string _mValue;
  43. /// <summary>
  44. /// 报警等级
  45. /// </summary>
  46. public string Grade { get { return _mGrade; } set { _mGrade = value; OnPropertyChanged(); } }
  47. private string _mGrade;
  48. }
  49. }