DevAlarmInfo.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using SqlSugar;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Runtime.Serialization;
  5. using System.Text;
  6. using WCS.Entity.Protocol.RGV;
  7. namespace WCS.Entity.Protocol.HUB
  8. {
  9. /// <summary>
  10. /// 设备运行信息
  11. /// </summary>
  12. [DataContract]
  13. [SugarTable("FJ_DevAlarmInfo")]
  14. public class DevAlarmInfo : QuestDBBaseEntity
  15. {
  16. public DevAlarmInfo()
  17. {
  18. }
  19. public DevAlarmInfo(string alarm, DateTime startTime, DateTime endTime, long duration, string type, string code, DateTime frame)
  20. {
  21. Alarm = alarm;
  22. StartTime = startTime;
  23. EndTime = endTime;
  24. Duration = duration;
  25. Type = type;
  26. Code = code;
  27. Frame = frame;
  28. }
  29. /// <summary>
  30. /// 运行模式
  31. /// </summary>
  32. [SugarColumn(ColumnDataType = "symbol")]
  33. public string Alarm { get; set; }
  34. /// <summary>
  35. /// 开始时间
  36. /// </summary>
  37. public DateTime StartTime { get; set; }
  38. /// <summary>
  39. /// 结束时间
  40. /// </summary>
  41. public DateTime EndTime { get; set; }
  42. /// <summary>
  43. /// 总时长
  44. /// </summary>
  45. public long Duration { get; set; }
  46. /// <summary>
  47. /// 类型
  48. /// </summary>
  49. [SugarColumn(ColumnDataType = "symbol")]
  50. public string Type { get; set; }
  51. }
  52. }