StudentBaseView.cs 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Text;
  7. using EMIS.ViewModel.CacheManage;
  8. namespace EMIS.ViewModel.StudentManage.StudentProfile
  9. {
  10. public class StudentBaseView
  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 StudentNo { get; set; }
  22. /// <summary>
  23. /// 学号
  24. /// </summary>
  25. [DisplayName("学号")]
  26. public string LoginID { get; set; }
  27. /// <summary>
  28. /// 姓名
  29. /// </summary>
  30. [DisplayName("姓名")]
  31. public string Name { get; set; }
  32. /// <summary>
  33. /// 姓名
  34. /// </summary>
  35. [DisplayName("姓名")]
  36. public string UserName { get; set; }
  37. /// <summary>
  38. /// 性别
  39. /// </summary>
  40. [DisplayName("性别")]
  41. public int? SexID { get; set; }
  42. /// <summary>
  43. /// 性别
  44. /// </summary>
  45. [DisplayName("性别")]
  46. public string SexName
  47. {
  48. get
  49. {
  50. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString()).Where(x => x.Value == SexID).Select(x => x.Name).FirstOrDefault();
  51. }
  52. }
  53. /// <summary>
  54. /// 出生日期
  55. /// </summary>
  56. [DisplayName("出生日期")]
  57. [DataType(DataType.Date)]
  58. public DateTime? BirthDate { get; set; }
  59. /// <summary>
  60. /// 民族
  61. /// </summary>
  62. [DisplayName("民族")]
  63. public int? NationID { get; set; }
  64. /// <summary>
  65. /// 民族
  66. /// </summary>
  67. [DisplayName("民族")]
  68. public string NationName
  69. {
  70. get
  71. {
  72. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Nation.ToString()).Where(x => x.Value == NationID).Select(x => x.Name).FirstOrDefault();
  73. }
  74. }
  75. /// <summary>
  76. /// 政治面貌
  77. /// </summary>
  78. [DisplayName("政治面貌")]
  79. public int? PoliticsID { get; set; }
  80. /// <summary>
  81. /// 政治面貌
  82. /// </summary>
  83. [DisplayName("政治面貌")]
  84. public string PoliticsName
  85. {
  86. get
  87. {
  88. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Politics.ToString()).Where(x => x.Value == PoliticsID).Select(x => x.Name).FirstOrDefault();
  89. }
  90. }
  91. /// <summary>
  92. /// 证件类型
  93. /// </summary>
  94. [DisplayName("证件类型")]
  95. public int? CertificatesType { get; set; }
  96. /// <summary>
  97. /// 证件类型
  98. /// </summary>
  99. [DisplayName("证件类型")]
  100. public string CertificatesTypeName
  101. {
  102. get
  103. {
  104. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CertificatesType.ToString()).Where(x => x.Value == CertificatesType).Select(x => x.Name).FirstOrDefault();
  105. }
  106. }
  107. /// <summary>
  108. /// 证件号码
  109. /// </summary>
  110. [DisplayName("证件号码")]
  111. public string IDNumber { get; set; }
  112. /// <summary>
  113. /// 学生类别
  114. /// </summary>
  115. [DisplayName("学生类别")]
  116. public int? StudentType { get; set; }
  117. /// <summary>
  118. /// 学生类别
  119. /// </summary>
  120. [DisplayName("学生类别")]
  121. public string StudentTypeName
  122. {
  123. get
  124. {
  125. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_STUDENTTYPE.ToString()).Where(x => x.Value == StudentType).Select(x => x.Name).FirstOrDefault();
  126. }
  127. }
  128. /// <summary>
  129. /// 在校状态
  130. /// </summary>
  131. [DisplayName("在校状态")]
  132. public int? InSchoolStatusID { get; set; }
  133. /// <summary>
  134. /// 在校状态
  135. /// </summary>
  136. [DisplayName("在校状态")]
  137. public string InSchoolStatusName
  138. {
  139. get
  140. {
  141. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString()).Where(x => x.Value == InSchoolStatusID).Select(x => x.Name).FirstOrDefault();
  142. }
  143. }
  144. /// <summary>
  145. /// 学籍状态
  146. /// </summary>
  147. [DisplayName("学籍状态")]
  148. public int? StudentStatus { get; set; }
  149. /// <summary>
  150. /// 学籍状态
  151. /// </summary>
  152. [DisplayName("学籍状态")]
  153. public string StudentStatusName
  154. {
  155. get
  156. {
  157. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StudentStatus.ToString()).Where(x => x.Value == StudentStatus).Select(x => x.Name).FirstOrDefault();
  158. }
  159. }
  160. /// <summary>
  161. /// 班级信息ID
  162. /// </summary>
  163. [DisplayName("班级信息ID")]
  164. public Guid? ClassmajorID { get; set; }
  165. /// <summary>
  166. /// 班级编号
  167. /// </summary>
  168. [DisplayName("班级编号")]
  169. public string ClassmajorNo { get; set; }
  170. /// <summary>
  171. /// 班级名称
  172. /// </summary>
  173. [DisplayName("班级名称")]
  174. public string ClassmajorName { get; set; }
  175. /// <summary>
  176. /// 班序
  177. /// </summary>
  178. [DisplayName("班序")]
  179. public int? ClassNum { get; set; }
  180. /// <summary>
  181. /// 专业ID(Value)
  182. /// </summary>
  183. [DisplayName("专业ID(Value)")]
  184. public int? StandardID { get; set; }
  185. /// <summary>
  186. /// 专业代码
  187. /// </summary>
  188. [DisplayName("专业代码")]
  189. public string StandardCode
  190. {
  191. get
  192. {
  193. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()).Where(x => x.Value == StandardID).Select(x => x.Code).FirstOrDefault();
  194. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  195. }
  196. }
  197. /// <summary>
  198. /// 专业名称
  199. /// </summary>
  200. [DisplayName("专业名称")]
  201. public string StandardName
  202. {
  203. get
  204. {
  205. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()).Where(x => x.Value == StandardID).Select(x => x.Name).FirstOrDefault();
  206. }
  207. }
  208. /// <summary>
  209. /// 培养层次
  210. /// </summary>
  211. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  212. public int? EducationID { get; set; }
  213. /// <summary>
  214. /// 培养层次
  215. /// </summary>
  216. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  217. public string EducationName
  218. {
  219. get
  220. {
  221. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString()).Where(x => x.Value == EducationID).Select(x => x.Name).FirstOrDefault();
  222. }
  223. }
  224. /// <summary>
  225. /// 学习形式
  226. /// </summary>
  227. [DisplayName("学习形式")]
  228. public int? LearningformID { get; set; }
  229. /// <summary>
  230. /// 学习形式
  231. /// </summary>
  232. [DisplayName("学习形式")]
  233. public string LearningformName
  234. {
  235. get
  236. {
  237. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString()).Where(x => x.Value == LearningformID).Select(x => x.Name).FirstOrDefault();
  238. }
  239. }
  240. /// <summary>
  241. /// 学制
  242. /// </summary>
  243. [DisplayName("学制")]
  244. public decimal? LearnSystem { get; set; }
  245. /// <summary>
  246. /// 院系专业ID
  247. /// </summary>
  248. [DisplayName("院系专业ID")]
  249. public Guid? FacultymajorID { get; set; }
  250. /// <summary>
  251. /// 院系专业编号
  252. /// </summary>
  253. [DisplayName("院系专业编号")]
  254. public string FacultymajorCode { get; set; }
  255. /// <summary>
  256. /// 院系专业名称
  257. /// </summary>
  258. [DisplayName("院系专业名称")]
  259. public string FacultymajorName { get; set; }
  260. /// <summary>
  261. /// 年级
  262. /// </summary>
  263. [DisplayName("年级")]
  264. public int? GradeID { get; set; }
  265. /// <summary>
  266. /// 年级
  267. /// </summary>
  268. [DisplayName("年级")]
  269. public string GradeName
  270. {
  271. get
  272. {
  273. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Grade.ToString()).Where(x => x.Value == GradeID).Select(x => x.Name).FirstOrDefault();
  274. }
  275. }
  276. /// <summary>
  277. /// 学期(入学)
  278. /// </summary>
  279. [DisplayName("学期")]
  280. public int? SemesterID { get; set; }
  281. /// <summary>
  282. /// 学期(入学)
  283. /// </summary>
  284. [DisplayName("学期")]
  285. public string SemesterName
  286. {
  287. get
  288. {
  289. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Semester.ToString()).Where(x => x.Value == SemesterID).Select(x => x.Name).FirstOrDefault();
  290. }
  291. }
  292. /// <summary>
  293. /// 入学学年学期ID
  294. /// </summary>
  295. [DisplayName("入学学年学期ID")]
  296. public Guid? StartSchoolyearID { get; set; }
  297. /// <summary>
  298. /// 入学学年学期对应的Value值
  299. /// </summary>
  300. [DisplayName("StartSchoolyearValue")]
  301. public int? StartSchoolyearValue { get; set; }
  302. /// <summary>
  303. /// 入学学年学期
  304. /// </summary>
  305. [DisplayName("入学学年学期")]
  306. public string StartSchoolyearCode { get; set; }
  307. /// <summary>
  308. /// 年级专业ID
  309. /// </summary>
  310. [DisplayName("年级专业ID")]
  311. public Guid? GrademajorID { get; set; }
  312. /// <summary>
  313. /// 年级专业编号
  314. /// </summary>
  315. [DisplayName("年级专业编号")]
  316. public string GrademajorCode { get; set; }
  317. /// <summary>
  318. /// 年级专业名称
  319. /// </summary>
  320. [DisplayName("年级专业名称")]
  321. public string GrademajorName { get; set; }
  322. // <summary>
  323. /// 毕业学期
  324. /// </summary>
  325. [DisplayName("毕业学期")]
  326. public Guid? GraduateSchoolyearID { get; set; }
  327. /// <summary>
  328. /// 毕业学期Value
  329. /// </summary>
  330. [DisplayName("GraduateSchoolyearValue")]
  331. public int? GraduateSchoolyearValue { get; set; }
  332. /// <summary>
  333. /// 毕业学期
  334. /// </summary>
  335. [DisplayName("毕业学期")]
  336. public string GraduateSchoolyearCode { get; set; }
  337. /// <summary>
  338. /// 院系所ID
  339. /// </summary>
  340. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  341. public Guid? CollegeID { get; set; }
  342. /// <summary>
  343. /// 院系所代码
  344. /// </summary>
  345. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  346. public string CollegeNo { get; set; }
  347. /// <summary>
  348. /// 院系所
  349. /// </summary>
  350. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  351. public string CollegeName { get; set; }
  352. /// <summary>
  353. /// 校区ID
  354. /// </summary>
  355. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  356. public Guid? CampusID { get; set; }
  357. /// <summary>
  358. /// 校区代码
  359. /// </summary>
  360. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  361. public string CampusCode { get; set; }
  362. /// <summary>
  363. /// 校区名称
  364. /// </summary>
  365. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  366. public string CampusName { get; set; }
  367. /// <summary>
  368. /// 预计毕业日期
  369. /// </summary>
  370. [DisplayName("预计毕业日期")]
  371. [DataType(DataType.Date)]
  372. public DateTime? PlanningGraduateDate { get; set; }
  373. /// <summary>
  374. /// 毕业日期
  375. /// </summary>
  376. [DisplayName("毕业日期")]
  377. [DataType(DataType.Date)]
  378. public DateTime? GraduateDate { get; set; }
  379. }
  380. }