StudentListForExportView.cs 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668
  1. using EMIS.ViewModel.Cache;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.Linq;
  7. using System.Text;
  8. namespace EMIS.ViewModel.ExaminationApply
  9. {
  10. public class StudentListForExportView
  11. {
  12. public int? OrderNumber { get; set; }
  13. public Guid? UserID { get; set; }
  14. public Guid? ExaminationRegistrationID { get; set; }
  15. /// <summary>
  16. /// 考试报名学年学期ID
  17. /// </summary>
  18. public Guid? ExaminationSchoolyearID { get; set; }
  19. [DisplayName("学年学期")]
  20. public Guid? SchoolyearID { get; set; }
  21. [DisplayName("学年学期")]
  22. public string SchoolyearCode { get; set; }
  23. [DisplayName("考试批次")]
  24. public Guid? ExaminationBatchID { get; set; }
  25. [DisplayName("考试批次")]
  26. public string ExaminationBatchName { get; set; }
  27. [DisplayName("项目级别")]
  28. public int? ExaminationLevelID { get; set; }
  29. [DisplayName("项目级别")]
  30. public string ExaminationLevelName {
  31. get
  32. {
  33. return IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationLevel.ToString())
  34. .Where(x => x.Value == ExaminationLevelID)
  35. .Select(x => x.Name).FirstOrDefault();
  36. }
  37. }
  38. [DisplayName("考试类型")]
  39. public Guid? ExaminationTypeID { get; set; }
  40. [DisplayName("项目种类")]
  41. public string ExaminationTypeName { get; set; }
  42. [DisplayName("考试批次")]
  43. public Guid? ExaminationBatchProjectID { get; set; }
  44. //[DisplayName("考试批次")]
  45. //public string ExaminationBatchProjectName { get; set; }
  46. [DisplayName("项目名称")]
  47. public Guid? ExaminationProjectID { get; set; }
  48. [DisplayName("项目名称")]
  49. public string ExaminationProjectName { get; set; }
  50. public DateTime? StartDate { get; set; }
  51. public DateTime? EndDate { get; set; }
  52. [DisplayName("院系")]
  53. public Guid? CollegeID { get; set; }
  54. [DisplayName("院系")]
  55. public string CollegeName { get; set; }
  56. /// <summary>
  57. /// 校区
  58. /// </summary>
  59. public int? SchoolAreaID { get; set; }
  60. public string SchoolAreaName
  61. {
  62. get
  63. {
  64. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolArea.ToString())
  65. .Where(x => x.Value == SchoolAreaID)
  66. .Select(x => x.Name).FirstOrDefault();
  67. }
  68. }
  69. /// <summary>
  70. /// 校区ID
  71. /// </summary>
  72. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusID")]
  73. public Guid? CampusID { get; set; }
  74. /// <summary>
  75. /// 校区ID
  76. /// </summary>
  77. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  78. public string CampusName { get; set; }
  79. [DisplayName("年级")]
  80. public int? SchoolyearNumID { get; set; }
  81. [DisplayName("年级")]
  82. public string SchoolyearNumName
  83. {
  84. get
  85. {
  86. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolyearNum.ToString())
  87. .Where(x => x.Value == SchoolyearNumID)
  88. .Select(x => x.Name).FirstOrDefault();
  89. }
  90. }
  91. [DisplayName("班级名称")]
  92. public Guid? ClassmajorID { get; set; }
  93. [DisplayName("班级名称")]
  94. public string ClassmajorName { get; set; }
  95. /// <summary>
  96. /// 班级编号
  97. /// </summary>
  98. [DisplayName("班级编号")]
  99. public string ClassmajorCode { get; set; }
  100. [DisplayName("班号")]
  101. public string ClassmajorNo { get; set; }
  102. [DisplayName("是否交费")]
  103. public string IsPay { get; set; }
  104. [DisplayName("是否已确认")]
  105. public bool IsConfirm { get; set; }
  106. [DisplayName("学号")]
  107. public string StudentNo { get; set; }
  108. [DisplayName("姓名")]
  109. public string UserName { get; set; }
  110. [DisplayName("英文名")]
  111. public string EnglishName { get; set; }
  112. [DisplayName("性别")]
  113. public int? Sex { get; set; }
  114. /// <summary>
  115. /// 性别导入
  116. /// </summary>
  117. public string SexForImport { get; set; }
  118. [DisplayName("性别")]
  119. public string SexName
  120. {
  121. get
  122. {
  123. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
  124. .Where(x => x.Value == Sex)
  125. .Select(x => x.Name).FirstOrDefault();
  126. }
  127. }
  128. [DisplayName("出生日期")]
  129. [DataType(DataType.Date)]
  130. [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
  131. public DateTime? BirthDate { get; set; }
  132. [DisplayName("报名日期")]
  133. [DataType(DataType.Date)]
  134. [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
  135. public DateTime? RegistrDate { get; set; }
  136. [DisplayName("收费日期")]
  137. [DataType(DataType.Date)]
  138. [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
  139. public DateTime? PayDate { get; set; }
  140. /// <summary>
  141. /// 入学日期
  142. /// </summary>
  143. [DisplayName("入学日期")]
  144. [DataType(DataType.Date)]
  145. [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
  146. public DateTime? EntranceDate { get; set; }
  147. /// <summary>
  148. /// 预计毕业日期
  149. /// </summary>
  150. [DisplayName("预计毕业日期")]
  151. [DataType(DataType.Date)]
  152. [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
  153. public DateTime? PlanningGraduateDate { get; set; }
  154. /// <summary>
  155. /// 毕业结论
  156. /// </summary>
  157. [Required]
  158. [DisplayName("毕业结论")]
  159. public int? GraduationResult { get; set; }
  160. /// <summary>
  161. /// 毕业结论
  162. /// </summary>
  163. [DisplayName("毕业结论")]
  164. public string GraduationResultName
  165. {
  166. get
  167. {
  168. return IdNameExt.GetDictionaryItem(DictionaryItem.ER_GraduationResult.ToString())
  169. .Where(x => x.Value == GraduationResult)
  170. .Select(x => x.Name).FirstOrDefault();
  171. }
  172. }
  173. [DisplayName("微信号")]
  174. public string WeChatNo { get; set; }
  175. [DisplayName("QQ")]
  176. public string QQ { get; set; }
  177. [DisplayName("邮箱")]
  178. public string Email { get; set; }
  179. [DisplayName("联系电话")]
  180. public string PhoneNumber { get; set; }
  181. /// <summary>
  182. /// 民族
  183. /// </summary>
  184. [DisplayName("民族")]
  185. public int? Nation { get; set; }
  186. /// <summary>
  187. /// 民族
  188. /// </summary>
  189. [DisplayName("民族")]
  190. public string NationName
  191. {
  192. get
  193. {
  194. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Nation.ToString())
  195. .Where(x => x.Value == Nation)
  196. .Select(x => x.Name).FirstOrDefault();
  197. }
  198. }
  199. [DisplayName("报名费")]
  200. public decimal? Cost { get; set; }
  201. [DisplayName("证件类型")]
  202. public int? CertificatesType { get; set; }
  203. /// <summary>
  204. /// 证件类型导入
  205. /// </summary>
  206. public string CertificatesTypeNameForImport { get; set; }
  207. [DisplayName("证件类型")]
  208. public string CertificatesTypeName
  209. {
  210. get
  211. {
  212. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CertificatesType.ToString())
  213. .Where(x => x.Value == CertificatesType)
  214. .Select(x => x.Name).FirstOrDefault();
  215. }
  216. }
  217. [DisplayName("证件号码")]
  218. public string IDNumber { get; set; }
  219. [DisplayName("项目收费标准对应收费项ID")]
  220. public Guid? ExaminationProjectFeeTypeID { get; set; }
  221. [DisplayName("项目收费标准对应收费项")]
  222. public string ExaminationProjectFeeTypeName { get; set; }
  223. [DisplayName("项目收费标准")]
  224. public Guid? ExaminationProjectFeeID { get; set; }
  225. [DisplayName("项目收费标准")]
  226. public string ExaminationProjectFeeName { get; set; }
  227. [DisplayName("收费项")]
  228. public int? FeeTypeID { get; set; }
  229. /// <summary>
  230. /// 编辑绑定下拉用
  231. /// </summary>
  232. [DisplayName("收费项")]
  233. public int? Value { get; set; }
  234. [DisplayName("收费项")]
  235. public string FeeTypeName
  236. {
  237. get
  238. {
  239. return IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationProjectFeeType.ToString())
  240. .Where(x => x.Value == FeeTypeID)
  241. .Select(x => x.Name).FirstOrDefault();
  242. }
  243. }
  244. [DisplayName("费用")]
  245. public decimal? Fee { get; set; }
  246. [DisplayName("总费用")]
  247. public decimal? PayFee { get; set; }
  248. [DisplayName("报名项目(费用)")]
  249. public string FeeTypeAndFee
  250. {
  251. get
  252. {
  253. return FeeTypeName + "(" + Fee.ToString() + ")";
  254. }
  255. }
  256. /// <summary>
  257. /// 银行卡号
  258. /// </summary>
  259. [DisplayName("银行卡号")]
  260. public string CardNo { get; set; }
  261. [DisplayName("学历")]
  262. public int? EducationID { get; set; }
  263. [DisplayName("学历")]
  264. public string EducationName
  265. {
  266. get
  267. {
  268. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString())
  269. .Where(x => x.Value == EducationID)
  270. .Select(x => x.Name).FirstOrDefault();
  271. }
  272. }
  273. [DisplayName("户口性质")]
  274. public string ResidenceTypeName { get; set; }
  275. /// <summary>
  276. /// 通讯地址
  277. /// </summary>
  278. [DisplayName("通讯地址")]
  279. public string Address { get; set; }
  280. /// <summary>
  281. /// 家庭地址
  282. /// </summary>
  283. [DisplayName("家庭地址")]
  284. public string HomeAddress { get; set; }
  285. /// <summary>
  286. /// 移动电话
  287. /// </summary>
  288. [DisplayName("联系电话")]
  289. public string Mobile { get; set; }
  290. /// <summary>
  291. /// 户口所在地
  292. /// </summary>
  293. [DisplayName("户口所在地")]
  294. public string Residence { get; set; }
  295. public string ResidenceStr {
  296. get {
  297. int tryResidence = 0;
  298. return (Residence != "" && Residence != null && int.TryParse(Residence,out tryResidence)) ? IdNameExt.GetDictionaryItem(DictionaryItem.CF_Origin.ToString())
  299. .Where(x => x.Value == int.Parse(Residence))
  300. .Select(x => x.Name).FirstOrDefault() : Residence ;
  301. }
  302. }
  303. [DisplayName("缴费状态")]
  304. public int? RecordStatus { get; set; }
  305. [DisplayName("缴费状态")]
  306. public string RecordStatusStr
  307. {
  308. get
  309. {
  310. return IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationRegistrationStatus.ToString())
  311. .Where(x => x.Value == RecordStatus)
  312. .Select(x => x.Name).FirstOrDefault();
  313. }
  314. }
  315. [DisplayName("确认单号ID")]
  316. public Guid? ExaminationRegistrationConfirmID { get; set; }
  317. [DisplayName("确认单号")]
  318. public string ExaminationRegistrationConfirmNo { get; set; }
  319. [DisplayName("备注")]
  320. public string Remark { get; set; }
  321. [DisplayName("学制")]
  322. public decimal? LearnSystem { get; set; }
  323. /// <summary>
  324. /// 学习形式
  325. /// </summary>
  326. [DisplayName("学习形式")]
  327. public int? LearningformID { get; set; }
  328. /// <summary>
  329. /// 标准专业名称
  330. /// </summary>
  331. [DisplayName("学习形式")]
  332. public string LearningformName
  333. {
  334. get
  335. {
  336. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString())
  337. .Where(x => x.Value == LearningformID)
  338. .Select(x => x.Name).FirstOrDefault();
  339. }
  340. }
  341. [DisplayName("入学年份")]
  342. public int? Year { get; set; }
  343. [DisplayName("专业")]
  344. public int? StandardID { get; set; }
  345. [DisplayName("专业")]
  346. public string StandardName
  347. {
  348. get
  349. {
  350. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  351. .Where(x => x.Value == StandardID)
  352. .Select(x => x.Name).FirstOrDefault();
  353. }
  354. }
  355. /// <summary>
  356. /// 专业代码
  357. /// </summary>
  358. [DisplayName("专业代码")]
  359. public string StandardCode
  360. {
  361. get
  362. {
  363. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  364. .Where(x => x.Value == StandardID)
  365. .Select(x => x.Code).FirstOrDefault();
  366. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  367. }
  368. }
  369. [DisplayName("报考次数")]
  370. public int RegistedCount { get; set; }
  371. [DisplayName("照片")]
  372. public string PhotoUrl { get; set; }
  373. ///<summary>
  374. ///
  375. /// </summary>
  376. public bool IsExcelVaildateOK { get; set; }
  377. /// <summary>
  378. /// 错误信息
  379. /// </summary>
  380. [DisplayName("错误信息")]
  381. public string ErrorMessage { get; set; }
  382. [DisplayName("特殊标志")]
  383. public string SpecialSign { get; set; }
  384. [DisplayName("工龄")]
  385. public decimal? WorkingYears { get; set; }
  386. [DisplayName("工作单位")]
  387. public string WorkPlace { get; set; }
  388. [DisplayName("上一级职业资格级别")]
  389. public string ProfessionalQualificationLevel { get; set; }
  390. [DisplayName("副本")]
  391. public string Copy { get; set; }
  392. [DisplayName("考试类型")]
  393. public string TestType { get; set; }
  394. [DisplayName("鉴定人员类别")]
  395. public string AppraisalPersonalType { get; set; }
  396. [DisplayName("人员类别")]
  397. public string PersonalType { get; set; }
  398. /// <summary>
  399. /// 政治面貌
  400. /// </summary>
  401. [DisplayName("政治面貌")]
  402. [Required]
  403. public int? Politics { get; set; }
  404. //<summary>
  405. //政治面貌
  406. //</summary>
  407. [DisplayName("政治面貌")]
  408. public string PoliticsName
  409. {
  410. get
  411. {
  412. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Politics.ToString())
  413. .Where(x => x.Value == Politics)
  414. .Select(x => x.Name).FirstOrDefault();
  415. }
  416. }
  417. [DisplayName("婚姻状况")]
  418. public string MaritalStatus { get; set; }
  419. [DisplayName("国家职业资格等级")]
  420. public string NationalQualificationLevel { get; set; }
  421. [DisplayName("专业技术职务级别")]
  422. public string PositionLevel { get; set; }
  423. [DisplayName("国家/地区代码")]
  424. public string NationalAndCode { get; set; }
  425. [DisplayName("补考理论")]
  426. public string ResitTheory { get; set; }
  427. [DisplayName("补考实操")]
  428. public string ResitPractice { get; set; }
  429. [DisplayName("补加考1")]
  430. public string ResitOne { get; set; }
  431. [DisplayName("补加考2")]
  432. public string ResitTwo { get; set; }
  433. [DisplayName("补加考3")]
  434. public string ResitThree { get; set; }
  435. [DisplayName("补加考4")]
  436. public string ResitFour { get; set; }
  437. [DisplayName("职称")]
  438. public string ProfessionalTitle { get; set; }
  439. [DisplayName("是否免考理论")]
  440. public string IsNotTheory { get; set; }
  441. [DisplayName("理论成绩")]
  442. public decimal? TheoryScore { get; set; }
  443. [DisplayName("实操成绩")]
  444. public decimal? PracticeScore { get; set; }
  445. [DisplayName("补加考1成绩")]
  446. public string ResitOneScore { get; set; }
  447. [DisplayName("补加考2成绩")]
  448. public string ResitTwoScore { get; set; }
  449. [DisplayName("补加考3成绩")]
  450. public string ResitThreeScore { get; set; }
  451. [DisplayName("补加考4成绩")]
  452. public string ResitFourScore { get; set; }
  453. [DisplayName("参加工作时间")]
  454. [DataType(DataType.Date)]
  455. [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
  456. public DateTime? JoinWorkDate { get; set; }
  457. [DisplayName("从事职业")]
  458. public string WorkType { get; set; }
  459. /// <summary>
  460. /// 考生来源
  461. /// </summary>
  462. [DisplayName("考生来源")]
  463. public string Area { get; set; }
  464. /// <summary>
  465. /// 户口所在市(区)
  466. /// </summary>
  467. [DisplayName("户口所在市(区)")]
  468. public string Place { get; set; }
  469. /// <summary>
  470. /// 邮编
  471. /// </summary>
  472. [DisplayName("邮编")]
  473. public string ZipCode { get; set; }
  474. [DisplayName("身份证住址")]
  475. public string IDCardAddress { get; set; }
  476. [DisplayName("现役军人")]
  477. public string IsSoldier { get; set; }
  478. [DisplayName("下岗人员")]
  479. public string IsLaidOff { get; set; }
  480. [DisplayName("失业人员")]
  481. public string IsUnemployment { get; set; }
  482. [DisplayName("残疾人员")]
  483. public string IsDisability { get; set; }
  484. [DisplayName("农民工")]
  485. public string IsFarmer { get; set; }
  486. [DisplayName("劳教劳改人员")]
  487. public string IsLabour { get; set; }
  488. [DisplayName("其他")]
  489. public string Other { get; set; }
  490. [DisplayName("申报职业")]
  491. public string DeclareOccupation { get; set; }
  492. [DisplayName("申报级别")]
  493. public string DeclareLevel { get; set; }
  494. [DisplayName("申报条件")]
  495. public string DeclareCondition { get; set; }
  496. [DisplayName("鉴定分类")]
  497. public string AppraisalType { get; set; }
  498. [DisplayName("原证书编号")]
  499. public string OldCertificateNumber{ get; set; }
  500. [DisplayName("考生类别")]
  501. public string ExamineeType { get; set; }
  502. [DisplayName("补贴对象")]
  503. public string SubsidyTarget { get; set; }
  504. [DisplayName("补贴证件类型")]
  505. public string SubsidyCertificateType { get; set; }
  506. [DisplayName("补贴证件编码")]
  507. public string SubsidyCertificateNumber { get; set; }
  508. [DisplayName("报名备注")]
  509. public string ExamineeRemark { get; set; }
  510. [DisplayName("报名单位")]
  511. public string ExamineeCampus { get; set; }
  512. [DisplayName("考生号")]
  513. public string ExamineeNum { get; set; }
  514. /// <summary>
  515. /// 院校代码
  516. /// </summary>
  517. [DisplayName("院校代码")]
  518. public string SchoolCode { get; set; }
  519. /// <summary>
  520. /// 院校名称
  521. /// </summary>
  522. [DisplayName("院校名称")]
  523. public string SchoolName { get; set; }
  524. }
  525. }