ExamScore.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. /// 科目ID
  84. /// </summary>
  85. [Comment("科目ID")]
  86. [Required]
  87. public short CourseId { get; set; }
  88. /// <summary>
  89. /// 成绩
  90. /// </summary>
  91. [Comment("成绩")]
  92. [Required, Column(TypeName = "decimal(10, 2)")]
  93. public decimal Score { get; set; } = 0;
  94. /// <summary>
  95. /// 是否排除
  96. /// </summary>
  97. [Comment("是否排除")]
  98. [Required]
  99. public bool IsExcluded { get; set; } = false;
  100. /// <summary>
  101. /// 分数分段ID
  102. /// </summary>
  103. [Comment("分数分段ID")]
  104. [Required]
  105. public int ExamScoreRangeId { get; set; } = 0;
  106. }