EvaluationStudentSettingView.cs 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Text;
  7. using EMIS.ViewModel.CacheManage;
  8. namespace EMIS.ViewModel.EvaluationManage.StudentEvaluation
  9. {
  10. public class EvaluationStudentSettingView
  11. {
  12. /// <summary>
  13. /// 主键ID
  14. /// </summary>
  15. [DisplayName("主键ID")]
  16. public Guid EvaluationStudentSettingID { get; set; }
  17. /// <summary>
  18. /// 教学任务班ID
  19. /// </summary>
  20. [Required]
  21. [DisplayName("教学任务班ID")]
  22. public Guid? EducationMissionClassID { get; set; }
  23. /// <summary>
  24. /// 教学任务ID
  25. /// </summary>
  26. [Required]
  27. [DisplayName("教学任务ID")]
  28. public Guid? EducationMissionID { get; set; }
  29. /// <summary>
  30. /// 学年学期ID
  31. /// </summary>
  32. [Required]
  33. [DisplayName("学年学期ID")]
  34. public Guid? SchoolyearID { get; set; }
  35. /// <summary>
  36. /// 学年学期对应的Value值
  37. /// </summary>
  38. [DisplayName("SchoolyearValue")]
  39. public int? SchoolyearValue { get; set; }
  40. /// <summary>
  41. /// 学年学期
  42. /// </summary>
  43. [DisplayName("学年学期")]
  44. public string SchoolyearCode { get; set; }
  45. /// <summary>
  46. /// 任务名称
  47. /// </summary>
  48. [Required]
  49. [DisplayName("任务名称")]
  50. public string MissionName { get; set; }
  51. /// <summary>
  52. /// 任务班名称
  53. /// </summary>
  54. [Required]
  55. [DisplayName("任务班名称")]
  56. public string MissionClassName { get; set; }
  57. /// <summary>
  58. /// 院系所ID
  59. /// </summary>
  60. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  61. public Guid? CollegeID { get; set; }
  62. /// <summary>
  63. /// 院系所代码
  64. /// </summary>
  65. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  66. public string CollegeNo { get; set; }
  67. /// <summary>
  68. /// 院系所名称
  69. /// </summary>
  70. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  71. public string CollegeName { get; set; }
  72. /// <summary>
  73. /// 校区ID
  74. /// </summary>
  75. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  76. public Guid? CampusID { get; set; }
  77. /// <summary>
  78. /// 校区代码
  79. /// </summary>
  80. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  81. public string CampusNo { get; set; }
  82. /// <summary>
  83. /// 校区名称
  84. /// </summary>
  85. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
  86. public string CampusName { get; set; }
  87. /// <summary>
  88. /// 课程信息ID
  89. /// </summary>
  90. [Required]
  91. [DisplayName("课程信息ID")]
  92. public Guid? CoursematerialID { get; set; }
  93. /// <summary>
  94. /// 课程代码
  95. /// </summary>
  96. [DisplayName("课程代码")]
  97. public string CourseCode { get; set; }
  98. /// <summary>
  99. /// 课程名称
  100. /// </summary>
  101. [DisplayName("课程名称")]
  102. public string CourseName { get; set; }
  103. /// <summary>
  104. /// 课程结构
  105. /// </summary>
  106. [DisplayName("课程结构")]
  107. public int? CourseStructureID { get; set; }
  108. /// <summary>
  109. /// 课程结构
  110. /// </summary>
  111. [DisplayName("课程结构")]
  112. public string CourseStructureName
  113. {
  114. get
  115. {
  116. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseStructure.ToString()).Where(x => x.Value == CourseStructureID).Select(x => x.Name).FirstOrDefault();
  117. }
  118. }
  119. /// <summary>
  120. /// 课程属性
  121. /// </summary>
  122. [DisplayName("课程属性")]
  123. public int? CourseCategoryID { get; set; }
  124. /// <summary>
  125. /// 课程属性
  126. /// </summary>
  127. [DisplayName("课程属性")]
  128. public string CourseCategoryName
  129. {
  130. get
  131. {
  132. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseCategory.ToString()).Where(x => x.Value == CourseCategoryID).Select(x => x.Name).FirstOrDefault();
  133. }
  134. }
  135. /// <summary>
  136. /// 课程类型
  137. /// </summary>
  138. [DisplayName("课程类型")]
  139. public int? CourseTypeID { get; set; }
  140. /// <summary>
  141. /// 课程类型
  142. /// </summary>
  143. [DisplayName("课程类型")]
  144. public string CourseTypeName
  145. {
  146. get
  147. {
  148. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseType.ToString()).Where(x => x.Value == CourseTypeID).Select(x => x.Name).FirstOrDefault();
  149. }
  150. }
  151. /// <summary>
  152. /// 课程性质
  153. /// </summary>
  154. [DisplayName("课程性质")]
  155. public int? CourseQualityID { get; set; }
  156. /// <summary>
  157. /// 课程性质
  158. /// </summary>
  159. [DisplayName("课程性质")]
  160. public string CourseQualityName
  161. {
  162. get
  163. {
  164. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseQuality.ToString()).Where(x => x.Value == CourseQualityID).Select(x => x.Name).FirstOrDefault();
  165. }
  166. }
  167. /// <summary>
  168. /// 课程学分
  169. /// </summary>
  170. [DisplayName("课程学分")]
  171. public decimal? Credit { get; set; }
  172. /// <summary>
  173. /// 开课教研室ID
  174. /// </summary>
  175. [Required]
  176. [DisplayName("开课教研室")]
  177. public Guid? DepartmentID { get; set; }
  178. /// <summary>
  179. /// 开课教研室代码
  180. /// </summary>
  181. [DisplayName("开课教研室代码")]
  182. public string DepartmentNo { get; set; }
  183. /// <summary>
  184. /// 开课教研室
  185. /// </summary>
  186. [DisplayName("开课教研室")]
  187. public string DepartmentName { get; set; }
  188. /// <summary>
  189. /// 处理方式
  190. /// </summary>
  191. [DisplayName("处理方式")]
  192. public int? HandleModeID { get; set; }
  193. /// <summary>
  194. /// 处理方式
  195. /// </summary>
  196. [DisplayName("处理方式")]
  197. public string HandleModeName
  198. {
  199. get
  200. {
  201. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_HandleMode.ToString()).Where(x => x.Value == HandleModeID).Select(x => x.Name).FirstOrDefault();
  202. }
  203. }
  204. /// <summary>
  205. /// 授课方式
  206. /// </summary>
  207. [DisplayName("授课方式")]
  208. public int? TeachingModeID { get; set; }
  209. /// <summary>
  210. /// 授课方式
  211. /// </summary>
  212. [DisplayName("授课方式")]
  213. public string TeachingModeName
  214. {
  215. get
  216. {
  217. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString()).Where(x => x.Value == TeachingModeID).Select(x => x.Name).FirstOrDefault();
  218. }
  219. }
  220. /// <summary>
  221. /// 任务状态
  222. /// </summary>
  223. [DisplayName("任务状态")]
  224. public int? MissionClassStatus { get; set; }
  225. /// <summary>
  226. /// 任务状态
  227. /// </summary>
  228. public string MissionClassStatusName
  229. {
  230. get
  231. {
  232. return IdNameExt.GetDictionaryItem(DictionaryItem.EM_EducationMissionClassStatus.ToString()).Where(x => x.Value == MissionClassStatus).Select(x => x.Name).FirstOrDefault();
  233. }
  234. }
  235. /// <summary>
  236. /// 评价表ID
  237. /// </summary>
  238. [Required]
  239. [DisplayName("评价表ID")]
  240. public Guid? EvaluationTableID { get; set; }
  241. /// <summary>
  242. /// 评价表编号
  243. /// </summary>
  244. [DisplayName("评价表编号")]
  245. public string EvaluationTableCode { get; set; }
  246. /// <summary>
  247. /// 评价表名
  248. /// </summary>
  249. [DisplayName("评价表名")]
  250. public string EvaluationTableName { get; set; }
  251. /// <summary>
  252. /// 参评类型ID
  253. /// </summary>
  254. [DisplayName("参评类型ID")]
  255. public Guid? EvaluationParticipateTypeID { get; set; }
  256. /// <summary>
  257. /// 参评类型
  258. /// </summary>
  259. [DisplayName("参评类型")]
  260. public int? ParticipateTypeID { get; set; }
  261. /// <summary>
  262. /// 参评类型
  263. /// </summary>
  264. [DisplayName("参评类型")]
  265. public string ParticipateTypeName
  266. {
  267. get
  268. {
  269. return IdNameExt.GetDictionaryItem(DictionaryItem.EM_ParticipateType.ToString()).Where(x => x.Value == ParticipateTypeID).Select(x => x.Name).FirstOrDefault();
  270. }
  271. }
  272. /// <summary>
  273. /// 评价类型ID
  274. /// </summary>
  275. [DisplayName("评价类型ID")]
  276. public Guid? EvaluationTypeID { get; set; }
  277. /// <summary>
  278. /// 评价类型编号
  279. /// </summary>
  280. [DisplayName("评价类型编号")]
  281. public string EvaluationTypeCode { get; set; }
  282. /// <summary>
  283. /// 评价类型
  284. /// </summary>
  285. [DisplayName("评价类型")]
  286. public string EvaluationTypeName { get; set; }
  287. /// <summary>
  288. /// 任课教师ID
  289. /// </summary>
  290. [Required]
  291. [DisplayName("任课教师ID")]
  292. public Guid? UserID { get; set; }
  293. /// <summary>
  294. /// 教师工号
  295. /// </summary>
  296. [DisplayName("教师工号")]
  297. public string StaffCode { get; set; }
  298. /// <summary>
  299. /// 任课教师
  300. /// </summary>
  301. [DisplayName("任课教师")]
  302. public string StaffName { get; set; }
  303. /// <summary>
  304. /// 职称
  305. /// </summary>
  306. [DisplayName("职称")]
  307. public int? TitleID { get; set; }
  308. /// <summary>
  309. /// 职称
  310. /// </summary>
  311. [DisplayName("职称")]
  312. public string TitleName
  313. {
  314. get
  315. {
  316. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Title.ToString()).Where(x => x.Value == TitleID).Select(x => x.Name).FirstOrDefault();
  317. }
  318. }
  319. /// <summary>
  320. /// 任课方式
  321. /// </summary>
  322. [Required]
  323. [DisplayName("任课方式")]
  324. public int? TeachingMethodID { get; set; }
  325. /// <summary>
  326. /// 任课方式
  327. /// </summary>
  328. [DisplayName("任课方式")]
  329. public string TeachingMethodName
  330. {
  331. get
  332. {
  333. return IdNameExt.GetDictionaryItem(DictionaryItem.EM_TeachingMethod.ToString()).Where(x => x.Value == TeachingMethodID).Select(x => x.Name).FirstOrDefault();
  334. }
  335. }
  336. /// <summary>
  337. /// 参评人数
  338. /// </summary>
  339. [DisplayName("参评人数")]
  340. public int? ParticipateCount { get; set; }
  341. /// <summary>
  342. /// 未评人数
  343. /// </summary>
  344. [DisplayName("未评人数")]
  345. public int? NoParticipateCount { get; set; }
  346. /// <summary>
  347. /// 有效评数
  348. /// </summary>
  349. [DisplayName("有效评数")]
  350. public int? ValidityParticipateCount { get; set; }
  351. /// <summary>
  352. /// 有效评率%
  353. /// </summary>
  354. [DisplayName("有效评率%")]
  355. public decimal? ValidityParticipateRate { get; set; }
  356. /// <summary>
  357. /// 开放状态
  358. /// </summary>
  359. [DisplayName("开放状态")]
  360. public bool OpenState { get; set; }
  361. /// <summary>
  362. /// 开放状态
  363. /// </summary>
  364. [DisplayName("开放状态")]
  365. public string OpenStateName
  366. {
  367. get { return this.OpenState == true ? "是" : "否"; }
  368. }
  369. /// <summary>
  370. /// 备注
  371. /// </summary>
  372. [DisplayName("备注")]
  373. public string Remark { get; set; }
  374. /// <summary>
  375. /// 状态
  376. /// </summary>
  377. [DisplayName("状态")]
  378. public int? RecordStatus { get; set; }
  379. /// <summary>
  380. /// 创建人
  381. /// </summary>
  382. [DisplayName("创建人")]
  383. public Guid? CreateUserID { get; set; }
  384. /// <summary>
  385. /// 创建时间
  386. /// </summary>
  387. [DisplayName("创建时间")]
  388. public DateTime? CreateTime { get; set; }
  389. /// <summary>
  390. /// 修改人
  391. /// </summary>
  392. [DisplayName("修改人")]
  393. public Guid? ModifyUserID { get; set; }
  394. /// <summary>
  395. /// 修改时间
  396. /// </summary>
  397. [DisplayName("修改时间")]
  398. public DateTime? ModifyTime { get; set; }
  399. }
  400. }