EvaluationStudentSettingScoreView.cs 13 KB

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