StudentInfoView.cs 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using EMIS.ViewModel.CacheManage;
  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).Select(x => x.Name).FirstOrDefault();
  95. }
  96. }
  97. public int? InSchoolStatusID { get; set; }
  98. public string InSchoolStatusName
  99. {
  100. get
  101. {
  102. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString())
  103. .Where(x => x.Value == InSchoolStatusID)
  104. .Select(x => x.Name).FirstOrDefault();
  105. }
  106. }
  107. public DateTime? EntranceDate { get; set; }
  108. [DisplayName("入学方式")]
  109. public int? EntranceWay { get; set; }
  110. [DisplayName("入学方式")]
  111. public string EntranceWayName
  112. {
  113. get
  114. {
  115. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_EntranceWay.ToString())
  116. .Where(x => x.Value == EntranceWay)
  117. .Select(x => x.Name).FirstOrDefault();
  118. }
  119. }
  120. [DisplayName("考生号")]
  121. public string ExamineeNum { get; set; }
  122. [DisplayName("考生类别")]
  123. public int? ExamineeType { get; set; }
  124. [DisplayName("考生类别")]
  125. public string ExamineeTypeName
  126. {
  127. get
  128. {
  129. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_EXAMINEETYPE.ToString())
  130. .Where(x => x.Value == ExamineeType)
  131. .Select(x => x.Name).FirstOrDefault();
  132. }
  133. }
  134. [DisplayName("考生特征")]
  135. public int? Features { get; set; }
  136. public string FeaturesName
  137. {
  138. get
  139. {
  140. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Features.ToString())
  141. .Where(x => x.Value == Features)
  142. .Select(x => x.Name).FirstOrDefault();
  143. }
  144. }
  145. [DisplayName("高考总分")]
  146. public decimal? Score { get; set; }
  147. [DisplayName("生源所属地")]
  148. public int? Territorial { get; set; }
  149. /// <summary>
  150. /// 生源所属地名称
  151. /// </summary>
  152. [DisplayName("生源所属地名称")]
  153. public string TerritorialName
  154. {
  155. get
  156. {
  157. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Province.ToString())
  158. .Where(x => x.Value == Territorial)
  159. .Select(x => x.Name).FirstOrDefault();
  160. }
  161. }
  162. [DisplayName("来源地区")]
  163. public string Area { get; set; }
  164. [DisplayName("籍贯")]
  165. public string Place { get; set; }
  166. [DisplayName("健康状态")]
  167. public int? Healthy { get; set; }
  168. /// <summary>
  169. /// 健康状态
  170. /// </summary>
  171. [DisplayName("健康状态")]
  172. public string HealthyName
  173. {
  174. get
  175. {
  176. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_HealthState.ToString())
  177. .Where(x => x.Value == Healthy)
  178. .Select(x => x.Name).FirstOrDefault();
  179. }
  180. }
  181. /// <summary>
  182. /// 特长
  183. /// </summary>
  184. [DisplayName("特长")]
  185. public string Specialty { get; set; }
  186. /// <summary>
  187. /// 身高
  188. /// </summary>
  189. [DisplayName("身高")]
  190. public string Height { get; set; }
  191. /// <summary>
  192. /// 体重
  193. /// </summary>
  194. [DisplayName("体重")]
  195. public string Weight { get; set; }
  196. /// <summary>
  197. /// 电子邮件
  198. /// </summary>
  199. [DisplayName("电子邮件")]
  200. public string Email { get; set; }
  201. /// <summary>
  202. /// QQ
  203. /// </summary>
  204. [DisplayName("QQ")]
  205. public string QQ { get; set; }
  206. /// <summary>
  207. /// 宿舍编号
  208. /// </summary>
  209. [DisplayName("宿舍编号")]
  210. public string Dormitory { get; set; }
  211. /// <summary>
  212. /// 移动电话
  213. /// </summary>
  214. [DisplayName("移动电话")]
  215. public string Mobile { get; set; }
  216. /// <summary>
  217. /// 固定电话
  218. /// </summary>
  219. [DisplayName("固定电话")]
  220. public string Telephone { get; set; }
  221. /// <summary>
  222. /// 通信地址
  223. /// </summary>
  224. [DisplayName("通信地址")]
  225. public string Address { get; set; }
  226. /// <summary>
  227. /// 工作单位
  228. /// </summary>
  229. [DisplayName("工作单位")]
  230. public string WorkUnit { get; set; }
  231. /// <summary>
  232. /// 邮编
  233. /// </summary>
  234. [DisplayName("邮编")]
  235. public string ZipCode { get; set; }
  236. /// <summary>
  237. /// 收件人
  238. /// </summary>
  239. [DisplayName("收件人")]
  240. public string Recipient { get; set; }
  241. /// <summary>
  242. /// 开户银行
  243. /// </summary>
  244. [DisplayName("开户银行")]
  245. public string BankName { get; set; }
  246. /// <summary>
  247. /// 银行卡号
  248. /// </summary>
  249. [DisplayName("银行卡号")]
  250. public string CardNo { get; set; }
  251. /// <summary>
  252. /// 备注
  253. /// </summary>
  254. [DisplayName("备注")]
  255. public string Remarks { get; set; }
  256. }
  257. }