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