EducationSchedulingClassExtentView.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using Bowin.Common.Utility;
  6. using EMIS.ViewModel.CacheManage;
  7. namespace EMIS.ViewModel.EducationManage
  8. {
  9. public class EducationSchedulingClassScheduleView : EducationSchedulingClassView
  10. {
  11. public Guid? DepartmentID { get; set; }
  12. /// <summary>
  13. /// 院系所
  14. /// </summary>
  15. public Guid? CollegeID { get; set; }
  16. /// <summary>
  17. /// 开课院系所
  18. /// </summary>
  19. public Guid? CourseCollegeID { get; set; }
  20. /// <summary>
  21. /// 学年学期
  22. /// </summary>
  23. public Guid? SchoolYearID { get; set; }
  24. /// <summary>
  25. /// 课程ID
  26. /// </summary>
  27. public Guid? CoursematerialID { get; set; }
  28. /// <summary>
  29. /// 课程名称
  30. /// </summary>
  31. public string CoursematerialName { get; set; }
  32. /// <summary>
  33. /// 授课方式
  34. /// </summary>
  35. public int? TeachingModeID { get; set; }
  36. public string TeachingModeName
  37. {
  38. get
  39. {
  40. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString())
  41. .Where(x => x.Value == TeachingModeID)
  42. .Select(x => x.Name).FirstOrDefault();
  43. }
  44. }
  45. /// <summary>
  46. /// 课程类型
  47. /// </summary>
  48. public int? CourseTypeID { get; set; }
  49. //每周次数
  50. public int? WeekTimes { get; set; }
  51. /// <summary>
  52. /// 周学时
  53. /// </summary>
  54. public int? WeeklyHours { get; set; }
  55. /// <summary>
  56. /// 任务班名称
  57. /// </summary>
  58. public string EducationMissionClassName { get; set; }
  59. /// <summary>
  60. /// 排课序号
  61. /// </summary>
  62. public int? EducationMissionClassOrderNo { get; set; }
  63. /// <summary>
  64. /// 选修类型
  65. /// </summary>
  66. public int? OptionalCourseTypeID { get; set; }
  67. /// <summary>
  68. /// 教室ID
  69. /// </summary>
  70. public Guid? ClassroomID { get; set; }
  71. public string ClassroomName { get; set; }
  72. /// <summary>
  73. /// 教室类型ID
  74. /// </summary>
  75. public int? ClassroomTypeID { get; set; }
  76. /// <summary>
  77. /// 上课周列表
  78. /// </summary>
  79. public List<int?> WeeklyNumList { get; set; }
  80. /// <summary>
  81. /// 上课周字符串
  82. /// </summary>
  83. public string WeeklyNumString
  84. {
  85. get
  86. {
  87. return WeeklyNumList.GetWeekNumString();
  88. }
  89. }
  90. /// <summary>
  91. /// 教师列表
  92. /// </summary>
  93. public List<BaseTeacherTeachingView> TeacherTeachingViewList { get; set; }
  94. public List<Guid> ClassMajorIDList { get; set; }
  95. public List<CourseProcessView> CourseProcessViewList { get; set; }
  96. public string TeacherNames
  97. {
  98. get
  99. {
  100. return string.Join(",", TeacherTeachingViewList.Select(x => x.Name).Distinct().ToList());
  101. }
  102. }
  103. /// <summary>
  104. /// 执行学时
  105. /// </summary>
  106. public int? ExecutablePlanCourseTime { get; set; }
  107. /// <summary>
  108. /// 剩余学时
  109. /// </summary>
  110. public int? RemainCourseTime { get; set; }
  111. /// <summary>
  112. /// 开始周次
  113. /// </summary>
  114. public int? StartWeeklyNum { get; set; }
  115. /// <summary>
  116. /// 结束周次
  117. /// </summary>
  118. public int? EndWeeklyNum { get; set; }
  119. /// <summary>
  120. /// 执行周次
  121. /// </summary>
  122. public string StartStopWeeklyNum { get { return (string.Format("{0}-{1}", StartWeeklyNum, EndWeeklyNum)); } }
  123. /// <summary>
  124. /// 根据院系优先级设置,判断该教学任务是否在可编辑时间段内
  125. /// </summary>
  126. public bool IsCanEdit { get; set; }
  127. /// <summary>
  128. /// 获取院系课表提交状态
  129. /// </summary>
  130. public int? CollegeApproveStatusID { get; set; }
  131. }
  132. }