GraduateDesignCourseScoreView.cs 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Text;
  7. using EMIS.ViewModel.CacheManage;
  8. namespace EMIS.ViewModel.GraduationManage.GraduationSetting
  9. {
  10. public class GraduateDesignCourseScoreView
  11. {
  12. /// <summary>
  13. /// 学位申请ID
  14. /// </summary>
  15. [DisplayName("学位申请ID")]
  16. public Guid DegreeApplyID { get; set; }
  17. /// <summary>
  18. /// 毕业申请ID
  19. /// </summary>
  20. [DisplayName("毕业申请ID")]
  21. public Guid GraduationApplyID { get; set; }
  22. /// <summary>
  23. /// 最终成绩ID
  24. /// </summary>
  25. [DisplayName("最终成绩ID")]
  26. public Guid? FinallyScoreID { get; set; }
  27. /// <summary>
  28. /// 学年学期
  29. /// </summary>
  30. [DisplayName("学年学期")]
  31. public Guid? SchoolyearID { get; set; }
  32. /// <summary>
  33. /// 学年学期
  34. /// </summary>
  35. [DisplayName("学年学期")]
  36. public string SchoolyearCode { get; set; }
  37. /// <summary>
  38. /// 录入班级名称
  39. /// </summary>
  40. [DisplayName("录入班级名称")]
  41. public string ClassName { get; set; }
  42. /// <summary>
  43. /// 设定类型
  44. /// </summary>
  45. public int? ExaminationTypeID { get; set; }
  46. /// <summary>
  47. /// 设定类型
  48. /// </summary>
  49. public string ExaminationTypeName
  50. {
  51. get
  52. {
  53. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExaminationType.ToString())
  54. .Where(x => x.Value == ExaminationTypeID)
  55. .Select(x => x.Name).FirstOrDefault();
  56. }
  57. }
  58. /// <summary>
  59. /// 考试方式
  60. /// </summary>
  61. [DisplayName("考试方式")]
  62. public int? ExaminationModeID { get; set; }
  63. /// <summary>
  64. /// 考试方式
  65. /// </summary>
  66. [DisplayName("考试方式")]
  67. public string ExaminationModeName
  68. {
  69. get
  70. {
  71. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExaminationMode.ToString())
  72. .Where(x => x.Value == ExaminationModeID)
  73. .Select(x => x.Name).FirstOrDefault();
  74. }
  75. }
  76. /// <summary>
  77. /// 处理方式
  78. /// </summary>
  79. [Required]
  80. [DisplayName("处理方式")]
  81. public int? HandleModeID { get; set; }
  82. /// <summary>
  83. /// 处理方式
  84. /// </summary>
  85. [DisplayName("处理方式")]
  86. public string HandleModeName
  87. {
  88. get
  89. {
  90. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_HandleMode.ToString())
  91. .Where(x => x.Value == HandleModeID)
  92. .Select(x => x.Name).FirstOrDefault();
  93. }
  94. }
  95. /// <summary>
  96. /// 录入人
  97. /// </summary>
  98. [DisplayName("录入人")]
  99. public Guid? CreatorUserID { get; set; }
  100. /// <summary>
  101. /// 录入人编号
  102. /// </summary>
  103. [DisplayName("录入人编号")]
  104. public string CreatorUserCode { get; set; }
  105. /// <summary>
  106. /// 录入人姓名
  107. /// </summary>
  108. [DisplayName("录入人姓名")]
  109. public string CreatorUserName { get; set; }
  110. /// <summary>
  111. /// 课程信息ID
  112. /// </summary>
  113. [DisplayName("课程信息ID")]
  114. public Guid? CoursematerialID { get; set; }
  115. /// <summary>
  116. /// 课程代码
  117. /// </summary>
  118. [DisplayName("课程代码")]
  119. public string CourseCode { get; set; }
  120. /// <summary>
  121. /// 课程名称
  122. /// </summary>
  123. [DisplayName("课程名称")]
  124. public string CourseName { get; set; }
  125. /// <summary>
  126. /// 课程类型
  127. /// </summary>
  128. [DisplayName("课程类型")]
  129. public int? CourseTypeID { get; set; }
  130. /// <summary>
  131. /// 课程类型
  132. /// </summary>
  133. [DisplayName("课程类型")]
  134. public string CourseTypeName
  135. {
  136. get
  137. {
  138. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseType.ToString())
  139. .Where(x => x.Value == CourseTypeID)
  140. .Select(x => x.Name).FirstOrDefault();
  141. }
  142. }
  143. /// <summary>
  144. /// 是否学位课程
  145. /// </summary>
  146. [DisplayName("是否学位课程")]
  147. public bool IsMainCourse { get; set; }
  148. /// <summary>
  149. /// 是否学位课程
  150. /// </summary>
  151. [DisplayName("是否学位课程")]
  152. public string IsMainCourseName
  153. {
  154. get { return this.IsMainCourse == true ? "是" : "否"; }
  155. }
  156. /// <summary>
  157. /// 课程学分
  158. /// </summary>
  159. [DisplayName("课程学分")]
  160. public decimal? Credit { get; set; }
  161. /// <summary>
  162. /// 理论学时
  163. /// </summary>
  164. [DisplayName("理论学时")]
  165. public int? TheoryCourse { get; set; }
  166. /// <summary>
  167. /// 实践学时
  168. /// </summary>
  169. [DisplayName("实践学时")]
  170. public int? Practicehours { get; set; }
  171. /// <summary>
  172. /// 实验学时
  173. /// </summary>
  174. [DisplayName("实验学时")]
  175. public int? Trialhours { get; set; }
  176. /// <summary>
  177. /// 总学时
  178. /// </summary>
  179. [DisplayName("总学时")]
  180. public int? Totalhours { get; set; }
  181. /// <summary>
  182. /// 成绩类型
  183. /// </summary>
  184. [DisplayName("成绩类型")]
  185. public int? ResultTypeID { get; set; }
  186. /// <summary>
  187. /// 成绩类型
  188. /// </summary>
  189. [DisplayName("成绩类型")]
  190. public string ResultTypeName
  191. {
  192. get
  193. {
  194. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ResultType.ToString())
  195. .Where(x => x.Value == ResultTypeID)
  196. .Select(x => x.Name).FirstOrDefault();
  197. }
  198. }
  199. /// <summary>
  200. /// 开课教研室
  201. /// </summary>
  202. [DisplayName("开课教研室")]
  203. public Guid? DepartmentID { get; set; }
  204. /// <summary>
  205. /// 开课教研室
  206. /// </summary>
  207. [DisplayName("开课教研室")]
  208. public string DepartmentName { get; set; }
  209. /// <summary>
  210. /// 开课学年
  211. /// </summary>
  212. [DisplayName("开课学年")]
  213. public int? SchoolyearNumID { get; set; }
  214. /// <summary>
  215. /// 开课学年
  216. /// </summary>
  217. [DisplayName("开课学年")]
  218. public string SchoolyearNumName
  219. {
  220. get
  221. {
  222. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolyearNum.ToString())
  223. .Where(x => x.Value == SchoolyearNumID)
  224. .Select(x => x.Name).FirstOrDefault();
  225. }
  226. }
  227. /// <summary>
  228. /// 学期
  229. /// </summary>
  230. [DisplayName("学期")]
  231. public int? SchoolcodeID { get; set; }
  232. /// <summary>
  233. /// 学期
  234. /// </summary>
  235. [DisplayName("学期")]
  236. public string SchoolcodeName
  237. {
  238. get
  239. {
  240. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Semester.ToString()).Where(x => x.Value == SchoolcodeID).Select(x => x.Name).FirstOrDefault();
  241. }
  242. }
  243. /// <summary>
  244. /// 开课学期
  245. /// </summary>
  246. [DisplayName("开课学期")]
  247. public int? StarttermID { get; set; }
  248. /// <summary>
  249. /// 开课学期
  250. /// </summary>
  251. public string StarttermName
  252. {
  253. get
  254. {
  255. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Startterm.ToString())
  256. .Where(x => x.Value == StarttermID)
  257. .Select(x => x.Name).FirstOrDefault();
  258. }
  259. }
  260. /// <summary>
  261. /// 学生ID
  262. /// </summary>
  263. [DisplayName("学生ID")]
  264. public Guid? UserID { get; set; }
  265. /// <summary>
  266. /// 学号
  267. /// </summary>
  268. [DisplayName("学号")]
  269. public string LoginID { get; set; }
  270. /// <summary>
  271. /// 姓名
  272. /// </summary>
  273. [DisplayName("姓名")]
  274. public string UserName { get; set; }
  275. /// <summary>
  276. /// 校区ID
  277. /// </summary>
  278. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  279. public Guid? CampusID { get; set; }
  280. /// <summary>
  281. /// 校区代码
  282. /// </summary>
  283. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  284. public string CampusNo { get; set; }
  285. /// <summary>
  286. /// 校区名称
  287. /// </summary>
  288. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
  289. public string CampusName { get; set; }
  290. /// <summary>
  291. /// 院系所ID
  292. /// </summary>
  293. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  294. public Guid? CollegeID { get; set; }
  295. /// <summary>
  296. /// 院系所代码
  297. /// </summary>
  298. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  299. public string CollegeCode { get; set; }
  300. /// <summary>
  301. /// 院系所名称
  302. /// </summary>
  303. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeName")]
  304. public string CollegeName { get; set; }
  305. /// <summary>
  306. /// 院系专业ID
  307. /// </summary>
  308. [DisplayName("院系专业ID")]
  309. public Guid? FacultymajorID { get; set; }
  310. /// <summary>
  311. /// 院系专业编号
  312. /// </summary>
  313. [DisplayName("院系专业编号")]
  314. public string FacultymajorCode { get; set; }
  315. /// <summary>
  316. /// 院系专业名称
  317. /// </summary>
  318. [DisplayName("院系专业名称")]
  319. public string FacultymajorName { get; set; }
  320. /// <summary>
  321. /// 年级专业ID
  322. /// </summary>
  323. [DisplayName("年级专业ID")]
  324. public Guid? GrademajorID { get; set; }
  325. /// <summary>
  326. /// 年级专业编号
  327. /// </summary>
  328. [DisplayName("年级专业编号")]
  329. public string GrademajorCode { get; set; }
  330. /// <summary>
  331. /// 年级专业名称
  332. /// </summary>
  333. [DisplayName("年级专业名称")]
  334. public string GrademajorName { get; set; }
  335. /// <summary>
  336. /// 班级信息ID
  337. /// </summary>
  338. [DisplayName("班级信息ID")]
  339. public Guid? ClassmajorID { get; set; }
  340. /// <summary>
  341. /// 班级编号
  342. /// </summary>
  343. [DisplayName("班级编号")]
  344. public string ClassmajorCode { get; set; }
  345. /// <summary>
  346. /// 班级名称
  347. /// </summary>
  348. [DisplayName("班级名称")]
  349. public string ClassmajorName { get; set; }
  350. /// <summary>
  351. /// 考试性质
  352. /// </summary>
  353. [DisplayName("考试性质")]
  354. public int? ExamsCategoryID { get; set; }
  355. /// <summary>
  356. /// 考试性质
  357. /// </summary>
  358. [DisplayName("考试性质")]
  359. public string ExamsCategoryName
  360. {
  361. get
  362. {
  363. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExamsCategory.ToString())
  364. .Where(x => x.Value == ExamsCategoryID)
  365. .Select(x => x.Name).FirstOrDefault();
  366. }
  367. }
  368. /// <summary>
  369. /// 考试状态
  370. /// </summary>
  371. [DisplayName("考试状态")]
  372. public int? ExamsStateID { get; set; }
  373. /// <summary>
  374. /// 考试状态
  375. /// </summary>
  376. public string ExamsStateName
  377. {
  378. get
  379. {
  380. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExamsState.ToString())
  381. .Where(x => x.Value == ExamsStateID)
  382. .Select(x => x.Name).FirstOrDefault();
  383. }
  384. }
  385. /// <summary>
  386. /// 平时成绩
  387. /// </summary>
  388. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Peacetime")]
  389. public decimal? PeacetimeScore { get; set; }
  390. /// <summary>
  391. /// 实验成绩
  392. /// </summary>
  393. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Technique")]
  394. public decimal? TechniqueScore { get; set; }
  395. /// <summary>
  396. /// 理论成绩
  397. /// </summary>
  398. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Theoretical")]
  399. public decimal? TheoreticalScore { get; set; }
  400. /// <summary>
  401. /// 总成绩
  402. /// </summary>
  403. [DisplayName("总成绩")]
  404. public decimal? TotalScore { get; set; }
  405. /// <summary>
  406. /// 成绩等级ID
  407. /// </summary>
  408. [DisplayName("成绩等级ID")]
  409. public Guid? ResultTypeDetailID { get; set; }
  410. /// <summary>
  411. /// 等级名称
  412. /// </summary>
  413. [DisplayName("等级名称")]
  414. public string ResultTypeDetailName { get; set; }
  415. /// <summary>
  416. /// 学分
  417. /// </summary>
  418. [DisplayName("学分")]
  419. public decimal? ScoreCredit { get; set; }
  420. /// <summary>
  421. /// 绩点
  422. /// </summary>
  423. [DisplayName("绩点")]
  424. public decimal? GradePoint { get; set; }
  425. /// <summary>
  426. /// 备注
  427. /// </summary>
  428. [DisplayName("备注")]
  429. public string Remark { get; set; }
  430. /// <summary>
  431. /// 创建人
  432. /// </summary>
  433. [DisplayName("创建人")]
  434. public Guid? CreateUserID { get; set; }
  435. /// <summary>
  436. /// 创建时间
  437. /// </summary>
  438. [DisplayName("创建时间")]
  439. public DateTime? CreateTime { get; set; }
  440. /// <summary>
  441. /// 修改人
  442. /// </summary>
  443. [DisplayName("修改人")]
  444. public Guid? ModifyUserID { get; set; }
  445. /// <summary>
  446. /// 修改时间
  447. /// </summary>
  448. [DisplayName("修改时间")]
  449. public DateTime? ModifyTime { get; set; }
  450. }
  451. }