SpecialStudent.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. using Microsoft.EntityFrameworkCore;
  2. using System;
  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 SpecialStudent : DEntityBase
  11. {
  12. /// <summary>
  13. /// 机构ID
  14. /// </summary>
  15. [Comment("机构ID")]
  16. [Required]
  17. public short SysOrgId { get; set; }
  18. /// <summary>
  19. /// 校区ID
  20. /// </summary>
  21. [Comment("校区ID")]
  22. public short? SysOrgBranchId { get; set; }
  23. /// <summary>
  24. /// 班级ID
  25. /// </summary>
  26. [Comment("班级ID")]
  27. [Required]
  28. public long SchoolClassId { get; set; }
  29. /// <summary>
  30. /// 班级号
  31. /// </summary>
  32. [Comment("班级号")]
  33. [Required]
  34. public int ClassNumber { get; set; }
  35. /// <summary>
  36. /// 姓名
  37. /// </summary>
  38. [Comment("姓名")]
  39. [Required, StringLength(100)]
  40. public string Name { get; set; }
  41. /// <summary>
  42. /// 证件类型
  43. /// </summary>
  44. [Comment("证件类型")]
  45. [Required, Column(TypeName = "smallint")]
  46. public CertificateType CertificateType { get; set; } = CertificateType.NONE;
  47. /// <summary>
  48. /// 证件号码
  49. /// </summary>
  50. [Comment("证件号码")]
  51. [StringLength(50)]
  52. public string IdNumber { get; set; } = "";
  53. /// <summary>
  54. /// 出生日期
  55. /// </summary>
  56. [Comment("出生日期")]
  57. public DateTime? BirthDate { get; set; }
  58. /// <summary>
  59. /// 性别
  60. /// </summary>
  61. [Comment("性别")]
  62. [Required, Column(TypeName = "smallint")]
  63. public Gender Gender { get; set; } = Gender.UNKNOWN;
  64. /// <summary>
  65. /// 学籍号
  66. /// </summary>
  67. [Comment("学籍号")]
  68. [StringLength(100)]
  69. public string StudentNumber { get; set; } = "";
  70. /// <summary>
  71. /// 申请原因
  72. /// </summary>
  73. [Comment("申请原因")]
  74. [Required, StringLength(2000)]
  75. public string ApplyReason { get; set; }
  76. /// <summary>
  77. /// 家长姓名
  78. /// </summary>
  79. [Comment("家长姓名")]
  80. [StringLength(100)]
  81. public string PatriarchName { get; set; }
  82. /// <summary>
  83. /// 家长电话
  84. /// </summary>
  85. [Comment("家长电话")]
  86. [StringLength(100)]
  87. public string PatriarchTel { get; set; }
  88. /// <summary>
  89. /// 认定人用户ID
  90. /// </summary>
  91. [Comment("认定人用户ID")]
  92. public int? IdentifiedSysUserId { get; set; }
  93. /// <summary>
  94. /// 认定时间
  95. /// </summary>
  96. [Comment("认定时间")]
  97. public DateTime? IdentifiedTime { get; set; }
  98. /// <summary>
  99. /// 备注
  100. /// </summary>
  101. [Comment("备注")]
  102. [StringLength(200)]
  103. public string Remark { get; set; }
  104. /// <summary>
  105. /// 一对一引用(机构)
  106. /// </summary>
  107. public virtual SysOrg SysOrg { get; set; }
  108. /// <summary>
  109. /// 一对一引用(班级)
  110. /// </summary>
  111. public virtual SchoolClass SchoolClass { get; set; }
  112. /// <summary>
  113. /// 一对一引用(校区)
  114. /// </summary>
  115. public virtual SysOrg SysOrgBranch { get; set; }
  116. }