ExamTeacherCourse.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. using Microsoft.EntityFrameworkCore;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. namespace YBEE.EQM.Core;
  5. /// <summary>
  6. /// 监测教师任教科目
  7. /// </summary>
  8. [Comment("监测教师任教科目")]
  9. public class ExamTeacherCourse : DEntityBase
  10. {
  11. /// <summary>
  12. /// 监测计划ID
  13. /// </summary>
  14. [Comment("监测计划ID")]
  15. [Required]
  16. public int ExamPlanId { get; set; }
  17. /// <summary>
  18. /// 机构ID
  19. /// </summary>
  20. [Comment("机构ID")]
  21. [Required]
  22. public short SysOrgId { get; set; }
  23. /// <summary>
  24. /// 校区ID
  25. /// </summary>
  26. [Comment("校区ID")]
  27. public short? SysOrgBranchId { get; set; }
  28. /// <summary>
  29. /// 姓名
  30. /// </summary>
  31. [Comment("姓名")]
  32. [Required, StringLength(100)]
  33. public string Name { get; set; }
  34. /// <summary>
  35. /// 证件类型
  36. /// </summary>
  37. [Comment("证件类型")]
  38. [Required, Column(TypeName = "smallint")]
  39. public CertificateType CertificateType { get; set; } = CertificateType.NONE;
  40. /// <summary>
  41. /// 证件号码
  42. /// </summary>
  43. [Comment("证件号码")]
  44. [StringLength(50)]
  45. public string IdNumber { get; set; } = "";
  46. /// <summary>
  47. /// 监测年级ID
  48. /// </summary>
  49. [Comment("监测年级ID")]
  50. [Required]
  51. public int ExamGradeId { get; set; }
  52. /// <summary>
  53. /// 年级ID
  54. /// </summary>
  55. [Comment("年级ID")]
  56. [Required]
  57. public short GradeId { get; set; }
  58. /// <summary>
  59. /// 学校班级ID
  60. /// </summary>
  61. [Comment("学校班级ID")]
  62. [Required]
  63. public long SchoolClassId { get; set; }
  64. /// <summary>
  65. /// 班级号
  66. /// </summary>
  67. [Comment("班级号")]
  68. [Required]
  69. public short ClassNumber { get; set; }
  70. /// <summary>
  71. /// 科目ID
  72. /// </summary>
  73. [Comment("科目ID")]
  74. [Required]
  75. public short CourseId { get; set; }
  76. /// <summary>
  77. /// 备注
  78. /// </summary>
  79. [Comment("备注")]
  80. [StringLength(200)]
  81. public string Remark { get; set; }
  82. /// <summary>
  83. /// 一对一引用(机构)
  84. /// </summary>
  85. public virtual SysOrg SysOrg { get; set; }
  86. /// <summary>
  87. /// 一对一引用(校区)
  88. /// </summary>
  89. public virtual SysOrg SysOrgBranch { get; set; }
  90. /// <summary>
  91. /// 一对一引用(年级)
  92. /// </summary>
  93. public virtual Grade Grade { get; set; }
  94. /// <summary>
  95. /// 一对一引用(班级)
  96. /// </summary>
  97. public virtual SchoolClass SchoolClass { get; set; }
  98. /// <summary>
  99. /// 一对一引用(科目)
  100. /// </summary>
  101. public virtual Course Course { get; set; }
  102. /// <summary>
  103. /// 一对一引用(监测年级)
  104. /// </summary>
  105. public virtual ExamGrade ExamGrade { get; set; }
  106. }