StopScheduling.cshtml 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. }
  6. @section scripts{
  7. <script src="~/Scripts/Business/SchedulingManage/Scheduling/StopScheduling.js"
  8. type="text/javascript"></script>
  9. <script type="text/javascript">
  10. var nonSelect = "@DropdownList.SELECT_ALL";
  11. </script>
  12. }
  13. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  14. @Html.Position()
  15. <form id="formQuery" method="post">
  16. <div class="search_keyword">
  17. <div class="search_input">
  18. <ul>
  19. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  20. <li class="sv">
  21. @Html.DropdownList(new DropdownListOptions
  22. {
  23. BindType = DropdownListBindType.SelectAll,
  24. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  25. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"),
  26. OnSelect = "reload()",
  27. Name = "ddlSchoolyear"
  28. },
  29. new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingList" } })
  30. </li>
  31. <li class="sn" style="padding-left: 5px;">教师:</li>
  32. <li class="sv">
  33. @Html.ComboGrid(new ComboGridOptions
  34. {
  35. TextField = "Name",
  36. ValueField = "UserID",
  37. ID = "cgbTeacher",
  38. Name = "cgbTeacher",
  39. OnSelect = "reload",
  40. SelectedValue = EMIS.Utility.FormValidate.CustomPrincipal.Current.UserID,
  41. GridOptions = new DataGridOptions
  42. {
  43. Columns = new List<DataGridColumn>()
  44. {
  45. new BoundFieldColumn { FieldName="Name", HeaderText="教师姓名", Width=0.1, Align=AlignStyle.Center }
  46. },
  47. OnLoadSuccessFun = "reload",
  48. IsCheckOnSelect = true,
  49. DataSourceUrl = Url.Content("~/Staff/List"),
  50. IsPagination = true,
  51. IsShowRowNumbers = true,
  52. IsSingleSelect = false,
  53. IsAutoLoad = true
  54. }
  55. }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingList" } })
  56. </li>
  57. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  58. <li class="sv">
  59. @Html.ComboGrid(new ComboGridOptions
  60. {
  61. TextField = "CourseName",
  62. ValueField = "CoursematerialID",
  63. Name = "cgbCoursematerial",
  64. OnSelect = "reload",
  65. GridOptions = new DataGridOptions
  66. {
  67. Columns = new List<DataGridColumn>()
  68. {
  69. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.12 },
  70. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 }
  71. },
  72. IsAutoLoad = false,
  73. IsCheckOnSelect = true,
  74. IsPagination = true,
  75. IsShowRowNumbers = true,
  76. IsSingleSelect = false,
  77. }
  78. }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingList" } })
  79. </li>
  80. <li class="sn" style="padding-left: 5px;">任务班名称:</li>
  81. <li class="sv">
  82. @Html.ComboGrid(new ComboGridOptions
  83. {
  84. TextField = "EducationMissionClassName",
  85. ValueField = "EducationMissionClassID",
  86. Name = "cgbEducationMissionClass",
  87. OnSelect = "reload",
  88. GridOptions = new DataGridOptions
  89. {
  90. Columns = new List<DataGridColumn>()
  91. {
  92. new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="任务班名称", Align=AlignStyle.Center }
  93. },
  94. IsAutoLoad = false,
  95. IsCheckOnSelect = true,
  96. IsPagination = true,
  97. IsShowRowNumbers = true,
  98. IsSingleSelect = false,
  99. }
  100. }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingList" } })
  101. </li>
  102. </ul>
  103. <ul>
  104. <li class="sn" style="padding-left: 5px;">周次:</li>
  105. <li class="sv">
  106. @Html.DropdownList(new DropdownListOptions
  107. {
  108. BindType = DropdownListBindType.SelectAll,
  109. OnSelect = "reload()",
  110. Name = "ddlWeekNum"
  111. },
  112. new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingList" } })
  113. </li>
  114. <li class="sn" style="padding-left: 5px;">星期:</li>
  115. <li class="sv">
  116. @Html.DropdownList(new DropdownListOptions
  117. {
  118. BindType = DropdownListBindType.SelectAll,
  119. OnSelect = "reload()",
  120. Name = "ddlWeekDay"
  121. },
  122. new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingList" } })
  123. </li>
  124. <li class="sn" style="padding-left: 5px;">节次:</li>
  125. <li class="sv">
  126. @Html.DropdownList(new DropdownListOptions
  127. {
  128. BindType = DropdownListBindType.SelectAll,
  129. OnSelect = "reload()",
  130. Name = "ddlCourseTimes"
  131. },
  132. new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingList" } })
  133. </li>
  134. <li class="sn" style="padding-left: 5px;">教室:</li>
  135. <li class="sv">
  136. @Html.ComboGrid(new ComboGridOptions
  137. {
  138. TextField = "ClassroomName",
  139. ValueField = "ClassroomID",
  140. Name = "cgbClassroom",
  141. OnSelect = "reload",
  142. GridOptions = new DataGridOptions
  143. {
  144. Columns = new List<DataGridColumn>()
  145. {
  146. new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室名称", Align=AlignStyle.Center }
  147. },
  148. IsAutoLoad = false,
  149. IsCheckOnSelect = true,
  150. IsPagination = true,
  151. IsShowRowNumbers = true,
  152. IsSingleSelect = false,
  153. }
  154. }, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingList" } })
  155. </li>
  156. </ul>
  157. </div>
  158. </div>
  159. </form>
  160. <div class="p_title">
  161. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  162. 课程列表</div>
  163. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  164. </div>
  165. <div class="search_list">
  166. @Html.DataGrid(new DataGridOptions
  167. {
  168. Columns = new List<DataGridColumn>()
  169. {
  170. new CheckBoxFieldColumn{ HeaderText="", FieldName="EducationSchedulingWeekNumID" },
  171. new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="任务班名称", Align=AlignStyle.Center, Width=230 },
  172. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程", Align=AlignStyle.Center, Width=80 },
  173. new BoundFieldColumn { FieldName="TeacherNames", HeaderText="教师", Align=AlignStyle.Center, Width=80 },
  174. new BoundFieldColumn { FieldName="WeekNum", HeaderText="周次", Align=AlignStyle.Center, Width=80 },
  175. new BoundFieldColumn { FieldName="WeekdayDesc", HeaderText="星期", Align=AlignStyle.Center, Width=80 },
  176. new BoundFieldColumn { FieldName="CoursesTimeName", HeaderText="节次", Align=AlignStyle.Center, Width=80 },
  177. new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室", Align=AlignStyle.Center, Width=80 }
  178. },
  179. IsAutoLoad = false,
  180. IsCheckOnSelect = true,
  181. DataSourceUrl = Url.Content("~/EducationSchedule/Stop"),
  182. ID = "dgEducationSchedulingList",
  183. IsPagination = false,
  184. IsShowRowNumbers = true,
  185. IsSingleSelect = false
  186. })
  187. </div>
  188. </div>