FinallyScoreView.cs 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515
  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.ScoreManage
  9. {
  10. public class FinallyScoreView
  11. {
  12. /// <summary>
  13. /// 最终成绩ID
  14. /// </summary>
  15. [DisplayName("最终成绩ID")]
  16. public Guid? FinallyScoreID { get; set; }
  17. /// <summary>
  18. /// 学年学期
  19. /// </summary>
  20. [Required]
  21. [DisplayName("学年学期")]
  22. public Guid? SchoolyearID { get; set; }
  23. /// <summary>
  24. /// 学年学期
  25. /// </summary>
  26. [DisplayName("学年学期")]
  27. public string SchoolyearCode { get; set; }
  28. /// <summary>
  29. /// 学生ID
  30. /// </summary>
  31. [Required]
  32. [DisplayName("学生ID")]
  33. public Guid? UserID { get; set; }
  34. /// <summary>
  35. /// 学号
  36. /// </summary>
  37. [DisplayName("学号")]
  38. public string LoginID { get; set; }
  39. /// <summary>
  40. /// 姓名
  41. /// </summary>
  42. [DisplayName("姓名")]
  43. public string UserName { get; set; }
  44. /// <summary>
  45. /// 班级信息ID
  46. /// </summary>
  47. [DisplayName("班级信息ID")]
  48. public Guid? ClassmajorID { get; set; }
  49. /// <summary>
  50. /// 班级编号
  51. /// </summary>
  52. [DisplayName("班级编号")]
  53. public string ClassmajorNo { get; set; }
  54. /// <summary>
  55. /// 班级名称
  56. /// </summary>
  57. [DisplayName("班级名称")]
  58. public string ClassmajorName { get; set; }
  59. /// <summary>
  60. /// 院系所
  61. /// </summary>
  62. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  63. public Guid? CollegeID { get; set; }
  64. /// <summary>
  65. /// 院系所代码
  66. /// </summary>
  67. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  68. public string CollegeNo { get; set; }
  69. /// <summary>
  70. /// 院系所
  71. /// </summary>
  72. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  73. public string CollegeName { get; set; }
  74. /// <summary>
  75. /// 学年数
  76. /// </summary>
  77. [Required]
  78. [DisplayName("学年数")]
  79. public int? SchoolyearNumID { get; set; }
  80. /// <summary>
  81. /// 学年数
  82. /// </summary>
  83. [DisplayName("学年数")]
  84. public string SchoolyearNumName
  85. {
  86. get
  87. {
  88. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolyearNum.ToString())
  89. .Where(x => x.Value == SchoolyearNumID)
  90. .Select(x => x.Name).FirstOrDefault();
  91. }
  92. }
  93. /// <summary>
  94. /// 开课学期
  95. /// </summary>
  96. [DisplayName("开课学期")]
  97. public int? StarttermID { get; set; }
  98. /// <summary>
  99. /// 开课学期
  100. /// </summary>
  101. public string StarttermName
  102. {
  103. get
  104. {
  105. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Startterm.ToString())
  106. .Where(x => x.Value == StarttermID)
  107. .Select(x => x.Name).FirstOrDefault();
  108. }
  109. }
  110. /// <summary>
  111. /// 录入班级名称
  112. /// </summary>
  113. [Required]
  114. [DisplayName("录入班级名称")]
  115. public string ClassName { get; set; }
  116. /// <summary>
  117. /// 课程名称
  118. /// </summary>
  119. [Required]
  120. [DisplayName("课程名称")]
  121. public Guid? CoursematerialID { get; set; }
  122. /// <summary>
  123. /// 课程代码
  124. /// </summary>
  125. [DisplayName("课程代码")]
  126. public string CourseCode { get; set; }
  127. /// <summary>
  128. /// 课程名称
  129. /// </summary>
  130. [DisplayName("课程名称")]
  131. public string CourseName { get; set; }
  132. /// <summary>
  133. /// 开课教研室
  134. /// </summary>
  135. [Required]
  136. [DisplayName("开课教研室")]
  137. public Guid? DepartmentID { get; set; }
  138. /// <summary>
  139. /// 开课教研室代码
  140. /// </summary>
  141. [DisplayName("开课教研室代码")]
  142. public string DepartmentNo { get; set; }
  143. /// <summary>
  144. /// 开课教研室
  145. /// </summary>
  146. [DisplayName("开课教研室")]
  147. public string DepartmentName { get; set; }
  148. /// <summary>
  149. /// 课程类型
  150. /// </summary>
  151. [Required]
  152. [DisplayName("课程类型")]
  153. public int? CourseTypeID { get; set; }
  154. /// <summary>
  155. /// 课程类型
  156. /// </summary>
  157. [DisplayName("课程类型")]
  158. public string CourseTypeName
  159. {
  160. get
  161. {
  162. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseType.ToString())
  163. .Where(x => x.Value == CourseTypeID)
  164. .Select(x => x.Name).FirstOrDefault();
  165. }
  166. }
  167. /// <summary>
  168. /// 是否学位课程
  169. /// </summary>
  170. [DisplayName("是否学位课程")]
  171. public bool IsMainCourse { get; set; }
  172. /// <summary>
  173. /// 是否学位课程
  174. /// </summary>
  175. [DisplayName("是否学位课程")]
  176. public string IsMainCourseName
  177. {
  178. get { return this.IsMainCourse == true ? "是" : "否"; }
  179. }
  180. /// <summary>
  181. /// 选修类别
  182. /// </summary>
  183. [DisplayName("选修类别")]
  184. public int? CourseSelectTypeID { get; set; }
  185. /// <summary>
  186. /// 选修类别
  187. /// </summary>
  188. [DisplayName("选修类别")]
  189. public string CourseSelectTypeName
  190. {
  191. get
  192. {
  193. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseSelectType.ToString())
  194. .Where(x => x.Value == CourseSelectTypeID)
  195. .Select(x => x.Name).FirstOrDefault();
  196. }
  197. }
  198. /// <summary>
  199. /// 背景颜色(课程类型)
  200. /// </summary>
  201. [DisplayName("背景颜色")]
  202. public string CourseTypeColour { get; set; }
  203. /// <summary>
  204. /// 课程学分
  205. /// </summary>
  206. [Required]
  207. [DisplayName("课程学分")]
  208. [RegularExpression(@"^\d+(\.\d{2})?$", ErrorMessage = "请输整数或保留2位小数")]
  209. public decimal? Credit { get; set; }
  210. /// <summary>
  211. /// 总学时
  212. /// </summary>
  213. [Required]
  214. [DisplayName("总学时")]
  215. public int? TotalHours { get; set; }
  216. /// <summary>
  217. /// 是否计划(执行计划)
  218. /// </summary>
  219. [DisplayName("是否计划")]
  220. public bool IsExecutablePlan { get; set; }
  221. /// <summary>
  222. /// 是否计划(执行计划)
  223. /// </summary>
  224. [DisplayName("是否计划")]
  225. public string IsExecutablePlanName
  226. {
  227. get { return this.IsExecutablePlan == true ? "是" : "否"; }
  228. }
  229. /// <summary>
  230. /// 计划状态(执行计划)
  231. /// </summary>
  232. [DisplayName("计划状态")]
  233. public int? ExecutablePlanStatus { get; set; }
  234. /// <summary>
  235. /// 计划状态(执行计划)
  236. /// </summary>
  237. [DisplayName("计划状态")]
  238. public string ExecutablePlanStatusName
  239. {
  240. get
  241. {
  242. return IdNameExt.GetDictionaryItem(DictionaryItem.EM_ExecuteStatus.ToString())
  243. .Where(x => x.Value == ExecutablePlanStatus)
  244. .Select(x => x.Name).FirstOrDefault();
  245. }
  246. }
  247. /// <summary>
  248. /// 设定类型
  249. /// </summary>
  250. [Required]
  251. [DisplayName("设定类型")]
  252. public int? ExaminationType { get; set; }
  253. /// <summary>
  254. /// 设定类型
  255. /// </summary>
  256. [DisplayName("设定类型")]
  257. public string ExaminationTypeName
  258. {
  259. get
  260. {
  261. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExaminationType.ToString())
  262. .Where(x => x.Value == ExaminationType)
  263. .Select(x => x.Name).FirstOrDefault();
  264. }
  265. }
  266. /// <summary>
  267. /// 考试方式
  268. /// </summary>
  269. [Required]
  270. [DisplayName("考试方式")]
  271. public int? ExaminationModeID { get; set; }
  272. /// <summary>
  273. /// 考试方式
  274. /// </summary>
  275. [DisplayName("考试方式")]
  276. public string ExaminationModeName
  277. {
  278. get
  279. {
  280. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExaminationMode.ToString())
  281. .Where(x => x.Value == ExaminationModeID)
  282. .Select(x => x.Name).FirstOrDefault();
  283. }
  284. }
  285. /// <summary>
  286. /// 处理方式
  287. /// </summary>
  288. [Required]
  289. [DisplayName("处理方式")]
  290. public int? HandleModeID { get; set; }
  291. /// <summary>
  292. /// 处理方式
  293. /// </summary>
  294. [DisplayName("处理方式")]
  295. public string HandleModeName
  296. {
  297. get
  298. {
  299. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_HandleMode.ToString())
  300. .Where(x => x.Value == HandleModeID)
  301. .Select(x => x.Name).FirstOrDefault();
  302. }
  303. }
  304. /// <summary>
  305. /// 考试日期
  306. /// </summary>
  307. [DisplayName("考试日期")]
  308. public DateTime? ExamsDatetime { get; set; }
  309. /// <summary>
  310. /// 录入人
  311. /// </summary>
  312. [Required]
  313. [DisplayName("录入人")]
  314. public Guid? CreatorUserID { get; set; }
  315. /// <summary>
  316. /// 录入人
  317. /// </summary>
  318. [DisplayName("录入人")]
  319. public string CreatorUserNo { get; set; }
  320. /// <summary>
  321. /// 录入人
  322. /// </summary>
  323. [DisplayName("录入人")]
  324. public string CreatorUserName { get; set; }
  325. /// <summary>
  326. /// 录入截止日期
  327. /// </summary>
  328. [DisplayName("录入截止日期")]
  329. public DateTime? EntryDeadlineTime { get; set; }
  330. /// <summary>
  331. /// 成绩类型
  332. /// </summary>
  333. [Required]
  334. [DisplayName("成绩类型")]
  335. public int? ResultTypeID { get; set; }
  336. /// <summary>
  337. /// 成绩类型
  338. /// </summary>
  339. [DisplayName("成绩类型")]
  340. public string ResultTypeName
  341. {
  342. get
  343. {
  344. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ResultType.ToString())
  345. .Where(x => x.Value == ResultTypeID)
  346. .Select(x => x.Name).FirstOrDefault();
  347. }
  348. }
  349. /// <summary>
  350. /// 考试性质
  351. /// </summary>
  352. [Required]
  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? Pingshi { get; set; }
  390. /// <summary>
  391. /// 技术成绩
  392. /// </summary>
  393. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Technique")]
  394. public decimal? Jishu { get; set; }
  395. /// <summary>
  396. /// 理论成绩
  397. /// </summary>
  398. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Theoretical")]
  399. public decimal? Lilun { get; set; }
  400. /// <summary>
  401. /// 总成绩
  402. /// </summary>
  403. [DisplayName("总成绩")]
  404. public decimal? TotalScore { get; set; }
  405. /// <summary>
  406. /// 成绩学分
  407. /// </summary>
  408. [DisplayName("成绩学分")]
  409. public decimal? ScoreCredit { get; set; }
  410. /// <summary>
  411. /// 绩点
  412. /// </summary>
  413. [DisplayName("绩点")]
  414. public decimal? GradePoint { get; set; }
  415. /// <summary>
  416. /// 备注
  417. /// </summary>
  418. [DisplayName("备注")]
  419. public string Remarks { get; set; }
  420. /// <summary>
  421. /// 状态
  422. /// </summary>
  423. [DisplayName("状态")]
  424. public int? RecordStatus { get; set; }
  425. /// <summary>
  426. /// 创建人ID
  427. /// </summary>
  428. [DisplayName("创建人ID")]
  429. public Guid? CreateUserID { get; set; }
  430. /// <summary>
  431. /// 创建时间
  432. /// </summary>
  433. [DisplayName("创建时间")]
  434. public DateTime? CreateTime { get; set; }
  435. /// <summary>
  436. /// 修改人ID
  437. /// </summary>
  438. [DisplayName("修改人ID")]
  439. public Guid? ModifyUserID { get; set; }
  440. /// <summary>
  441. /// 修改时间
  442. /// </summary>
  443. [DisplayName("修改时间")]
  444. public DateTime? ModifyTime { get; set; }
  445. [DisplayName("序号")]
  446. public int? OrderNo { get; set; }
  447. }
  448. }