ExamOrgResult.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using Microsoft.EntityFrameworkCore;
  2. using System.ComponentModel.DataAnnotations;
  3. namespace YBEE.EQM.Core;
  4. /// <summary>
  5. /// 机构监测结果
  6. /// </summary>
  7. [Comment("机构监测结果")]
  8. public class ExamOrgResult : DEntityBase
  9. {
  10. /// <summary>
  11. /// 监测计划ID
  12. /// </summary>
  13. [Comment("监测计划ID")]
  14. [Required]
  15. public int ExamPlanId { get; set; }
  16. /// <summary>
  17. /// 监测结果发布内容ID
  18. /// </summary>
  19. [Comment("监测结果发布内容ID")]
  20. [Required]
  21. public int ExamDataPublishId { get; set; }
  22. /// <summary>
  23. /// 监测机构ID
  24. /// </summary>
  25. [Comment("监测机构ID")]
  26. [Required]
  27. public int ExamOrgId { get; set; }
  28. /// <summary>
  29. /// 机构ID
  30. /// </summary>
  31. [Comment("机构ID")]
  32. [Required]
  33. public int SysOrgId { get; set; }
  34. /// <summary>
  35. /// 文件名
  36. /// </summary>
  37. [Comment("文件名")]
  38. [Required, StringLength(200)]
  39. public string FileName { get; set; }
  40. /// <summary>
  41. /// 文件路径
  42. /// </summary>
  43. [Comment("文件路径")]
  44. [Required, StringLength(300)]
  45. public string FilePath { get; set; }
  46. /// <summary>
  47. /// 扩展名
  48. /// </summary>
  49. [Comment("扩展名")]
  50. [Required, StringLength(50)]
  51. public string FileExtName { get; set; }
  52. /// <summary>
  53. /// 文件大小
  54. /// </summary>
  55. [Comment("文件大小")]
  56. [Required]
  57. public long FileSize { get; set; } = 0;
  58. /// <summary>
  59. /// 一对一引用(监测机构)
  60. /// </summary>
  61. public virtual ExamOrg ExamOrg { get; set; }
  62. /// <summary>
  63. /// 一对一引用(监测结果发布内容)
  64. /// </summary>
  65. public virtual ExamDataPublish ExamDataPublish { get; set; }
  66. }