StudentsView.cs 27 KB

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