12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- 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")]
- [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? SeniorCourseCombId { 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;
- }
|