StudentInfoView.cs 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using EMIS.ViewModel.Cache;
  7. namespace EMIS.ViewModel.Students
  8. {
  9. public class StudentInfoView
  10. {
  11. public Guid? UserID { get; set; }
  12. public string LoginID { get; set; }
  13. public string UserName { get; set; }
  14. public string Name
  15. {
  16. get
  17. {
  18. return UserName;
  19. }
  20. }
  21. public string UsedName { get; set; }
  22. public int? Sex { get; set; }
  23. /// <summary>
  24. /// 性别名称
  25. /// </summary>
  26. [DisplayName("性别")]
  27. public string SexName
  28. {
  29. get
  30. {
  31. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
  32. .Where(x => x.Value == Sex)
  33. .Select(x => x.Name).FirstOrDefault();
  34. }
  35. }
  36. public int? Nation { get; set; }
  37. public string NationName
  38. {
  39. get
  40. {
  41. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Nation.ToString())
  42. .Where(x => x.Value == Nation)
  43. .Select(x => x.Name).FirstOrDefault();
  44. }
  45. }
  46. public DateTime? Birthday { get; set; }
  47. public int? Politics { get; set; }
  48. public string PoliticsName
  49. {
  50. get
  51. {
  52. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Politics.ToString())
  53. .Where(x => x.Value == Politics)
  54. .Select(x => x.Name).FirstOrDefault();
  55. }
  56. }
  57. public int? CertificatesType { get; set; }
  58. public string CertificatesTypeName
  59. {
  60. get
  61. {
  62. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CertificatesType.ToString())
  63. .Where(x => x.Value == CertificatesType)
  64. .Select(x => x.Name).FirstOrDefault();
  65. }
  66. }
  67. public string IDNumber { get; set; }
  68. public int? EducationID { get; set; }
  69. public string EducationName
  70. {
  71. get
  72. {
  73. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString())
  74. .Where(x => x.Value == EducationID)
  75. .Select(x => x.Name).FirstOrDefault();
  76. }
  77. }
  78. public int? StudentType { get; set; }
  79. public string StudentTypeName
  80. {
  81. get
  82. {
  83. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_STUDENTTYPE.ToString())
  84. .Where(x => x.Value == StudentType)
  85. .Select(x => x.Name).FirstOrDefault();
  86. }
  87. }
  88. public int? StudentStatus { get; set; }
  89. public string StudentStatusName
  90. {
  91. get
  92. {
  93. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_STUDENTSTATUS.ToString())
  94. .Where(x => x.Value == StudentStatus)
  95. .Select(x => x.Name).FirstOrDefault();
  96. }
  97. }
  98. public int? InSchoolStatusID { get; set; }
  99. public string InSchoolStatusName
  100. {
  101. get
  102. {
  103. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString())
  104. .Where(x => x.Value == InSchoolStatusID)
  105. .Select(x => x.Name).FirstOrDefault();
  106. }
  107. }
  108. public DateTime? EntranceDate { get; set; }
  109. [DisplayName("入学方式")]
  110. public int? EntranceWay { get; set; }
  111. [DisplayName("入学方式")]
  112. public string EntranceWayName
  113. {
  114. get
  115. {
  116. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_EntranceWay.ToString())
  117. .Where(x => x.Value == EntranceWay)
  118. .Select(x => x.Name).FirstOrDefault();
  119. }
  120. }
  121. [DisplayName("考生号")]
  122. public string ExamineeNum { get; set; }
  123. [DisplayName("考生类别")]
  124. public int? ExamineeType { get; set; }
  125. [DisplayName("考生类别")]
  126. public string ExamineeTypeName
  127. {
  128. get
  129. {
  130. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_EXAMINEETYPE.ToString())
  131. .Where(x => x.Value == ExamineeType)
  132. .Select(x => x.Name).FirstOrDefault();
  133. }
  134. }
  135. [DisplayName("考生特征")]
  136. public int? Features { get; set; }
  137. public string FeaturesName
  138. {
  139. get
  140. {
  141. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Features.ToString())
  142. .Where(x => x.Value == Features)
  143. .Select(x => x.Name).FirstOrDefault();
  144. }
  145. }
  146. [DisplayName("高考总分")]
  147. public decimal? Score { get; set; }
  148. [DisplayName("生源所属地")]
  149. public int? Territorial { get; set; }
  150. /// <summary>
  151. /// 生源所属地名称
  152. /// </summary>
  153. [DisplayName("生源所属地名称")]
  154. public string TerritorialName
  155. {
  156. get
  157. {
  158. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Province.ToString())
  159. .Where(x => x.Value == Territorial)
  160. .Select(x => x.Name).FirstOrDefault();
  161. }
  162. }
  163. [DisplayName("来源地区")]
  164. public string Area { get; set; }
  165. [DisplayName("籍贯")]
  166. public string Place { get; set; }
  167. [DisplayName("健康状态")]
  168. public int? Healthy { get; set; }
  169. /// <summary>
  170. /// 健康状态
  171. /// </summary>
  172. [DisplayName("健康状态")]
  173. public string HealthyName
  174. {
  175. get
  176. {
  177. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_HealthState.ToString())
  178. .Where(x => x.Value == Healthy)
  179. .Select(x => x.Name).FirstOrDefault();
  180. }
  181. }
  182. /// <summary>
  183. /// 特长
  184. /// </summary>
  185. [DisplayName("特长")]
  186. public string Specialty { get; set; }
  187. /// <summary>
  188. /// 身高
  189. /// </summary>
  190. [DisplayName("身高")]
  191. public string Height { get; set; }
  192. /// <summary>
  193. /// 体重
  194. /// </summary>
  195. [DisplayName("体重")]
  196. public string Weight { get; set; }
  197. /// <summary>
  198. /// 电子邮件
  199. /// </summary>
  200. [DisplayName("电子邮件")]
  201. public string Email { get; set; }
  202. /// <summary>
  203. /// QQ
  204. /// </summary>
  205. [DisplayName("QQ")]
  206. public string QQ { get; set; }
  207. /// <summary>
  208. /// 宿舍编号
  209. /// </summary>
  210. [DisplayName("宿舍编号")]
  211. public string Dormitory { get; set; }
  212. /// <summary>
  213. /// 移动电话
  214. /// </summary>
  215. [DisplayName("移动电话")]
  216. public string Mobile { get; set; }
  217. /// <summary>
  218. /// 固定电话
  219. /// </summary>
  220. [DisplayName("固定电话")]
  221. public string Telephone { get; set; }
  222. /// <summary>
  223. /// 通信地址
  224. /// </summary>
  225. [DisplayName("通信地址")]
  226. public string Address { get; set; }
  227. /// <summary>
  228. /// 工作单位
  229. /// </summary>
  230. [DisplayName("工作单位")]
  231. public string WorkUnit { get; set; }
  232. /// <summary>
  233. /// 邮编
  234. /// </summary>
  235. [DisplayName("邮编")]
  236. public string ZipCode { get; set; }
  237. /// <summary>
  238. /// 收件人
  239. /// </summary>
  240. [DisplayName("收件人")]
  241. public string Recipient { get; set; }
  242. /// <summary>
  243. /// 开户银行
  244. /// </summary>
  245. [DisplayName("开户银行")]
  246. public string BankName { get; set; }
  247. /// <summary>
  248. /// 银行卡号
  249. /// </summary>
  250. [DisplayName("银行卡号")]
  251. public string CardNo { get; set; }
  252. /// <summary>
  253. /// 备注
  254. /// </summary>
  255. [DisplayName("备注")]
  256. public string Remarks { get; set; }
  257. }
  258. }