ExamDataReportInput.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 添加监测数据上报类型
  5. /// </summary>
  6. public class AddExamDataReportInput
  7. {
  8. /// <summary>
  9. /// 监测计划ID
  10. /// </summary>
  11. [Required]
  12. public int ExamPlanId { get; set; }
  13. /// <summary>
  14. /// 上报类型
  15. /// </summary>
  16. [Required]
  17. public DataReportType Type { get; set; }
  18. /// <summary>
  19. /// 开始时间
  20. /// </summary>
  21. [Required]
  22. public DateTime BeginTime { get; set; }
  23. /// <summary>
  24. /// 结束时间
  25. /// </summary>
  26. [Required]
  27. public DateTime EndTime { get; set; }
  28. /// <summary>
  29. /// 上报说明
  30. /// </summary>
  31. [StringLength(2000)]
  32. public string Remark { get; set; } = "";
  33. }
  34. /// <summary>
  35. /// 更新监测数据上报类型
  36. /// </summary>
  37. public class UpdateExamDataReportInput : BaseId
  38. {
  39. /// <summary>
  40. /// 开始时间
  41. /// </summary>
  42. [Required]
  43. public DateTime BeginTime { get; set; }
  44. /// <summary>
  45. /// 结束时间
  46. /// </summary>
  47. [Required]
  48. public DateTime EndTime { get; set; }
  49. /// <summary>
  50. /// 上报说明
  51. /// </summary>
  52. [StringLength(2000)]
  53. public string Remark { get; set; } = "";
  54. }