StudentRecordView.cs 11 KB

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