ExamOrgDataReport.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. using Furion.DatabaseAccessor;
  2. using Microsoft.EntityFrameworkCore;
  3. using System;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.ComponentModel.DataAnnotations.Schema;
  6. namespace YBEE.EQM.Core;
  7. /// <summary>
  8. /// 监测机构数据上报类型
  9. /// </summary>
  10. [Comment("监测机构数据上报类型")]
  11. public class ExamOrgDataReport : IEntity
  12. {
  13. /// <summary>
  14. /// 主键
  15. /// </summary>
  16. [Comment("主键")]
  17. [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  18. public int Id { get; set; }
  19. /// <summary>
  20. /// 监测机构ID
  21. /// </summary>
  22. [Comment("监测机构ID")]
  23. [Required]
  24. public int ExamOrgId { get; set; }
  25. /// <summary>
  26. /// 监测计划ID
  27. /// </summary>
  28. [Comment("监测计划ID")]
  29. [Required]
  30. public int ExamPlanId { get; set; }
  31. /// <summary>
  32. /// 机构ID
  33. /// </summary>
  34. [Comment("机构ID")]
  35. [Required]
  36. public short SysOrgId { get; set; }
  37. /// <summary>
  38. /// 上报类型
  39. /// </summary>
  40. [Comment("上报类型")]
  41. [Required, Column(TypeName = "smallint")]
  42. public DataReportType Type { get; set; }
  43. /// <summary>
  44. /// 状态
  45. /// </summary>
  46. [Comment("状态")]
  47. [Required, Column(TypeName = "smallint")]
  48. public DataReportStatus Status { get; set; } = DataReportStatus.UNREPORT;
  49. /// <summary>
  50. /// 上报人用户ID
  51. /// </summary>
  52. [Comment("上报人用户ID")]
  53. public int? ReportSysUserId { get; set; }
  54. /// <summary>
  55. /// 开始时间
  56. /// </summary>
  57. [Comment("开始时间")]
  58. public DateTime? ReportTime { get; set; }
  59. /// <summary>
  60. /// 备注
  61. /// </summary>
  62. [Comment("备注")]
  63. public string Remark { get; set; }
  64. /// <summary>
  65. /// 佐证材料
  66. /// </summary>
  67. [Comment("佐证材料")]
  68. [Column(TypeName = "json")]
  69. public string Attachments { get; set; } = "[]";
  70. /// <summary>
  71. /// 一对一引用(监测机构)
  72. /// </summary>
  73. public virtual ExamOrg ExamOrg { get; set; }
  74. /// <summary>
  75. /// 一对一引用(用户)
  76. /// </summary>
  77. public virtual SysUser ReportSysUser { get; set; }
  78. }