CheckingHistoryView.cs 30 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052
  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 System.Reflection;
  8. using EMIS.ViewModel.CacheManage;
  9. using EMIS.ViewModel.StudentManage.StudentProfile;
  10. namespace EMIS.ViewModel.StudentManage.OnlineChecking
  11. {
  12. public class CheckingHistoryView
  13. {
  14. /// <summary>
  15. /// 主键ID
  16. /// </summary>
  17. [DisplayName("主键ID")]
  18. public Guid StudentRecordChangeHistoryID { get; set; }
  19. /// <summary>
  20. /// 比对表ID
  21. /// </summary>
  22. [Required]
  23. [DisplayName("比对表ID")]
  24. public Guid? StudentContrastID { get; set; }
  25. /// <summary>
  26. /// 校对表名
  27. /// </summary>
  28. [DisplayName("校对表名")]
  29. public string TableName { get; set; }
  30. /// <summary>
  31. /// 校对列名
  32. /// </summary>
  33. [DisplayName("校对列名")]
  34. public string ColumnName { get; set; }
  35. /// <summary>
  36. /// 显示属性
  37. /// </summary>
  38. [DisplayName("显示属性")]
  39. public string DisplayPropertyName { get; set; }
  40. /// <summary>
  41. /// 校对名称
  42. /// </summary>
  43. [DisplayName("校对名称")]
  44. public string Description { get; set; }
  45. /// <summary>
  46. /// 校对类型
  47. /// </summary>
  48. [Required]
  49. [DisplayName("校对类型")]
  50. public int? CheckingTypeID { get; set; }
  51. /// <summary>
  52. /// 校对类型
  53. /// </summary>
  54. [DisplayName("校对类型")]
  55. public string CheckingTypeName
  56. {
  57. get
  58. {
  59. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CheckingType.ToString()).Where(x => x.Value == CheckingTypeID).Select(x => x.Name).FirstOrDefault();
  60. }
  61. }
  62. /// <summary>
  63. /// 用户信息ID
  64. /// </summary>
  65. [Required]
  66. [DisplayName("用户信息ID")]
  67. public Guid? UserID { get; set; }
  68. /// <summary>
  69. /// 学号
  70. /// </summary>
  71. [DisplayName("学号")]
  72. public string StudentNo { get; set; }
  73. /// <summary>
  74. /// 学号
  75. /// </summary>
  76. [DisplayName("学号")]
  77. public string LoginID { get; set; }
  78. /// <summary>
  79. /// 考生号
  80. /// </summary>
  81. [DisplayName("考生号")]
  82. public string ExamineeNum { get; set; }
  83. /// <summary>
  84. /// 准考证号
  85. /// </summary>
  86. [DisplayName("准考证号")]
  87. public string AdmissionTicketNo { get; set; }
  88. /// <summary>
  89. /// 姓名
  90. /// </summary>
  91. [DisplayName("姓名")]
  92. public string Name { get; set; }
  93. /// <summary>
  94. /// 姓名
  95. /// </summary>
  96. [DisplayName("姓名")]
  97. public string UserName { get; set; }
  98. /// <summary>
  99. /// 曾用名
  100. /// </summary>
  101. [DisplayName("曾用名")]
  102. public string UsedName { get; set; }
  103. /// <summary>
  104. /// 班级信息ID
  105. /// </summary>
  106. [DisplayName("班级信息ID")]
  107. public Guid? ClassmajorID { get; set; }
  108. /// <summary>
  109. /// 班级编号
  110. /// </summary>
  111. [DisplayName("班级编号")]
  112. public string ClassmajorNo { get; set; }
  113. /// <summary>
  114. /// 班级名称
  115. /// </summary>
  116. [DisplayName("班级名称")]
  117. public string ClassmajorName { get; set; }
  118. /// <summary>
  119. /// 班序
  120. /// </summary>
  121. [DisplayName("班序")]
  122. public int? ClassNum { get; set; }
  123. /// <summary>
  124. /// 专业ID(Value)
  125. /// </summary>
  126. [DisplayName("专业ID(Value)")]
  127. public int? StandardID { get; set; }
  128. /// <summary>
  129. /// 专业代码
  130. /// </summary>
  131. [DisplayName("专业代码")]
  132. public string StandardCode
  133. {
  134. get
  135. {
  136. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()).Where(x => x.Value == StandardID).Select(x => x.Code).FirstOrDefault();
  137. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  138. }
  139. }
  140. /// <summary>
  141. /// 专业名称
  142. /// </summary>
  143. [DisplayName("专业名称")]
  144. public string StandardName
  145. {
  146. get
  147. {
  148. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()).Where(x => x.Value == StandardID).Select(x => x.Name).FirstOrDefault();
  149. }
  150. }
  151. /// <summary>
  152. /// 培养层次
  153. /// </summary>
  154. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  155. public int? EducationID { get; set; }
  156. /// <summary>
  157. /// 培养层次
  158. /// </summary>
  159. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  160. public string EducationName
  161. {
  162. get
  163. {
  164. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString()).Where(x => x.Value == EducationID).Select(x => x.Name).FirstOrDefault();
  165. }
  166. }
  167. /// <summary>
  168. /// 学习形式
  169. /// </summary>
  170. [DisplayName("学习形式")]
  171. public int? LearningformID { get; set; }
  172. /// <summary>
  173. /// 学习形式
  174. /// </summary>
  175. [DisplayName("学习形式")]
  176. public string LearningformName
  177. {
  178. get
  179. {
  180. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString()).Where(x => x.Value == LearningformID).Select(x => x.Name).FirstOrDefault();
  181. }
  182. }
  183. /// <summary>
  184. /// 学制
  185. /// </summary>
  186. [DisplayName("学制")]
  187. public decimal? LearnSystem { get; set; }
  188. /// <summary>
  189. /// 院系专业ID
  190. /// </summary>
  191. [DisplayName("院系专业ID")]
  192. public Guid? FacultymajorID { get; set; }
  193. /// <summary>
  194. /// 院系专业编号
  195. /// </summary>
  196. [DisplayName("院系专业编号")]
  197. public string FacultymajorCode { get; set; }
  198. /// <summary>
  199. /// 院系专业名称
  200. /// </summary>
  201. [DisplayName("院系专业名称")]
  202. public string FacultymajorName { get; set; }
  203. /// <summary>
  204. /// 年级
  205. /// </summary>
  206. [DisplayName("年级")]
  207. public int? GradeID { get; set; }
  208. /// <summary>
  209. /// 年级
  210. /// </summary>
  211. [DisplayName("年级")]
  212. public string GradeName
  213. {
  214. get
  215. {
  216. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Grade.ToString()).Where(x => x.Value == GradeID).Select(x => x.Name).FirstOrDefault();
  217. }
  218. }
  219. /// <summary>
  220. /// 入学学期
  221. /// </summary>
  222. [DisplayName("入学学期")]
  223. public int? SemesterID { get; set; }
  224. /// <summary>
  225. /// 入学学期
  226. /// </summary>
  227. [DisplayName("入学学期")]
  228. public string SemesterName
  229. {
  230. get
  231. {
  232. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Semester.ToString()).Where(x => x.Value == SemesterID).Select(x => x.Name).FirstOrDefault();
  233. }
  234. }
  235. /// <summary>
  236. /// 年级专业ID
  237. /// </summary>
  238. [DisplayName("年级专业ID")]
  239. public Guid? GrademajorID { get; set; }
  240. /// <summary>
  241. /// 年级专业编号
  242. /// </summary>
  243. [DisplayName("年级专业编号")]
  244. public string GrademajorCode { get; set; }
  245. /// <summary>
  246. /// 年级专业名称
  247. /// </summary>
  248. [DisplayName("年级专业名称")]
  249. public string GrademajorName { get; set; }
  250. /// <summary>
  251. /// 院系所ID
  252. /// </summary>
  253. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  254. public Guid? CollegeID { get; set; }
  255. /// <summary>
  256. /// 院系所代码
  257. /// </summary>
  258. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  259. public string CollegeNo { get; set; }
  260. /// <summary>
  261. /// 院系所
  262. /// </summary>
  263. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  264. public string CollegeName { get; set; }
  265. /// <summary>
  266. /// 校区ID
  267. /// </summary>
  268. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  269. public Guid? CampusID { get; set; }
  270. /// <summary>
  271. /// 校区代码
  272. /// </summary>
  273. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  274. public string CampusCode { get; set; }
  275. /// <summary>
  276. /// 校区名称
  277. /// </summary>
  278. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  279. public string CampusName { get; set; }
  280. /// <summary>
  281. /// 国籍
  282. /// </summary>
  283. [DisplayName("国籍")]
  284. public string Country { get; set; }
  285. /// <summary>
  286. /// 籍贯
  287. /// </summary>
  288. [DisplayName("籍贯")]
  289. public string Place { get; set; }
  290. /// <summary>
  291. /// 出生地
  292. /// </summary>
  293. [DisplayName("出生地")]
  294. public string BornPlace { get; set; }
  295. /// <summary>
  296. /// 性别
  297. /// </summary>
  298. [Required]
  299. [DisplayName("性别")]
  300. public int? SexID { get; set; }
  301. /// <summary>
  302. /// 性别
  303. /// </summary>
  304. [DisplayName("性别")]
  305. public string SexName
  306. {
  307. get
  308. {
  309. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString()).Where(x => x.Value == SexID).Select(x => x.Name).FirstOrDefault();
  310. }
  311. }
  312. /// <summary>
  313. /// 出生日期
  314. /// </summary>
  315. [Required]
  316. [DisplayName("出生日期")]
  317. [DataType(DataType.Date)]
  318. [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
  319. public DateTime? BirthDate { get; set; }
  320. /// <summary>
  321. /// 民族
  322. /// </summary>
  323. [Required]
  324. [DisplayName("民族")]
  325. public int? NationID { get; set; }
  326. /// <summary>
  327. /// 民族
  328. /// </summary>
  329. [DisplayName("民族")]
  330. public string NationName
  331. {
  332. get
  333. {
  334. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Nation.ToString()).Where(x => x.Value == NationID).Select(x => x.Name).FirstOrDefault();
  335. }
  336. }
  337. /// <summary>
  338. /// 政治面貌
  339. /// </summary>
  340. [Required]
  341. [DisplayName("政治面貌")]
  342. public int? PoliticsID { get; set; }
  343. /// <summary>
  344. /// 政治面貌
  345. /// </summary>
  346. [DisplayName("政治面貌")]
  347. public string PoliticsName
  348. {
  349. get
  350. {
  351. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Politics.ToString()).Where(x => x.Value == PoliticsID).Select(x => x.Name).FirstOrDefault();
  352. }
  353. }
  354. /// <summary>
  355. /// 证件类型
  356. /// </summary>
  357. [Required]
  358. [DisplayName("证件类型")]
  359. public int? CertificatesType { get; set; }
  360. /// <summary>
  361. /// 证件类型
  362. /// </summary>
  363. [DisplayName("证件类型")]
  364. public string CertificatesTypeName
  365. {
  366. get
  367. {
  368. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CertificatesType.ToString()).Where(x => x.Value == CertificatesType).Select(x => x.Name).FirstOrDefault();
  369. }
  370. }
  371. /// <summary>
  372. /// 证件号码
  373. /// </summary>
  374. [Required]
  375. [DisplayName("证件号码")]
  376. [RegularExpression(@"^[0-9a-zA-Z\s?]+$", ErrorMessage = "请输入正确的证件号码格式")]
  377. public string IDNumber { get; set; }
  378. /// <summary>
  379. /// 学生类别
  380. /// </summary>
  381. [Required]
  382. [DisplayName("学生类别")]
  383. public int? StudentType { get; set; }
  384. /// <summary>
  385. /// 学生类别
  386. /// </summary>
  387. [DisplayName("学生类别")]
  388. public string StudentTypeName
  389. {
  390. get
  391. {
  392. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_STUDENTTYPE.ToString()).Where(x => x.Value == StudentType).Select(x => x.Name).FirstOrDefault();
  393. }
  394. }
  395. /// <summary>
  396. /// 在校状态
  397. /// </summary>
  398. [Required]
  399. [DisplayName("在校状态")]
  400. public int? InSchoolStatusID { get; set; }
  401. /// <summary>
  402. /// 在校状态
  403. /// </summary>
  404. [DisplayName("在校状态")]
  405. public string InSchoolStatusName
  406. {
  407. get
  408. {
  409. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString()).Where(x => x.Value == InSchoolStatusID).Select(x => x.Name).FirstOrDefault();
  410. }
  411. }
  412. /// <summary>
  413. /// 学籍状态
  414. /// </summary>
  415. [Required]
  416. [DisplayName("学籍状态")]
  417. public int? StudentStatus { get; set; }
  418. /// <summary>
  419. /// 学籍状态
  420. /// </summary>
  421. [DisplayName("学籍状态")]
  422. public string StudentStatusName
  423. {
  424. get
  425. {
  426. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StudentStatus.ToString()).Where(x => x.Value == StudentStatus).Select(x => x.Name).FirstOrDefault();
  427. }
  428. }
  429. /// <summary>
  430. /// 考生类别
  431. /// </summary>
  432. [DisplayName("考生类别")]
  433. public int? ExamineeType { get; set; }
  434. /// <summary>
  435. /// 考生类别
  436. /// </summary>
  437. [DisplayName("考生类别")]
  438. public string ExamineeTypeName
  439. {
  440. get
  441. {
  442. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_EXAMINEETYPE.ToString()).Where(x => x.Value == ExamineeType).Select(x => x.Name).FirstOrDefault();
  443. }
  444. }
  445. /// <summary>
  446. /// 入学日期
  447. /// </summary>
  448. [DisplayName("入学日期")]
  449. public DateTime? EntranceDate { get; set; }
  450. /// <summary>
  451. /// 文化程度
  452. /// </summary>
  453. [DisplayName("文化程度")]
  454. public int? LiteracyLevelID { get; set; }
  455. /// <summary>
  456. /// 文化程度
  457. /// </summary>
  458. [DisplayName("文化程度")]
  459. public string LiteracyLevelName
  460. {
  461. get
  462. {
  463. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_LiteracyLevel.ToString()).Where(x => x.Value == LiteracyLevelID).Select(x => x.Name).FirstOrDefault();
  464. }
  465. }
  466. /// <summary>
  467. /// 培养方式
  468. /// </summary>
  469. [DisplayName("培养方式")]
  470. public int? CultureModelID { get; set; }
  471. /// <summary>
  472. /// 培养方式
  473. /// </summary>
  474. [DisplayName("培养方式")]
  475. public string CultureModelName
  476. {
  477. get
  478. {
  479. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CULTUREMODEL.ToString()).Where(x => x.Value == CultureModelID).Select(x => x.Name).FirstOrDefault();
  480. }
  481. }
  482. /// <summary>
  483. /// 圆梦计划
  484. /// </summary>
  485. [DisplayName("圆梦计划")]
  486. public bool IsDreamProject { get; set; }
  487. /// <summary>
  488. /// 圆梦计划
  489. /// </summary>
  490. [DisplayName("圆梦计划")]
  491. public string IsDreamProjectName
  492. {
  493. get { return this.IsDreamProject != true ? "否" : "是"; }
  494. }
  495. /// <summary>
  496. /// 电子邮箱
  497. /// </summary>
  498. [DisplayName("电子邮箱")]
  499. [RegularExpression(@"^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$", ErrorMessage = "请输入正确的格式")]
  500. public string Email { get; set; }
  501. /// <summary>
  502. /// 家庭电话
  503. /// </summary>
  504. [DisplayName("家庭电话")]
  505. public string Telephone { get; set; }
  506. /// <summary>
  507. /// 移动电话
  508. /// </summary>
  509. [DisplayName("移动电话")]
  510. public string Mobile { get; set; }
  511. /// <summary>
  512. /// 邮政编码
  513. /// </summary>
  514. [DisplayName("邮政编码")]
  515. [RegularExpression(@"[1-9]\d{5}(?!\d)", ErrorMessage = "请输入正确的格式")]
  516. public string ZIPCode { get; set; }
  517. /// <summary>
  518. /// 微信号
  519. /// </summary>
  520. [DisplayName("微信号")]
  521. public string WeChatNum { get; set; }
  522. /// <summary>
  523. /// QQ
  524. /// </summary>
  525. [DisplayName("QQ")]
  526. [RegularExpression(@"[1-9][0-9]{4,}", ErrorMessage = "请输入正确的格式")]
  527. public string QQ { get; set; }
  528. /// <summary>
  529. /// 健康状况
  530. /// </summary>
  531. [DisplayName("健康状况")]
  532. public int? HealthStateID { get; set; }
  533. /// <summary>
  534. /// 健康状况
  535. /// </summary>
  536. [DisplayName("健康状况")]
  537. public string HealthStateName
  538. {
  539. get
  540. {
  541. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_HealthState.ToString()).Where(x => x.Value == HealthStateID).Select(x => x.Name).FirstOrDefault();
  542. }
  543. }
  544. /// <summary>
  545. /// 血型
  546. /// </summary>
  547. [DisplayName("血型")]
  548. public int? BloodGroup { get; set; }
  549. /// <summary>
  550. /// 血型名称
  551. /// </summary>
  552. [DisplayName("血型名称")]
  553. public string BloodGroupName
  554. {
  555. get
  556. {
  557. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_BLOODGROUP.ToString()).Where(x => x.Value == BloodGroup).Select(x => x.Name).FirstOrDefault();
  558. }
  559. }
  560. /// <summary>
  561. /// 特长
  562. /// </summary>
  563. [DisplayName("特长")]
  564. public string Specialty { get; set; }
  565. /// <summary>
  566. /// 身高(cm)
  567. /// </summary>
  568. [DisplayName("身高(cm)")]
  569. [RegularExpression(@"^\d+(\.\d+)?$", ErrorMessage = "请输入数字")]
  570. public string Height { get; set; }
  571. /// <summary>
  572. /// 体重(kg)
  573. /// </summary>
  574. [DisplayName("体重(kg)")]
  575. [RegularExpression(@"^\d+(\.\d+)?$", ErrorMessage = "请输入数字")]
  576. public string Weight { get; set; }
  577. /// <summary>
  578. /// 导师姓名
  579. /// </summary>
  580. [DisplayName("导师姓名")]
  581. public string DirectorName { get; set; }
  582. /// <summary>
  583. /// 总分
  584. /// </summary>
  585. [DisplayName("总分")]
  586. [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
  587. public decimal? Score { get; set; }
  588. /// <summary>
  589. /// 入学方式
  590. /// </summary>
  591. [DisplayName("入学方式")]
  592. public int? EntranceWayID { get; set; }
  593. /// <summary>
  594. /// 入学方式
  595. /// </summary>
  596. [DisplayName("入学方式")]
  597. public string EntranceWayName
  598. {
  599. get
  600. {
  601. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_EntranceWay.ToString()).Where(x => x.Value == EntranceWayID).Select(x => x.Name).FirstOrDefault();
  602. }
  603. }
  604. /// <summary>
  605. /// 考生特征
  606. /// </summary>
  607. [DisplayName("考生特征")]
  608. public int? FeaturesID { get; set; }
  609. /// <summary>
  610. /// 考生特征
  611. /// </summary>
  612. [DisplayName("考生特征")]
  613. public string FeaturesName
  614. {
  615. get
  616. {
  617. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Features.ToString()).Where(x => x.Value == FeaturesID).Select(x => x.Name).FirstOrDefault();
  618. }
  619. }
  620. /// <summary>
  621. /// 生源所属地
  622. /// </summary>
  623. [DisplayName("生源所属地")]
  624. public int? TerritorialID { get; set; }
  625. /// <summary>
  626. /// 生源所属地
  627. /// </summary>
  628. [DisplayName("生源所属地")]
  629. public string TerritorialName
  630. {
  631. get
  632. {
  633. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Province.ToString()).Where(x => x.Value == TerritorialID).Select(x => x.Name).FirstOrDefault();
  634. }
  635. }
  636. /// <summary>
  637. /// 来源地区
  638. /// </summary>
  639. [DisplayName("来源地区")]
  640. public string Area { get; set; }
  641. /// <summary>
  642. /// 家庭住址
  643. /// </summary>
  644. [DisplayName("家庭住址")]
  645. public string HomeAddress { get; set; }
  646. /// <summary>
  647. /// 工作单位
  648. /// </summary>
  649. [DisplayName("工作单位")]
  650. public string WorkUnit { get; set; }
  651. /// <summary>
  652. /// 通信地址
  653. /// </summary>
  654. [DisplayName("通信地址")]
  655. public string Address { get; set; }
  656. /// <summary>
  657. /// 收件人
  658. /// </summary>
  659. [DisplayName("收件人")]
  660. public string Recipient { get; set; }
  661. /// <summary>
  662. /// 宿舍地址
  663. /// </summary>
  664. [DisplayName("宿舍地址")]
  665. public string Dormitory { get; set; }
  666. /// <summary>
  667. /// 开户银行
  668. /// </summary>
  669. [DisplayName("开户银行")]
  670. public string BankName { get; set; }
  671. /// <summary>
  672. /// 银行卡号
  673. /// </summary>
  674. [DisplayName("银行卡号")]
  675. [RegularExpression(@"^[0-9]*$", ErrorMessage = "只能输入数字")]
  676. public string CardNo { get; set; }
  677. /// <summary>
  678. /// 学籍卡编号
  679. /// </summary>
  680. [DisplayName("学籍卡编号")]
  681. [RegularExpression(@"^[0-9a-zA-Z\s?]+$", ErrorMessage = "只能输入数字和英文字母")]
  682. public string StudentCardNo { get; set; }
  683. /// <summary>
  684. /// 学籍照片Url
  685. /// </summary>
  686. [DisplayName("学籍照片")]
  687. public string PhotoUrl { get; set; }
  688. /// <summary>
  689. /// 预计毕业日期
  690. /// </summary>
  691. [DisplayName("预计毕业日期")]
  692. [DataType(DataType.Date)]
  693. [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
  694. public DateTime? PlanningGraduateDate { get; set; }
  695. /// <summary>
  696. /// 毕业日期
  697. /// </summary>
  698. [DisplayName("毕业日期")]
  699. [DataType(DataType.Date)]
  700. [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
  701. public DateTime? GraduateDate { get; set; }
  702. /// <summary>
  703. /// 毕结业证书编号
  704. /// </summary>
  705. [DisplayName("毕结业证书编号")]
  706. [RegularExpression(@"^[0-9a-zA-Z\s?]+$", ErrorMessage = "请输入数字或英文字母")]
  707. public string GraduateCardNo { get; set; }
  708. /// <summary>
  709. /// 补证编号(补办证书编号)
  710. /// </summary>
  711. [DisplayName("补证编号")]
  712. [RegularExpression(@"^[0-9a-zA-Z\s?]+$", ErrorMessage = "请输入数字或英文字母")]
  713. public string ReplaceGraduateNo { get; set; }
  714. /// <summary>
  715. /// 学位有无
  716. /// </summary>
  717. [DisplayName("学位有无")]
  718. public bool DegreeStatus { get; set; }
  719. /// <summary>
  720. /// 学位有无
  721. /// </summary>
  722. [DisplayName("学位有无")]
  723. public string DegreeStatusName
  724. {
  725. get { return this.DegreeStatus != true ? "无" : "有"; }
  726. }
  727. /// <summary>
  728. /// 学历照片
  729. /// </summary>
  730. [DisplayName("学历照片")]
  731. public string GraduationPictureUrl { get; set; }
  732. /// <summary>
  733. /// 在校经历
  734. /// </summary>
  735. [DisplayName("在校经历")]
  736. public string Career { get; set; }
  737. /// <summary>
  738. /// 是否核对
  739. /// </summary>
  740. [DisplayName("是否核对")]
  741. public bool IsProofread { get; set; }
  742. /// <summary>
  743. /// 是否核对
  744. /// </summary>
  745. [DisplayName("是否核对")]
  746. public string IsProofreadName
  747. {
  748. get { return this.IsProofread != true ? "否" : "是"; }
  749. }
  750. /// <summary>
  751. /// 备注
  752. /// </summary>
  753. [DisplayName("备注")]
  754. public string Remark { get; set; }
  755. /// <summary>
  756. /// IP地址
  757. /// </summary>
  758. [DisplayName("IP地址")]
  759. public string IP { get; set; }
  760. /// <summary>
  761. /// 校对前信息StudentViewSource
  762. /// </summary>
  763. [DisplayName("校对前信息")]
  764. public StudentView StudentViewSource { get; set; }
  765. /// <summary>
  766. /// 校对后信息StudentViewContrast
  767. /// </summary>
  768. [DisplayName("校对后信息")]
  769. public StudentView StudentViewContrast { get; set; }
  770. /// <summary>
  771. /// 校对前值
  772. /// </summary>
  773. [DisplayName("校对前值")]
  774. public object CheckingBeforeValue
  775. {
  776. get
  777. {
  778. return GetColumnValue(StudentViewSource, ColumnName);
  779. }
  780. }
  781. /// <summary>
  782. /// 校对前内容
  783. /// </summary>
  784. [DisplayName("校对前内容")]
  785. public string CheckingBeforeContent
  786. {
  787. get
  788. {
  789. return GetColumnValue(StudentViewSource, ColumnName, DisplayPropertyName);
  790. }
  791. }
  792. /// <summary>
  793. /// 校对后值
  794. /// </summary>
  795. [DisplayName("校对后值")]
  796. public object CheckingAfterValue
  797. {
  798. get
  799. {
  800. return GetColumnValue(StudentViewContrast, ColumnName);
  801. }
  802. }
  803. /// <summary>
  804. /// 校对后内容
  805. /// </summary>
  806. [DisplayName("校对后内容")]
  807. public string CheckingAfterContent
  808. {
  809. get
  810. {
  811. return GetColumnValue(StudentViewContrast, ColumnName, DisplayPropertyName);
  812. }
  813. }
  814. /// <summary>
  815. /// ColumnValue
  816. /// </summary>
  817. /// <typeparam name="T"></typeparam>
  818. /// <param name="tableName"></param>
  819. /// <param name="columnName"></param>
  820. /// <returns></returns>
  821. [DisplayName("ColumnValue")]
  822. public object GetColumnValue<T>(T tableName, string columnName)
  823. {
  824. PropertyInfo[] properties = tableName.GetType().GetProperties(BindingFlags.Instance | BindingFlags.Public);
  825. foreach (PropertyInfo pro in properties)
  826. {
  827. if (pro.PropertyType.IsValueType || pro.PropertyType.Name.StartsWith("String"))
  828. {
  829. if (String.Equals(pro.Name, columnName, StringComparison.CurrentCultureIgnoreCase))
  830. {
  831. return pro.GetValue(tableName, null);
  832. }
  833. }
  834. }
  835. return null;
  836. }
  837. /// <summary>
  838. /// ColumnValue
  839. /// </summary>
  840. /// <typeparam name="T"></typeparam>
  841. /// <param name="tableName"></param>
  842. /// <param name="columnName"></param>
  843. /// <param name="displayPropertyName"></param>
  844. /// <returns></returns>
  845. [DisplayName("ColumnValue")]
  846. public string GetColumnValue<T>(T tableName, string columnName, string displayPropertyName)
  847. {
  848. PropertyInfo[] properties = tableName.GetType().GetProperties(BindingFlags.Instance | BindingFlags.Public);
  849. foreach (PropertyInfo pro in properties)
  850. {
  851. if (pro.PropertyType.IsValueType || pro.PropertyType.Name.StartsWith("String"))
  852. {
  853. if (string.IsNullOrWhiteSpace(displayPropertyName))
  854. {
  855. if (String.Equals(pro.Name, columnName, StringComparison.CurrentCultureIgnoreCase))
  856. {
  857. return pro.GetValue(tableName, null) == null ? "" : pro.GetValue(tableName, null).ToString();
  858. }
  859. }
  860. else
  861. {
  862. if (String.Equals(pro.Name, displayPropertyName, StringComparison.CurrentCultureIgnoreCase))
  863. {
  864. return pro.GetValue(tableName, null) == null ? "" : pro.GetValue(tableName, null).ToString();
  865. }
  866. }
  867. }
  868. }
  869. return null;
  870. }
  871. /// <summary>
  872. /// 审核状态
  873. /// </summary>
  874. [DisplayName("审核状态")]
  875. public int? ApprovalStatus { get; set; }
  876. /// <summary>
  877. /// 审核状态
  878. /// </summary>
  879. [DisplayName("审核状态")]
  880. public string ApprovalStatusName { get; set; }
  881. /// <summary>
  882. /// 处理意见
  883. /// </summary>
  884. [DisplayName("处理意见")]
  885. public string Comment { get; set; }
  886. /// <summary>
  887. /// 审核时间
  888. /// </summary>
  889. [DisplayName("审核时间")]
  890. public DateTime? ApprovalTime { get; set; }
  891. /// <summary>
  892. /// 状态
  893. /// </summary>
  894. [DisplayName("状态")]
  895. public int? RecordStatus { get; set; }
  896. /// <summary>
  897. /// 创建人
  898. /// </summary>
  899. [DisplayName("创建人")]
  900. public Guid? CreateUserID { get; set; }
  901. /// <summary>
  902. /// 创建时间
  903. /// </summary>
  904. [DisplayName("创建时间")]
  905. public DateTime? CreateTime { get; set; }
  906. /// <summary>
  907. /// 修改人
  908. /// </summary>
  909. [DisplayName("修改人")]
  910. public Guid? ModifyUserID { get; set; }
  911. /// <summary>
  912. /// 修改时间
  913. /// </summary>
  914. [DisplayName("修改时间")]
  915. public DateTime? ModifyTime { get; set; }
  916. }
  917. }