using Furion.DatabaseAccessor; using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace YBEE.EQM.Core; /// /// 监测成绩(单科) /// [Comment("监测成绩(单科)")] public class ExamScore : IEntity { /// /// 主键 /// [Comment("主键")] [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] public long Id { get; set; } /// /// 监测计划ID /// [Comment("监测计划ID")] [Required] public int ExamPlanId { get; set; } /// /// 学段 /// [Comment("学段")] [Required, Column(TypeName = "smallint")] public EducationStage EducationStage { get; set; } /// /// 监测抽样类型 /// [Comment("监测抽样类型")] [Required, Column(TypeName = "smallint")] public ExamSampleType ExamSampleType { get; set; } /// /// 机构ID /// [Comment("机构ID")] [Required] public short SysOrgId { get; set; } /// /// 校区ID /// [Comment("校区ID")] public short? SysOrgBranchId { get; set; } /// /// 年级ID /// [Comment("年级ID")] [Required] public short GradeId { get; set; } /// /// 学期ID /// [Comment("学期ID")] [Required] public short SemesterId { get; set; } /// /// 班级ID /// [Comment("班级ID")] [Required] public long SchoolClassId { get; set; } /// /// 班号 /// [Comment("班号")] [Required] public short ClassNumber { get; set; } /// /// 监测学生ID /// [Comment("监测学生ID")] [Required] public long ExamStudentId { get; set; } /// /// 选科组合ID /// [Comment("选科组合ID")] public short? NceeCourseCombId { get; set; } /// /// 监测号 /// [Comment("监测号")] [StringLength(20)] public string ExamNumber { get; set; } /// /// 科目ID /// [Comment("科目ID")] [Required] public short CourseId { get; set; } /// /// 成绩 /// [Comment("成绩")] [Required, Column(TypeName = "decimal(10, 2)")] public decimal Score { get; set; } = 0; /// /// 是否排除 /// [Comment("是否排除")] [Required] public bool IsExcluded { get; set; } = false; /// /// 是否特殊学生 /// [Comment("是否特殊学生")] [Required] public bool IsSpecial { get; set; } = false; /// /// 是否缺考 /// [Comment("是否缺考")] [Required] public bool IsAbsent { get; set; } = false; /// /// 分数分段ID /// [Comment("分数分段ID")] [Required] public int ExamScoreRangeId { get; set; } = 0; /// /// 备注 /// [Comment("备注")] [StringLength(100)] public string Remark { get; set; } }