GraduateCardApplyView.cs 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539
  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.GraduationManage.GraduateCardManage
  9. {
  10. public class GraduateCardApplyView
  11. {
  12. /// <summary>
  13. /// 去向申请ID
  14. /// </summary>
  15. [DisplayName("去向申请ID")]
  16. public Guid GraduateCardApplyID { get; set; }
  17. /// <summary>
  18. /// 用户ID
  19. /// </summary>
  20. [Required]
  21. [DisplayName("用户ID")]
  22. public Guid? UserID { get; set; }
  23. /// <summary>
  24. /// 学号
  25. /// </summary>
  26. [DisplayName("学号")]
  27. public string StudentNo { get; set; }
  28. /// <summary>
  29. /// 姓名
  30. /// </summary>
  31. [DisplayName("姓名")]
  32. public string UserName { get; set; }
  33. /// <summary>
  34. /// 考生号
  35. /// </summary>
  36. [DisplayName("考生号")]
  37. public string ExamineeNum { get; set; }
  38. /// <summary>
  39. /// 身份证号
  40. /// </summary>
  41. [DisplayName("身份证号")]
  42. public string IDNumber { get; set; }
  43. /// <summary>
  44. /// 性别
  45. /// </summary>
  46. [DisplayName("性别")]
  47. public int? SexID { get; set; }
  48. /// <summary>
  49. /// 性别
  50. /// </summary>
  51. [DisplayName("性别")]
  52. public string SexName
  53. {
  54. get
  55. {
  56. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
  57. .Where(x => x.Value == SexID)
  58. .Select(x => x.Name).FirstOrDefault();
  59. }
  60. }
  61. /// <summary>
  62. /// 出生日期
  63. /// </summary>
  64. [DisplayName("出生日期")]
  65. public DateTime? BirthDate { get; set; }
  66. /// <summary>
  67. /// 民族
  68. /// </summary>
  69. [DisplayName("民族")]
  70. public int? NationID { get; set; }
  71. /// <summary>
  72. /// 民族
  73. /// </summary>
  74. [DisplayName("民族")]
  75. public string NationName
  76. {
  77. get
  78. {
  79. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Nation.ToString())
  80. .Where(x => x.Value == NationID)
  81. .Select(x => x.Name).FirstOrDefault();
  82. }
  83. }
  84. /// <summary>
  85. /// 政治面貌
  86. /// </summary>
  87. [DisplayName("政治面貌")]
  88. public int? PoliticsID { get; set; }
  89. /// <summary>
  90. /// 政治面貌
  91. /// </summary>
  92. [DisplayName("政治面貌")]
  93. public string PoliticsName
  94. {
  95. get
  96. {
  97. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Politics.ToString())
  98. .Where(x => x.Value == PoliticsID)
  99. .Select(x => x.Name).FirstOrDefault();
  100. }
  101. }
  102. /// <summary>
  103. /// 入学日期
  104. /// </summary>
  105. [DisplayName("入学日期")]
  106. public DateTime? EntranceDate { get; set; }
  107. /// <summary>
  108. /// 邮政编码
  109. /// </summary>
  110. [DisplayName("邮政编码")]
  111. public string ZIPCode { get; set; }
  112. /// <summary>
  113. /// 联系电话
  114. /// </summary>
  115. [DisplayName("联系电话")]
  116. public string Telephone { get; set; }
  117. /// <summary>
  118. /// 移动电话
  119. /// </summary>
  120. [DisplayName("移动电话")]
  121. public string Mobile { get; set; }
  122. /// <summary>
  123. /// 通讯地址
  124. /// </summary>
  125. [DisplayName("通讯地址")]
  126. public string Address { get; set; }
  127. /// <summary>
  128. /// 在校状态
  129. /// </summary>
  130. [Required]
  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())
  142. .Where(x => x.Value == InSchoolStatusID)
  143. .Select(x => x.Name).FirstOrDefault();
  144. }
  145. }
  146. /// <summary>
  147. /// 学籍状态
  148. /// </summary>
  149. [DisplayName("学籍状态")]
  150. public int? StudentStatusID { get; set; }
  151. /// <summary>
  152. /// 学籍状态
  153. /// </summary>
  154. [DisplayName("学籍状态")]
  155. public string StudentStatusName
  156. {
  157. get
  158. {
  159. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StudentStatus.ToString())
  160. .Where(x => x.Value == StudentStatusID).Select(x => x.Name).FirstOrDefault();
  161. }
  162. }
  163. /// <summary>
  164. /// 班级信息ID
  165. /// </summary>
  166. [Required]
  167. [DisplayName("班级信息ID")]
  168. public Guid? ClassID { get; set; }
  169. /// <summary>
  170. /// 班级编号
  171. /// </summary>
  172. [DisplayName("班级编号")]
  173. public string ClassNo { get; set; }
  174. /// <summary>
  175. /// 班级名称
  176. /// </summary>
  177. [DisplayName("班级名称")]
  178. public string ClassName { get; set; }
  179. /// <summary>
  180. /// 年级专业ID
  181. /// </summary>
  182. [Required]
  183. [DisplayName("年级专业ID")]
  184. public Guid? GrademajorID { get; set; }
  185. /// <summary>
  186. /// 年级专业编号
  187. /// </summary>
  188. [DisplayName("年级专业编号")]
  189. public string GrademajorCode { get; set; }
  190. /// <summary>
  191. /// 年级专业名称
  192. /// </summary>
  193. [DisplayName("年级专业名称")]
  194. public string GrademajorName { get; set; }
  195. /// <summary>
  196. /// 院系专业ID
  197. /// </summary>
  198. [DisplayName("院系专业ID")]
  199. public Guid? FacultymajorID { get; set; }
  200. /// <summary>
  201. /// 院系专业编号
  202. /// </summary>
  203. [DisplayName("院系专业编号")]
  204. public string FacultymajorNo { get; set; }
  205. /// <summary>
  206. /// 院系专业名称
  207. /// </summary>
  208. [DisplayName("院系专业名称")]
  209. public string FacultymajorName { get; set; }
  210. /// <summary>
  211. /// 院系所ID
  212. /// </summary>
  213. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  214. public Guid? CollegeID { get; set; }
  215. /// <summary>
  216. /// 院系所代码
  217. /// </summary>
  218. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  219. public string CollegeNo { get; set; }
  220. /// <summary>
  221. /// 院系所名称
  222. /// </summary>
  223. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  224. public string CollegeName { get; set; }
  225. /// <summary>
  226. /// 校区ID
  227. /// </summary>
  228. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  229. public Guid? CampusID { get; set; }
  230. /// <summary>
  231. /// 校区代码
  232. /// </summary>
  233. [Required]
  234. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  235. public string CampusNo { get; set; }
  236. /// <summary>
  237. /// 校区名称
  238. /// </summary>
  239. [Required]
  240. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
  241. public string CampusName { get; set; }
  242. /// <summary>
  243. /// 年级
  244. /// </summary>
  245. [DisplayName("年级")]
  246. public int? SchoolyearID { get; set; }
  247. /// <summary>
  248. /// 入学学年学期ID
  249. /// </summary>
  250. [DisplayName("入学学年学期ID")]
  251. public Guid? EnteringSchoolYearID { get; set; }
  252. /// <summary>
  253. /// 入学学年学期
  254. /// </summary>
  255. [DisplayName("入学学年学期")]
  256. public string EnteringSchoolYearCode { get; set; }
  257. /// <summary>
  258. /// 专业ID(Value)
  259. /// </summary>
  260. [DisplayName("专业ID(Value)")]
  261. public int? StandardID { get; set; }
  262. /// <summary>
  263. /// 专业代码
  264. /// </summary>
  265. [DisplayName("专业代码")]
  266. public string StandardCode
  267. {
  268. get
  269. {
  270. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  271. .Where(x => x.Value == StandardID)
  272. .Select(x => x.Code).FirstOrDefault();
  273. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  274. }
  275. }
  276. /// <summary>
  277. /// 专业名称
  278. /// </summary>
  279. [DisplayName("专业名称")]
  280. public string StandardName
  281. {
  282. get
  283. {
  284. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  285. .Where(x => x.Value == StandardID)
  286. .Select(x => x.Name).FirstOrDefault();
  287. }
  288. }
  289. /// <summary>
  290. /// 培养层次
  291. /// </summary>
  292. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  293. public int? EducationID { get; set; }
  294. /// <summary>
  295. /// 培养层次
  296. /// </summary>
  297. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  298. public string EducationName
  299. {
  300. get
  301. {
  302. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString())
  303. .Where(x => x.Value == EducationID)
  304. .Select(x => x.Name).FirstOrDefault();
  305. }
  306. }
  307. /// <summary>
  308. /// 培养类型
  309. /// </summary>
  310. [DisplayName("培养类型")]
  311. public int? EducationTypeID { get; set; }
  312. /// <summary>
  313. /// 培养类型
  314. /// </summary>
  315. [DisplayName("培养类型")]
  316. public string EducationTypeName
  317. {
  318. get
  319. {
  320. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_EducationType.ToString())
  321. .Where(x => x.Value == EducationTypeID)
  322. .Select(x => x.Name).FirstOrDefault();
  323. }
  324. }
  325. /// <summary>
  326. /// 学习形式
  327. /// </summary>
  328. [DisplayName("学习形式")]
  329. public int? LearningformID { get; set; }
  330. /// <summary>
  331. /// 学习形式
  332. /// </summary>
  333. [DisplayName("学习形式")]
  334. public string LearningformName
  335. {
  336. get
  337. {
  338. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString())
  339. .Where(x => x.Value == LearningformID)
  340. .Select(x => x.Name).FirstOrDefault();
  341. }
  342. }
  343. /// <summary>
  344. /// 学制
  345. /// </summary>
  346. [DisplayName("学制")]
  347. public decimal? LearnSystem { get; set; }
  348. /// <summary>
  349. /// 毕业类型
  350. /// </summary>
  351. [Required]
  352. [DisplayName("毕业类型")]
  353. public int? GraduationTypeID { get; set; }
  354. /// <summary>
  355. /// 毕业类型
  356. /// </summary>
  357. [DisplayName("毕业类型")]
  358. public string GraduationTypeName
  359. {
  360. get
  361. {
  362. return IdNameExt.GetDictionaryItem(DictionaryItem.ER_GraduationType.ToString())
  363. .Where(x => x.Value == GraduationTypeID)
  364. .Select(x => x.Name).FirstOrDefault();
  365. }
  366. }
  367. /// <summary>
  368. /// 毕业学期ID(实际的毕业学期)
  369. /// </summary>
  370. [Required]
  371. [DisplayName("毕业学期ID")]
  372. public Guid? GraduatingSemesterID { get; set; }
  373. /// <summary>
  374. /// 毕业学期
  375. /// </summary>
  376. [DisplayName("毕业学期")]
  377. public string GraduatingSemesterCode { get; set; }
  378. /// <summary>
  379. /// 毕业学期Value
  380. /// </summary>
  381. [DisplayName("Value")]
  382. public int? GraduatingSemesterValue { get; set; }
  383. /// <summary>
  384. /// 毕业年份
  385. /// </summary>
  386. [DisplayName("毕业年份")]
  387. public int? GraduationYear { get; set; }
  388. /// <summary>
  389. /// 毕业年限
  390. /// </summary>
  391. [DisplayName("毕业年限")]
  392. public decimal? GraduationAgeLimitValue { get; set; }
  393. /// <summary>
  394. /// 已修门数
  395. /// </summary>
  396. [DisplayName("已修门数")]
  397. public int? FinallyScoreCount { get; set; }
  398. /// <summary>
  399. /// 去向结论
  400. /// </summary>
  401. [Required]
  402. [DisplayName("去向结论")]
  403. public int? NeedCardResult { get; set; }
  404. /// <summary>
  405. /// 去向结论
  406. /// </summary>
  407. [DisplayName("去向结论")]
  408. public string NeedCardResultName
  409. {
  410. get
  411. {
  412. return IdNameExt.GetDictionaryItem(DictionaryItem.ER_NeedCardResult.ToString())
  413. .Where(x => x.Value == NeedCardResult)
  414. .Select(x => x.Name).FirstOrDefault();
  415. }
  416. }
  417. /// <summary>
  418. /// 审核状态
  419. /// </summary>
  420. [DisplayName("审核状态")]
  421. public int? ApprovalStatus { get; set; }
  422. /// <summary>
  423. /// 审核状态
  424. /// </summary>
  425. [DisplayName("审核状态")]
  426. public string ApprovalStatusName { get; set; }
  427. /// <summary>
  428. /// 处理动作
  429. /// </summary>
  430. [Required]
  431. [DisplayName("处理动作")]
  432. public string Action { get; set; }
  433. /// <summary>
  434. /// 处理意见
  435. /// </summary>
  436. [DisplayName("处理意见")]
  437. public string Comment { get; set; }
  438. /// <summary>
  439. /// 状态
  440. /// </summary>
  441. [DisplayName("状态")]
  442. public int? RecordStatus { get; set; }
  443. /// <summary>
  444. /// 备注
  445. /// </summary>
  446. [DisplayName("备注")]
  447. public string Remark { get; set; }
  448. /// <summary>
  449. /// 创建人ID
  450. /// </summary>
  451. [DisplayName("创建人ID")]
  452. public Guid? CreateUserID { get; set; }
  453. /// <summary>
  454. /// 创建时间
  455. /// </summary>
  456. [DisplayName("创建时间")]
  457. public DateTime? CreateTime { get; set; }
  458. /// <summary>
  459. /// 修改人ID
  460. /// </summary>
  461. [DisplayName("修改人ID")]
  462. public Guid? ModifyUserID { get; set; }
  463. /// <summary>
  464. /// 修改时间
  465. /// </summary>
  466. [DisplayName("修改时间")]
  467. public DateTime? ModifyTime { get; set; }
  468. }
  469. }