StudentsView.cs 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.ComponentModel;
  7. using EMIS.ViewModel.CacheManage;
  8. namespace EMIS.ViewModel.Students
  9. {
  10. public class StudentsView
  11. {
  12. /// <summary>
  13. /// 用户ID
  14. /// </summary>
  15. [DisplayName("用户ID")]
  16. public Guid UserID { get; set; }
  17. /// <summary>
  18. /// 学号
  19. /// </summary>
  20. [Required]
  21. [RegularExpression(@"^[0-9a-zA-Z\s?]+$", ErrorMessage = "只能输入数字和英文字母")]
  22. [DisplayName("学号")]
  23. public string LoginID { get; set; }
  24. /// <summary>
  25. /// 姓名
  26. /// </summary>
  27. [Required]
  28. [DisplayName("姓名")]
  29. public string UserName { get; set; }
  30. public string Name
  31. {
  32. get
  33. {
  34. return UserName;
  35. }
  36. }
  37. /// <summary>
  38. /// 性别
  39. /// </summary>
  40. [Required]
  41. [DisplayName("性别")]
  42. public int? SexID { get; set; }
  43. /// <summary>
  44. /// 性别名称
  45. /// </summary>
  46. [DisplayName("性别")]
  47. public string SexName
  48. {
  49. get
  50. {
  51. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
  52. .Where(x => x.Value == SexID)
  53. .Select(x => x.Name).FirstOrDefault();
  54. }
  55. }
  56. /// <summary>
  57. /// 证件类型
  58. /// </summary>
  59. [Required]
  60. [DisplayName("证件类型")]
  61. public int? CertificatesType { get; set; }
  62. /// <summary>
  63. /// 证件号码
  64. /// </summary>
  65. [Required]
  66. [DisplayName("证件号码")]
  67. public string IDNumber { get; set; }
  68. /// <summary>
  69. /// 班级名称
  70. /// </summary>
  71. [Required]
  72. [DisplayName("班级名称")]
  73. public Guid? ClassMajorID { get; set; }
  74. /// <summary>
  75. /// 班级编号
  76. /// </summary>
  77. [DisplayName("班级编号")]
  78. public string ClassMajorCode { get; set; }
  79. /// <summary>
  80. /// 班级名称
  81. /// </summary>
  82. [DisplayName("班级名称")]
  83. public string ClassMajorName { get; set; }
  84. /// <summary>
  85. /// 班号
  86. /// </summary>
  87. [DisplayName("班号")]
  88. public int? ClassNum { get; set; }
  89. /// <summary>
  90. /// 班号
  91. /// </summary>
  92. [DisplayName("班号")]
  93. public string ClassNumStr {
  94. get
  95. {
  96. if (ClassNum.HasValue)
  97. {
  98. return ClassNum.ToString();
  99. }
  100. else
  101. {
  102. return "";
  103. }
  104. }
  105. }
  106. /// <summary>
  107. /// 照片
  108. /// </summary>
  109. [DisplayName("照片")]
  110. public string PhotoUrl { get; set; }
  111. /// <summary>
  112. /// 学籍状态
  113. /// </summary>
  114. [Required]
  115. [DisplayName("学籍状态")]
  116. public int? StudentStatus { get; set; }
  117. /// <summary>
  118. /// 学籍状态名称
  119. /// </summary>
  120. [DisplayName("学籍状态")]
  121. public string StudentStatusName
  122. {
  123. get
  124. {
  125. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StudentStatus.ToString())
  126. .Where(x => x.Value == StudentStatus).Select(x => x.Name).FirstOrDefault();
  127. }
  128. }
  129. /// <summary>
  130. /// 学生类别
  131. /// </summary>
  132. [Required]
  133. [DisplayName("学生类别")]
  134. public int? StudentType { get; set; }
  135. /// <summary>
  136. /// 学生类别名称
  137. /// </summary>
  138. [DisplayName("学生类别名称")]
  139. public string StudentTypeName
  140. {
  141. get
  142. {
  143. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_STUDENTTYPE.ToString())
  144. .Where(x => x.Value == StudentType)
  145. .Select(x => x.Name).FirstOrDefault();
  146. }
  147. }
  148. /// <summary>
  149. /// 学籍卡编号
  150. /// </summary>
  151. [DisplayName("学籍卡编号")]
  152. public string StudentCardNo { get; set; }
  153. /// <summary>
  154. /// 学籍卡编号
  155. /// </summary>
  156. [DisplayName("办学类型")]
  157. public string BXLX { get; set; }
  158. /// <summary>
  159. /// 培养方式
  160. /// </summary>
  161. [DisplayName("培养方式")]
  162. public int? CultureModel { get; set; }
  163. /// <summary>
  164. /// 培养方式
  165. /// </summary>
  166. [DisplayName("培养方式名称")]
  167. public string CultureModelName
  168. {
  169. get
  170. {
  171. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CULTUREMODEL.ToString())
  172. .Where(x => x.Value == CultureModel)
  173. .Select(x => x.Name).FirstOrDefault();
  174. }
  175. }
  176. /// <summary>
  177. /// 毕结业证书编号
  178. /// </summary>
  179. [DisplayName("毕结业证书编号")]
  180. public string GraduateCardNo { get; set; }
  181. /// <summary>
  182. /// 毕业结论
  183. /// </summary>
  184. [Required]
  185. [DisplayName("毕业结论")]
  186. public int? GraduationResult { get; set; }
  187. /// <summary>
  188. /// 校长名
  189. /// </summary>
  190. [DisplayName("校长名")]
  191. public string HeadMasterName { get; set; }
  192. /// <summary>
  193. /// 毕业结论
  194. /// </summary>
  195. [DisplayName("毕业结论")]
  196. public string GraduationResultName
  197. {
  198. get
  199. {
  200. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString())
  201. .Where(x => x.Value == GraduationResult)
  202. .Select(x => x.Name).FirstOrDefault();
  203. }
  204. }
  205. /// <summary>
  206. /// 预计毕业日期
  207. /// </summary>
  208. [DisplayName("预计毕业日期")]
  209. [DataType(DataType.Date)]
  210. [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
  211. public DateTime? PlanningGraduateDate { get; set; }
  212. public string PlanningGraduateStr { get; set; }
  213. public DateTime? PlanningGraduateDateStr { get; set; }
  214. [DisplayName("预计毕业学年学期")]
  215. public Guid? PlanningGraduateSchoolYearID { get; set; }
  216. [DisplayName("预计毕业年")]
  217. public int? PlanningGraduateYear { get; set; }
  218. [DisplayName("预计毕业学期")]
  219. public int? PlanningGraduateSchoolCodeID { get; set; }
  220. [DisplayName("预计毕业学期代码")] //CF_Schoolcode 值
  221. public int? PlanningGraduateSchoolCode { get; set; }
  222. [DisplayName("预计毕业学期名称")] //CF_Schoolcode Name 春季或秋季
  223. public string PlanningGraduateSchoolCodeName { get; set; }
  224. /// <summary>
  225. /// 在校状态
  226. /// </summary>
  227. [DisplayName("在校状态")]
  228. [Required]
  229. public int? InSchoolStatusID { get; set; }
  230. /// <summary>
  231. /// 在校状态名称
  232. /// </summary>
  233. [DisplayName("在校状态")]
  234. public string InSchoolStatusName
  235. {
  236. get
  237. {
  238. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString())
  239. .Where(x => x.Value == InSchoolStatusID)
  240. .Select(x => x.Name).FirstOrDefault();
  241. }
  242. }
  243. /// <summary>
  244. /// 报到状态
  245. /// </summary>
  246. [DisplayName("报到状态")]
  247. public int? ReportStatusID { get; set; }
  248. /// <summary>
  249. /// 报到状态Name
  250. /// </summary>
  251. [DisplayName("报到状态")]
  252. public string ReportStatusName
  253. {
  254. get
  255. {
  256. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ReportStatus.ToString())
  257. .Where(x => x.Value == ReportStatusID)
  258. .Select(x => x.Name).FirstOrDefault();
  259. }
  260. }
  261. /// <summary>
  262. ///曾用名
  263. /// </summary>
  264. [DisplayName("曾用名")]
  265. public string UsedName { get; set; }
  266. /// <summary>
  267. /// 导师姓名
  268. /// </summary>
  269. [DisplayName("导师姓名")]
  270. public string DirectorName { get; set; }
  271. /// <summary>
  272. /// 出生日期
  273. /// </summary>
  274. [DisplayName("出生日期")]
  275. [DataType(DataType.Date)]
  276. [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
  277. public DateTime? BirthDate { get; set; }
  278. /// <summary>
  279. /// 毕业日期
  280. /// </summary>
  281. [DisplayName("毕业日期")]
  282. [DataType(DataType.Date)]
  283. [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
  284. public DateTime? GraduateDate { get; set; }
  285. /// <summary>
  286. /// 国籍
  287. /// </summary>
  288. [DisplayName("国籍")]
  289. public string Country { get; set; }
  290. /// <summary>
  291. /// 政治面貌
  292. /// </summary>
  293. [DisplayName("政治面貌")]
  294. [Required]
  295. public int? Politics { get; set; }
  296. //<summary>
  297. //政治面貌
  298. //</summary>
  299. [DisplayName("政治面貌")]
  300. public string PoliticsName
  301. {
  302. get
  303. {
  304. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Politics.ToString())
  305. .Where(x => x.Value == Politics)
  306. .Select(x => x.Name).FirstOrDefault();
  307. }
  308. }
  309. /// <summary>
  310. /// 民族
  311. /// </summary>
  312. [DisplayName("民族")]
  313. public int? Nation { get; set; }
  314. /// <summary>
  315. /// 籍贯
  316. /// </summary>
  317. [DisplayName("籍贯")]
  318. public string Place { get; set; }
  319. /// <summary>
  320. /// 健康状态
  321. /// </summary>
  322. [DisplayName("健康状态")]
  323. public int? Healthy { get; set; }
  324. /// <summary>
  325. /// 血型
  326. /// </summary>
  327. [DisplayName("血型")]
  328. public int? BloodGroup { get; set; }
  329. /// <summary>
  330. /// 血型名称
  331. /// </summary>
  332. [DisplayName("血型名称")]
  333. public string BloodGroupName
  334. {
  335. get
  336. {
  337. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_BLOODGROUP.ToString())
  338. .Where(x => x.Value == BloodGroup)
  339. .Select(x => x.Name).FirstOrDefault();
  340. }
  341. }
  342. ///// <summary>
  343. ///// 出生地
  344. ///// </summary>
  345. //[DisplayName("出生地")]
  346. //public string BornPlace { get; set; }
  347. /// <summary>
  348. /// 特长
  349. /// </summary>
  350. [DisplayName("特长")]
  351. public string Specialty { get; set; }
  352. /// <summary>
  353. /// 身高
  354. /// </summary>
  355. [DisplayName("身高")]
  356. public string Height { get; set; }
  357. /// <summary>
  358. /// 体重
  359. /// </summary>
  360. [DisplayName("体重")]
  361. public string Weight { get; set; }
  362. /// <summary>
  363. /// 备注
  364. /// </summary>
  365. [DisplayName("备注")]
  366. public string Remarks { get; set; }
  367. /// <summary>
  368. /// 毕业照片
  369. /// </summary>
  370. [DisplayName("毕业照片")]
  371. public string GraduationPictureUrl { get; set; }
  372. /// <summary>
  373. /// 电子邮件
  374. /// </summary>
  375. [DisplayName("电子邮件")]
  376. public string Email { get; set; }
  377. /// <summary>
  378. /// QQ
  379. /// </summary>
  380. [DisplayName("QQ")]
  381. public string QQ { get; set; }
  382. /// <summary>
  383. /// 微信号
  384. /// </summary>
  385. [DisplayName("微信号")]
  386. public string MicroMsgNo { get; set; }
  387. /// <summary>
  388. /// 移动电话
  389. /// </summary>
  390. [DisplayName("移动电话")]
  391. public string Mobile { get; set; }
  392. /// <summary>
  393. /// 固定电话
  394. /// </summary>
  395. [DisplayName("固定电话")]
  396. public string Telephone { get; set; }
  397. /// <summary>
  398. /// 邮编
  399. /// </summary>
  400. [DisplayName("邮编")]
  401. public string ZipCode { get; set; }
  402. /// <summary>
  403. /// 家庭地址
  404. /// </summary>
  405. [DisplayName("家庭地址")]
  406. public string HomeAddress { get; set; }
  407. /// <summary>
  408. /// 收件人
  409. /// </summary>
  410. [DisplayName("收件人")]
  411. public string Recipient { get; set; }
  412. /// <summary>
  413. /// 工作单位
  414. /// </summary>
  415. [DisplayName("工作单位")]
  416. public string WorkUnit { get; set; }
  417. /// <summary>
  418. /// 通信地址
  419. /// </summary>
  420. [DisplayName("通信地址")]
  421. public string Address { get; set; }
  422. /// <summary>
  423. /// 宿舍编号
  424. /// </summary>
  425. [DisplayName("宿舍编号")]
  426. public string Dormitory { get; set; }
  427. /// <summary>
  428. /// 银行卡号
  429. /// </summary>
  430. [DisplayName("银行卡号")]
  431. public string CardNo { get; set; }
  432. [DisplayName("周数")]
  433. public int WeeksNum { get; set; }
  434. /// <summary>
  435. /// 开户银行
  436. /// </summary>
  437. [DisplayName("开户银行")]
  438. public string BankName { get; set; }
  439. /// <summary>
  440. /// 考生号
  441. /// </summary>
  442. [DisplayName("考生号")]
  443. public string ExamineeNum { get; set; }
  444. /// <summary>
  445. /// 考生类别
  446. /// </summary>
  447. [DisplayName("考生类别")]
  448. public int? ExamineeType { get; set; }
  449. /// <summary>
  450. /// 入学日期
  451. /// </summary>
  452. [DisplayName("入学日期")]
  453. [DataType(DataType.Date)]
  454. [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
  455. public DateTime? EntranceDate { get; set; }
  456. /// <summary>
  457. /// 入学学期
  458. /// </summary>
  459. [Required]
  460. [DisplayName("入学学期")]
  461. public Guid? EnteringSchoolYearID { get; set; }
  462. /// <summary>
  463. /// 入学学期
  464. /// </summary>
  465. [DisplayName("入学学期")]
  466. public string EnteringSchoolYearCode { get; set; }
  467. /// <summary>
  468. /// 入学方式
  469. /// </summary>
  470. [DisplayName("入学方式")]
  471. public int? EntranceWay { get; set; }
  472. /// <summary>
  473. /// 生源所属地
  474. /// </summary>
  475. [DisplayName("生源所属地")]
  476. public int? Territorial { get; set; }
  477. /// <summary>
  478. /// 生源所属地名称
  479. /// </summary>
  480. [DisplayName("生源所属地名称")]
  481. public string TerritorialName
  482. {
  483. get
  484. {
  485. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Province.ToString())
  486. .Where(x => x.Value == Territorial)
  487. .Select(x => x.Name).FirstOrDefault();
  488. }
  489. }
  490. /// <summary>
  491. /// 来源地区
  492. /// </summary>
  493. [DisplayName("来源地区")]
  494. public string Area { get; set; }
  495. /// <summary>
  496. /// 高考总分
  497. /// </summary>
  498. [DisplayName("高考总分")]
  499. public decimal? Score { get; set; }
  500. /// <summary>
  501. /// 考生特征
  502. /// </summary>
  503. [DisplayName("考生特征")]
  504. public int? Features { get; set; }
  505. /// <summary>
  506. /// 年级
  507. /// </summary>
  508. [DisplayName("年级")]
  509. public int? Grade { get; set; }
  510. /// <summary>
  511. /// 年级
  512. /// </summary>
  513. [DisplayName("年级")]
  514. public int? Years { get; set; }
  515. /// <summary>
  516. /// 出生地
  517. /// </summary>
  518. [DisplayName("出生地")]
  519. public string Placebirth { get; set; }
  520. /// <summary>
  521. /// 民族姓名
  522. /// </summary>
  523. [DisplayName("民族")]
  524. public string NationName
  525. {
  526. get
  527. {
  528. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Nation.ToString())
  529. .Where(x => x.Value == Nation)
  530. .Select(x => x.Name).FirstOrDefault();
  531. }
  532. }
  533. /// <summary>
  534. /// 校区ID
  535. /// </summary>
  536. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusID")]
  537. public Guid? CampusID { get; set; }
  538. /// <summary>
  539. /// 校区ID
  540. /// </summary>
  541. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  542. public string CampusName { get; set; }
  543. /// <summary>
  544. /// 办学类型
  545. /// </summary>
  546. [DisplayName("办学类型")]
  547. public int? SchoolTypeID { get; set; }
  548. /// <summary>
  549. /// 办学类型
  550. /// </summary>
  551. [DisplayName("办学类型")]
  552. public string SchoolTypeName
  553. {
  554. get
  555. {
  556. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolType.ToString())
  557. .Where(x => x.Value == SchoolTypeID)
  558. .Select(x => x.Name).FirstOrDefault();
  559. }
  560. }
  561. /// <summary>
  562. /// 学院ID
  563. /// </summary>
  564. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  565. public Guid? CollegeID { get; set; }
  566. public string CollegeCode { get; set; }
  567. /// <summary>
  568. /// 学院
  569. /// </summary>
  570. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  571. public string CollegeName { get; set; }
  572. /// <summary>
  573. /// 培养层次
  574. /// </summary>
  575. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  576. public int? EducationID { get; set; }
  577. /// <summary>
  578. /// 院校代码
  579. /// </summary>
  580. [DisplayName("院校代码")]
  581. public string SchoolCode { get; set; }
  582. /// <summary>
  583. /// 院校名称
  584. /// </summary>
  585. [DisplayName("院校名称")]
  586. public string SchoolName { get; set; }
  587. /// <summary>
  588. /// 学制
  589. /// </summary>
  590. [DisplayName("学制")]
  591. public decimal? LearnSystem { get; set; }
  592. /// <summary>
  593. /// 培养方案
  594. /// </summary>
  595. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  596. public string EducationName
  597. {
  598. get
  599. {
  600. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString())
  601. .Where(x => x.Value == EducationID)
  602. .Select(x => x.Name).FirstOrDefault();
  603. }
  604. }
  605. /// <summary>
  606. /// 标准专业
  607. /// </summary>
  608. [DisplayName("标准专业")]
  609. public int? StandardID { get; set; }
  610. /// <summary>
  611. /// 专业代码
  612. /// </summary>
  613. [DisplayName("专业代码")]
  614. public string StandardCode
  615. {
  616. get
  617. {
  618. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  619. .Where(x => x.Value == StandardID)
  620. .Select(x => x.Code).FirstOrDefault();
  621. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  622. }
  623. }
  624. /// <summary>
  625. /// 标准专业名称
  626. /// </summary>
  627. [DisplayName("专业名称")]
  628. public string StandardName
  629. {
  630. get
  631. {
  632. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  633. .Where(x => x.Value == StandardID)
  634. .Select(x => x.Name).FirstOrDefault();
  635. }
  636. }
  637. /// <summary>
  638. /// 学习形式
  639. /// </summary>
  640. [DisplayName("学习形式")]
  641. public int? LearningformID { get; set; }
  642. /// <summary>
  643. /// 学习形式
  644. /// </summary>
  645. [DisplayName("学习形式")]
  646. public string LearningformName
  647. {
  648. get
  649. {
  650. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString())
  651. .Where(x => x.Value == LearningformID)
  652. .Select(x => x.Name).FirstOrDefault();
  653. }
  654. }
  655. /// <summary>
  656. /// 证件名称
  657. /// </summary>
  658. [DisplayName("证件名称")]
  659. public string CertificatesTypeName
  660. {
  661. get
  662. {
  663. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CertificatesType.ToString())
  664. .Where(x => x.Value == CertificatesType)
  665. .Select(x => x.Name).FirstOrDefault();
  666. }
  667. }
  668. /// <summary>
  669. /// 考生类别
  670. /// </summary>
  671. [DisplayName("考生类别")]
  672. public string ExamineeTypeName
  673. {
  674. get
  675. {
  676. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_EXAMINEETYPE.ToString())
  677. .Where(x => x.Value == ExamineeType)
  678. .Select(x => x.Name).FirstOrDefault();
  679. }
  680. }
  681. /// <summary>
  682. /// 入学方式
  683. /// </summary>
  684. [DisplayName("入学方式")]
  685. public string EntranceWayName
  686. {
  687. get
  688. {
  689. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_EntranceWay.ToString())
  690. .Where(x => x.Value == EntranceWay)
  691. .Select(x => x.Name).FirstOrDefault();
  692. }
  693. }
  694. /// <summary>
  695. /// 考生特征
  696. /// </summary>
  697. [DisplayName("考生特征")]
  698. public string FeaturesName
  699. {
  700. get
  701. {
  702. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Features.ToString())
  703. .Where(x => x.Value == Features)
  704. .Select(x => x.Name).FirstOrDefault();
  705. }
  706. }
  707. /// <summary>
  708. /// 健康状态
  709. /// </summary>
  710. [DisplayName("健康状态")]
  711. public string HealthyName
  712. {
  713. get
  714. {
  715. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_HealthState.ToString())
  716. .Where(x => x.Value == Healthy)
  717. .Select(x => x.Name).FirstOrDefault();
  718. }
  719. }
  720. /// <summary>
  721. /// 年级专业ID
  722. /// </summary>
  723. public Guid? GradeMajorID { get; set; }
  724. /// <summary>
  725. /// 临时记录ID
  726. /// 用于记录异动涉及更新表的相关ID
  727. /// </summary>
  728. public Guid? TepTableID { get; set; }
  729. /// <summary>
  730. /// 年级专业代码
  731. /// </summary>
  732. [DisplayName("专业代码")]
  733. public string GradeMajorCode { get; set; }
  734. /// <summary>
  735. /// 年级专业名称
  736. /// </summary>
  737. [DisplayName("年级专业名称")]
  738. public string GradeMajorName { get; set; }
  739. /// <summary>
  740. /// 院系所专业
  741. /// </summary>
  742. [DisplayName("院系所专业")]
  743. public string FacultymajorName { get; set; }
  744. ///// <summary>
  745. ///// 毕结业证书编号
  746. ///// </summary>
  747. //[DisplayName("毕结业证书编号")]
  748. //public string GraduationNumber { get; set; }
  749. /// <summary>
  750. ///是否有照片
  751. /// </summary>
  752. [DisplayName("是否有照片")]
  753. public int IsPhoto
  754. {
  755. get;
  756. set;
  757. }
  758. /// <summary>
  759. /// 是否核对
  760. /// </summary>
  761. [DisplayName("是否核对")]
  762. public bool? IsProofread { get; set; }
  763. /// <summary>
  764. /// 是否核对
  765. /// </summary>
  766. [DisplayName("是否核对")]
  767. public string IsProofreadStr
  768. {
  769. get { return this.IsProofread == null ? "" : (IsProofread == true ? "是":"否"); }
  770. }
  771. /// <summary>
  772. ///是否有照片
  773. /// </summary>
  774. [DisplayName("是否有照片")]
  775. public string IsPhotoUrl
  776. {
  777. get;
  778. set;
  779. }
  780. /// <summary>
  781. /// 圆梦计划
  782. /// </summary>
  783. [Required]
  784. [DisplayName("圆梦计划")]
  785. public bool IsDreamProject { get; set; }
  786. /// <summary>
  787. /// 在校经历
  788. /// </summary>
  789. [DisplayName("在校经历")]
  790. public string Career { get; set; }
  791. /// <summary>
  792. /// 是否是圆梦计划
  793. /// </summary>
  794. [DisplayName("是否是圆梦计划")]
  795. public string IsDreamProjectName
  796. {
  797. get { return this.IsDreamProject != true ? "否" : "是"; }
  798. }
  799. /// <summary>
  800. /// 补考次数
  801. /// </summary>
  802. [DisplayName("补考次数")]
  803. public int MakeupNum { get; set; }
  804. /// <summary>
  805. /// 是否可以修改
  806. /// </summary>
  807. public bool IsCanChange { get; set; }
  808. public string AdmissionTicketNo { get; set; }
  809. public bool LoginIDToPicture { get; set; }
  810. public string ExportPictureType { get; set; }
  811. /// <summary>
  812. /// 补证号
  813. /// </summary>
  814. [DisplayName("补证号")]
  815. public string ReplaceGraduateNo { get; set; }
  816. /// <summary>
  817. /// 文化程度
  818. /// </summary>
  819. [DisplayName("文化程度")]
  820. public int? LiteracyLevels { get; set; }
  821. /// <summary>
  822. /// 文化程度
  823. /// </summary>
  824. [DisplayName("文化程度")]
  825. public string LiteracyLevelsStr { get; set; }
  826. /// <summary>
  827. /// 文化程度
  828. /// </summary>
  829. [DisplayName("文化程度")]
  830. public string LiteracyLevelsName
  831. {
  832. get
  833. {
  834. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_LiteracyLevel.ToString())
  835. .Where(x => x.Value == LiteracyLevels)
  836. .Select(x => x.Name).FirstOrDefault();
  837. }
  838. }
  839. }
  840. }