SchedulingEdit.cshtml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. @using EMIS.Web.Controls;
  2. @using Bowin.Web.Controls.Mvc;
  3. @{
  4. ViewBag.Title = "Edit";
  5. var schoolyearID = ViewBag.SchoolyearID;
  6. var classroomID = ViewBag.ClassroomID;
  7. ComboGridOptions optCourseTime = new ComboGridOptions
  8. {
  9. TextField = "time_starTime_endTime",
  10. ValueField = "CoursesTimeID",
  11. ID = "cbgCoursesTime",
  12. Name = "cbgCoursesTime",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new BoundFieldColumn { FieldName="time_starTime_endTime", HeaderText="上课时间", Align=AlignStyle.Center },
  18. },
  19. OnLoadSuccessFun = "cbgCoursesTime_LoadSuccess",
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/ClassroomExcessiveUse/GetCourseTimeOnlyUsable"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false
  25. }
  26. };
  27. }
  28. @section scripts{
  29. <script src="~/Scripts/Business/Common/WeekNum.js" type="text/javascript"></script>
  30. <script src="~/Scripts/Business/SchedulingManage/ClassroomExcessiveUse/ClassroomExcessiveUseSchedulingEdit.js" type="text/javascript"></script>
  31. <script type="text/javascript">
  32. var nonSelect = "@DropdownList.SELECT_ALL";
  33. var schoolyear = "@schoolyearID";
  34. var classroom = "@classroomID";
  35. </script>
  36. }
  37. <div class="p_title">
  38. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  39. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  40. @Html.ContextMenuBar("Scheduling")
  41. </div>
  42. </div>
  43. <div class="search_list">
  44. <table cellpadding="0" cellspacing="0" id="buildingstable">
  45. <tr>
  46. <td><label>周次:</label></td>
  47. <td colspan="3">@Html.CheckList(new ListControlOptions
  48. {
  49. Name = "WeekNum",
  50. TextField = "Name",
  51. ValueField = "Value",
  52. ColumnCount = 4,
  53. ItemList = ViewBag.WeekList,
  54. OnLoadSuccess = "chkWeekNum_LoadSuccess",
  55. OnClick = "BindCourseTime"
  56. })</td>
  57. </tr>
  58. <tr>
  59. <td><label>星期:</label></td>
  60. <td>@Html.WeekdayDropDownList(new DropdownListOptions { ID = "ddlWeekday", BindType = DropdownListBindType.PleaseSelect, OnLoadSuccess = "ddlWeekday_LoadSuccess", OnSelect = "BindCourseTime" })</td>
  61. <td><label>节次:</label></td>
  62. <td>@Html.ComboGrid(optCourseTime)</td>
  63. </tr>
  64. </table>
  65. </div>