ExamScore.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. using Furion.DatabaseAccessor;
  2. using Microsoft.EntityFrameworkCore;
  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 ExamScore : IEntity
  11. {
  12. /// <summary>
  13. /// 主键
  14. /// </summary>
  15. [Comment("主键")]
  16. [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  17. public long Id { get; set; }
  18. /// <summary>
  19. /// 监测计划ID
  20. /// </summary>
  21. [Comment("监测计划ID")]
  22. [Required]
  23. public int ExamPlanId { get; set; }
  24. /// <summary>
  25. /// 学段
  26. /// </summary>
  27. [Comment("学段")]
  28. [Required, Column(TypeName = "smallint")]
  29. public EducationStage EducationStage { get; set; }
  30. /// <summary>
  31. /// 监测抽样类型
  32. /// </summary>
  33. [Comment("监测抽样类型")]
  34. [Required, Column(TypeName = "smallint")]
  35. public ExamSampleType ExamSampleType { get; set; }
  36. /// <summary>
  37. /// 机构ID
  38. /// </summary>
  39. [Comment("机构ID")]
  40. [Required]
  41. public short SysOrgId { get; set; }
  42. /// <summary>
  43. /// 校区ID
  44. /// </summary>
  45. [Comment("校区ID")]
  46. public short? SysOrgBranchId { get; set; }
  47. /// <summary>
  48. /// 年级ID
  49. /// </summary>
  50. [Comment("年级ID")]
  51. [Required]
  52. public short GradeId { get; set; }
  53. /// <summary>
  54. /// 学期ID
  55. /// </summary>
  56. [Comment("学期ID")]
  57. [Required]
  58. public short SemesterId { get; set; }
  59. /// <summary>
  60. /// 班级ID
  61. /// </summary>
  62. [Comment("班级ID")]
  63. [Required]
  64. public long SchoolClassId { get; set; }
  65. /// <summary>
  66. /// 班号
  67. /// </summary>
  68. [Comment("班号")]
  69. [Required]
  70. public short ClassNumber { get; set; }
  71. /// <summary>
  72. /// 监测学生ID
  73. /// </summary>
  74. [Comment("监测学生ID")]
  75. [Required]
  76. public long ExamStudentId { get; set; }
  77. /// <summary>
  78. /// 选科组合ID
  79. /// </summary>
  80. [Comment("选科组合ID")]
  81. public short? NceeCourseCombId { get; set; }
  82. /// <summary>
  83. /// 监测号
  84. /// </summary>
  85. [Comment("监测号")]
  86. [StringLength(20)]
  87. public string ExamNumber { get; set; }
  88. /// <summary>
  89. /// 科目ID
  90. /// </summary>
  91. [Comment("科目ID")]
  92. [Required]
  93. public short CourseId { get; set; }
  94. /// <summary>
  95. /// 成绩
  96. /// </summary>
  97. [Comment("成绩")]
  98. [Required, Column(TypeName = "decimal(10, 2)")]
  99. public decimal Score { get; set; } = 0;
  100. /// <summary>
  101. /// 是否排除
  102. /// </summary>
  103. [Comment("是否排除")]
  104. [Required]
  105. public bool IsExcluded { get; set; } = false;
  106. /// <summary>
  107. /// 是否特殊学生
  108. /// </summary>
  109. [Comment("是否特殊学生")]
  110. [Required]
  111. public bool IsSpecial { get; set; } = false;
  112. /// <summary>
  113. /// 是否缺考
  114. /// </summary>
  115. [Comment("是否缺考")]
  116. [Required]
  117. public bool IsAbsent { get; set; } = false;
  118. /// <summary>
  119. /// 分数分段ID
  120. /// </summary>
  121. [Comment("分数分段ID")]
  122. [Required]
  123. public int ExamScoreRangeId { get; set; } = 0;
  124. /// <summary>
  125. /// 备注
  126. /// </summary>
  127. [Comment("备注")]
  128. [StringLength(100)]
  129. public string Remark { get; set; }
  130. }