EvaluationEnterView.cs 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.ComponentModel;
  7. using EMIS.Entities;
  8. namespace EMIS.ViewModel.EvaluationManage.EvaluationEnter
  9. {
  10. /// <summary>
  11. /// 进入评价
  12. /// </summary>
  13. public class EvaluationEnterView
  14. {
  15. /// <summary>
  16. /// ID
  17. /// </summary>
  18. [DisplayName("进入评价ID")]
  19. public Guid? EvaluationEnterID { get; set; }
  20. /// <summary>
  21. /// 评价设定ID
  22. /// </summary>
  23. [DisplayName("评价设定ID")]
  24. public Guid? EvaluationSettingID { get; set; }
  25. /// <summary>
  26. /// 评价编号
  27. /// </summary>
  28. [DisplayName("评价编号")]
  29. public string EvaluationSettingCode { get; set; }
  30. /// <summary>
  31. /// 任务班ID
  32. /// </summary>
  33. [DisplayName("教学任务班")]
  34. public Guid? EducationMissionClassID { get; set; }
  35. /// <summary>
  36. /// 任务班名称
  37. /// </summary>
  38. [DisplayName("任务班名称")]
  39. public string EducationMissionClassName { get; set; }
  40. /// <summary>
  41. /// 参评类型ID
  42. /// </summary>
  43. [DisplayName("参评类型ID")]
  44. public Guid? EvaluationTypeID { get; set; }
  45. /// <summary>
  46. /// 参评类型
  47. /// </summary>
  48. [DisplayName("参评类型")]
  49. public string EvaluationTypeName { get; set; }
  50. /// <summary>
  51. /// 评价类型
  52. /// </summary>
  53. [DisplayName("评价类型ID")]
  54. public Guid? EvaluationTableTypeID { get; set; }
  55. /// <summary>
  56. /// 评价类型ID
  57. /// </summary>
  58. [DisplayName("评价类型ID")]
  59. public Guid? EvaluationIntTypeID { get; set; }
  60. /// <summary>
  61. /// 评价类型
  62. /// </summary>
  63. [DisplayName("评价类型")]
  64. public string EvaluationTableTypeName { get; set; }
  65. /// <summary>
  66. /// 评价表ID
  67. /// </summary>
  68. [DisplayName("评价表ID")]
  69. public Guid? EvaluationTableID { get; set; }
  70. /// <summary>
  71. /// 评价表名
  72. /// </summary>
  73. [DisplayName("评价表名")]
  74. public string EvaluationTableName { get; set; }
  75. /// <summary>
  76. /// 评价表编号
  77. /// </summary>
  78. [DisplayName("评价表编号")]
  79. public string EvaluationTableNo { get; set; }
  80. /// <summary>
  81. /// 学年学期
  82. /// </summary>
  83. [DisplayName("学年学期")]
  84. public Guid? SchoolyearID { get; set; }
  85. /// <summary>
  86. /// 学年学期
  87. /// </summary>
  88. [DisplayName("学年学期")]
  89. public string SchoolyearCode { get; set; }
  90. /// <summary>
  91. /// 院系所ID
  92. /// </summary>
  93. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  94. public Guid? CollegeID { get; set; }
  95. /// <summary>
  96. /// 院系所名称
  97. /// </summary>
  98. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  99. public string CollegeName { get; set; }
  100. /// <summary>
  101. /// 课程名称ID
  102. /// </summary>
  103. [DisplayName("课程名称")]
  104. public Guid? CoursematerialID { get; set; }
  105. /// <summary>
  106. /// 课程名称
  107. /// </summary>
  108. [DisplayName("课程名称")]
  109. public string CourseName { get; set; }
  110. /// <summary>
  111. /// 课程代码
  112. /// </summary>
  113. [DisplayName("课程代码")]
  114. public string CourseCode { get; set; }
  115. /// <summary>
  116. /// 开放状态
  117. /// </summary>
  118. [DisplayName("开放状态")]
  119. public int OpenStatus { get; set; }
  120. /// <summary>
  121. /// 开放状态
  122. /// </summary>
  123. [DisplayName("开放状态")]
  124. public string OpenStatusName { get; set; }
  125. /// <summary>
  126. /// 照片路径
  127. /// </summary>
  128. [DisplayName("照片路径")]
  129. public string PhotoUrl { get; set; }
  130. /// <summary>
  131. /// 总分
  132. /// </summary>
  133. [DisplayName("总分")]
  134. public decimal TotalScore { get; set; }
  135. ///// <summary>
  136. ///// 状态
  137. ///// </summary>
  138. //[DisplayName("状态")]
  139. //public int RecordStatus { get; set; }
  140. ///// <summary>
  141. ///// 创建人
  142. ///// </summary>
  143. //[DisplayName("创建人")]
  144. //public Guid? CreateUserID { get; set; }
  145. /// <summary>
  146. /// 创建时间
  147. /// </summary>
  148. [DisplayName("创建时间")]
  149. public DateTime? EntityCreateTime { get; set; }
  150. [DisplayName("选中数据Json")]
  151. public string jsonDataStr { get; set; }
  152. ///// <summary>
  153. ///// 修改人
  154. ///// </summary>
  155. //[DisplayName("修改人")]
  156. //public Guid? ModifyUserID { get; set; }
  157. ///// <summary>
  158. ///// 修改时间
  159. ///// </summary>
  160. //[DisplayName("修改时间")]
  161. //public DateTime? ModifyTime { get; set; }
  162. [DisplayName("学生人数")]
  163. public int StudentCount { get; set; }
  164. [DisplayName("教职工人数")]
  165. public int StaffCount { get; set; }
  166. [DisplayName("已评次数")]
  167. public int EvaluationCount { get; set; }
  168. [DisplayName("限制次数")]
  169. public int? LimitMore { get; set; }
  170. [DisplayName("评价分数")]
  171. public decimal? EvaluationScore { get; set; }
  172. /// <summary>
  173. /// 备注
  174. /// </summary>
  175. [DisplayName("简要评语或建议")]
  176. [Required]
  177. public string Remark { get; set; }
  178. [DisplayName("教研室")]
  179. public Guid? DepartmentID { get; set; }
  180. [DisplayName("教研室")]
  181. public string DepartmentName { get; set; }
  182. public DateTime? ModifyTime { get; set; }
  183. public Guid? NormID { get; set; }
  184. [DisplayName("评价项目ID")]
  185. public Guid? ProjectID { get; set; }
  186. [DisplayName("用户ID")]
  187. public Guid? UserID { get; set; }
  188. public CF_Student CF_Student_User { get; set; }
  189. public IEnumerable<DepartmentStaffView> PartakeDepartmentStaff { get; set; }
  190. public IEnumerable<Sys_User> Sys_User { get; set; }
  191. public IEnumerable<Guid?> StaffDepartmentID { get; set; }
  192. public CF_Staff CF_Staff_User { get; set; }
  193. [DisplayName("是否可评")]
  194. public bool IsEvaluation { get; set; }
  195. [DisplayName("是否可评(学生)")]
  196. public bool IsStudentEvaluation { get; set; }
  197. /// <summary>
  198. /// 教师名称
  199. /// </summary>
  200. [DisplayName("教师名称")]
  201. public string UserNames
  202. {
  203. get
  204. {
  205. return string.Join(",", Sys_User.Select(s => s.Name));
  206. }
  207. }
  208. [DisplayName("教师编号")]
  209. public string UserCodes
  210. {
  211. get
  212. {
  213. return string.Join(",", Sys_User.Select(s => s.LoginID));
  214. }
  215. }
  216. }
  217. public class DepartmentStaffView
  218. {
  219. public Guid? EducationMissionClassID { get; set; }
  220. public Guid? DepartmentID { get; set; }
  221. public string Name { get; set; }
  222. public Guid UserID { get; set; }
  223. public string StaffCode { get; set; }
  224. }
  225. public class CoursematerialStaffView
  226. {
  227. public Guid? EducationMissionClassID { get; set; }
  228. public Guid? CoursematerialID { get; set; }
  229. public string Name { get; set; }
  230. public Guid UserID { get; set; }
  231. public string StaffCode { get; set; }
  232. }
  233. public class CreateTable
  234. {
  235. /// <summary>
  236. /// 次序
  237. /// </summary>
  238. public string OrderID { get; set; }
  239. /// <summary>
  240. /// 评价项目
  241. /// </summary>
  242. public string ProjectName { get; set; }
  243. /// <summary>
  244. /// 权重
  245. /// </summary>
  246. public string Weight { get; set; }
  247. /// <summary>
  248. /// 评分标准
  249. /// </summary>
  250. public string NormNames { get; set; }
  251. }
  252. }