AdjustmentEdit.cshtml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. @model EMIS.ViewModel.EducationSchedule.ScheduleAdjustmentEditView
  2. @using Bowin.Web.Controls.Mvc;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. }
  7. @section scripts{
  8. <script type="text/javascript">
  9. var windowID = '@(Request["WindowID"])';
  10. var educationMissionClassID = '@Model.EducationMissionClassID';
  11. var schoolyearID = '@Model.SchoolyearID.ToString()';
  12. var nonSelect = "@DropdownList.PLEASE_SELECT";
  13. var isEdit = @(Model.EducationSchedulingAdjustmentID != Guid.Empty ? "true" : "false");
  14. </script>
  15. <script src="@Url.Content("~/Scripts/Business/SchedulingManage/Scheduling/AdjustmentEdit.js")" type="text/javascript"></script>
  16. }
  17. <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/Business/Scheduling/Scheduling.css")" />
  18. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  19. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  20. {
  21. @Html.HiddenFor(x => x.EducationMissionClassID)
  22. @Html.HiddenFor(x => x.ClassroomTypeID)
  23. @Html.HiddenFor(x => x.WeekNum)
  24. @Html.HiddenFor(x => x.Weekday)
  25. @Html.HiddenFor(x => x.CoursesTimeID)
  26. @Html.HiddenFor(x => x.ClassroomID)
  27. @Html.HiddenFor(x => x.UserID)
  28. <div class="p_title">
  29. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  30. 课程调整
  31. </div>
  32. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  33. </div>
  34. <div class="search_list popupWindowContent" style="overflow: hidden;">
  35. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  36. <tr>
  37. <td width="18%">
  38. <label>任务班名称:</label>
  39. </td>
  40. <td colspan="4" width="82%">
  41. @Html.DisplayFor(x => x.EducationMissionClassName)
  42. </td>
  43. </tr>
  44. </table>
  45. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  46. <tr>
  47. <td width="18%">
  48. <label>需要修改的周次:</label>
  49. </td>
  50. <td width="31%">
  51. @Html.DisplayFor(x => x.WeekNum)
  52. </td>
  53. <td width="2%" rowspan="6">&nbsp;</td>
  54. <td width="18%">
  55. <label>调整后的周次:</label>
  56. </td>
  57. <td width="31%">
  58. @Html.DropdownListFor(x => x.ToWeekNum, new DropdownListOptions
  59. {
  60. BindType = DropdownListBindType.PleaseSelect,
  61. ItemList = Model.EducationMissionClassWeekNumList.Select(
  62. x => new DropdownListItem { Text = x.ToString(), Value = x }
  63. ).ToList(),
  64. SelectedValue = Model.ToWeekNum,
  65. OnSelect = "clearSelections"
  66. })
  67. </td>
  68. </tr>
  69. <tr>
  70. <td>
  71. <label>&nbsp;</label>
  72. </td>
  73. <td>
  74. @Html.DisplayFor(x => x.WeekdayDesc)
  75. </td>
  76. <td>
  77. <label>调整到:</label>
  78. </td>
  79. <td>
  80. @Html.DropdownListFor(x => x.ToWeekday, new DropdownListOptions
  81. {
  82. BindType = DropdownListBindType.PleaseSelect,
  83. TextField = "Text",
  84. ValueField = "Value",
  85. ItemSourceUrl = Url.Content("~/SchoolYear/GetFutureWeekListDropdown?WeekNum=" + (Model.ToWeekNum ?? Model.WeekNum)),
  86. OnSelect = "getNotUseCoursesTime"
  87. })
  88. </td>
  89. </tr>
  90. <tr>
  91. <td>
  92. <label>&nbsp;</label>
  93. </td>
  94. <td>
  95. @Html.DisplayFor(x => x.UserName)
  96. </td>
  97. <td>
  98. <label>调整到:</label>
  99. </td>
  100. <td>
  101. @Html.ComboGridFor(x => x.ToUserID, new ComboGridOptions
  102. {
  103. TextField = "Name",
  104. ValueField = "UserID",
  105. OnSelect = "getNotUseCoursesTime",
  106. GridOptions = new DataGridOptions
  107. {
  108. Columns = new List<DataGridColumn>()
  109. {
  110. new BoundFieldColumn { FieldName="Name", HeaderText="教师姓名", Width=0.1, Align=AlignStyle.Center }
  111. },
  112. IsCheckOnSelect = true,
  113. DataSourceUrl = Url.Content("~/Staff/ListWithNoDataRange"),
  114. IsPagination = true,
  115. IsShowRowNumbers = true,
  116. IsSingleSelect = false,
  117. IsAutoLoad = true
  118. }
  119. })
  120. </td>
  121. </tr>
  122. <tr>
  123. <td>
  124. <label>&nbsp;</label>
  125. </td>
  126. <td>
  127. @Html.DisplayFor(x => x.CoursesTimeName)
  128. </td>
  129. <td>
  130. <label>调整到:</label>
  131. </td>
  132. <td>
  133. @Html.DropdownListFor(x => x.ToCoursesTimeID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, OnSelect = "getNotUseClassroom", OnLoadSuccess = "commonLoadComplete" })
  134. </td>
  135. </tr>
  136. <tr>
  137. <td>
  138. <label>&nbsp;</label>
  139. </td>
  140. <td>
  141. @Html.DisplayFor(x => x.ClassroomTypeName)
  142. </td>
  143. <td>
  144. <label>调整到:</label>
  145. </td>
  146. <td>
  147. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ClassroomType, x => x.ToClassroomTypeID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, OnSelect = "getNotUseClassroom" })
  148. </td>
  149. </tr>
  150. <tr>
  151. <td>
  152. <label>&nbsp;</label>
  153. </td>
  154. <td>
  155. @Html.DisplayFor(x => x.ClassroomName)
  156. </td>
  157. <td>
  158. <label>调整到:</label>
  159. </td>
  160. <td>
  161. @Html.ComboGridFor(x => x.ToClassroomID, new ComboGridOptions
  162. {
  163. TextField = "Name",
  164. ValueField = "ClassroomID",
  165. GridOptions = new DataGridOptions
  166. {
  167. Columns = new List<DataGridColumn>()
  168. {
  169. new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Align=AlignStyle.Center },
  170. new BoundFieldColumn { FieldName="RoomUseName", HeaderText="房间用途", Align=AlignStyle.Center }
  171. },
  172. IsAutoLoad = false,
  173. OnLoadSuccessFun = "commonLoadComplete",
  174. IsCheckOnSelect = true,
  175. DataSourceUrl = Url.Content("~/EducationSchedule/GetNotUseClassroomList"),
  176. IsPagination = true,
  177. IsShowRowNumbers = true,
  178. IsSingleSelect = false,
  179. }
  180. })
  181. </td>
  182. </tr>
  183. </table>
  184. </div>
  185. }
  186. </div>