StudentRecordView.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  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. namespace EMIS.ViewModel.Students
  9. {
  10. public class StudentRecordView
  11. {
  12. /// <summary>
  13. /// 主键ID
  14. /// </summary>
  15. [DisplayName("主键ID")]
  16. public Guid UserID { get; set; }
  17. /// <summary>
  18. /// 相片
  19. /// </summary>
  20. [DisplayName("相片")]
  21. public string PhotoUrl { get; set; }
  22. /// <summary>
  23. /// 学号
  24. /// </summary>
  25. [DisplayName("学号")]
  26. public string LoginID { get; set; }
  27. /// <summary>
  28. /// 学号
  29. /// </summary>
  30. [DisplayName("学号")]
  31. public string StudentNo { get; set; }
  32. /// <summary>
  33. /// 姓名
  34. /// </summary>
  35. [Required]
  36. [DisplayName("姓名")]
  37. public string UserName { get; set; }
  38. /// <summary>
  39. /// 曾用名
  40. /// </summary>
  41. [DisplayName("曾用名")]
  42. public string UsedName { get; set; }
  43. /// <summary>
  44. /// 性别
  45. /// </summary>
  46. [Required]
  47. [DisplayName("性别")]
  48. public int? Sex { get; set; }
  49. /// <summary>
  50. /// 出生日期
  51. /// </summary>
  52. [Required]
  53. [DisplayName("出生日期")]
  54. [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
  55. public DateTime? BirthDate { get; set; }
  56. /// <summary>
  57. /// 民族
  58. /// </summary>
  59. [DisplayName("民族")]
  60. public int? Nation { get; set; }
  61. /// <summary>
  62. /// 政治面貌
  63. /// </summary>
  64. [DisplayName("政治面貌")]
  65. public int? Politics { get; set; }
  66. //<summary>
  67. //政治面貌
  68. //</summary>
  69. [DisplayName("政治面貌")]
  70. [Required]
  71. public string PoliticsName
  72. {
  73. get
  74. {
  75. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Politics.ToString())
  76. .Where(x => x.Value == Politics)
  77. .Select(x => x.Name).FirstOrDefault();
  78. }
  79. }
  80. /// <summary>
  81. /// 证件类型
  82. /// </summary>
  83. [Required]
  84. [DisplayName("证件类型")]
  85. public int? CertificatesType { get; set; }
  86. public string CertificatesTypeStr
  87. {
  88. get
  89. {
  90. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CertificatesType.ToString())
  91. .Where(x => x.Value == CertificatesType)
  92. .Select(x => x.Name).FirstOrDefault();
  93. }
  94. }
  95. /// <summary>
  96. /// 身份证
  97. /// </summary>
  98. [Required]
  99. [DisplayName("证件号")]
  100. public string IDNumber { get; set; }
  101. /// <summary>
  102. /// 准考证号
  103. /// </summary>
  104. //[DisplayName("准考证号")]
  105. //public string ExamineeNum { get; set; }
  106. /// <summary>
  107. /// 学院
  108. /// </summary>
  109. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  110. public string CollegeName { get; set; }
  111. /// <summary>
  112. /// 年级
  113. /// </summary>
  114. [DisplayName("年级专业")]
  115. public string GradeName { get; set; }
  116. /// <summary>
  117. /// 年级专业
  118. /// </summary>
  119. [DisplayName("年级专业代码")]
  120. public string GradeCode { get; set; }
  121. /// <summary>
  122. /// 年级ID
  123. /// </summary>
  124. [DisplayName("年级专业ID")]
  125. public int? StandardID { get; set; }
  126. /// <summary>
  127. /// 班级名称
  128. /// </summary>
  129. [DisplayName("班级名称")]
  130. public string ClassName { get; set; }
  131. /// <summary>
  132. /// 班级ID
  133. /// </summary>
  134. [DisplayName("班级ID")]
  135. public Guid ClassID { get; set; }
  136. /// <summary>
  137. /// 学制
  138. /// </summary>
  139. [DisplayName("学制")]
  140. public decimal? LearnSystem { get; set; }
  141. /// <summary>
  142. /// 班序
  143. /// </summary>
  144. [DisplayName("班级编号")]
  145. public string No { get; set; }
  146. /// <summary>
  147. /// 培养层次
  148. /// </summary>
  149. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  150. public int? EducationID { get; set; }
  151. /// <summary>
  152. /// 学习形式
  153. /// </summary>
  154. [DisplayName("学习形式")]
  155. public int? LearningformID { get; set; }
  156. /// <summary>
  157. /// 学习方式
  158. /// </summary>
  159. [DisplayName("学习方式")]
  160. public int? LearningstyleID { get; set; }
  161. /// <summary>
  162. /// 培养方式/办学类型
  163. /// </summary>
  164. [DisplayName("培养方式/办学类型")]
  165. public int? CultureModel { get; set; }
  166. /// <summary>
  167. /// 学生类别
  168. /// </summary>
  169. [DisplayName("学生类别")]
  170. public int? StudentType { get; set; }
  171. /// <summary>
  172. /// 学籍状态
  173. /// </summary>
  174. [DisplayName("学籍状态")]
  175. public int? StudentStatus { get; set; }
  176. /// <summary>
  177. /// 在校状态
  178. /// </summary>
  179. [DisplayName("在校状态")]
  180. public int? InSchoolStatusID { get; set; }
  181. /// <summary>
  182. /// 在校状态名称
  183. /// </summary>
  184. [DisplayName("在校状态")]
  185. public string InSchoolStatusName
  186. {
  187. get
  188. {
  189. return IdNameExt.GetName(DictionaryItem.CF_InschoolStatus, InSchoolStatusID);
  190. }
  191. }
  192. /// <summary>
  193. /// 入学日期
  194. /// </summary>
  195. [DisplayName("入学日期")]
  196. [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
  197. public DateTime? EntranceDate { get; set; }
  198. /// <summary>
  199. /// 入学方式
  200. /// </summary>
  201. [DisplayName("入学方式")]
  202. public int? EntranceWay { get; set; }
  203. /// <summary>
  204. /// 教育部考生号
  205. /// </summary>
  206. [DisplayName("教育部考生号")]
  207. public string ExamineeNum { get; set; }
  208. /// <summary>
  209. /// 考生类别
  210. /// </summary>
  211. [DisplayName("考生类别")]
  212. public int? ExamineeType { get; set; }
  213. /// <summary>
  214. /// 考生特征
  215. /// </summary>
  216. [DisplayName("考生特征")]
  217. public int? Features { get; set; }
  218. public string FeaturesStr
  219. {
  220. get
  221. {
  222. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Features.ToString())
  223. .Where(x => x.Value == Features)
  224. .Select(x => x.Name).FirstOrDefault();
  225. }
  226. }
  227. /// <summary>
  228. /// 高考总分
  229. /// </summary>
  230. [DisplayName("高考总分")]
  231. public decimal? Score { get; set; }
  232. /// <summary>
  233. /// 生源所属地
  234. /// </summary>
  235. [DisplayName("生源所属地")]
  236. public int? Territorial { get; set; }
  237. /// <summary>
  238. /// 生源所属地名称
  239. /// </summary>
  240. [DisplayName("生源所属地名称")]
  241. public string TerritorialName
  242. {
  243. get
  244. {
  245. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Province.ToString())
  246. .Where(x => x.Value == Territorial)
  247. .Select(x => x.Name).FirstOrDefault();
  248. }
  249. }
  250. /// <summary>
  251. /// 来源地区
  252. /// </summary>
  253. [DisplayName("来源地区")]
  254. public string Area { get; set; }
  255. /// <summary>
  256. /// 籍贯
  257. /// </summary>
  258. [DisplayName("籍贯")]
  259. public string Place { get; set; }
  260. /// <summary>
  261. /// 出生地
  262. /// </summary>
  263. [DisplayName("出生地")]
  264. public string BornPlace { get; set; }
  265. /// <summary>
  266. /// 健康状况
  267. /// </summary>
  268. [DisplayName("健康状况")]
  269. public int? Healthy { get; set; }
  270. /// <summary>
  271. /// 特长
  272. /// </summary>
  273. [DisplayName("特长")]
  274. public string Specialty { get; set; }
  275. /// <summary>
  276. /// 身高(CM)
  277. /// </summary>
  278. [DisplayName("身高(CM)")]
  279. public string Height { get; set; }
  280. /// <summary>
  281. /// 体重(KG)
  282. /// </summary>
  283. [DisplayName("体重(KG)")]
  284. public string Weight { get; set; }
  285. /// <summary>
  286. /// Email
  287. /// </summary>
  288. [DisplayName("Email")]
  289. [RegularExpression(@"^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$", ErrorMessage = "请输入正确的邮箱地址")]
  290. public string Email { get; set; }
  291. /// <summary>
  292. /// QQ
  293. /// </summary>
  294. [DisplayName("QQ")]
  295. public string QQ { get; set; }
  296. /// <summary>
  297. /// 宿舍
  298. /// </summary>
  299. [DisplayName("宿舍")]
  300. public string Dormitory { get; set; }
  301. /// <summary>
  302. /// 固定电话
  303. /// </summary>
  304. [DisplayName("固定电话")]
  305. public string Telephone { get; set; }
  306. /// <summary>
  307. /// 移动电话
  308. /// </summary>
  309. [Required]
  310. [DisplayName("移动电话")]
  311. [RegularExpression(@"^[1][0-9]{10}$", ErrorMessage = "联系电话必须是11位数字")]
  312. public string Mobile { get; set; }
  313. /// <summary>
  314. /// 地址
  315. /// </summary>
  316. [DisplayName("地址")]
  317. public string HomeAddress { get; set; }
  318. /// <summary>
  319. /// 工作单位
  320. /// </summary>
  321. [DisplayName("工作单位")]
  322. public string WorkUnit { get; set; }
  323. /// <summary>
  324. /// 邮编
  325. /// </summary>
  326. [DisplayName("邮编")]
  327. public string Zipcode { get; set; }
  328. /// <summary>
  329. /// 收件人
  330. /// </summary>
  331. [DisplayName("收件人")]
  332. public string Recipient { get; set; }
  333. /// <summary>
  334. /// 拟毕业日期
  335. /// </summary>
  336. [DisplayName("拟毕业日期")]
  337. [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
  338. public DateTime? PlanningGraduateDate { get; set; }
  339. /// <summary>
  340. /// 银行卡号
  341. /// </summary>
  342. [DisplayName("银行卡号")]
  343. public string CardNo { get; set; }
  344. /// <summary>
  345. /// 开户银行
  346. /// </summary>
  347. [DisplayName("开户银行")]
  348. public string BankName { get; set; }
  349. /// <summary>
  350. /// 备注
  351. /// </summary>
  352. [DisplayName("备注")]
  353. public string Remarks { get; set; }
  354. /// <summary>
  355. /// 是否是圆梦计划
  356. /// </summary>
  357. [Required]
  358. [DisplayName("是否是圆梦计划")]
  359. public bool IsDreamProject { get; set; }
  360. /// <summary>
  361. /// 是否是圆梦计划
  362. /// </summary>
  363. [DisplayName("是否是圆梦计划")]
  364. public string IsDreamProjectName
  365. {
  366. get { return this.IsDreamProject != true ? "否" : "是"; }
  367. }
  368. /// <summary>
  369. /// 在校经历
  370. /// </summary>
  371. [DisplayName("在校经历")]
  372. public string Career { get; set; }
  373. public Guid? FacultymajorID { get; set; }
  374. public int? StartSchoolcodeID { get; set; }
  375. public int? StartSchoolyearValue { get; set; }
  376. }
  377. }