BaseStudentView.cs 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  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 BaseStudentView
  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 LoginID { get; set; }
  22. /// <summary>
  23. /// 姓名
  24. /// </summary>
  25. [DisplayName("姓名")]
  26. public string UserName { get; set; }
  27. /// <summary>
  28. /// 性别
  29. /// </summary>
  30. [DisplayName("性别")]
  31. public int? SexID { get; set; }
  32. /// <summary>
  33. /// 性别
  34. /// </summary>
  35. [DisplayName("性别")]
  36. public string SexName
  37. {
  38. get
  39. {
  40. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
  41. .Where(x => x.Value == SexID)
  42. .Select(x => x.Name).FirstOrDefault();
  43. }
  44. }
  45. /// <summary>
  46. /// 身份证号
  47. /// </summary>
  48. [DisplayName("身份证号")]
  49. public string IDNumber { get; set; }
  50. /// <summary>
  51. /// 在校状态
  52. /// </summary>
  53. [DisplayName("在校状态")]
  54. public int? InSchoolStatusID { get; set; }
  55. /// <summary>
  56. /// 在校状态
  57. /// </summary>
  58. [DisplayName("在校状态")]
  59. public string InSchoolStatusName
  60. {
  61. get
  62. {
  63. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString())
  64. .Where(x => x.Value == InSchoolStatusID)
  65. .Select(x => x.Name).FirstOrDefault();
  66. }
  67. }
  68. /// <summary>
  69. /// 学籍状态
  70. /// </summary>
  71. [DisplayName("学籍状态")]
  72. public int? StudentStatus { get; set; }
  73. /// <summary>
  74. /// 学籍状态
  75. /// </summary>
  76. [DisplayName("学籍状态")]
  77. public string StudentStatusName
  78. {
  79. get
  80. {
  81. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StudentStatus.ToString())
  82. .Where(x => x.Value == StudentStatus)
  83. .Select(x => x.Name).FirstOrDefault();
  84. }
  85. }
  86. /// <summary>
  87. /// 年级
  88. /// </summary>
  89. [DisplayName("年级")]
  90. public int? Years { get; set; }
  91. /// <summary>
  92. /// 年级
  93. /// </summary>
  94. [DisplayName("年级")]
  95. public int? SchoolyearID { get; set; }
  96. /// <summary>
  97. /// 学期
  98. /// </summary>
  99. [DisplayName("学期")]
  100. public int? SchoolcodeID { get; set; }
  101. /// <summary>
  102. /// 学期
  103. /// </summary>
  104. [DisplayName("学期")]
  105. public string SchoolcodeName
  106. {
  107. get
  108. {
  109. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Semester.ToString()).Where(x => x.Value == SchoolcodeID).Select(x => x.Name).FirstOrDefault();
  110. }
  111. }
  112. /// <summary>
  113. /// 专业信息ID
  114. /// </summary>
  115. [DisplayName("专业信息ID")]
  116. public Guid? SpecialtyID { get; set; }
  117. /// <summary>
  118. /// 专业ID(Value)
  119. /// </summary>
  120. [DisplayName("专业ID(Value)")]
  121. public int? StandardID { get; set; }
  122. /// <summary>
  123. /// 专业名称
  124. /// </summary>
  125. [DisplayName("专业名称")]
  126. public string SpecialtyName { get; set; }
  127. /// <summary>
  128. /// 班级信息ID
  129. /// </summary>
  130. [DisplayName("班级信息ID")]
  131. public Guid? ClassmajorID { get; set; }
  132. /// <summary>
  133. /// 班级编号
  134. /// </summary>
  135. [DisplayName("班级编号")]
  136. public string ClassmajorCode { get; set; }
  137. /// <summary>
  138. /// 班级名称
  139. /// </summary>
  140. [DisplayName("班级名称")]
  141. public string ClassmajorName { get; set; }
  142. /// <summary>
  143. /// 班序
  144. /// </summary>
  145. [DisplayName("班序")]
  146. public int? ClassNum { get; set; }
  147. /// <summary>
  148. /// 年级专业ID
  149. /// </summary>
  150. [DisplayName("年级专业ID")]
  151. public Guid? GrademajorID { get; set; }
  152. /// <summary>
  153. /// 年级专业编号
  154. /// </summary>
  155. [DisplayName("年级专业编号")]
  156. public string GrademajorCode { get; set; }
  157. /// <summary>
  158. /// 年级专业名称
  159. /// </summary>
  160. [DisplayName("年级专业名称")]
  161. public string GrademajorName { get; set; }
  162. /// <summary>
  163. /// 院系专业ID
  164. /// </summary>
  165. [DisplayName("院系专业ID")]
  166. public Guid? FacultymajorID { get; set; }
  167. /// <summary>
  168. /// 院系专业代码
  169. /// </summary>
  170. [DisplayName("院系专业代码")]
  171. public string FacultymajorCode { get; set; }
  172. /// <summary>
  173. /// 院系专业名称
  174. /// </summary>
  175. [DisplayName("院系专业名称")]
  176. public string FacultymajorName { get; set; }
  177. /// <summary>
  178. /// 院系所ID
  179. /// </summary>
  180. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  181. public Guid? CollegeID { get; set; }
  182. /// <summary>
  183. /// 院系所代码
  184. /// </summary>
  185. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  186. public string CollegeNo { get; set; }
  187. /// <summary>
  188. /// 院系所名称
  189. /// </summary>
  190. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  191. public string CollegeName { get; set; }
  192. /// <summary>
  193. /// 校区ID
  194. /// </summary>
  195. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  196. public Guid? CampusID { get; set; }
  197. /// <summary>
  198. /// 校区代码
  199. /// </summary>
  200. [Required]
  201. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  202. public string CampusNo { get; set; }
  203. /// <summary>
  204. /// 校区名称
  205. /// </summary>
  206. [Required]
  207. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
  208. public string CampusName { get; set; }
  209. /// <summary>
  210. /// 学年学期
  211. /// </summary>
  212. [DisplayName("学年学期")]
  213. public string SchoolYearCode { get; set; }
  214. /// <summary>
  215. /// 选修任务班名称
  216. /// </summary>
  217. [DisplayName("选修任务班名称")]
  218. public string DefaultClassName { get; set; }
  219. /// <summary>
  220. /// 课程信息ID
  221. /// </summary>
  222. [DisplayName("课程信息ID")]
  223. public Guid? CoursematerialID { get; set; }
  224. /// <summary>
  225. /// 课程代码
  226. /// </summary>
  227. [DisplayName("课程代码")]
  228. public string CoursematerialCode { get; set; }
  229. /// <summary>
  230. /// 课程名称
  231. /// </summary>
  232. [DisplayName("课程名称")]
  233. public string CoursematerialName { get; set; }
  234. /// <summary>
  235. /// 课程类型
  236. /// </summary>
  237. [DisplayName("课程类型")]
  238. public int? CourseTypeID { get; set; }
  239. /// <summary>
  240. /// 课程类型
  241. /// </summary>
  242. [DisplayName("课程类型")]
  243. public string CourseTypeName
  244. {
  245. get
  246. {
  247. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseType.ToString())
  248. .Where(x => x.Value == CourseTypeID)
  249. .Select(x => x.Name).FirstOrDefault();
  250. }
  251. }
  252. /// <summary>
  253. /// 开课学年
  254. /// </summary>
  255. [DisplayName("开课学年")]
  256. public int? GradeYear { get; set; }
  257. /// <summary>
  258. /// 开课学期(期末设定、补考设定)
  259. /// </summary>
  260. [DisplayName("开课学期")]
  261. public int? StarttermID { get; set; }
  262. /// <summary>
  263. /// 开课学期
  264. /// </summary>
  265. [DisplayName("开课学期")]
  266. public string Startterm
  267. {
  268. get
  269. {
  270. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Startterm.ToString())
  271. .Where(x => x.Value == StarttermID)
  272. .Select(x => x.Name).FirstOrDefault();
  273. }
  274. }
  275. /// <summary>
  276. /// 是否异动
  277. /// </summary>
  278. [DisplayName("是否异动")]
  279. public bool IsDifferentDynamic { get; set; }
  280. /// <summary>
  281. /// 是否可用
  282. /// </summary>
  283. [DisplayName("是否可用")]
  284. public int? RecordStatus { get; set; }
  285. }
  286. }