TeacherEvaluationView.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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.Entities;
  8. using EMIS.ViewModel.UniversityManage.TeacherManage;
  9. namespace EMIS.ViewModel.EvaluationManage
  10. {
  11. public class TeacherEvaluationView
  12. {
  13. /// <summary>
  14. /// ID
  15. /// </summary>
  16. [DisplayName("ID")]
  17. public Guid EntityID { get; set; }
  18. /// <summary>
  19. /// 编号
  20. /// </summary>
  21. [DisplayName("编号")]
  22. public string EntityCode { get; set; }
  23. /// <summary>
  24. /// 任务班ID
  25. /// </summary>
  26. [DisplayName("任务班ID")]
  27. [Required]
  28. public Guid? EducationMissionClassID { get; set; }
  29. /// <summary>
  30. /// 任务班名称
  31. /// </summary>
  32. [DisplayName("任务班名称")]
  33. public string EducationMissionClassName { get; set; }
  34. /// <summary>
  35. /// 参评类型
  36. /// </summary>
  37. [DisplayName("参评类型")]
  38. public string EvaluationTypeName { get; set; }
  39. /// <summary>
  40. /// 评价表ID
  41. /// </summary>
  42. [DisplayName("评价表ID")]
  43. [Required]
  44. public Guid? TableID { get; set; }
  45. /// <summary>
  46. /// 评价表名
  47. /// </summary>
  48. [DisplayName("评价表名")]
  49. public string EvaluationTableName { get; set; }
  50. /// <summary>
  51. /// 评价表编号
  52. /// </summary>
  53. [DisplayName("评价表编号")]
  54. public string EvaluationTableNo { get; set; }
  55. /// <summary>
  56. /// 学年学期
  57. /// </summary>
  58. [DisplayName("学年学期")]
  59. public Guid? SchoolyearID { get; set; }
  60. /// <summary>
  61. /// 学年学期代码
  62. /// </summary>
  63. [DisplayName("学年学期")]
  64. public string SchoolyearCode { get; set; }
  65. /// <summary>
  66. /// 课程名称
  67. /// </summary>
  68. [DisplayName("课程名称")]
  69. public string CourseName { get; set; }
  70. /// <summary>
  71. /// 课程代码
  72. /// </summary>
  73. [DisplayName("课程代码")]
  74. public string CourseCode { get; set; }
  75. /// <summary>
  76. /// 开放状态
  77. /// </summary>
  78. [DisplayName("开放状态")]
  79. public int OpenStatus { get; set; }
  80. /// <summary>
  81. /// 开放状态
  82. /// </summary>
  83. [DisplayName("开放状态")]
  84. public string OpenStatusName { get; set; }
  85. ///// <summary>
  86. ///// 状态
  87. ///// </summary>
  88. //[DisplayName("状态")]
  89. //public int RecordStatus { get; set; }
  90. ///// <summary>
  91. ///// 创建人
  92. ///// </summary>
  93. //[DisplayName("创建人")]
  94. //public Guid? CreateUserID { get; set; }
  95. /// <summary>
  96. /// 创建时间
  97. /// </summary>
  98. [DisplayName("创建时间")]
  99. public DateTime? EntityCreateTime { get; set; }
  100. ///// <summary>
  101. ///// 修改人
  102. ///// </summary>
  103. //[DisplayName("修改人")]
  104. //public Guid? ModifyUserID { get; set; }
  105. ///// <summary>
  106. ///// 修改时间
  107. ///// </summary>
  108. //[DisplayName("修改时间")]
  109. //public DateTime? ModifyTime { get; set; }
  110. /// <summary>
  111. /// 备注
  112. /// </summary>
  113. [DisplayName("备注")]
  114. public string Remark { get; set; }
  115. public Guid? DepartmentID { get; set; }
  116. public Guid? CollegeID { get; set; }
  117. public Guid? CampusID { get; set; }
  118. public IEnumerable<Sys_User> Sys_User { get; set; }
  119. [DisplayName("教师名称")]
  120. public string UserNames
  121. {
  122. get
  123. {
  124. return string.Join(",", Sys_User.Select(s => s.Name));
  125. }
  126. }
  127. /// <summary>
  128. /// 参评人
  129. /// </summary>
  130. [DisplayName("教师名称")]
  131. public IEnumerable<ParticipatorView> Participators { get; set; }
  132. /// <summary>
  133. /// 参评人名称
  134. /// </summary>
  135. [DisplayName("参选人")]
  136. public string ParticipatorNames
  137. {
  138. get
  139. {
  140. return string.Join(",", Participators.Select(s => s.Name));
  141. }
  142. }
  143. }
  144. public class ParticipatorView
  145. {
  146. public string Code { get; set; }
  147. public string Name { get; set; }
  148. }
  149. }