ExamDataReport.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using Microsoft.EntityFrameworkCore;
  2. using System;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. namespace YBEE.EQM.Core;
  6. /// <summary>
  7. /// 监测计划数据上报类型
  8. /// </summary>
  9. [Comment("监测计划数据上报类型")]
  10. public class ExamDataReport : DEntityBase
  11. {
  12. /// <summary>
  13. /// 监测计划ID
  14. /// </summary>
  15. [Comment("监测计划ID")]
  16. [Required]
  17. public int ExamPlanId { get; set; }
  18. /// <summary>
  19. /// 上报类型
  20. /// </summary>
  21. [Comment("上报类型")]
  22. [Required, Column(TypeName = "smallint")]
  23. public DataReportType Type { get; set; }
  24. /// <summary>
  25. /// 状态
  26. /// </summary>
  27. [Comment("状态")]
  28. [Required, Column(TypeName = "smallint")]
  29. public ExamStatus Status { get; set; } = ExamStatus.READY;
  30. /// <summary>
  31. /// 开始时间
  32. /// </summary>
  33. [Comment("开始时间")]
  34. [Required]
  35. public DateTime BeginTime { get; set; }
  36. /// <summary>
  37. /// 结束时间
  38. /// </summary>
  39. [Comment("结束时间")]
  40. [Required]
  41. public DateTime EndTime { get; set; }
  42. /// <summary>
  43. /// 上报说明
  44. /// </summary>
  45. [Comment("上报说明")]
  46. [StringLength(2000)]
  47. public string Remark { get; set; } = "";
  48. /// <summary>
  49. /// 一对一引用(监测计划)
  50. /// </summary>
  51. public virtual ExamPlan ExamPlan { get; set; }
  52. }