ExamScore.cs 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. [Required]
  47. public short GradeId { get; set; }
  48. /// <summary>
  49. /// 学期ID
  50. /// </summary>
  51. [Comment("学期ID")]
  52. [Required]
  53. public short SemesterId { get; set; }
  54. /// <summary>
  55. /// 班级ID
  56. /// </summary>
  57. [Comment("班级ID")]
  58. [Required]
  59. public long SchoolClassId { get; set; }
  60. /// <summary>
  61. /// 班号
  62. /// </summary>
  63. [Comment("班号")]
  64. [Required]
  65. public short ClassNumber { get; set; }
  66. /// <summary>
  67. /// 监测学生ID
  68. /// </summary>
  69. [Comment("监测学生ID")]
  70. [Required]
  71. public long ExamStudentId { get; set; }
  72. /// <summary>
  73. /// 高中选科组合ID
  74. /// </summary>
  75. [Comment("高中选科组合ID")]
  76. public short? SeniorCourseCombId { get; set; }
  77. /// <summary>
  78. /// 科目ID
  79. /// </summary>
  80. [Comment("科目ID")]
  81. [Required]
  82. public short CourseId { get; set; }
  83. /// <summary>
  84. /// 成绩
  85. /// </summary>
  86. [Comment("成绩")]
  87. [Required, Column(TypeName = "decimal(10, 2)")]
  88. public decimal Score { get; set; } = 0;
  89. /// <summary>
  90. /// 是否排除
  91. /// </summary>
  92. [Comment("是否排除")]
  93. [Required]
  94. public bool IsExcluded { get; set; } = false;
  95. }