CourseGradeView.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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.Students
  8. {
  9. public class CourseGradeView
  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 Guid? SchoolyearID { get; set; }
  21. /// <summary>
  22. /// 课程名称
  23. /// </summary>
  24. [DisplayName("课程名称")]
  25. public string CourseName { get; set; }
  26. /// <summary>
  27. /// 课程背景颜色
  28. /// </summary>
  29. [DisplayName("课程背景颜色")]
  30. public string CourseTypeColour { get; set; }
  31. /// <summary>
  32. /// 俱乐部ID
  33. /// </summary>
  34. [DisplayName("俱乐部ID")]
  35. public Guid? Club { get; set; }
  36. /// <summary>
  37. /// 成绩
  38. /// </summary>
  39. [DisplayName("成绩")]
  40. public decimal? TotalScore { get; set; }
  41. public string TotalScoreStr { get; set; }
  42. /// <summary>
  43. /// 学分
  44. /// </summary>
  45. [DisplayName("学分")]
  46. public decimal? ScoreCredit { get; set; }
  47. /// <summary>
  48. /// 课程ID
  49. /// </summary>
  50. [DisplayName("课程ID")]
  51. public Guid? CoursematerialID { get; set; }
  52. /// <summary>
  53. /// 学年数
  54. /// </summary>
  55. [DisplayName("学年数")]
  56. public int? SchoolyearNumID { get; set; }
  57. /// <summary>
  58. /// 拟毕业日期
  59. /// </summary>
  60. [DisplayName("拟毕业日期")]
  61. public DateTime? PlanningGraduateDate { get; set; }
  62. /// <summary>
  63. /// 开课学期
  64. /// </summary>
  65. [DisplayName("开课学期")]
  66. public int? StarttermID { get; set; }
  67. /// <summary>
  68. /// 开课学期
  69. /// </summary>
  70. [DisplayName("开课学期")]
  71. public string StarttermName {
  72. get
  73. {
  74. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Startterm.ToString())
  75. .Where(x => x.Value == StarttermID)
  76. .Select(x => x.Name).FirstOrDefault();
  77. }
  78. }
  79. }
  80. }