SOCDetailGroupView.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using EMIS.Entities;
  7. using EMIS.ViewModel.Students;
  8. namespace EMIS.ViewModel.DQPSystem
  9. {
  10. public class SOCDetailGroupView
  11. {
  12. /// <summary>
  13. /// 主键ID
  14. /// </summary>
  15. [DisplayName("主键ID")]
  16. public Guid? SOCDetailGroupID { get; set; }
  17. public Guid? EducationMissionID { get; set; }
  18. public string EducationMissionName { get; set; }
  19. /// <summary>
  20. /// 学年学期ID
  21. /// </summary>
  22. [DisplayName("学年学期ID")]
  23. public Guid? SchoolyearID { get; set; }
  24. /// <summary>
  25. /// 学年学期
  26. /// </summary>
  27. [DisplayName("学年学期")]
  28. public string SchoolyearCode { get; set; }
  29. /// <summary>
  30. /// 课程成果ID
  31. /// </summary>
  32. [DisplayName("课程成果ID")]
  33. public Guid? SOCDetailID { get; set; }
  34. /// <summary>
  35. /// 成果名称
  36. /// </summary>
  37. [DisplayName("成果名称")]
  38. public string Name { get; set; }
  39. /// <summary>
  40. /// 成果学分
  41. /// </summary>
  42. [DisplayName("成果学分")]
  43. public decimal? Credit { get; set; }
  44. /// <summary>
  45. /// 成果权重
  46. /// </summary>
  47. [DisplayName("成果权重")]
  48. public decimal? Weight { get; set; }
  49. /// <summary>
  50. /// 课程资料
  51. /// </summary>
  52. [DisplayName("课程资料")]
  53. public Guid? CoursematerialID { get; set; }
  54. /// <summary>
  55. /// 课程资料代码
  56. /// </summary>
  57. [DisplayName("课程资料代码")]
  58. public string CourseCode { get; set; }
  59. /// <summary>
  60. /// 课程名称
  61. /// </summary>
  62. [DisplayName("课程名称")]
  63. public string CourseName { get; set; }
  64. /// <summary>
  65. /// 分组序号
  66. /// </summary>
  67. [DisplayName("分组序号")]
  68. public int? No { get; set; }
  69. /// <summary>
  70. /// 组名
  71. /// </summary>
  72. [DisplayName("组名")]
  73. public string GroupName
  74. {
  75. get
  76. {
  77. return "第" + No.ToString() + "组";
  78. }
  79. }
  80. /// <summary>
  81. /// 分组成绩
  82. /// </summary>
  83. [DisplayName("分组成绩")]
  84. public decimal? Score { get; set; }
  85. //public IEnumerable<CF_Student> StudentList { get; set; }
  86. public int? StudentCount { get; set; }
  87. public IEnumerable<Sys_User> StudentList { get; set; }
  88. public string StudentName {
  89. get {
  90. string studentNames = string.Empty;
  91. if (StudentList != null)
  92. studentNames = string.Join(",", StudentList.Select(s => s.Name));
  93. if (string.IsNullOrEmpty(studentNames))
  94. {
  95. return "";
  96. }
  97. else
  98. {
  99. return studentNames;
  100. }
  101. }
  102. }
  103. public string EducationMissionNameStr
  104. {
  105. get
  106. {
  107. if (string.IsNullOrEmpty(EducationMissionName))
  108. {
  109. return "";
  110. }
  111. else
  112. {
  113. return EducationMissionName.Replace(CourseName, "").Replace("-", "");
  114. }
  115. }
  116. }
  117. }
  118. }