StudentListView.cs 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using System.ComponentModel.DataAnnotations;
  7. using EMIS.ViewModel.CacheManage;
  8. namespace EMIS.ViewModel.ExaminationApply
  9. {
  10. public class StudentListView
  11. {
  12. public Guid? UserID { get; set; }
  13. public Guid ExaminationRegistrationID { get; set; }
  14. /// <summary>
  15. /// 考试报名学年学期ID
  16. /// </summary>
  17. public Guid? ExaminationSchoolyearID { get; set; }
  18. [DisplayName("学号")]
  19. public string StudentNo { get; set; }
  20. [DisplayName("姓名")]
  21. public string Name { get; set; }
  22. [DisplayName("性别")]
  23. public int? Sex { get; set; }
  24. /// <summary>
  25. /// 性别导入
  26. /// </summary>
  27. public string SexForImport { get; set; }
  28. [DisplayName("性别")]
  29. public string SexName
  30. {
  31. get
  32. {
  33. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
  34. .Where(x => x.Value == Sex)
  35. .Select(x => x.Name).FirstOrDefault();
  36. }
  37. }
  38. [DisplayName("班级名称")]
  39. public Guid? ClassmajorID { get; set; }
  40. [DisplayName("班级名称")]
  41. public string ClassmajorName { get; set; }
  42. [DisplayName("班号")]
  43. public string ClassmajorNo { get; set; }
  44. [DisplayName("科目名称")]
  45. public string SubjectName { get; set; }
  46. /// <summary>
  47. /// 报名费导入
  48. /// </summary>
  49. public string CostForImport { get; set; }
  50. [DisplayName("报名费")]
  51. public decimal? Cost { get; set; }
  52. [DisplayName("是否交费")]
  53. public string IsPay { get; set; }
  54. [DisplayName("证件类型")]
  55. public int? CertificatesType { get; set; }
  56. /// <summary>
  57. /// 证件类型导入
  58. /// </summary>
  59. public string CertificatesTypeNameForImport { get; set; }
  60. [DisplayName("证件类型")]
  61. public string CertificatesTypeName
  62. {
  63. get
  64. {
  65. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CertificatesType.ToString())
  66. .Where(x => x.Value == CertificatesType)
  67. .Select(x => x.Name).FirstOrDefault();
  68. }
  69. }
  70. [DisplayName("证件号码")]
  71. public string IDNumber { get; set; }
  72. /// <summary>
  73. /// 银行卡号
  74. /// </summary>
  75. [DisplayName("银行卡号")]
  76. public string CardNo { get; set; }
  77. [DisplayName("学历")]
  78. public int? EducationID { get; set; }
  79. [DisplayName("学历")]
  80. public string EducationName
  81. {
  82. get
  83. {
  84. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString())
  85. .Where(x => x.Value == EducationID)
  86. .Select(x => x.Name).FirstOrDefault();
  87. }
  88. }
  89. [DisplayName("学制")]
  90. public decimal? LearnSystem { get; set; }
  91. [DisplayName("入学年份")]
  92. public int? Year { get; set; }
  93. //public int? StartSchoolyearValue { get; set; }
  94. //public int? EndSchoolyearValue { get; set; }
  95. [DisplayName("学年学期ID")]
  96. public Guid? SchoolyearID { get; set; }
  97. [DisplayName("学年学期")]
  98. public string SchoolyearCode { get; set; }
  99. [DisplayName("年级")]
  100. public int? SchoolyearNumID { get; set; }
  101. [DisplayName("年级")]
  102. public string SchoolyearNumName
  103. {
  104. get
  105. {
  106. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolyearNum.ToString())
  107. .Where(x => x.Value == SchoolyearNumID)
  108. .Select(x => x.Name).FirstOrDefault();
  109. }
  110. }
  111. [DisplayName("院系")]
  112. public Guid? CollegeID { get; set; }
  113. [DisplayName("院系")]
  114. public string CollegeName { get; set; }
  115. [DisplayName("专业")]
  116. public int? StandardID { get; set; }
  117. [DisplayName("专业")]
  118. public string StandardName
  119. {
  120. get
  121. {
  122. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  123. .Where(x => x.Value == StandardID)
  124. .Select(x => x.Name).FirstOrDefault();
  125. }
  126. }
  127. [DisplayName("报考次数")]
  128. public int RegistedCount { get; set; }
  129. [DisplayName("照片")]
  130. public string PhotoUrl { get; set; }
  131. ///<summary>
  132. ///
  133. /// </summary>
  134. public bool IsExcelVaildateOK { get; set; }
  135. /// <summary>
  136. /// 错误信息
  137. /// </summary>
  138. [DisplayName("错误信息")]
  139. public string ErrorMessage { get; set; }
  140. [DisplayName("考试科目ID")]
  141. public Guid ExaminationSubjectID { get; set; }
  142. }
  143. }