ExamOrgScoreReport.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. using Microsoft.EntityFrameworkCore;
  2. using System.ComponentModel.DataAnnotations;
  3. namespace YBEE.EQM.Core;
  4. /// <summary>
  5. /// 校考成绩上报文件
  6. /// </summary>
  7. public class ExamOrgScoreReport : DEntityBase
  8. {
  9. /// <summary>
  10. /// 监测机构ID
  11. /// </summary>
  12. [Comment("监测机构ID")]
  13. [Required]
  14. public int ExamOrgId { get; set; }
  15. /// <summary>
  16. /// 监测计划ID
  17. /// </summary>
  18. [Comment("监测计划ID")]
  19. [Required]
  20. public int ExamPlanId { get; set; }
  21. /// <summary>
  22. /// 监测机构ID
  23. /// </summary>
  24. [Comment("监测机构ID")]
  25. [Required]
  26. public short SysOrgId { get; set; }
  27. /// <summary>
  28. /// 监测年级ID
  29. /// </summary>
  30. [Comment("监测年级ID")]
  31. [Required]
  32. public int ExamGradeId { get; set; }
  33. /// <summary>
  34. /// 年级ID
  35. /// </summary>
  36. [Comment("年级ID")]
  37. [Required]
  38. public short GradeId { get; set; }
  39. /// <summary>
  40. /// 科目ID
  41. /// </summary>
  42. [Comment("科目ID")]
  43. [Required]
  44. public short CourseId { get; set; }
  45. /// <summary>
  46. /// 数据行
  47. /// </summary>
  48. [Comment("数据行")]
  49. [Required]
  50. public string DataRows { get; set; } = "[]";
  51. /// <summary>
  52. /// 文件名
  53. /// </summary>
  54. [Comment("文件名")]
  55. [Required, StringLength(200)]
  56. public string FileName { get; set; }
  57. /// <summary>
  58. /// 文件路径
  59. /// </summary>
  60. [Comment("文件路径")]
  61. [Required, StringLength(300)]
  62. public string FilePath { get; set; }
  63. /// <summary>
  64. /// 扩展名
  65. /// </summary>
  66. [Comment("扩展名")]
  67. [Required, StringLength(50)]
  68. public string FileExtName { get; set; }
  69. /// <summary>
  70. /// 文件大小
  71. /// </summary>
  72. [Comment("文件大小")]
  73. [Required]
  74. public long FileSize { get; set; } = 0;
  75. /// <summary>
  76. /// 一对一引用(监测年级)
  77. /// </summary>
  78. public virtual ExamGrade ExamGrade { get; set; }
  79. /// <summary>
  80. /// 一对一引用(科目)
  81. /// </summary>
  82. public virtual Course Course { get; set; }
  83. }