ResitStudentView.cs 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  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. using System.ComponentModel.DataAnnotations;
  8. namespace EMIS.ViewModel.ScoreManage
  9. {
  10. public class ResitStudentView
  11. {
  12. /// <summary>
  13. /// 学年学期ID
  14. /// </summary>
  15. [DisplayName("学年学期ID")]
  16. public Guid? SchoolyearID { get; set; }
  17. public Guid? FinalExaminationID { get; set; }
  18. /// <summary>
  19. /// 院系所
  20. /// </summary>
  21. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  22. public Guid? CollegeID { get; set; }
  23. /// <summary>
  24. /// 院系所
  25. /// </summary>
  26. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  27. public string CollegeName { get; set; }
  28. /// <summary>
  29. /// 学年学期
  30. /// </summary>
  31. [DisplayName("学年学期")]
  32. public string SchoolyearCode { get; set; }
  33. /// <summary>
  34. /// 用户ID
  35. /// </summary>
  36. [DisplayName("用户ID")]
  37. public Guid UserID { get; set; }
  38. /// <summary>
  39. /// 学号
  40. /// </summary>
  41. [DisplayName("")]
  42. public string LoginID { get; set; }
  43. /// <summary>
  44. /// 姓名
  45. /// </summary>
  46. [DisplayName("")]
  47. public string UserName { get; set; }
  48. /// <summary>
  49. /// 性别
  50. /// </summary>
  51. [DisplayName("性别")]
  52. public int? SexID { get; set; }
  53. /// <summary>
  54. /// 性别
  55. /// </summary>
  56. [DisplayName("性别")]
  57. public string SexName
  58. {
  59. get
  60. {
  61. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
  62. .Where(x => x.Value == SexID)
  63. .Select(x => x.Name).FirstOrDefault();
  64. }
  65. }
  66. /// <summary>
  67. /// 教研室ID
  68. /// </summary>
  69. [DisplayName("教研室ID")]
  70. public Guid? DepartmentID { get; set; }
  71. /// <summary>
  72. /// 年级专业ID
  73. /// </summary>
  74. [DisplayName("年级专业ID")]
  75. public Guid? GrademajorID { get; set; }
  76. /// <summary>
  77. /// 年级专业编号
  78. /// </summary>
  79. [DisplayName("年级专业编号")]
  80. public string GrademajorCode { get; set; }
  81. /// <summary>
  82. /// 年级专业名称
  83. /// </summary>
  84. [DisplayName("年级专业名称")]
  85. public string GrademajorName { get; set; }
  86. /// <summary>
  87. /// 班级信息ID
  88. /// </summary>
  89. [DisplayName("班级信息ID")]
  90. public Guid? ClassmajorID { get; set; }
  91. /// <summary>
  92. /// 班级编号
  93. /// </summary>
  94. [DisplayName("班级编号")]
  95. public string ClassmajorNo { get; set; }
  96. /// <summary>
  97. /// 班级名称
  98. /// </summary>
  99. [DisplayName("班级名称")]
  100. public string ClassmajorName { get; set; }
  101. /// <summary>
  102. /// 年级
  103. /// </summary>
  104. [DisplayName("年级")]
  105. public int? Year { get; set; }
  106. /// <summary>
  107. /// 专业ID(Value)
  108. /// </summary>
  109. [DisplayName("专业ID(Value)")]
  110. public int? StandardID { get; set; }
  111. /// <summary>
  112. /// 专业代码
  113. /// </summary>
  114. [DisplayName("专业代码")]
  115. public string StandardCode
  116. {
  117. get
  118. {
  119. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  120. .Where(x => x.Value == StandardID)
  121. .Select(x => x.Code).FirstOrDefault();
  122. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  123. }
  124. }
  125. /// <summary>
  126. /// 专业名称
  127. /// </summary>
  128. [DisplayName("专业名称")]
  129. public string StandardName
  130. {
  131. get
  132. {
  133. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  134. .Where(x => x.Value == StandardID)
  135. .Select(x => x.Name).FirstOrDefault();
  136. }
  137. }
  138. /// <summary>
  139. /// 培养层次(所修学历)
  140. /// </summary>
  141. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  142. public int? EducationID { get; set; }
  143. /// <summary>
  144. /// 培养层次(所修学历)
  145. /// </summary>
  146. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  147. public string EducationName
  148. {
  149. get
  150. {
  151. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString())
  152. .Where(x => x.Value == EducationID)
  153. .Select(x => x.Name).FirstOrDefault();
  154. }
  155. }
  156. /// <summary>
  157. /// 学习形式
  158. /// </summary>
  159. [DisplayName("学习形式")]
  160. public int? LearningformID { get; set; }
  161. /// <summary>
  162. /// 学习形式
  163. /// </summary>
  164. [DisplayName("学习形式")]
  165. public string LearningformName
  166. {
  167. get
  168. {
  169. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString())
  170. .Where(x => x.Value == LearningformID)
  171. .Select(x => x.Name).FirstOrDefault();
  172. }
  173. }
  174. /// <summary>
  175. /// 学制
  176. /// </summary>
  177. [DisplayName("学制")]
  178. public decimal? LearnSystem { get; set; }
  179. /// <summary>
  180. /// 录入班级名称
  181. /// </summary>
  182. [DisplayName("录入班级名称")]
  183. public string ClassName { get; set; }
  184. /// <summary>
  185. /// 成绩类型
  186. /// </summary>
  187. [DisplayName("")]
  188. public int? ResultTypeID { get; set; }
  189. /// <summary>
  190. /// 成绩类型
  191. /// </summary>
  192. [DisplayName("成绩类型")]
  193. public string ResultTypeName
  194. {
  195. get
  196. {
  197. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ResultType.ToString())
  198. .Where(x => x.Value == ResultTypeID)
  199. .Select(x => x.Name).FirstOrDefault();
  200. }
  201. }
  202. /// <summary>
  203. /// 考试性质
  204. /// </summary>
  205. [DisplayName("考试性质")]
  206. public int? ExamsCategoryID { get; set; }
  207. /// <summary>
  208. /// 考试性质
  209. /// </summary>
  210. [DisplayName("考试性质")]
  211. public string ExamsCategoryName
  212. {
  213. get
  214. {
  215. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExamsCategory.ToString())
  216. .Where(x => x.Value == ExamsCategoryID)
  217. .Select(x => x.Name).FirstOrDefault();
  218. }
  219. }
  220. /// <summary>
  221. /// 考试方式
  222. /// </summary>
  223. [DisplayName("考试方式")]
  224. public int? ExaminationModeID { get; set; }
  225. /// <summary>
  226. /// 开课院系所ID
  227. /// </summary>
  228. [DisplayName("开课院系所ID")]
  229. public Guid? CourseCollegeID { get; set; }
  230. /// <summary>
  231. /// 课程学分
  232. /// </summary>
  233. [DisplayName("课程学分")]
  234. public decimal? CourseCredit { get; set; }
  235. /// <summary>
  236. /// 课程信息ID
  237. /// </summary>
  238. [DisplayName("课程信息ID")]
  239. public Guid? CoursematerialID { get; set; }
  240. /// <summary>
  241. /// 课程代码
  242. /// </summary>
  243. [DisplayName("课程代码")]
  244. public string CourseCode { get; set; }
  245. /// <summary>
  246. /// 课程名称
  247. /// </summary>
  248. [DisplayName("课程名称")]
  249. public string CourseName { get; set; }
  250. /// <summary>
  251. /// 课程类型
  252. /// </summary>
  253. [DisplayName("课程类型")]
  254. public int? CourseTypeID { get; set; }
  255. /// <summary>
  256. /// 课程类型
  257. /// </summary>
  258. [DisplayName("课程类型")]
  259. public string CourseTypeName
  260. {
  261. get
  262. {
  263. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseType.ToString())
  264. .Where(x => x.Value == CourseTypeID)
  265. .Select(x => x.Name).FirstOrDefault();
  266. }
  267. }
  268. /// <summary>
  269. /// 考试状态
  270. /// </summary>
  271. [DisplayName("考试状态")]
  272. public int? ExamsStateID { get; set; }
  273. /// <summary>
  274. /// 考试状态
  275. /// </summary>
  276. [DisplayName("考试状态")]
  277. public string ExamsStateName
  278. {
  279. get
  280. {
  281. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExamsState.ToString())
  282. .Where(x => x.Value == ExamsStateID)
  283. .Select(x => x.Name).FirstOrDefault();
  284. }
  285. }
  286. /// <summary>
  287. /// 学年数
  288. /// </summary>
  289. [DisplayName("学年数")]
  290. public int? SchoolyearNumID { get; set; }
  291. /// <summary>
  292. /// 开课学期
  293. /// </summary>
  294. [DisplayName("开课学期")]
  295. public int? StartTermID { get; set; }
  296. /// <summary>
  297. /// 学分
  298. /// </summary>
  299. [DisplayName("学分")]
  300. public decimal? Credit { get; set; }
  301. /// <summary>
  302. /// 总学时
  303. /// </summary>
  304. [DisplayName("总学时")]
  305. public int? TotalHours { get; set; }
  306. /// <summary>
  307. /// 备注
  308. /// </summary>
  309. [DisplayName("备注")]
  310. public string Remark { get; set; }
  311. /// <summary>
  312. /// 创建人ID
  313. /// </summary>
  314. [DisplayName("创建人ID")]
  315. public Guid? CreatorUserID { get; set; }
  316. }
  317. }