EducationMissionClassView.cs 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915
  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.ViewModel.CacheManage;
  8. using EMIS.Entities;
  9. namespace EMIS.ViewModel.EducationManagement
  10. {
  11. public class EducationMissionClassView
  12. {
  13. /// <summary>
  14. /// 教学任务ID
  15. /// </summary>
  16. [DisplayName("教学任务ID")]
  17. public Guid? EducationMissionID { get; set; }
  18. /// <summary>
  19. /// 教学任务班ID
  20. /// </summary>
  21. [DisplayName("教学任务班ID")]
  22. public Guid? EducationMissionClassID { get; set; }
  23. /// <summary>
  24. /// 序号
  25. /// </summary>
  26. [DisplayName("序号")]
  27. [RegularExpression(@"^[0-9]*[1-9][0-9]*$", ErrorMessage = "请输整数")]
  28. public int? OrderNo { get; set; }
  29. /// <summary>
  30. /// 任务班名称
  31. /// </summary>
  32. [Required]
  33. [DisplayName("任务班名称")]
  34. public string Name { get; set; }
  35. [DisplayName("合班后的任务班名")]
  36. public string MissionClassClassmajorName
  37. {
  38. get
  39. {
  40. string name = string.Empty;
  41. if (ClassmajorViewList != null)
  42. name = string.Join("-", ClassmajorViewList.Select(s => s.ClassmajorName));
  43. if (string.IsNullOrEmpty(name))
  44. {
  45. return "";
  46. }
  47. else
  48. {
  49. return string.Format(name + "-{0}-({1})", (CourseNameAb == null || CourseNameAb.Trim() == "" ? CourseName : CourseNameAb), TeachingModeName);
  50. }
  51. }
  52. }
  53. /// <summary>
  54. /// 排课班数
  55. /// </summary>
  56. [DisplayName("排课班数")]
  57. public int? SchedulingClassNum { get; set; }
  58. [Required]
  59. [DisplayName("主要排课班级")]
  60. public Guid? MainScheduleClassID { get; set; }
  61. /// <summary>
  62. /// 主要排课班级
  63. /// </summary>
  64. [DisplayName("主要排课班级")]
  65. public string SchedulingClass { get; set; }
  66. public Guid? MainScheduleClassGrademajorID { get; set; }
  67. public Guid? MainScheduleClassCollegeID { get; set; }
  68. [DisplayName("班级名称列表")]
  69. public IEnumerable<ClassView> ClassmajorViewList { get; set; }
  70. /// <summary>
  71. /// 学生人数
  72. /// </summary>
  73. [DisplayName("人数")]
  74. public int? ClassNum { get; set; }
  75. /// <summary>
  76. /// 学年学期ID
  77. /// </summary>
  78. [DisplayName("学年学期")]
  79. public Guid? SchoolyearID { get; set; }
  80. /// <summary>
  81. /// 学年学期
  82. /// </summary>
  83. [DisplayName("学年学期")]
  84. public string SchoolyearCode { get; set; }
  85. /// <summary>
  86. /// 学年(学年学期对应学年)
  87. /// </summary>
  88. [DisplayName("学年")]
  89. public int? YearID { get; set; }
  90. /// <summary>
  91. /// 学年(学年学期对应学年)
  92. /// </summary>
  93. [DisplayName("学年")]
  94. public string YearName
  95. {
  96. get
  97. {
  98. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Year.ToString()).Where(x => x.Value == YearID).Select(x => x.Name).FirstOrDefault();
  99. }
  100. }
  101. /// <summary>
  102. /// 课程信息ID
  103. /// </summary>
  104. [DisplayName("课程信息ID")]
  105. public Guid? CoursematerialID { get; set; }
  106. /// <summary>
  107. /// 课程代码
  108. /// </summary>
  109. [DisplayName("课程代码")]
  110. public string CourseCode { get; set; }
  111. /// <summary>
  112. /// 课程名称
  113. /// </summary>
  114. [DisplayName("课程名称")]
  115. public string CourseName { get; set; }
  116. /// <summary>
  117. /// 课程简称
  118. /// </summary>
  119. [DisplayName("课程简称")]
  120. public string CourseNameAb { get; set; }
  121. /// <summary>
  122. /// 校区ID
  123. /// </summary>
  124. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  125. public Guid? CampusID { get; set; }
  126. /// <summary>
  127. /// 院系所ID
  128. /// </summary>
  129. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  130. public Guid? CollegeID { get; set; }
  131. /// <summary>
  132. /// 院系所编号
  133. /// </summary>
  134. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  135. public string CollegeNo { get; set; }
  136. /// <summary>
  137. /// 院系所名称
  138. /// </summary>
  139. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  140. public string CollegeName { get; set; }
  141. /// <summary>
  142. /// 院系所ID
  143. /// </summary>
  144. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  145. public Guid? OpenCollegeID { get; set; }
  146. /// <summary>
  147. /// 院系所编号
  148. /// </summary>
  149. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  150. public string OpenCollegeNo { get; set; }
  151. /// <summary>
  152. /// 院系所名称
  153. /// </summary>
  154. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  155. public string OpenCollegeName { get; set; }
  156. /// <summary>
  157. /// 教研室ID
  158. /// </summary>
  159. [DisplayName("教研室ID")]
  160. public Guid? DepartmentID { get; set; }
  161. /// <summary>
  162. /// 教研室编号
  163. /// </summary>
  164. [DisplayName("教研室编号")]
  165. public string DepartmentCode { get; set; }
  166. /// <summary>
  167. /// 教研室名称
  168. /// </summary>
  169. [DisplayName("教研室名称")]
  170. public string DepartmentName { get; set; }
  171. /// <summary>
  172. /// 年级
  173. /// </summary>
  174. [DisplayName("年级")]
  175. public int? GradeYearID { get; set; }
  176. /// <summary>
  177. /// 年级
  178. /// </summary>
  179. [DisplayName("年级")]
  180. public string Grade
  181. {
  182. get
  183. {
  184. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Grade.ToString()).Where(x => x.Value == GradeYearID).Select(x => x.Name).FirstOrDefault();
  185. }
  186. }
  187. /// <summary>
  188. /// 专业代码(对应字典中的Value)
  189. /// </summary>
  190. public int? StandardID { get; set; }
  191. /// <summary>
  192. /// 专业代码
  193. /// </summary>
  194. [DisplayName("专业代码")]
  195. public string SpecialtyCode
  196. {
  197. get
  198. {
  199. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  200. .Where(x => x.Value == StandardID)
  201. .Select(x => x.Code).FirstOrDefault();
  202. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  203. }
  204. }
  205. /// <summary>
  206. /// 专业名称
  207. /// </summary>
  208. [DisplayName("专业名称")]
  209. public string SpecialtyName
  210. {
  211. get
  212. {
  213. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  214. .Where(x => x.Value == StandardID)
  215. .Select(x => x.Name).FirstOrDefault();
  216. }
  217. }
  218. /// <summary>
  219. /// 学制
  220. /// </summary>
  221. [DisplayName("学制")]
  222. public decimal? LearnSystem { get; set; }
  223. /// <summary>
  224. /// 培养层次
  225. /// </summary>
  226. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  227. public int? EducationID { get; set; }
  228. /// <summary>
  229. /// 培养层次
  230. /// </summary>
  231. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  232. public string EducationName
  233. {
  234. get
  235. {
  236. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString())
  237. .Where(x => x.Value == EducationID)
  238. .Select(x => x.Name).FirstOrDefault();
  239. }
  240. }
  241. /// <summary>
  242. /// 学习形式
  243. /// </summary>
  244. [DisplayName("学习形式")]
  245. public int? LearningformID { get; set; }
  246. /// <summary>
  247. /// 学习形式
  248. /// </summary>
  249. [DisplayName("学习形式")]
  250. public string LearningformName
  251. {
  252. get
  253. {
  254. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString())
  255. .Where(x => x.Value == LearningformID)
  256. .Select(x => x.Name).FirstOrDefault();
  257. }
  258. }
  259. /// <summary>
  260. /// 年级专业ID
  261. /// </summary>
  262. [DisplayName("年级专业ID")]
  263. public Guid? GrademajorID { get; set; }
  264. /// <summary>
  265. /// 年级专业编号
  266. /// </summary>
  267. [DisplayName("年级专业编号")]
  268. public string GrademajorCode { get; set; }
  269. /// <summary>
  270. /// 年级专业名称
  271. /// </summary>
  272. [DisplayName("年级专业名称")]
  273. public string GrademajorName { get; set; }
  274. /// <summary>
  275. /// 教室ID
  276. /// </summary>
  277. [DisplayName("教室")]
  278. public Guid? ClassroomID { get; set; }
  279. /// <summary>
  280. /// 教室编号
  281. /// </summary>
  282. [DisplayName("教室编号")]
  283. public string ClassroomCode { get; set; }
  284. /// <summary>
  285. /// 教室名称
  286. /// </summary>
  287. [DisplayName("教室名称")]
  288. public string ClassroomName { get; set; }
  289. /// <summary>
  290. /// 教室类型
  291. /// </summary>
  292. [Required]
  293. [DisplayName("教室类型")]
  294. public int? ClassroomTypeID { get; set; }
  295. /// <summary>
  296. /// 教室类型
  297. /// </summary>
  298. [DisplayName("教室类型")]
  299. public string ClassroomTypeName
  300. {
  301. get
  302. {
  303. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ClassroomType.ToString())
  304. .Where(x => x.Value == ClassroomTypeID)
  305. .Select(x => x.Name).FirstOrDefault();
  306. }
  307. }
  308. /// <summary>
  309. /// 课程结构
  310. /// </summary>
  311. [DisplayName("课程结构")]
  312. public int? CourseStructureID { get; set; }
  313. /// <summary>
  314. /// 课程结构
  315. /// </summary>
  316. [DisplayName("课程结构")]
  317. public string CourseStructureName
  318. {
  319. get
  320. {
  321. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseStructure.ToString())
  322. .Where(x => x.Value == CourseStructureID)
  323. .Select(x => x.Name).FirstOrDefault();
  324. }
  325. }
  326. /// <summary>
  327. /// 课程属性
  328. /// </summary>
  329. [DisplayName("课程属性")]
  330. public int? CourseCategoryID { get; set; }
  331. /// <summary>
  332. /// 课程属性
  333. /// </summary>
  334. [DisplayName("课程属性")]
  335. public string CourseCategoryName
  336. {
  337. get
  338. {
  339. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseCategory.ToString())
  340. .Where(x => x.Value == CourseCategoryID)
  341. .Select(x => x.Name).FirstOrDefault();
  342. }
  343. }
  344. /// <summary>
  345. /// 课程类型
  346. /// </summary>
  347. [DisplayName("课程类型")]
  348. public int? CourseTypeID { get; set; }
  349. /// <summary>
  350. /// 课程类型
  351. /// </summary>
  352. [DisplayName("课程类型")]
  353. public string CourseTypeName
  354. {
  355. get
  356. {
  357. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseType.ToString())
  358. .Where(x => x.Value == CourseTypeID)
  359. .Select(x => x.Name).FirstOrDefault();
  360. }
  361. }
  362. /// <summary>
  363. /// 课程性质
  364. /// </summary>
  365. [DisplayName("课程性质")]
  366. public int? CourseQualityID { get; set; }
  367. /// <summary>
  368. /// 课程性质
  369. /// </summary>
  370. [DisplayName("课程性质")]
  371. public string CourseQualityName
  372. {
  373. get
  374. {
  375. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseQuality.ToString())
  376. .Where(x => x.Value == CourseQualityID)
  377. .Select(x => x.Name).FirstOrDefault();
  378. }
  379. }
  380. /// <summary>
  381. /// 考试方式
  382. /// </summary>
  383. [DisplayName("考试方式")]
  384. public int? ExaminationModeID { get; set; }
  385. /// <summary>
  386. /// 考试方式
  387. /// </summary>
  388. [DisplayName("考试方式")]
  389. public string ExaminationModeStr { get; set; }
  390. /// <summary>
  391. /// 考试方式
  392. /// </summary>
  393. [DisplayName("考试方式")]
  394. public string ExaminationModeName
  395. {
  396. get
  397. {
  398. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExaminationMode.ToString())
  399. .Where(x => x.Value == ExaminationModeID)
  400. .Select(x => x.Name).FirstOrDefault();
  401. }
  402. }
  403. /// <summary>
  404. /// 成绩类型
  405. /// </summary>
  406. [Required]
  407. [DisplayName("成绩类型")]
  408. public int? ResultTypeID { get; set; }
  409. /// <summary>
  410. /// 成绩类型
  411. /// </summary>
  412. [DisplayName("成绩类型")]
  413. public string ResultTypeName
  414. {
  415. get
  416. {
  417. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ResultType.ToString())
  418. .Where(x => x.Value == ResultTypeID)
  419. .Select(x => x.Name).FirstOrDefault();
  420. }
  421. }
  422. /// <summary>
  423. /// 授课语言
  424. /// </summary>
  425. [DisplayName("授课语言")]
  426. public int? TeachinglanguageID { get; set; }
  427. /// <summary>
  428. /// 授课语言
  429. /// </summary>
  430. [DisplayName("授课语言")]
  431. public string TeachinglanguageName
  432. {
  433. get
  434. {
  435. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Teachinglanguage.ToString())
  436. .Where(x => x.Value == TeachinglanguageID)
  437. .Select(x => x.Name).FirstOrDefault();
  438. }
  439. }
  440. /// <summary>
  441. /// 处理方式
  442. /// </summary>
  443. [DisplayName("处理方式")]
  444. public int? HandleModeID { get; set; }
  445. /// <summary>
  446. /// 处理方式
  447. /// </summary>
  448. [DisplayName("处理方式")]
  449. public string HandleModeName
  450. {
  451. get
  452. {
  453. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_HandleMode.ToString())
  454. .Where(x => x.Value == HandleModeID)
  455. .Select(x => x.Name).FirstOrDefault();
  456. }
  457. }
  458. /// <summary>
  459. /// 是否需要教材
  460. /// </summary>
  461. [DisplayName("是否需要教材")]
  462. public bool IsNeedMaterial { get; set; }
  463. /// <summary>
  464. /// 授课方式
  465. /// </summary>
  466. [DisplayName("授课方式")]
  467. public int TeachingModeID { get; set; }
  468. /// <summary>
  469. /// 授课方式
  470. /// </summary>
  471. [DisplayName("授课方式")]
  472. public string TeachingModeName
  473. {
  474. get
  475. {
  476. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString())
  477. .Where(x => x.Value == TeachingModeID)
  478. .Select(x => x.Name).FirstOrDefault();
  479. }
  480. }
  481. /// <summary>
  482. /// 开始周次
  483. /// </summary>
  484. [DisplayName("开始周次")]
  485. public int? StartWeeklyNum { get; set; }
  486. /// <summary>
  487. /// 结束周次
  488. /// </summary>
  489. [DisplayName("结束周次")]
  490. public int? EndWeeklyNum { get; set; }
  491. /// <summary>
  492. /// 开始周次
  493. /// </summary>
  494. [DisplayName("开始周次")]
  495. public int? StartWeeklyNumReserved { get; set; }
  496. /// <summary>
  497. /// 结束周次
  498. /// </summary>
  499. [DisplayName("结束周次")]
  500. public int? EndWeeklyNumReserved { get; set; }
  501. /// <summary>
  502. /// 执行周次
  503. /// </summary>
  504. [DisplayName("执行周次")]
  505. public string StartStopWeeklyNum
  506. {
  507. get
  508. {
  509. return (StartWeeklyNumReserved > 0 ? StartWeeklyNumReserved : StartWeeklyNum) + "-" + (EndWeeklyNumReserved > 0 ? EndWeeklyNumReserved : EndWeeklyNum);
  510. }
  511. }
  512. /// <summary>
  513. /// 理论学时
  514. /// </summary>
  515. [DisplayName("理论学时")]
  516. public int? TheoryCourse { get; set; }
  517. /// <summary>
  518. /// 实践学时
  519. /// </summary>
  520. [DisplayName("实践学时")]
  521. public int? Practicehours { get; set; }
  522. /// <summary>
  523. /// 实验学时
  524. /// </summary>
  525. [DisplayName("实验学时")]
  526. public int? Trialhours { get; set; }
  527. /// <summary>
  528. /// 总学时
  529. /// </summary>
  530. [DisplayName("总学时")]
  531. public int? Totalhours
  532. {
  533. get
  534. {
  535. //总学时=理论学时+实践学时
  536. return this.TheoryCourse + this.Practicehours;//+ this.Trialhours;
  537. }
  538. }
  539. /// <summary>
  540. /// 执行学时
  541. /// </summary>
  542. [DisplayName("执行学时")]
  543. public int? CourseProcessTimes { get; set; }
  544. /// <summary>
  545. /// 已排学时
  546. /// </summary>
  547. [DisplayName("已排学时")]
  548. public int? ScheduledTimes { get; set; }
  549. /// <summary>
  550. /// 学分
  551. /// </summary>
  552. [DisplayName("学分")]
  553. [DisplayFormat(DataFormatString = "{0:N1}")]
  554. [RegularExpression(@"^\d+(\.\d{1,1})?$", ErrorMessage = "请输整数或保留1位小数")]
  555. public decimal? Credit { get; set; }
  556. /// <summary>
  557. /// 理论周数
  558. /// </summary>
  559. [DisplayName("理论周数")]
  560. public int? TheoryWeeklyNum { get; set; }
  561. /// <summary>
  562. /// 实践周数
  563. /// </summary>
  564. [DisplayName("实践周数")]
  565. public int? PracticeWeeklyNum { get; set; }
  566. /// <summary>
  567. /// 实验周数
  568. /// </summary>
  569. [DisplayName("实验周数")]
  570. public int? TrialWeeklyNum { get; set; }
  571. /// <summary>
  572. /// 总周数
  573. /// </summary>
  574. [DisplayName("总周数")]
  575. public int? SchoolweeksNum
  576. {
  577. get
  578. {
  579. return this.TheoryWeeklyNum + this.PracticeWeeklyNum;
  580. }
  581. }
  582. /// <summary>
  583. /// 周学时
  584. /// </summary>
  585. [Required]
  586. [DisplayName("周学时")]
  587. public int? WeeklyHours { get; set; }
  588. /// <summary>
  589. /// 每周次数
  590. /// </summary>
  591. [Required]
  592. [DisplayName("每周次数")]
  593. public int? WeeklyNum { get; set; }
  594. /// <summary>
  595. /// 学生集合
  596. /// </summary>
  597. [DisplayName("学生集合")]
  598. public HashSet<CF_Student> CF_Student { get; set; }
  599. ///<summary>
  600. ///上课周次
  601. /// </summary>
  602. public int? WeekNum { get; set; }
  603. ///<summary>
  604. ///星期
  605. /// </summary>
  606. public int? Weekday { get; set; }
  607. /// <summary>
  608. /// 星期
  609. /// </summary>
  610. public string WeekdayName
  611. {
  612. get
  613. {
  614. return IdNameExt.GetDictionaryItem(DictionaryItem.ES_WeekDay.ToString())
  615. .Where(x => x.Value == Weekday)
  616. .Select(x => x.Name).FirstOrDefault();
  617. }
  618. }
  619. ///<summary>
  620. ///上课时间
  621. /// </summary>
  622. public string TimesHoure { get; set; }
  623. /// <summary>
  624. /// 开始节次
  625. /// </summary>
  626. public int StarTimes { get; set; }
  627. ///<summary>
  628. ///上课节次
  629. /// </summary>
  630. public string Times { get; set; }
  631. public Guid? newCoursesTimeID { get; set; }
  632. /// <summary>
  633. /// 教师ID
  634. /// </summary>
  635. public List<Guid> UserID { get; set; }
  636. /// <summary>
  637. /// 授课老师
  638. /// </summary>
  639. [DisplayName("授课老师")]
  640. public string TeacherName
  641. {
  642. get
  643. {
  644. string name = string.Empty;
  645. if (MissionClassTeacherView != null)
  646. name = string.Join(",", MissionClassTeacherView.Select(s => s.Name));
  647. if (string.IsNullOrEmpty(name))
  648. {
  649. return "";
  650. }
  651. else
  652. {
  653. return name;
  654. }
  655. }
  656. }
  657. public IEnumerable<Sys_User> Sys_User { get; set; }
  658. /// <summary>
  659. /// 教师集合
  660. /// </summary>
  661. [DisplayName("教师集合")]
  662. public IEnumerable<CF_Staff> CF_Staff { get; set; }
  663. [DisplayName("授课老师集合")]
  664. public IEnumerable<MissionClassTeacherView> MissionClassTeacherView { get; set; }
  665. /// <summary>
  666. /// 课时类别
  667. /// </summary>
  668. [DisplayName("课时类别")]
  669. [ScaffoldColumn(false)]
  670. [Required]
  671. public Guid? CourseTimeID { get; set; }
  672. /// <summary>
  673. /// 课时类别
  674. /// </summary>
  675. [DisplayName("课时类别")]
  676. [ScaffoldColumn(false)]
  677. public int? TimeID { get; set; }
  678. [ScaffoldColumn(false)]
  679. public string CourseTimeDesc
  680. {
  681. get
  682. {
  683. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TimesSegment.ToString())
  684. .Where(x => x.Value == TimeID)
  685. .Select(x => x.Name).FirstOrDefault();
  686. }
  687. }
  688. /// <summary>
  689. /// 课时类别
  690. /// </summary>
  691. public string CourseTime { get; set; }
  692. /// <summary>
  693. /// 批量更新课时类别任务班ID
  694. /// </summary>
  695. public string EducationMissionClassStr { get; set; }
  696. /// <summary>
  697. /// 处理状态
  698. /// </summary>
  699. public int? ApprovalStatus { get; set; }
  700. /// <summary>
  701. /// 处理状态
  702. /// </summary>
  703. public string ApprovalStatusName
  704. {
  705. get
  706. {
  707. return IdNameExt.GetDictionaryItem(DictionaryItem.EM_EducationMissionClassStatus.ToString())
  708. .Where(x => x.Value == ApprovalStatus)
  709. .Select(x => x.Name).FirstOrDefault();
  710. }
  711. }
  712. /// <summary>
  713. /// 创建时间
  714. /// </summary>
  715. [DisplayName("创建时间")]
  716. public DateTime? CreateTime { get; set; }
  717. /// <summary>
  718. /// 创建人
  719. /// </summary>
  720. [DisplayName("创建人")]
  721. public Guid? CreateUserID { get; set; }
  722. /// <summary>
  723. /// 备注
  724. /// </summary>
  725. [DisplayName("备注")]
  726. public string Remark { get; set; }
  727. public bool IsExcelVaildateOK { get; set; }
  728. public string ErrorMessage { get; set; }
  729. public bool IsCollegeScheduleSubmitted { get; set; }
  730. }
  731. public class ClassView
  732. {
  733. [DisplayName("学籍班ID")]
  734. public Guid? ClassmajorID { get; set; }
  735. [DisplayName("学籍班")]
  736. public string ClassmajorName { get; set; }
  737. [DisplayName("学年学期")]
  738. public Guid? SchoolyearID { get; set; }
  739. /// </summary>
  740. [DisplayName("课程ID")]
  741. public Guid? CoursematerialID { get; set; }
  742. /// <summary>
  743. /// 授课方式
  744. /// </summary>
  745. [DisplayName("授课方式")]
  746. public int TeachingModeID { get; set; }
  747. }
  748. public class MissionClassTeacherView
  749. {
  750. [DisplayName("用户ID")]
  751. public Guid? UserID { get; set; }
  752. [DisplayName("用户名称")]
  753. public string Name { get; set; }
  754. [DisplayName("任务班ID")]
  755. public Guid? EducationMissionClassID { get; set; }
  756. [DisplayName("排课课表ID")]
  757. public Guid? EducationSchedulingID { get; set; }
  758. [DisplayName("任课方式")]
  759. public int? TeachingMethod { get; set; }
  760. ///<summary>
  761. ///上课周次
  762. /// </summary>
  763. public int? WeekNum { get; set; }
  764. ///<summary>
  765. ///星期
  766. /// </summary>
  767. public int? Weekday { get; set; }
  768. /// <summary>
  769. /// 星期
  770. /// </summary>
  771. public string WeekdayName
  772. {
  773. get
  774. {
  775. return IdNameExt.GetDictionaryItem(DictionaryItem.ES_WeekDay.ToString())
  776. .Where(x => x.Value == Weekday)
  777. .Select(x => x.Name).FirstOrDefault();
  778. }
  779. }
  780. public Guid? CoursesTimeID { get; set; }
  781. ///<summary>
  782. ///上课时间
  783. /// </summary>
  784. public string TimesHoure { get; set; }
  785. /// <summary>
  786. /// 开始节次
  787. /// </summary>
  788. public int StarTimes { get; set; }
  789. ///<summary>
  790. ///上课节次
  791. /// </summary>
  792. public string Times { get; set; }
  793. }
  794. }