RealtimeGT.cshtml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions cgopCollege = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "CollegeID",
  9. Name = "ComboGridCollege",
  10. ID = "ComboGridCollege",
  11. OnSelect = "queryCollege",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  17. },
  18. IsCheckOnSelect = true,
  19. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false,
  23. }
  24. };
  25. ComboGridOptions cgopOpenCollege = new ComboGridOptions
  26. {
  27. TextField = "Name",
  28. ValueField = "CollegeID",
  29. Name = "ComboGridOpenCollege",
  30. ID = "ComboGridOpenCollege",
  31. OnSelect = "queryCollege",
  32. GridOptions = new DataGridOptions
  33. {
  34. Columns = new List<DataGridColumn>()
  35. {
  36. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  37. },
  38. IsCheckOnSelect = true,
  39. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  40. IsPagination = true,
  41. IsShowRowNumbers = true,
  42. IsSingleSelect = false,
  43. }
  44. };
  45. ComboGridOptions week = new ComboGridOptions
  46. {
  47. TextField = "x",
  48. ValueField = "x",
  49. OnSelect = "reload",
  50. Name = "ddlWeekNum",
  51. ID = "ddlWeekNum",
  52. GridOptions = new DataGridOptions
  53. {
  54. Columns = new List<DataGridColumn>()
  55. {
  56. new BoundFieldColumn { FieldName="x", HeaderText="上课时间", Align=AlignStyle.Center }
  57. },
  58. IsCheckOnSelect = true,
  59. DataSourceUrl = Url.Content("~/SchoolYear/GetWeekListDropdown"),
  60. IsPagination = true,
  61. IsShowRowNumbers = true,
  62. IsSingleSelect = false
  63. }
  64. };
  65. ComboGridOptions time = new ComboGridOptions
  66. {
  67. TextField = "Times",
  68. ValueField = "CoursesTimeID",
  69. OnSelect = "reload",
  70. Name = "Times",
  71. ID = "Times",
  72. GridOptions = new DataGridOptions
  73. {
  74. Columns = new List<DataGridColumn>()
  75. {
  76. new BoundFieldColumn { FieldName="Times", HeaderText="上课时间", Align=AlignStyle.Center }
  77. },
  78. IsCheckOnSelect = true,
  79. DataSourceUrl = Url.Content("~/CoursesTime/List"),
  80. IsPagination = true,
  81. IsShowRowNumbers = true,
  82. IsSingleSelect = false
  83. }
  84. };
  85. ComboGridOptions cgop = new ComboGridOptions
  86. {
  87. TextField = "Name",
  88. ValueField = "ClassroomID",
  89. Name = "ClassroomID",
  90. ID = "ClassroomID",
  91. OnSelect = "reload",
  92. GridOptions = new DataGridOptions
  93. {
  94. Columns = new List<DataGridColumn>()
  95. {
  96. new LinkButtonColumn { FieldName="Code", HeaderText="教室代码", Width=0.1, Align=AlignStyle.Center },
  97. new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Width=0.2, Align=AlignStyle.Center }
  98. },
  99. IsCheckOnSelect = true,
  100. DataSourceUrl = Url.Content("~/Classroom/List"),
  101. IsPagination = true,
  102. IsShowRowNumbers = true,
  103. IsSingleSelect = false
  104. }
  105. };
  106. }
  107. @section scripts{
  108. <script src="~/Scripts/Business/SchedulingManage/Scheduling/Realtime.js"></script>
  109. <script type="text/javascript">
  110. var submitted = "@((int)EMIS.ViewModel.EM_EducationMissionClassStatus.Submitted)";
  111. var notSubmitted = "@((int)EMIS.ViewModel.EM_EducationMissionClassStatus.NotSubmitted)";
  112. var scheduled = "@((int)EMIS.ViewModel.EM_EducationMissionClassStatus.Scheduled)";
  113. var nonSelect = "@DropdownList.SELECT_ALL";
  114. </script>
  115. }
  116. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  117. @Html.Position()
  118. <div class="p_SearchTitle">
  119. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  120. 查询条件
  121. </div>
  122. </div>
  123. <form id="formQuery" method="post" action="@Url.Content("~/EducationSchedulingReport/Excel")">
  124. <div class="search_keyword">
  125. <div class="search_input">
  126. <ul>
  127. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  128. <li class="sv">
  129. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, SelectedValue = @ViewBag.SchoolYearID, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), OnSelect = "QuerySchoolyearDropdownList", Name = "SchoolyearDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassSchedule" } })
  130. </li>
  131. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("CourseCollege"):</li>
  132. <li class="sv">
  133. @Html.ComboGrid(cgopOpenCollege, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassSchedule" } })
  134. </li>
  135. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  136. <li class="sv">
  137. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassSchedule" } })
  138. </li>
  139. <li class="sn" style="padding-left: 5px;">上课周次:</li>
  140. <li class="sv">
  141. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/GetWeekListDropdown"), ID = "ddlWeekNum", Name = "ddlWeekNum", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassSchedule" } })
  142. </li>
  143. </ul>
  144. <ul>
  145. <li class="sn" style="padding-left: 5px;">星期:</li>
  146. <li class="sv">
  147. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.ES_WeekDay, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "WeekDay", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassSchedule" } })
  148. </li>
  149. <li class="sn" style="padding-left: 5px;">上课节次:</li>
  150. <li class="sv">
  151. @Html.ComboGrid(time, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassSchedule" } })
  152. </li>
  153. <li class="sn" style="padding-left: 5px;color: red;">教室名称:</li>
  154. <li class="sv">
  155. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgEducationMissionClassSchedule" } })
  156. </li>
  157. <li class="sn" style="padding-left: 20px;"><a href="javascript:void(0)" class="easyui-linkbutton"
  158. data-options="iconCls:'icon-search'" onclick="reload();">查询</a></li>
  159. </ul>
  160. </div>
  161. </div>
  162. </form>
  163. <div class="p_title">
  164. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  165. 实时课表信息
  166. </div>
  167. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  168. </div>
  169. <div class="search_list">
  170. @Html.DataGrid(new DataGridOptions
  171. {
  172. Columns = new List<DataGridColumn>()
  173. {
  174. new CheckBoxFieldColumn{ HeaderText="", FieldName="EducationMissionClassID" },
  175. new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室名称", Align=AlignStyle.Center, Width=0.08 },
  176. new BoundFieldColumn { FieldName="WeekNum", HeaderText="上课周次", Align=AlignStyle.Center, Width=0.04 },
  177. new BoundFieldColumn { FieldName="WeekdayName", HeaderText="星期", Align=AlignStyle.Center, Width=0.04, OrderFieldName="Weekday" },
  178. new BoundFieldColumn { FieldName="Times", HeaderText="上课节次", Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
  179. new BoundFieldColumn { FieldName="TimesHoure", HeaderText="上课时间", Align=AlignStyle.Center, Width=0.06 },
  180. new BoundFieldColumn { FieldName="TeacherName", HeaderText="授课老师", Align=AlignStyle.Center, Width=0.06, OrderFieldName="" },
  181. new BoundFieldColumn { FieldName="Name", HeaderText="任务班名称", Align=AlignStyle.Center, Width=0.15, OverflowLength=20 },
  182. new BoundFieldColumn { FieldName="OpenCollegeName", HeaderText=@EMIS.Utility.RSL.Get("CourseCollege"), Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
  183. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
  184. new LinkButtonColumn { FieldName="ClassNum", HeaderText="人数", Align=AlignStyle.Center, Handle="SchedulingClassStudentEdit", Width=0.03 },
  185. },
  186. IsCheckOnSelect = true,
  187. DataSourceUrl = Url.Content("~/EducationSchedulingReport/RealtimeGT"),
  188. ID = "dgEducationMissionClassSchedule",
  189. IsPagination = true,
  190. IsShowRowNumbers = true,
  191. IsSingleSelect = false
  192. })
  193. </div>
  194. </div>