EvaluationSettingView.cs 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  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.CacheManage;
  9. namespace EMIS.ViewModel.EvaluationManage
  10. {
  11. public class EvaluationSettingView
  12. {
  13. /// <summary>
  14. /// 评价设定ID
  15. /// </summary>
  16. [DisplayName("评价设定ID")]
  17. public Guid EvaluationSettingID { get; set; }
  18. /// <summary>
  19. /// 评价编号
  20. /// </summary>
  21. [DisplayName("评价编号")]
  22. public string EvaluationSettingCode { 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. [Required]
  39. public Guid? SchoolyearID { get; set; }
  40. /// <summary>
  41. /// 学年学期
  42. /// </summary>
  43. [DisplayName("学年学期")]
  44. public string SchoolyearCode { get; set; }
  45. /// <summary>
  46. /// 校区ID
  47. /// </summary>
  48. public Guid? CampusID { get; set; }
  49. /// <summary>
  50. /// 院系所ID
  51. /// </summary>
  52. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  53. public Guid? CollegeID { get; set; }
  54. /// <summary>
  55. /// 院系所
  56. /// </summary>
  57. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  58. public string CollegeName { get; set; }
  59. /// <summary>
  60. /// 教研室
  61. /// </summary>
  62. [DisplayName("教研室")]
  63. public Guid? DepartmentID { get; set; }
  64. /// <summary>
  65. /// 参评类型ID
  66. /// </summary>
  67. [DisplayName("参评类型ID")]
  68. public Guid? EvaluationTypeID { get; set; }
  69. /// <summary>
  70. /// 参评类型
  71. /// </summary>
  72. [DisplayName("参评类型")]
  73. public string EvaluationTypeName { get; set; }
  74. /// <summary>
  75. /// 授课方式
  76. /// </summary>
  77. [DisplayName("授课方式")]
  78. [Required]
  79. public int? EvaluationTableTypeID { get; set; }
  80. /// <summary>
  81. /// 评价类型ID
  82. /// </summary>
  83. [DisplayName("评价类型ID")]
  84. [Required]
  85. public Guid? EvaluationIntTypeID { get; set; }
  86. /// <summary>
  87. /// 评价类型
  88. /// </summary>
  89. [DisplayName("评价类型")]
  90. [Required]
  91. public string EvaluationTableTypeName { get; set; }
  92. /// <summary>
  93. /// 评价表名ID
  94. /// </summary>
  95. [DisplayName("评价表ID")]
  96. [Required]
  97. public Guid? EvaluationTableID { get; set; }
  98. /// <summary>
  99. /// 评价表编号
  100. /// </summary>
  101. [DisplayName("评价表编号")]
  102. public string EvaluationTableNo { get; set; }
  103. /// <summary>
  104. /// 评价表名
  105. /// </summary>
  106. [DisplayName("评价表名")]
  107. public string EvaluationTableName { get; set; }
  108. /// <summary>
  109. /// 课程信息ID
  110. /// </summary>
  111. [Required]
  112. [DisplayName("课程信息ID")]
  113. public Guid? CoursematerialID { get; set; }
  114. /// <summary>
  115. /// 课程代码
  116. /// </summary>
  117. [DisplayName("课程代码")]
  118. public string CourseCode { get; set; }
  119. /// <summary>
  120. /// 课程名称
  121. /// </summary>
  122. [DisplayName("课程名称")]
  123. public string CourseName { get; set; }
  124. /// <summary>
  125. /// 课程类型
  126. /// </summary>
  127. [Required]
  128. [DisplayName("课程类型")]
  129. public int? CourseTypeID { get; set; }
  130. /// <summary>
  131. /// 课程类型
  132. /// </summary>
  133. [DisplayName("课程类型")]
  134. public string CourseTypeName
  135. {
  136. get
  137. {
  138. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseType.ToString())
  139. .Where(x => x.Value == CourseTypeID)
  140. .Select(x => x.Name).FirstOrDefault();
  141. }
  142. }
  143. /// <summary>
  144. /// 开放状态
  145. /// </summary>
  146. [DisplayName("开放状态")]
  147. public int OpenStatus { get; set; }
  148. /// <summary>
  149. /// 开放状态
  150. /// </summary>
  151. [DisplayName("开放状态")]
  152. public string OpenStatusName { get; set; }
  153. /// <summary>
  154. /// 学生人数
  155. /// </summary>
  156. [DisplayName("学生人数")]
  157. public int StudentCount { get; set; }
  158. /// <summary>
  159. /// 同行人数
  160. /// </summary>
  161. [DisplayName("同行人数")]
  162. public int StaffCount { get; set; }
  163. /// <summary>
  164. /// 备注
  165. /// </summary>
  166. [DisplayName("备注")]
  167. public string Remark { get; set; }
  168. /// <summary>
  169. /// 状态
  170. /// </summary>
  171. [DisplayName("状态")]
  172. public int RecordStatus { get; set; }
  173. /// <summary>
  174. /// 创建人
  175. /// </summary>
  176. [DisplayName("创建人")]
  177. public Guid? CreateUserID { get; set; }
  178. /// <summary>
  179. /// 创建时间
  180. /// </summary>
  181. [DisplayName("创建时间")]
  182. public DateTime? EntityCreateTime { get; set; }
  183. /// <summary>
  184. /// 修改人
  185. /// </summary>
  186. [DisplayName("修改人")]
  187. public Guid? ModifyUserID { get; set; }
  188. /// <summary>
  189. /// 修改时间
  190. /// </summary>
  191. [DisplayName("修改时间")]
  192. public DateTime? ModifyTime { get; set; }
  193. /// <summary>
  194. ///
  195. /// </summary>
  196. [DisplayName("是否适用学生")]
  197. public int? IsStudent { get; set; }
  198. /// <summary>
  199. ///
  200. /// </summary>
  201. [DisplayName("教师编号")]
  202. public string UserCodes
  203. {
  204. get
  205. {
  206. string name = string.Empty;
  207. if (EvaluationSettingMissionClassTeacherViewList != null && EvaluationSettingMissionClassTeacherViewList.Count() > 0)
  208. {
  209. name = string.Join(",", EvaluationSettingMissionClassTeacherViewList.Select(x =>
  210. x.LoginID));
  211. }
  212. if (string.IsNullOrEmpty(name))
  213. {
  214. return "";
  215. }
  216. else
  217. {
  218. return name;
  219. }
  220. }
  221. }
  222. /// <summary>
  223. ///
  224. /// </summary>
  225. [DisplayName("教师名称")]
  226. public string UserNames
  227. {
  228. get
  229. {
  230. string name = string.Empty;
  231. if (EvaluationSettingMissionClassTeacherViewList != null && EvaluationSettingMissionClassTeacherViewList.Count() > 0)
  232. {
  233. name = string.Join(",", EvaluationSettingMissionClassTeacherViewList.Select(x =>
  234. x.Name));
  235. }
  236. if (string.IsNullOrEmpty(name))
  237. {
  238. return "";
  239. }
  240. else
  241. {
  242. return name;
  243. }
  244. }
  245. }
  246. /// <summary>
  247. ///
  248. /// </summary>
  249. [DisplayName("用户ID")]
  250. public Guid? UserID { get; set; }
  251. /// <summary>
  252. ///
  253. /// </summary>
  254. public CF_Student CF_Student_User { get; set; }
  255. /// <summary>
  256. ///
  257. /// </summary>
  258. public IEnumerable<Sys_User> Sys_User { get; set; }
  259. /// <summary>
  260. /// 授课老师
  261. /// </summary>
  262. [DisplayName("授课老师")]
  263. public IEnumerable<EvaluationSettingMissionClassTeacherView> EvaluationSettingMissionClassTeacherViewList { get; set; }
  264. /// <summary>
  265. ///
  266. /// </summary>
  267. public CF_Staff CF_Staff_User { get; set; }
  268. }
  269. public class EvaluationSettingMissionClassTeacherView
  270. {
  271. /// <summary>
  272. ///
  273. /// </summary>
  274. [DisplayName("用户ID")]
  275. public Guid? UserID { get; set; }
  276. /// <summary>
  277. ///
  278. /// </summary>
  279. [DisplayName("用户名")]
  280. public string LoginID { get; set; }
  281. /// <summary>
  282. ///
  283. /// </summary>
  284. [DisplayName("姓名")]
  285. public string Name { get; set; }
  286. /// <summary>
  287. ///
  288. /// </summary>
  289. [DisplayName("任务班ID")]
  290. public Guid? EducationMissionClassID { get; set; }
  291. }
  292. }