DepartmentEdit.cshtml 6.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 nonSelect = "@DropdownList.SELECT_ALL";
  9. var windowID = '@(Request["WindowID"])';
  10. </script>
  11. <script src="@Url.Content("~/Scripts/Business/Common/WeekNum.js")" type="text/javascript"></script>
  12. <script src="@Url.Content("~/Scripts/Business/SchedulingManage/Scheduling/DepartmentScheduling.js")" type="text/javascript"></script>
  13. <script src="@Url.Content("~/Scripts/Business/SchedulingManage/Scheduling/SchedulingCommon.js")" type="text/javascript"></script>
  14. }
  15. <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/Business/Scheduling/Scheduling.css")" />
  16. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  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("SchedulingForm")</div>
  22. </div>
  23. <div class="search_list popupWindowContent" style="overflow: hidden;">
  24. <div class="search_keyword">
  25. <div class="search_input">
  26. <ul>
  27. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  28. <li class="sv">
  29. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), SelectedValue = string.IsNullOrEmpty(Request["schoolyearID"]) ? BaseExtensions.GetCurrentSchoolYearID() : new Guid(Request["schoolyearID"]), ID = "SchoolYearDropdown", Name = "SchoolYearDropdown" })
  30. </li>
  31. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  32. <li class="sv">
  33. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanidsWithoutRange"), SelectedValue = Request["collegeID"], ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "QueryCollegeDropdownList", OnLoadSuccess = "QueryCollegeDropdownList" })
  34. </li>
  35. <li class="sn" style="padding-left: 5px;">教研室:</li>
  36. <li class="sv">
  37. @Html.DropdownList(new DropdownListOptions { ID = "DepartmentDropdown", Name = "DepartmentDropdown", ItemSourceUrl = Url.Content("~/Department/DepartmentDropdownListBanid"), SelectedValue = Request["departmentID"], BindType = DropdownListBindType.SelectAll, OnLoadSuccess = "QueryDepartmentDropdownList" })
  38. </li>
  39. <li class="sn" style="padding-left: 5px;">处理方式:</li>
  40. <li class="sv">
  41. @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.CF_HandleMode, new ListControlOptions { Name = "chkHandleMode", ColumnCount = 10, SelectedValues = new List<object> { string.IsNullOrEmpty(Request["handleMode"]) ? (int)EMIS.ViewModel.CF_HandleMode.SelectionCourse : int.Parse(Request["handleMode"]) } })
  42. </li>
  43. <li class="sv">@Html.Button(new ButtonOptions { OnClick = "reload()", Icon = ButtonIcon.Search, Text = "查询" })</li>
  44. </ul>
  45. </div>
  46. </div>
  47. <div id="leftContainer" style="float: left; position: absolute; width: 220px; top: 40px; bottom: 2px; overflow: hidden;">
  48. @Html.DataGrid(new DataGridOptions
  49. {
  50. Columns = new List<DataGridColumn>()
  51. {
  52. new BoundFieldColumn { FieldName="EducationSchedulingClassID", IsHidden=true },
  53. new BoundFieldColumn { FieldName="CoursematerialName", HeaderText="课程名称", Align=AlignStyle.Center, Width=100 },
  54. new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="任务班名称", Align=AlignStyle.Center, Width=200 },
  55. new BoundFieldColumn { FieldName="TaskGroupName", HeaderText="分组", Align=AlignStyle.Center, Width=50 },
  56. new BoundFieldColumn { FieldName="TeachingModeName", HeaderText="授课方式", Align=AlignStyle.Center, Width=70 },
  57. new BoundFieldColumn { FieldName="StartStopWeeklyNum", HeaderText="执行周次", Align=AlignStyle.Center, Width=70 },
  58. new BoundFieldColumn { FieldName="ExecutablePlanCourseTime", HeaderText="执行学时", Align=AlignStyle.Center, Width=70 },
  59. new BoundFieldColumn { FieldName="TeacherNames", HeaderText="授课老师", Align=AlignStyle.Center, OverflowLength=8, Width=100 },
  60. new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室", Align=AlignStyle.Center, Width=70 },
  61. new BoundFieldColumn { FieldName="RemainCourseTime", HeaderText="剩余学时", Align=AlignStyle.Center, Width=70 }
  62. },
  63. IsCheckOnSelect = true,
  64. DataSourceUrl = Url.Content("~/EducationSchedule/GetDepartmentEducationSchedulingClass?departmentID=" + Request["departmentID"]) + "&schoolyearID=" + BaseExtensions.GetCurrentSchoolYearID(),
  65. ID = "dgEducationSchedulingClassList",
  66. OnClickRow = "selectItem",
  67. OnLoadSuccessFun = "gridLoaded",
  68. CustomerRowStyleFun = "isScheduleEnable",
  69. RowHighlightColor = System.Drawing.Color.FromArgb(114, 181, 233),
  70. IsMouseOverHighlight = true,
  71. IsAutoLoad = false,
  72. IsPagination = false,
  73. IsShowRowNumbers = true,
  74. IsSingleSelect = true
  75. })
  76. </div>
  77. <div class="middleBar" style="float: left; position: absolute; margin-left: 222px; width: 2px; background-color: #e8e8e8; height: 100%;">
  78. </div>
  79. <div style="float: right; position: absolute; left: 225px; top: 40px; right: 5px; bottom: 2px; overflow: hidden;"
  80. id="scheduleContainer">
  81. </div>
  82. <div>
  83. <div id="popupMenu" class="scheduleMenu">
  84. <div onclick="EducationScheduling_DeleteItem();$('#popupMenu').css('display', 'none');">删除</div>
  85. <div onclick="EducationScheduling_WeekModify();$('#popupMenu').css('display', 'none');">编辑周次</div>
  86. <div onclick="EducationScheduling_ModifyTeacher();$('#popupMenu').css('display', 'none');">修改老师</div>
  87. <div onclick="EducationScheduling_ModifyClassroom();$('#popupMenu').css('display', 'none');">修改教室</div>
  88. <div class="commonMenu" onclick="window.location.reload(true);$('#popupMenu').css('display', 'none');">刷新页面</div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>