EvaluationStudentSettingDetailView.cs 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684
  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 EvaluationStudentSettingDetailView
  11. {
  12. /// <summary>
  13. /// 评价学生设定ID
  14. /// </summary>
  15. [DisplayName("评价学生设定ID")]
  16. public Guid EvaluationStudentSettingID { get; set; }
  17. /// <summary>
  18. /// 学生信息ID
  19. /// </summary>
  20. [DisplayName("学生信息ID")]
  21. public Guid UserID { get; set; }
  22. /// <summary>
  23. /// 学号
  24. /// </summary>
  25. [DisplayName("学号")]
  26. public string StudentNo { get; set; }
  27. /// <summary>
  28. /// 姓名
  29. /// </summary>
  30. [DisplayName("姓名")]
  31. public string Name { get; set; }
  32. /// <summary>
  33. /// 性别
  34. /// </summary>
  35. [DisplayName("性别")]
  36. public int? SexID { get; set; }
  37. /// <summary>
  38. /// 性别
  39. /// </summary>
  40. [DisplayName("性别")]
  41. public string SexName
  42. {
  43. get
  44. {
  45. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString()).Where(x => x.Value == SexID).Select(x => x.Name).FirstOrDefault();
  46. }
  47. }
  48. /// <summary>
  49. /// 出生日期
  50. /// </summary>
  51. [DisplayName("出生日期")]
  52. public DateTime? BirthDate { get; set; }
  53. /// <summary>
  54. /// 民族
  55. /// </summary>
  56. [DisplayName("民族")]
  57. public int? NationID { get; set; }
  58. /// <summary>
  59. /// 民族
  60. /// </summary>
  61. [DisplayName("民族")]
  62. public string NationName
  63. {
  64. get
  65. {
  66. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Nation.ToString()).Where(x => x.Value == NationID).Select(x => x.Name).FirstOrDefault();
  67. }
  68. }
  69. /// <summary>
  70. /// 政治面貌
  71. /// </summary>
  72. [DisplayName("政治面貌")]
  73. public int? PoliticsID { get; set; }
  74. /// <summary>
  75. /// 政治面貌
  76. /// </summary>
  77. [DisplayName("政治面貌")]
  78. public string PoliticsName
  79. {
  80. get
  81. {
  82. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Politics.ToString()).Where(x => x.Value == PoliticsID).Select(x => x.Name).FirstOrDefault();
  83. }
  84. }
  85. /// <summary>
  86. /// 在校状态
  87. /// </summary>
  88. [DisplayName("在校状态")]
  89. public int? InSchoolStatusID { get; set; }
  90. /// <summary>
  91. /// 在校状态
  92. /// </summary>
  93. [DisplayName("在校状态")]
  94. public string InSchoolStatusName
  95. {
  96. get
  97. {
  98. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString()).Where(x => x.Value == InSchoolStatusID).Select(x => x.Name).FirstOrDefault();
  99. }
  100. }
  101. /// <summary>
  102. /// 学籍状态
  103. /// </summary>
  104. [DisplayName("学籍状态")]
  105. public int? StudentStatus { get; set; }
  106. /// <summary>
  107. /// 学籍状态
  108. /// </summary>
  109. [DisplayName("学籍状态")]
  110. public string StudentStatusName
  111. {
  112. get
  113. {
  114. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StudentStatus.ToString()).Where(x => x.Value == StudentStatus).Select(x => x.Name).FirstOrDefault();
  115. }
  116. }
  117. /// <summary>
  118. /// 专业ID(Value)
  119. /// </summary>
  120. [DisplayName("专业ID(Value)")]
  121. public int? StandardID { get; set; }
  122. /// <summary>
  123. /// 专业代码
  124. /// </summary>
  125. [DisplayName("专业代码")]
  126. public string StandardCode
  127. {
  128. get
  129. {
  130. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()).Where(x => x.Value == StandardID).Select(x => x.Code).FirstOrDefault();
  131. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  132. }
  133. }
  134. /// <summary>
  135. /// 专业名称
  136. /// </summary>
  137. [DisplayName("专业名称")]
  138. public string StandardName
  139. {
  140. get
  141. {
  142. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()).Where(x => x.Value == StandardID).Select(x => x.Name).FirstOrDefault();
  143. }
  144. }
  145. /// <summary>
  146. /// 培养层次
  147. /// </summary>
  148. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  149. public int? EducationID { get; set; }
  150. /// <summary>
  151. /// 培养层次
  152. /// </summary>
  153. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  154. public string EducationName
  155. {
  156. get
  157. {
  158. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString()).Where(x => x.Value == EducationID).Select(x => x.Name).FirstOrDefault();
  159. }
  160. }
  161. /// <summary>
  162. /// 学习形式
  163. /// </summary>
  164. [DisplayName("学习形式")]
  165. public int? LearningformID { get; set; }
  166. /// <summary>
  167. /// 学习形式
  168. /// </summary>
  169. [DisplayName("学习形式")]
  170. public string LearningformName
  171. {
  172. get
  173. {
  174. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString()).Where(x => x.Value == LearningformID).Select(x => x.Name).FirstOrDefault();
  175. }
  176. }
  177. /// <summary>
  178. /// 学制
  179. /// </summary>
  180. [DisplayName("学制")]
  181. public decimal? LearnSystem { get; set; }
  182. /// <summary>
  183. /// 班级信息ID
  184. /// </summary>
  185. [DisplayName("班级信息ID")]
  186. public Guid? ClassmajorID { get; set; }
  187. /// <summary>
  188. /// 班级编号
  189. /// </summary>
  190. [DisplayName("班级编号")]
  191. public string ClassmajorNo { get; set; }
  192. /// <summary>
  193. /// 班级名称
  194. /// </summary>
  195. [DisplayName("班级名称")]
  196. public string ClassmajorName { get; set; }
  197. /// <summary>
  198. /// 班序
  199. /// </summary>
  200. [DisplayName("班序")]
  201. public int? ClassNum { get; set; }
  202. /// <summary>
  203. /// 年级
  204. /// </summary>
  205. [DisplayName("年级")]
  206. public int? GradeID { get; set; }
  207. /// <summary>
  208. /// 年级
  209. /// </summary>
  210. [DisplayName("年级")]
  211. public string GradeName
  212. {
  213. get
  214. {
  215. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Grade.ToString()).Where(x => x.Value == GradeID).Select(x => x.Name).FirstOrDefault();
  216. }
  217. }
  218. /// <summary>
  219. /// 年级专业ID
  220. /// </summary>
  221. [DisplayName("年级专业ID")]
  222. public Guid? GrademajorID { get; set; }
  223. /// <summary>
  224. /// 年级专业编号
  225. /// </summary>
  226. [DisplayName("年级专业编号")]
  227. public string GrademajorCode { get; set; }
  228. /// <summary>
  229. /// 年级专业名称
  230. /// </summary>
  231. [DisplayName("年级专业名称")]
  232. public string GrademajorName { get; set; }
  233. /// <summary>
  234. /// 院系专业ID
  235. /// </summary>
  236. [DisplayName("院系专业ID")]
  237. public Guid? FacultymajorID { get; set; }
  238. /// <summary>
  239. /// 院系专业编号
  240. /// </summary>
  241. [DisplayName("院系专业编号")]
  242. public string FacultymajorCode { get; set; }
  243. /// <summary>
  244. /// 院系专业名称
  245. /// </summary>
  246. [DisplayName("院系专业名称")]
  247. public string FacultymajorName { get; set; }
  248. /// <summary>
  249. /// 院系所ID
  250. /// </summary>
  251. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  252. public Guid? CollegeID { get; set; }
  253. /// <summary>
  254. /// 院系所代码
  255. /// </summary>
  256. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  257. public string CollegeNo { get; set; }
  258. /// <summary>
  259. /// 院系所名称
  260. /// </summary>
  261. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  262. public string CollegeName { get; set; }
  263. /// <summary>
  264. /// 校区ID
  265. /// </summary>
  266. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  267. public Guid? CampusID { get; set; }
  268. /// <summary>
  269. /// 校区代码
  270. /// </summary>
  271. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  272. public string CampusNo { get; set; }
  273. /// <summary>
  274. /// 校区名称
  275. /// </summary>
  276. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
  277. public string CampusName { get; set; }
  278. /// <summary>
  279. /// 教学任务班ID
  280. /// </summary>
  281. [Required]
  282. [DisplayName("教学任务班ID")]
  283. public Guid? EducationMissionClassID { get; set; }
  284. /// <summary>
  285. /// 教学任务ID
  286. /// </summary>
  287. [Required]
  288. [DisplayName("教学任务ID")]
  289. public Guid? EducationMissionID { get; set; }
  290. /// <summary>
  291. /// 学年学期ID
  292. /// </summary>
  293. [Required]
  294. [DisplayName("学年学期ID")]
  295. public Guid? SchoolyearID { get; set; }
  296. /// <summary>
  297. /// 学年学期对应的Value值
  298. /// </summary>
  299. [DisplayName("SchoolyearValue")]
  300. public int? SchoolyearValue { get; set; }
  301. /// <summary>
  302. /// 学年学期
  303. /// </summary>
  304. [DisplayName("学年学期")]
  305. public string SchoolyearCode { get; set; }
  306. /// <summary>
  307. /// 任务名称
  308. /// </summary>
  309. [Required]
  310. [DisplayName("任务名称")]
  311. public string MissionName { get; set; }
  312. /// <summary>
  313. /// 任务班名称
  314. /// </summary>
  315. [Required]
  316. [DisplayName("任务班名称")]
  317. public string MissionClassName { get; set; }
  318. /// <summary>
  319. /// 课程信息ID
  320. /// </summary>
  321. [Required]
  322. [DisplayName("课程信息ID")]
  323. public Guid? CoursematerialID { get; set; }
  324. /// <summary>
  325. /// 课程代码
  326. /// </summary>
  327. [DisplayName("课程代码")]
  328. public string CourseCode { get; set; }
  329. /// <summary>
  330. /// 课程名称
  331. /// </summary>
  332. [DisplayName("课程名称")]
  333. public string CourseName { get; set; }
  334. /// <summary>
  335. /// 课程结构
  336. /// </summary>
  337. [DisplayName("课程结构")]
  338. public int? CourseStructureID { get; set; }
  339. /// <summary>
  340. /// 课程结构
  341. /// </summary>
  342. [DisplayName("课程结构")]
  343. public string CourseStructureName
  344. {
  345. get
  346. {
  347. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseStructure.ToString()).Where(x => x.Value == CourseStructureID).Select(x => x.Name).FirstOrDefault();
  348. }
  349. }
  350. /// <summary>
  351. /// 课程属性
  352. /// </summary>
  353. [DisplayName("课程属性")]
  354. public int? CourseCategoryID { get; set; }
  355. /// <summary>
  356. /// 课程属性
  357. /// </summary>
  358. [DisplayName("课程属性")]
  359. public string CourseCategoryName
  360. {
  361. get
  362. {
  363. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseCategory.ToString()).Where(x => x.Value == CourseCategoryID).Select(x => x.Name).FirstOrDefault();
  364. }
  365. }
  366. /// <summary>
  367. /// 课程类型
  368. /// </summary>
  369. [DisplayName("课程类型")]
  370. public int? CourseTypeID { get; set; }
  371. /// <summary>
  372. /// 课程类型
  373. /// </summary>
  374. [DisplayName("课程类型")]
  375. public string CourseTypeName
  376. {
  377. get
  378. {
  379. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseType.ToString()).Where(x => x.Value == CourseTypeID).Select(x => x.Name).FirstOrDefault();
  380. }
  381. }
  382. /// <summary>
  383. /// 课程性质
  384. /// </summary>
  385. [DisplayName("课程性质")]
  386. public int? CourseQualityID { get; set; }
  387. /// <summary>
  388. /// 课程性质
  389. /// </summary>
  390. [DisplayName("课程性质")]
  391. public string CourseQualityName
  392. {
  393. get
  394. {
  395. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseQuality.ToString()).Where(x => x.Value == CourseQualityID).Select(x => x.Name).FirstOrDefault();
  396. }
  397. }
  398. /// <summary>
  399. /// 课程学分
  400. /// </summary>
  401. [DisplayName("课程学分")]
  402. public decimal? Credit { get; set; }
  403. /// <summary>
  404. /// 开课教研室ID
  405. /// </summary>
  406. [Required]
  407. [DisplayName("开课教研室")]
  408. public Guid? DepartmentID { get; set; }
  409. /// <summary>
  410. /// 开课教研室代码
  411. /// </summary>
  412. [DisplayName("开课教研室代码")]
  413. public string DepartmentNo { get; set; }
  414. /// <summary>
  415. /// 开课教研室
  416. /// </summary>
  417. [DisplayName("开课教研室")]
  418. public string DepartmentName { get; set; }
  419. /// <summary>
  420. /// 处理方式
  421. /// </summary>
  422. [DisplayName("处理方式")]
  423. public int? HandleModeID { get; set; }
  424. /// <summary>
  425. /// 处理方式
  426. /// </summary>
  427. [DisplayName("处理方式")]
  428. public string HandleModeName
  429. {
  430. get
  431. {
  432. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_HandleMode.ToString()).Where(x => x.Value == HandleModeID).Select(x => x.Name).FirstOrDefault();
  433. }
  434. }
  435. /// <summary>
  436. /// 授课方式
  437. /// </summary>
  438. [DisplayName("授课方式")]
  439. public int? TeachingModeID { get; set; }
  440. /// <summary>
  441. /// 授课方式
  442. /// </summary>
  443. [DisplayName("授课方式")]
  444. public string TeachingModeName
  445. {
  446. get
  447. {
  448. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString()).Where(x => x.Value == TeachingModeID).Select(x => x.Name).FirstOrDefault();
  449. }
  450. }
  451. /// <summary>
  452. /// 任务状态
  453. /// </summary>
  454. [DisplayName("任务状态")]
  455. public int? MissionClassStatus { get; set; }
  456. /// <summary>
  457. /// 任务状态
  458. /// </summary>
  459. public string MissionClassStatusName
  460. {
  461. get
  462. {
  463. return IdNameExt.GetDictionaryItem(DictionaryItem.EM_EducationMissionClassStatus.ToString()).Where(x => x.Value == MissionClassStatus).Select(x => x.Name).FirstOrDefault();
  464. }
  465. }
  466. /// <summary>
  467. /// 评价表ID
  468. /// </summary>
  469. [Required]
  470. [DisplayName("评价表ID")]
  471. public Guid? EvaluationTableID { get; set; }
  472. /// <summary>
  473. /// 评价表编号
  474. /// </summary>
  475. [DisplayName("评价表编号")]
  476. public string EvaluationTableCode { get; set; }
  477. /// <summary>
  478. /// 评价表名
  479. /// </summary>
  480. [DisplayName("评价表名")]
  481. public string EvaluationTableName { get; set; }
  482. /// <summary>
  483. /// 参评类型ID
  484. /// </summary>
  485. [DisplayName("参评类型ID")]
  486. public Guid? EvaluationParticipateTypeID { get; set; }
  487. /// <summary>
  488. /// 参评类型
  489. /// </summary>
  490. [DisplayName("参评类型")]
  491. public int? ParticipateTypeID { get; set; }
  492. /// <summary>
  493. /// 参评类型
  494. /// </summary>
  495. [DisplayName("参评类型")]
  496. public string ParticipateTypeName
  497. {
  498. get
  499. {
  500. return IdNameExt.GetDictionaryItem(DictionaryItem.EM_ParticipateType.ToString()).Where(x => x.Value == ParticipateTypeID).Select(x => x.Name).FirstOrDefault();
  501. }
  502. }
  503. /// <summary>
  504. /// 评价类型ID
  505. /// </summary>
  506. [DisplayName("评价类型ID")]
  507. public Guid? EvaluationTypeID { get; set; }
  508. /// <summary>
  509. /// 评价类型编号
  510. /// </summary>
  511. [DisplayName("评价类型编号")]
  512. public string EvaluationTypeCode { get; set; }
  513. /// <summary>
  514. /// 评价类型
  515. /// </summary>
  516. [DisplayName("评价类型")]
  517. public string EvaluationTypeName { get; set; }
  518. /// <summary>
  519. /// 任课教师ID
  520. /// </summary>
  521. [Required]
  522. [DisplayName("任课教师ID")]
  523. public Guid? StaffUserID { get; set; }
  524. /// <summary>
  525. /// 教师工号
  526. /// </summary>
  527. [DisplayName("教师工号")]
  528. public string StaffCode { get; set; }
  529. /// <summary>
  530. /// 任课教师
  531. /// </summary>
  532. [DisplayName("任课教师")]
  533. public string StaffName { get; set; }
  534. /// <summary>
  535. /// 职称
  536. /// </summary>
  537. [DisplayName("职称")]
  538. public int? TitleID { get; set; }
  539. /// <summary>
  540. /// 职称
  541. /// </summary>
  542. [DisplayName("职称")]
  543. public string TitleName
  544. {
  545. get
  546. {
  547. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Title.ToString()).Where(x => x.Value == TitleID).Select(x => x.Name).FirstOrDefault();
  548. }
  549. }
  550. /// <summary>
  551. /// 任课方式
  552. /// </summary>
  553. [Required]
  554. [DisplayName("任课方式")]
  555. public int? TeachingMethodID { get; set; }
  556. /// <summary>
  557. /// 任课方式
  558. /// </summary>
  559. [DisplayName("任课方式")]
  560. public string TeachingMethodName
  561. {
  562. get
  563. {
  564. return IdNameExt.GetDictionaryItem(DictionaryItem.EM_TeachingMethod.ToString()).Where(x => x.Value == TeachingMethodID).Select(x => x.Name).FirstOrDefault();
  565. }
  566. }
  567. /// <summary>
  568. /// 开放状态
  569. /// </summary>
  570. [DisplayName("开放状态")]
  571. public bool OpenState { get; set; }
  572. /// <summary>
  573. /// 开放状态
  574. /// </summary>
  575. [DisplayName("开放状态")]
  576. public string OpenStateName
  577. {
  578. get { return this.OpenState == true ? "是" : "否"; }
  579. }
  580. /// <summary>
  581. /// 评价状态
  582. /// </summary>
  583. [DisplayName("评价状态")]
  584. public bool IsEvaluation { get; set; }
  585. /// <summary>
  586. /// 评价状态
  587. /// </summary>
  588. [DisplayName("评价状态")]
  589. public string IsEvaluationName
  590. {
  591. get { return this.IsEvaluation == true ? "已评" : "未评"; }
  592. }
  593. }
  594. }