AdjustmentBatchEdit.cshtml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. }
  6. @section scripts{
  7. <script type="text/javascript">
  8. var windowID = '@(Request["WindowID"])';
  9. var nonSelect = "@DropdownList.PLEASE_SELECT";
  10. // var educationSchedulingIDs = '@ViewBag.EducationSchedulingWeekNumIDs';
  11. </script>
  12. <script src="@Url.Content("~/Scripts/Business/SchedulingManage/Scheduling/AdjustmentBatchEdit.js")" type="text/javascript"></script>
  13. }
  14. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  15. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  16. {
  17. <div class="p_title">
  18. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  19. 课程调整
  20. </div>
  21. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("BatchEdit")</div>
  22. </div>
  23. <div class="search_list popupWindowContent" style="overflow: hidden;">
  24. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  25. <tr>
  26. <td width="18%">
  27. <label>周次:</label>
  28. </td>
  29. <td width="31%">
  30. @Html.DropdownList(new DropdownListOptions
  31. {
  32. BindType = DropdownListBindType.PleaseSelect,
  33. ItemList = ViewBag.WeekNumDropdownItemList,
  34. OnSelect = "refreshWeekList",
  35. ID = "ddlWeekNum",
  36. Name = "ddlWeekNum"
  37. })
  38. </td>
  39. </tr>
  40. <tr>
  41. <td>
  42. <label>星期:</label>
  43. </td>
  44. <td>
  45. @Html.WeekdayDropDownList(new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect,
  46. OnSelect = "refreshCourseTimeList",
  47. ID = "ddlWeekday", Name = "ddlWeekday" })
  48. </td>
  49. </tr>
  50. <tr>
  51. <td>
  52. <label>教师:</label>
  53. </td>
  54. <td>
  55. @Html.ComboGrid(new ComboGridOptions
  56. {
  57. TextField = "Name",
  58. ValueField = "UserID",
  59. ID = "cbgUser",
  60. Name = "cbgUser",
  61. GridOptions = new DataGridOptions
  62. {
  63. Columns = new List<DataGridColumn>()
  64. {
  65. new BoundFieldColumn { FieldName="Name", HeaderText="教师姓名", Width=0.1, Align=AlignStyle.Center }
  66. },
  67. IsCheckOnSelect = true,
  68. DataSourceUrl = Url.Content("~/Staff/ListWithNoDataRange"),
  69. IsPagination = true,
  70. IsShowRowNumbers = true,
  71. IsSingleSelect = false,
  72. IsAutoLoad = true
  73. }
  74. })
  75. </td>
  76. </tr>
  77. <tr>
  78. <td>
  79. <label>节次:</label>
  80. </td>
  81. <td>
  82. @Html.DropdownList(
  83. new DropdownListOptions
  84. {
  85. BindType = DropdownListBindType.PleaseSelect,
  86. ItemSourceUrl = Url.Content("~/CoursesTime/DropDown"),
  87. ID = "ddlCoursesTime",
  88. Name = "ddlCoursesTime"
  89. }
  90. )
  91. </td>
  92. </tr>
  93. <tr>
  94. <td>
  95. <label>教室类型:</label>
  96. </td>
  97. <td>
  98. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_ClassroomType,
  99. new DropdownListOptions
  100. {
  101. BindType = DropdownListBindType.PleaseSelect,
  102. SelectedValue = Request["classroomTypeID"],
  103. OnSelect = "getClassroom",
  104. OnLoadSuccess = "getClassroom",
  105. ID = "ddlClassroomType",
  106. Name = "ddlClassroomType"
  107. }
  108. )
  109. </td>
  110. </tr>
  111. <tr>
  112. <td>
  113. <label>教室:</label>
  114. </td>
  115. <td>
  116. @Html.ComboGrid(new ComboGridOptions
  117. {
  118. TextField = "Name",
  119. ValueField = "ClassroomID",
  120. ID = "cbgClassroom",
  121. Name = "cbgClassroom",
  122. GridOptions = new DataGridOptions
  123. {
  124. Columns = new List<DataGridColumn>()
  125. {
  126. new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Align=AlignStyle.Center }
  127. },
  128. IsAutoLoad = false,
  129. IsCheckOnSelect = true,
  130. DataSourceUrl = Url.Content("~/Classroom/List"),
  131. IsPagination = true,
  132. IsShowRowNumbers = true,
  133. IsSingleSelect = false,
  134. }
  135. })
  136. </td>
  137. </tr>
  138. <tr>
  139. <td colspan="2">
  140. <font color="#ff0000">注:请设置需要批量调整的项,其他非调整项请勿操作。</font>
  141. </td>
  142. </tr>
  143. </table>
  144. </div>
  145. }
  146. </div>