SOCStudentScoreItemView.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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.DQPSystem
  8. {
  9. public class SOCStudentScoreItemView
  10. {
  11. /// <summary>
  12. /// 学生ID
  13. /// </summary>
  14. [DisplayName("学生ID")]
  15. public Guid? UserID { get; set; }
  16. /// <summary>
  17. /// 课程名称
  18. /// </summary>
  19. [DisplayName("课程名称")]
  20. public string CourseName { get; set; }
  21. /// <summary>
  22. /// 成绩
  23. /// </summary>
  24. [DisplayName("成绩")]
  25. public decimal? TotalScore { get; set; }
  26. /// <summary>
  27. /// 学分
  28. /// </summary>
  29. [DisplayName("学分")]
  30. public decimal? ScoreCredit { get; set; }
  31. /// <summary>
  32. /// 课程ID
  33. /// </summary>
  34. [DisplayName("课程ID")]
  35. public Guid? CoursematerialID { get; set; }
  36. /// <summary>
  37. /// 学年数
  38. /// </summary>
  39. [DisplayName("学年数")]
  40. public int? SchoolyearNumID { get; set; }
  41. /// <summary>
  42. /// 开课学期
  43. /// </summary>
  44. [DisplayName("开课学期")]
  45. public int? StarttermID { get; set; }
  46. /// <summary>
  47. /// 开课学期
  48. /// </summary>
  49. [DisplayName("开课学期")]
  50. public string StarttermName
  51. {
  52. get
  53. {
  54. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Startterm.ToString())
  55. .Where(x => x.Value == StarttermID)
  56. .Select(x => x.Name).FirstOrDefault();
  57. }
  58. }
  59. }
  60. }