RetakeStudentView.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using EMIS.ViewModel.CacheManage;
  6. using System.ComponentModel;
  7. namespace EMIS.ViewModel.RetakeManage
  8. {
  9. public class RetakeStudentView
  10. {
  11. /// <summary>
  12. /// 学年学期ID
  13. /// </summary>
  14. [DisplayName("学年学期ID")]
  15. public Guid? SchoolyearID { get; set; }
  16. /// <summary>
  17. /// 用户ID
  18. /// </summary>
  19. [DisplayName("用户ID")]
  20. public Guid? UserID { get; set; }
  21. /// <summary>
  22. /// 课程信息ID
  23. /// </summary>
  24. [DisplayName("课程信息ID")]
  25. public Guid? CoursematerialID { get; set; }
  26. /// <summary>
  27. /// 课程代码
  28. /// </summary>
  29. [DisplayName("课程代码")]
  30. public string CourseCode { get; set; }
  31. /// <summary>
  32. /// 课程名称
  33. /// </summary>
  34. [DisplayName("课程名称")]
  35. public string CourseName { get; set; }
  36. /// <summary>
  37. /// 课程简称
  38. /// </summary>
  39. [DisplayName("课程简称")]
  40. public string Abbreviation { get; set; }
  41. /// <summary>
  42. /// 课程类型
  43. /// </summary>
  44. [DisplayName("课程类型")]
  45. public int? CourseTypeID { get; set; }
  46. /// <summary>
  47. /// 课程类型
  48. /// </summary>
  49. [DisplayName("课程类型")]
  50. public string CourseTypeDesc
  51. {
  52. get
  53. {
  54. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseType.ToString())
  55. .Where(x => x.Value == CourseTypeID)
  56. .Select(x => x.Name).FirstOrDefault();
  57. }
  58. }
  59. /// <summary>
  60. /// 课程学分
  61. /// </summary>
  62. [DisplayName("课程学分")]
  63. public decimal? CourseCredit { get; set; }
  64. /// <summary>
  65. /// 成绩学分
  66. /// </summary>
  67. [DisplayName("学分")]
  68. public decimal? Credit { get; set; }
  69. /// <summary>
  70. /// 总成绩
  71. /// </summary>
  72. [DisplayName("总成绩")]
  73. public decimal? TotalScore { get; set; }
  74. /// <summary>
  75. /// 开课学年
  76. /// </summary>
  77. [DisplayName("开课学年")]
  78. public int? SchoolyearNumID { get; set; }
  79. /// <summary>
  80. /// 开课学年
  81. /// </summary>
  82. [DisplayName("开课学年")]
  83. public string SchoolyearNumDesc
  84. {
  85. get
  86. {
  87. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolyearNum.ToString())
  88. .Where(x => x.Value == SchoolyearNumID)
  89. .Select(x => x.Name).FirstOrDefault();
  90. }
  91. }
  92. /// <summary>
  93. /// 开课学期
  94. /// </summary>
  95. [DisplayName("开课学期")]
  96. public int? StarttermID { get; set; }
  97. /// <summary>
  98. /// 开课学期
  99. /// </summary>
  100. [DisplayName("开课学期")]
  101. public string StarttermDesc
  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. }
  111. }