StudentListView.cs 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  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.Cache;
  8. using EMIS.ViewModel.SystemView;
  9. namespace EMIS.ViewModel.ExaminationApply
  10. {
  11. public class StudentListView
  12. {
  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. [Required]
  20. [DisplayName("学年学期")]
  21. public Guid? SchoolyearID { get; set; }
  22. [DisplayName("学年学期")]
  23. public string SchoolyearCode { get; set; }
  24. [Required]
  25. [DisplayName("考试批次")]
  26. public Guid? ExaminationBatchID { get; set; }
  27. [DisplayName("考试批次")]
  28. public string ExaminationBatchName { get; set; }
  29. [Required]
  30. [DisplayName("考试类型")]
  31. public Guid? ExaminationTypeID { get; set; }
  32. [DisplayName("考试类型")]
  33. public string ExaminationTypeName { get; set; }
  34. [DisplayName("考试批次")]
  35. public Guid? ExaminationBatchProjectID { get; set; }
  36. //[DisplayName("考试批次")]
  37. //public string ExaminationBatchProjectName { get; set; }
  38. [Required]
  39. [DisplayName("项目名称")]
  40. public Guid? ExaminationProjectID { get; set; }
  41. [DisplayName("项目名称")]
  42. public string ExaminationProjectName { get; set; }
  43. public int? ExaminationLevelID { get; set; }
  44. public string ExaminationLevelName
  45. {
  46. get
  47. {
  48. return IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationLevel.ToString())
  49. .Where(x => x.Value == ExaminationLevelID)
  50. .Select(x => x.Name).FirstOrDefault();
  51. }
  52. }
  53. public DateTime? StartDate { get; set; }
  54. public DateTime? EndDate { get; set; }
  55. [DisplayName("院系")]
  56. public Guid? CollegeID { get; set; }
  57. [DisplayName("院系")]
  58. public string CollegeName { get; set; }
  59. /// <summary>
  60. /// 校区
  61. /// </summary>
  62. public int? SchoolAreaID { get; set; }
  63. public string SchoolAreaName
  64. {
  65. get
  66. {
  67. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolArea.ToString())
  68. .Where(x => x.Value == SchoolAreaID)
  69. .Select(x => x.Name).FirstOrDefault();
  70. }
  71. }
  72. [DisplayName("年级")]
  73. public int? SchoolyearNumID { get; set; }
  74. [DisplayName("年级")]
  75. public string SchoolyearNumName
  76. {
  77. get
  78. {
  79. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolyearNum.ToString())
  80. .Where(x => x.Value == SchoolyearNumID)
  81. .Select(x => x.Name).FirstOrDefault();
  82. }
  83. }
  84. [DisplayName("班级名称")]
  85. public Guid? ClassmajorID { get; set; }
  86. [DisplayName("班级名称")]
  87. public string ClassmajorName { get; set; }
  88. [DisplayName("班号")]
  89. public string ClassmajorNo { get; set; }
  90. [DisplayName("是否交费")]
  91. public string IsPay { get; set; }
  92. [DisplayName("是否已确认")]
  93. public bool IsConfirm { get; set; }
  94. [DisplayName("学号")]
  95. public string StudentNo { get; set; }
  96. [DisplayName("姓名")]
  97. public string UserName { get; set; }
  98. [DisplayName("性别")]
  99. public int? Sex { get; set; }
  100. /// <summary>
  101. /// 性别导入
  102. /// </summary>
  103. public string SexForImport { get; set; }
  104. [DisplayName("性别")]
  105. public string SexName
  106. {
  107. get
  108. {
  109. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
  110. .Where(x => x.Value == Sex)
  111. .Select(x => x.Name).FirstOrDefault();
  112. }
  113. }
  114. [DisplayName("报名费")]
  115. public decimal? Cost { get; set; }
  116. [DisplayName("证件类型")]
  117. public int? CertificatesType { get; set; }
  118. /// <summary>
  119. /// 证件类型导入
  120. /// </summary>
  121. public string CertificatesTypeNameForImport { get; set; }
  122. [DisplayName("证件类型")]
  123. public string CertificatesTypeName
  124. {
  125. get
  126. {
  127. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CertificatesType.ToString())
  128. .Where(x => x.Value == CertificatesType)
  129. .Select(x => x.Name).FirstOrDefault();
  130. }
  131. }
  132. [DisplayName("证件号码")]
  133. public string IDNumber { get; set; }
  134. [DisplayName("项目收费标准对应收费项ID")]
  135. public Guid? ExaminationProjectFeeTypeID { get; set; }
  136. [DisplayName("项目收费标准对应收费项")]
  137. public string ExaminationProjectFeeTypeName { get; set; }
  138. [Required]
  139. [DisplayName("项目收费标准")]
  140. public Guid? ExaminationProjectFeeID { get; set; }
  141. [DisplayName("项目收费标准")]
  142. public string ExaminationProjectFeeName { get; set; }
  143. [Required]
  144. [DisplayName("收费项")]
  145. public int? FeeTypeID { get; set; }
  146. /// <summary>
  147. /// 编辑绑定下拉用
  148. /// </summary>
  149. [DisplayName("收费项")]
  150. public int? Value { get; set; }
  151. [DisplayName("收费项")]
  152. public string FeeTypeName {
  153. get {
  154. return IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationProjectFeeType.ToString())
  155. .Where(x => x.Value == FeeTypeID)
  156. .Select(x => x.Name).FirstOrDefault();
  157. }
  158. }
  159. [DisplayName("费用")]
  160. public decimal? Fee { get; set; }
  161. [DisplayName("报名项目(费用)")]
  162. public string FeeTypeAndFee {
  163. get {
  164. return FeeTypeName + "(" + Fee.ToString() + ")";
  165. }
  166. }
  167. /// <summary>
  168. /// 银行卡号
  169. /// </summary>
  170. [DisplayName("银行卡号")]
  171. public string CardNo { get; set; }
  172. [DisplayName("学历")]
  173. public int? EducationID { get; set; }
  174. [DisplayName("学历")]
  175. public string EducationName
  176. {
  177. get
  178. {
  179. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString())
  180. .Where(x => x.Value == EducationID)
  181. .Select(x => x.Name).FirstOrDefault();
  182. }
  183. }
  184. [DisplayName("金额")]
  185. public decimal? PayFee { get; set; }
  186. [DisplayName("缴费状态")]
  187. public int? RecordStatus { get; set; }
  188. [DisplayName("缴费状态")]
  189. public string RecordStatusStr {
  190. get
  191. {
  192. return IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationRegistrationStatus.ToString())
  193. .Where(x => x.Value == RecordStatus)
  194. .Select(x => x.Name).FirstOrDefault();
  195. }
  196. }
  197. [DisplayName("确认单号ID")]
  198. public Guid? ExaminationRegistrationConfirmID { get; set; }
  199. [DisplayName("确认单号")]
  200. public string ExaminationRegistrationConfirmNo { get; set; }
  201. [DisplayName("备注")]
  202. public string Remark { get; set; }
  203. [DisplayName("退费原因")]
  204. public string RefundReason { get; set; }
  205. [DisplayName("学制")]
  206. public decimal? LearnSystem { get; set; }
  207. [DisplayName("入学年份")]
  208. public int? Year { get; set; }
  209. [DisplayName("专业")]
  210. public int? StandardID { get; set; }
  211. [DisplayName("专业")]
  212. public string StandardName
  213. {
  214. get
  215. {
  216. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  217. .Where(x => x.Value == StandardID)
  218. .Select(x => x.Name).FirstOrDefault();
  219. }
  220. }
  221. [DisplayName("报考次数")]
  222. public int RegistedCount { get; set; }
  223. [DisplayName("照片")]
  224. public string PhotoUrl { get; set; }
  225. ///<summary>
  226. ///
  227. /// </summary>
  228. public bool IsExcelVaildateOK { get; set; }
  229. /// <summary>
  230. /// 错误信息
  231. /// </summary>
  232. [DisplayName("错误信息")]
  233. public string ErrorMessage { get; set; }
  234. public RegistView RegistView { get; set; }
  235. public Dictionary<string, string> FeeTypeList { get; set; }
  236. public bool IsOnlinePay { get; set; }
  237. public string OrderID { get; set; }
  238. [DisplayName("微信订单号")]
  239. public string WechatOrderID { get; set; }
  240. [DisplayName("退款单号")]
  241. public string RefundOrderID { get; set; }
  242. public string PayForm { get; set; }
  243. public string PayUrl { get; set; }
  244. }
  245. }