ExamScoreTotal.cs 3.1 KB

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