EducationMissionClassStudentView.cs 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818
  1. using EMIS.ViewModel.CacheManage;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.Linq;
  7. using System.Text;
  8. namespace EMIS.ViewModel.EducationManage.EducationArrange
  9. {
  10. public class EducationMissionClassStudentView
  11. {
  12. /// <summary>
  13. /// 排课班级ID
  14. /// </summary>
  15. [DisplayName("排课班级ID")]
  16. public Guid EducationSchedulingClassID { get; set; }
  17. /// <summary>
  18. /// 排课班名称
  19. /// </summary>
  20. [DisplayName("排课班名称")]
  21. public string SchedulingClassName { get; set; }
  22. /// <summary>
  23. /// 学生信息ID
  24. /// </summary>
  25. [DisplayName("学生信息ID")]
  26. public Guid UserID { get; set; }
  27. /// <summary>
  28. /// 学号
  29. /// </summary>
  30. [DisplayName("学号")]
  31. public string StudentNo { get; set; }
  32. /// <summary>
  33. /// 姓名
  34. /// </summary>
  35. [DisplayName("姓名")]
  36. public string Name { get; set; }
  37. /// <summary>
  38. /// 性别
  39. /// </summary>
  40. [DisplayName("性别")]
  41. public int? SexID { get; set; }
  42. /// <summary>
  43. /// 性别
  44. /// </summary>
  45. [DisplayName("性别")]
  46. public string SexName
  47. {
  48. get
  49. {
  50. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString()).Where(x => x.Value == SexID).Select(x => x.Name).FirstOrDefault();
  51. }
  52. }
  53. /// <summary>
  54. /// 出生日期
  55. /// </summary>
  56. [DisplayName("出生日期")]
  57. public DateTime? BirthDate { get; set; }
  58. /// <summary>
  59. /// 民族
  60. /// </summary>
  61. [DisplayName("民族")]
  62. public int? NationID { get; set; }
  63. /// <summary>
  64. /// 民族
  65. /// </summary>
  66. [DisplayName("民族")]
  67. public string NationName
  68. {
  69. get
  70. {
  71. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Nation.ToString()).Where(x => x.Value == NationID).Select(x => x.Name).FirstOrDefault();
  72. }
  73. }
  74. /// <summary>
  75. /// 政治面貌
  76. /// </summary>
  77. [DisplayName("政治面貌")]
  78. public int? PoliticsID { get; set; }
  79. /// <summary>
  80. /// 政治面貌
  81. /// </summary>
  82. [DisplayName("政治面貌")]
  83. public string PoliticsName
  84. {
  85. get
  86. {
  87. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Politics.ToString()).Where(x => x.Value == PoliticsID).Select(x => x.Name).FirstOrDefault();
  88. }
  89. }
  90. /// <summary>
  91. /// 在校状态
  92. /// </summary>
  93. [DisplayName("在校状态")]
  94. public int? InSchoolStatusID { get; set; }
  95. /// <summary>
  96. /// 在校状态
  97. /// </summary>
  98. [DisplayName("在校状态")]
  99. public string InSchoolStatusName
  100. {
  101. get
  102. {
  103. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString()).Where(x => x.Value == InSchoolStatusID).Select(x => x.Name).FirstOrDefault();
  104. }
  105. }
  106. /// <summary>
  107. /// 学籍状态
  108. /// </summary>
  109. [DisplayName("学籍状态")]
  110. public int? StudentStatus { get; set; }
  111. /// <summary>
  112. /// 学籍状态
  113. /// </summary>
  114. [DisplayName("学籍状态")]
  115. public string StudentStatusName
  116. {
  117. get
  118. {
  119. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StudentStatus.ToString()).Where(x => x.Value == StudentStatus).Select(x => x.Name).FirstOrDefault();
  120. }
  121. }
  122. /// <summary>
  123. /// 专业ID(Value)
  124. /// </summary>
  125. [DisplayName("专业ID(Value)")]
  126. public int? StandardID { get; set; }
  127. /// <summary>
  128. /// 专业代码
  129. /// </summary>
  130. [DisplayName("专业代码")]
  131. public string StandardCode
  132. {
  133. get
  134. {
  135. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()).Where(x => x.Value == StandardID).Select(x => x.Code).FirstOrDefault();
  136. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  137. }
  138. }
  139. /// <summary>
  140. /// 专业名称
  141. /// </summary>
  142. [DisplayName("专业名称")]
  143. public string StandardName
  144. {
  145. get
  146. {
  147. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()).Where(x => x.Value == StandardID).Select(x => x.Name).FirstOrDefault();
  148. }
  149. }
  150. /// <summary>
  151. /// 培养层次
  152. /// </summary>
  153. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  154. public int? EducationID { get; set; }
  155. /// <summary>
  156. /// 培养层次
  157. /// </summary>
  158. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  159. public string EducationName
  160. {
  161. get
  162. {
  163. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString()).Where(x => x.Value == EducationID).Select(x => x.Name).FirstOrDefault();
  164. }
  165. }
  166. /// <summary>
  167. /// 学习形式
  168. /// </summary>
  169. [DisplayName("学习形式")]
  170. public int? LearningformID { get; set; }
  171. /// <summary>
  172. /// 学习形式
  173. /// </summary>
  174. [DisplayName("学习形式")]
  175. public string LearningformName
  176. {
  177. get
  178. {
  179. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString()).Where(x => x.Value == LearningformID).Select(x => x.Name).FirstOrDefault();
  180. }
  181. }
  182. /// <summary>
  183. /// 学制
  184. /// </summary>
  185. [DisplayName("学制")]
  186. public decimal? LearnSystem { get; set; }
  187. /// <summary>
  188. /// 班级信息ID
  189. /// </summary>
  190. [DisplayName("班级信息ID")]
  191. public Guid? ClassmajorID { get; set; }
  192. /// <summary>
  193. /// 班级编号
  194. /// </summary>
  195. [DisplayName("班级编号")]
  196. public string ClassmajorNo { get; set; }
  197. /// <summary>
  198. /// 班级名称
  199. /// </summary>
  200. [DisplayName("班级名称")]
  201. public string ClassmajorName { get; set; }
  202. /// <summary>
  203. /// 班序
  204. /// </summary>
  205. [DisplayName("班序")]
  206. public int? ClassNum { get; set; }
  207. /// <summary>
  208. /// 年级
  209. /// </summary>
  210. [DisplayName("年级")]
  211. public int? GradeID { get; set; }
  212. /// <summary>
  213. /// 年级
  214. /// </summary>
  215. [DisplayName("年级")]
  216. public string GradeName
  217. {
  218. get
  219. {
  220. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Grade.ToString()).Where(x => x.Value == GradeID).Select(x => x.Name).FirstOrDefault();
  221. }
  222. }
  223. /// <summary>
  224. /// 年级专业ID
  225. /// </summary>
  226. [DisplayName("年级专业ID")]
  227. public Guid? GrademajorID { get; set; }
  228. /// <summary>
  229. /// 年级专业编号
  230. /// </summary>
  231. [DisplayName("年级专业编号")]
  232. public string GrademajorCode { get; set; }
  233. /// <summary>
  234. /// 年级专业名称
  235. /// </summary>
  236. [DisplayName("年级专业名称")]
  237. public string GrademajorName { get; set; }
  238. /// <summary>
  239. /// 院系专业ID
  240. /// </summary>
  241. [DisplayName("院系专业ID")]
  242. public Guid? FacultymajorID { get; set; }
  243. /// <summary>
  244. /// 院系专业编号
  245. /// </summary>
  246. [DisplayName("院系专业编号")]
  247. public string FacultymajorCode { get; set; }
  248. /// <summary>
  249. /// 院系专业名称
  250. /// </summary>
  251. [DisplayName("院系专业名称")]
  252. public string FacultymajorName { get; set; }
  253. /// <summary>
  254. /// 院系所ID
  255. /// </summary>
  256. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  257. public Guid? CollegeID { get; set; }
  258. /// <summary>
  259. /// 院系所代码
  260. /// </summary>
  261. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  262. public string CollegeCode { get; set; }
  263. /// <summary>
  264. /// 院系所名称
  265. /// </summary>
  266. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeName")]
  267. public string CollegeName { get; set; }
  268. /// <summary>
  269. /// 校区ID
  270. /// </summary>
  271. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  272. public Guid? CampusID { get; set; }
  273. /// <summary>
  274. /// 校区代码
  275. /// </summary>
  276. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  277. public string CampusNo { get; set; }
  278. /// <summary>
  279. /// 校区名称
  280. /// </summary>
  281. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
  282. public string CampusName { get; set; }
  283. /// <summary>
  284. /// 教学任务班ID
  285. /// </summary>
  286. [DisplayName("教学任务班ID")]
  287. public Guid? EducationMissionClassID { get; set; }
  288. /// <summary>
  289. /// 教学任务ID
  290. /// </summary>
  291. [DisplayName("教学任务ID")]
  292. public Guid? EducationMissionID { get; set; }
  293. /// <summary>
  294. /// 任务名称
  295. /// </summary>
  296. [DisplayName("任务名称")]
  297. public string MissionName { get; set; }
  298. /// <summary>
  299. /// 学年学期ID
  300. /// </summary>
  301. [DisplayName("学年学期ID")]
  302. public Guid? SchoolyearID { get; set; }
  303. /// <summary>
  304. /// 学年学期
  305. /// </summary>
  306. [DisplayName("学年学期")]
  307. public string SchoolyearCode { get; set; }
  308. /// <summary>
  309. /// 学年学期对应的Value值
  310. /// </summary>
  311. [DisplayName("Value")]
  312. public int? Value { get; set; }
  313. /// <summary>
  314. /// 主排课班级ID
  315. /// </summary>
  316. [DisplayName("主排课班级ID")]
  317. public Guid? MainScheduleClassID { get; set; }
  318. /// <summary>
  319. /// 主排课班级编号
  320. /// </summary>
  321. [DisplayName("主排课班级编号")]
  322. public string MainScheduleClassNo { get; set; }
  323. /// <summary>
  324. /// 主排课班级名称
  325. /// </summary>
  326. [DisplayName("主排课班级名称")]
  327. public string MainScheduleClassName { get; set; }
  328. /// <summary>
  329. /// 任务来源
  330. /// </summary>
  331. [DisplayName("任务来源")]
  332. public int? MissionSourceID { get; set; }
  333. /// <summary>
  334. /// 任务来源
  335. /// </summary>
  336. [DisplayName("任务来源")]
  337. public string MissionSourceName
  338. {
  339. get
  340. {
  341. return IdNameExt.GetDictionaryItem(DictionaryItem.EM_MissionSourceType.ToString()).Where(x => x.Value == MissionSourceID).Select(x => x.Name).FirstOrDefault();
  342. }
  343. }
  344. /// <summary>
  345. /// 任务类型
  346. /// </summary>
  347. [DisplayName("任务类型")]
  348. public int? MissionTypeID { get; set; }
  349. /// <summary>
  350. /// 任务类型
  351. /// </summary>
  352. [DisplayName("任务类型")]
  353. public string MissionTypeName
  354. {
  355. get
  356. {
  357. return IdNameExt.GetDictionaryItem(DictionaryItem.EM_SourceType.ToString()).Where(x => x.Value == MissionTypeID).Select(x => x.Name).FirstOrDefault();
  358. }
  359. }
  360. /// <summary>
  361. /// 任务班序
  362. /// </summary>
  363. [DisplayName("任务班序")]
  364. public int? OrderNo { get; set; }
  365. /// <summary>
  366. /// 任务班名称
  367. /// </summary>
  368. [DisplayName("任务班名称")]
  369. public string MissionClassName { get; set; }
  370. /// <summary>
  371. /// 课程信息ID
  372. /// </summary>
  373. [DisplayName("课程信息ID")]
  374. public Guid? CoursematerialID { get; set; }
  375. /// <summary>
  376. /// 课程代码
  377. /// </summary>
  378. [DisplayName("课程代码")]
  379. public string CourseCode { get; set; }
  380. /// <summary>
  381. /// 课程名称
  382. /// </summary>
  383. [DisplayName("课程名称")]
  384. public string CourseName { get; set; }
  385. /// <summary>
  386. /// 开课教研室ID
  387. /// </summary>
  388. [Required]
  389. [DisplayName("开课教研室ID")]
  390. public Guid? DepartmentID { get; set; }
  391. /// <summary>
  392. /// 开课教研室代码
  393. /// </summary>
  394. [DisplayName("开课教研室代码")]
  395. public string DepartmentCode { get; set; }
  396. /// <summary>
  397. /// 开课教研室
  398. /// </summary>
  399. [DisplayName("开课教研室")]
  400. public string DepartmentName { get; set; }
  401. /// <summary>
  402. /// 开课院系ID
  403. /// </summary>
  404. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CourseCollege")]
  405. public Guid? CourseCollegeID { get; set; }
  406. /// <summary>
  407. /// 开课院系代码
  408. /// </summary>
  409. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CourseCollege")]
  410. public string CourseCollegeCode { get; set; }
  411. /// <summary>
  412. /// 开课院系
  413. /// </summary>
  414. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CourseCollege")]
  415. public string CourseCollegeName { get; set; }
  416. /// <summary>
  417. /// 课程结构
  418. /// </summary>
  419. [DisplayName("课程结构")]
  420. public int? CourseStructureID { get; set; }
  421. /// <summary>
  422. /// 课程结构
  423. /// </summary>
  424. [DisplayName("课程结构")]
  425. public string CourseStructureName
  426. {
  427. get
  428. {
  429. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseStructure.ToString()).Where(x => x.Value == CourseStructureID).Select(x => x.Name).FirstOrDefault();
  430. }
  431. }
  432. /// <summary>
  433. /// 课程属性
  434. /// </summary>
  435. [DisplayName("课程属性")]
  436. public int? CourseCategoryID { get; set; }
  437. /// <summary>
  438. /// 课程属性
  439. /// </summary>
  440. [DisplayName("课程属性")]
  441. public string CourseCategoryName
  442. {
  443. get
  444. {
  445. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseCategory.ToString()).Where(x => x.Value == CourseCategoryID).Select(x => x.Name).FirstOrDefault();
  446. }
  447. }
  448. /// <summary>
  449. /// 课程类型
  450. /// </summary>
  451. [DisplayName("课程类型")]
  452. public int? CourseTypeID { get; set; }
  453. /// <summary>
  454. /// 课程类型
  455. /// </summary>
  456. [DisplayName("课程类型")]
  457. public string CourseTypeName
  458. {
  459. get
  460. {
  461. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseType.ToString()).Where(x => x.Value == CourseTypeID).Select(x => x.Name).FirstOrDefault();
  462. }
  463. }
  464. /// <summary>
  465. /// 课程性质
  466. /// </summary>
  467. [DisplayName("课程性质")]
  468. public int? CourseQualityID { get; set; }
  469. /// <summary>
  470. /// 课程性质
  471. /// </summary>
  472. [DisplayName("课程性质")]
  473. public string CourseQualityName
  474. {
  475. get
  476. {
  477. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseQuality.ToString()).Where(x => x.Value == CourseQualityID).Select(x => x.Name).FirstOrDefault();
  478. }
  479. }
  480. /// <summary>
  481. /// 课程学分
  482. /// </summary>
  483. [DisplayName("课程学分")]
  484. public decimal? Credit { get; set; }
  485. /// <summary>
  486. /// 理论学时
  487. /// </summary>
  488. [DisplayName("理论学时")]
  489. public int? TheoryCourse { get; set; }
  490. /// <summary>
  491. /// 实践学时
  492. /// </summary>
  493. [DisplayName("实践学时")]
  494. public int? Practicehours { get; set; }
  495. /// <summary>
  496. /// 实验学时
  497. /// </summary>
  498. [DisplayName("实验学时")]
  499. public int? Trialhours { get; set; }
  500. /// <summary>
  501. /// 总学时
  502. /// </summary>
  503. [DisplayName("总学时")]
  504. public int? Totalhours { get; set; }
  505. /// <summary>
  506. /// 执行学时
  507. /// </summary>
  508. [DisplayName("执行学时")]
  509. public int? ExecHours { get; set; }
  510. /// <summary>
  511. /// 理论周次
  512. /// </summary>
  513. [DisplayName("理论周次")]
  514. public int? TheoryWeeklyNum { get; set; }
  515. /// <summary>
  516. /// 实践周次
  517. /// </summary>
  518. [DisplayName("实践周次")]
  519. public int? PracticeWeeklyNum { get; set; }
  520. /// <summary>
  521. /// 实验周次
  522. /// </summary>
  523. [DisplayName("实验周次")]
  524. public int? TrialWeeklyNum { get; set; }
  525. /// <summary>
  526. /// 总周次
  527. /// </summary>
  528. [DisplayName("总周次")]
  529. public int? SchoolweeksNum { get; set; }
  530. /// <summary>
  531. /// 周学时
  532. /// </summary>
  533. [DisplayName("周学时")]
  534. public int? WeeklyHours { get; set; }
  535. /// <summary>
  536. /// 每周次数
  537. /// </summary>
  538. [DisplayName("每周次数")]
  539. public int? WeeklyNum { get; set; }
  540. /// <summary>
  541. /// 开始周次
  542. /// </summary>
  543. [DisplayName("开始周次")]
  544. public int? StartWeeklyNum { get; set; }
  545. /// <summary>
  546. /// 结束周次
  547. /// </summary>
  548. [DisplayName("结束周次")]
  549. public int? EndWeeklyNum { get; set; }
  550. /// <summary>
  551. /// 起止周次
  552. /// </summary>
  553. [DisplayName("起止周次")]
  554. public string StartEndWeeklyNum { get; set; }
  555. /// <summary>
  556. /// 执行周次
  557. /// </summary>
  558. [DisplayName("执行周次")]
  559. public string ExecWeeklyNum { get; set; }
  560. /// <summary>
  561. /// 教室类型
  562. /// </summary>
  563. [DisplayName("教室类型")]
  564. public int? ClassroomTypeID { get; set; }
  565. /// <summary>
  566. /// 教室类型
  567. /// </summary>
  568. [DisplayName("教室类型")]
  569. public string ClassroomTypeName
  570. {
  571. get
  572. {
  573. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ClassroomType.ToString()).Where(x => x.Value == ClassroomTypeID).Select(x => x.Name).FirstOrDefault();
  574. }
  575. }
  576. /// <summary>
  577. /// 教室ID
  578. /// </summary>
  579. [DisplayName("教室")]
  580. public Guid? ClassroomID { get; set; }
  581. /// <summary>
  582. /// 教室编号
  583. /// </summary>
  584. [DisplayName("教室编号")]
  585. public string ClassroomCode { get; set; }
  586. /// <summary>
  587. /// 教室名称
  588. /// </summary>
  589. [DisplayName("教室名称")]
  590. public string ClassroomName { get; set; }
  591. /// <summary>
  592. /// 是否需要教材
  593. /// </summary>
  594. [DisplayName("是否需要教材")]
  595. public bool IsNeedMaterial { get; set; }
  596. /// <summary>
  597. /// 是否需要教材
  598. /// </summary>
  599. [DisplayName("是否需要教材")]
  600. public string IsNeedMaterialName
  601. {
  602. get { return this.IsNeedMaterial != true ? "否" : "是"; }
  603. }
  604. /// <summary>
  605. /// 授课语言
  606. /// </summary>
  607. [DisplayName("授课语言")]
  608. public int? TeachinglanguageID { get; set; }
  609. /// <summary>
  610. /// 授课语言
  611. /// </summary>
  612. [DisplayName("授课语言")]
  613. public string TeachinglanguageName
  614. {
  615. get
  616. {
  617. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Teachinglanguage.ToString()).Where(x => x.Value == TeachinglanguageID).Select(x => x.Name).FirstOrDefault();
  618. }
  619. }
  620. /// <summary>
  621. /// 考试方式
  622. /// </summary>
  623. [Required]
  624. [DisplayName("考试方式")]
  625. public int? ExaminationModeID { get; set; }
  626. /// <summary>
  627. /// 考试方式
  628. /// </summary>
  629. [DisplayName("考试方式")]
  630. public string ExaminationModeName
  631. {
  632. get
  633. {
  634. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExaminationMode.ToString()).Where(x => x.Value == ExaminationModeID).Select(x => x.Name).FirstOrDefault();
  635. }
  636. }
  637. /// <summary>
  638. /// 成绩类型
  639. /// </summary>
  640. [Required]
  641. [DisplayName("成绩类型")]
  642. public int? ResultTypeID { get; set; }
  643. /// <summary>
  644. /// 成绩类型
  645. /// </summary>
  646. [DisplayName("成绩类型")]
  647. public string ResultTypeName
  648. {
  649. get
  650. {
  651. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ResultType.ToString()).Where(x => x.Value == ResultTypeID).Select(x => x.Name).FirstOrDefault();
  652. }
  653. }
  654. /// <summary>
  655. /// 处理方式
  656. /// </summary>
  657. [Required]
  658. [DisplayName("处理方式")]
  659. public int? HandleModeID { get; set; }
  660. /// <summary>
  661. /// 处理方式
  662. /// </summary>
  663. [DisplayName("处理方式")]
  664. public string HandleModeName
  665. {
  666. get
  667. {
  668. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_HandleMode.ToString()).Where(x => x.Value == HandleModeID).Select(x => x.Name).FirstOrDefault();
  669. }
  670. }
  671. /// <summary>
  672. /// 授课方式
  673. /// </summary>
  674. [DisplayName("授课方式")]
  675. public int? TeachingModeID { get; set; }
  676. /// <summary>
  677. /// 授课方式
  678. /// </summary>
  679. [DisplayName("授课方式")]
  680. public string TeachingModeName
  681. {
  682. get
  683. {
  684. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString()).Where(x => x.Value == TeachingModeID).Select(x => x.Name).FirstOrDefault();
  685. }
  686. }
  687. /// <summary>
  688. /// 状态
  689. /// </summary>
  690. public int? ApprovalStatus { get; set; }
  691. /// <summary>
  692. /// 状态
  693. /// </summary>
  694. public string ApprovalStatusName
  695. {
  696. get
  697. {
  698. return IdNameExt.GetDictionaryItem(DictionaryItem.EM_EducationMissionClassStatus.ToString()).Where(x => x.Value == ApprovalStatus).Select(x => x.Name).FirstOrDefault();
  699. }
  700. }
  701. /// <summary>
  702. /// 备注
  703. /// </summary>
  704. [DisplayName("备注")]
  705. public string Remark { get; set; }
  706. }
  707. }