BaseStudentView.cs 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using EMIS.ViewModel.Cache;
  6. using System.ComponentModel;
  7. using System.ComponentModel.DataAnnotations;
  8. namespace EMIS.ViewModel.Students
  9. {
  10. public class BaseStudentView
  11. {
  12. /// <summary>
  13. /// 用户ID
  14. /// </summary>
  15. [DisplayName("用户ID")]
  16. public Guid UserID { get; set; }
  17. /// <summary>
  18. /// 学号
  19. /// </summary>
  20. [DisplayName("学号")]
  21. public string LoginID { get; set; }
  22. /// <summary>
  23. /// 学号
  24. /// </summary>
  25. [DisplayName("学号")]
  26. public string StudentNo { get; set; }
  27. /// <summary>
  28. /// 姓名
  29. /// </summary>
  30. [DisplayName("姓名")]
  31. public string UserName { get; set; }
  32. /// <summary>
  33. /// 性别
  34. /// </summary>
  35. [DisplayName("性别")]
  36. public int? Sex { get; set; }
  37. /// <summary>
  38. /// 性别
  39. /// </summary>
  40. [DisplayName("性别")]
  41. public string SexName
  42. {
  43. get
  44. {
  45. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
  46. .Where(x => x.Value == Sex)
  47. .Select(x => x.Name).FirstOrDefault();
  48. }
  49. }
  50. /// <summary>
  51. /// 身份证号
  52. /// </summary>
  53. [DisplayName("身份证号")]
  54. public string IDNumber { get; set; }
  55. /// <summary>
  56. /// 在校状态
  57. /// </summary>
  58. [DisplayName("在校状态")]
  59. public int? InSchoolStatusID { get; set; }
  60. /// <summary>
  61. /// 在校状态
  62. /// </summary>
  63. [DisplayName("在校状态")]
  64. public string InSchoolStatusName
  65. {
  66. get
  67. {
  68. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString())
  69. .Where(x => x.Value == InSchoolStatusID)
  70. .Select(x => x.Name).FirstOrDefault();
  71. }
  72. }
  73. /// <summary>
  74. /// 学籍状态
  75. /// </summary>
  76. [DisplayName("学籍状态")]
  77. public int? StudentStatus { get; set; }
  78. /// <summary>
  79. /// 学籍状态
  80. /// </summary>
  81. [DisplayName("学籍状态")]
  82. public string StudentStatusName
  83. {
  84. get
  85. {
  86. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_STUDENTSTATUS.ToString())
  87. .Where(x => x.Value == StudentStatus)
  88. .Select(x => x.Name).FirstOrDefault();
  89. }
  90. }
  91. /// <summary>
  92. /// 年级
  93. /// </summary>
  94. [DisplayName("年级")]
  95. public int? Years { get; set; }
  96. /// <summary>
  97. /// 年级
  98. /// </summary>
  99. [DisplayName("年级")]
  100. public int? SchoolyearID { get; set; }
  101. /// <summary>
  102. /// 学期
  103. /// </summary>
  104. [DisplayName("学期")]
  105. public int? SchoolcodeID { get; set; }
  106. /// <summary>
  107. /// 学期
  108. /// </summary>
  109. [DisplayName("学期")]
  110. public string SchoolcodeName
  111. {
  112. get
  113. {
  114. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Schoolcode.ToString())
  115. .Where(x => x.Value == SchoolcodeID)
  116. .Select(x => x.Name).FirstOrDefault();
  117. }
  118. }
  119. /// <summary>
  120. /// 专业信息ID
  121. /// </summary>
  122. [DisplayName("专业信息ID")]
  123. public Guid? SpecialtyID { get; set; }
  124. /// <summary>
  125. /// 专业名称
  126. /// </summary>
  127. [DisplayName("专业名称")]
  128. public string SpecialtyName { get; set; }
  129. /// <summary>
  130. /// 班级信息ID
  131. /// </summary>
  132. [DisplayName("班级信息ID")]
  133. public Guid? ClassmajorID { get; set; }
  134. /// <summary>
  135. /// 班级编号
  136. /// </summary>
  137. [DisplayName("班级编号")]
  138. public string ClassmajorCode { get; set; }
  139. /// <summary>
  140. /// 班级名称
  141. /// </summary>
  142. [DisplayName("班级名称")]
  143. public string ClassmajorName { get; set; }
  144. /// <summary>
  145. /// 班序
  146. /// </summary>
  147. [DisplayName("班序")]
  148. public int? ClassNum { get; set; }
  149. /// <summary>
  150. /// 年级专业ID
  151. /// </summary>
  152. [DisplayName("年级专业ID")]
  153. public Guid? GrademajorID { get; set; }
  154. /// <summary>
  155. /// 年级专业编号
  156. /// </summary>
  157. [DisplayName("年级专业编号")]
  158. public string GrademajorCode { get; set; }
  159. /// <summary>
  160. /// 年级专业名称
  161. /// </summary>
  162. [DisplayName("年级专业名称")]
  163. public string GrademajorName { get; set; }
  164. /// <summary>
  165. /// 院系专业ID
  166. /// </summary>
  167. [DisplayName("院系专业ID")]
  168. public Guid? FacultymajorID { get; set; }
  169. /// <summary>
  170. /// 院系专业代码
  171. /// </summary>
  172. [DisplayName("院系专业代码")]
  173. public string FacultymajorCode { get; set; }
  174. /// <summary>
  175. /// 院系专业名称
  176. /// </summary>
  177. [DisplayName("院系专业名称")]
  178. public string FacultymajorName { get; set; }
  179. /// <summary>
  180. /// 院系所ID
  181. /// </summary>
  182. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  183. public Guid? CollegeID { get; set; }
  184. /// <summary>
  185. /// 院系所代码
  186. /// </summary>
  187. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  188. public string CollegeNo { get; set; }
  189. /// <summary>
  190. /// 院系所名称
  191. /// </summary>
  192. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  193. public string CollegeName { get; set; }
  194. /// <summary>
  195. /// 校区ID
  196. /// </summary>
  197. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  198. public Guid? CampusID { get; set; }
  199. /// <summary>
  200. /// 校区代码
  201. /// </summary>
  202. [Required]
  203. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  204. public string CampusNo { get; set; }
  205. /// <summary>
  206. /// 校区名称
  207. /// </summary>
  208. [Required]
  209. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
  210. public string CampusName { get; set; }
  211. /// <summary>
  212. /// 学年学期
  213. /// </summary>
  214. [DisplayName("学年学期")]
  215. public string SchoolYearCode { get; set; }
  216. /// <summary>
  217. /// 选修任务班名称
  218. /// </summary>
  219. [DisplayName("选修任务班名称")]
  220. public string DefaultClassName { get; set; }
  221. /// <summary>
  222. /// 课程信息ID
  223. /// </summary>
  224. [DisplayName("课程信息ID")]
  225. public Guid? CoursematerialID { get; set; }
  226. /// <summary>
  227. /// 课程代码
  228. /// </summary>
  229. [DisplayName("课程代码")]
  230. public string CoursematerialCode { get; set; }
  231. /// <summary>
  232. /// 课程名称
  233. /// </summary>
  234. [DisplayName("课程名称")]
  235. public string CoursematerialName { get; set; }
  236. /// <summary>
  237. /// 课程类型
  238. /// </summary>
  239. [DisplayName("课程类型")]
  240. public int? CourseTypeID { get; set; }
  241. /// <summary>
  242. /// 课程类型
  243. /// </summary>
  244. [DisplayName("课程类型")]
  245. public string CourseTypeName
  246. {
  247. get
  248. {
  249. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseType.ToString())
  250. .Where(x => x.Value == CourseTypeID)
  251. .Select(x => x.Name).FirstOrDefault();
  252. }
  253. }
  254. /// <summary>
  255. /// 开课学年
  256. /// </summary>
  257. [DisplayName("开课学年")]
  258. public int? GradeYear { get; set; }
  259. /// <summary>
  260. /// 开课学期(期末设定、补考设定)
  261. /// </summary>
  262. [DisplayName("开课学期")]
  263. public int? StarttermID { get; set; }
  264. /// <summary>
  265. /// 开课学期
  266. /// </summary>
  267. [DisplayName("开课学期")]
  268. public string Startterm
  269. {
  270. get
  271. {
  272. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Startterm.ToString())
  273. .Where(x => x.Value == StarttermID)
  274. .Select(x => x.Name).FirstOrDefault();
  275. }
  276. }
  277. /// <summary>
  278. /// 是否异动
  279. /// </summary>
  280. [DisplayName("是否异动")]
  281. public bool IsDifferentDynamic { get; set; }
  282. /// <summary>
  283. /// 是否可用
  284. /// </summary>
  285. [DisplayName("是否可用")]
  286. public int? RecordStatus { get; set; }
  287. }
  288. }