1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "List";
- }
- @section scripts{
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- var windowID = '@(Request["WindowID"])';
- </script>
- <script src="@Url.Content("~/Scripts/Business/Common/WeekNum.js")" type="text/javascript"></script>
- <script src="@Url.Content("~/Scripts/Business/SchedulingManage/Scheduling/DepartmentScheduling.js")" type="text/javascript"></script>
- <script src="@Url.Content("~/Scripts/Business/SchedulingManage/Scheduling/SchedulingCommon.js")" type="text/javascript"></script>
- }
- <link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/Business/Scheduling/Scheduling.css")" />
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- 课程安排
- </div>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("SchedulingForm")</div>
- </div>
- <div class="search_list popupWindowContent" style="overflow: hidden;">
- <div class="search_keyword">
- <div class="search_input">
- <ul>
- <li class="sn" style="padding-left: 5px;">学年学期:</li>
- <li class="sv">
- @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" })
- </li>
- <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
- <li class="sv">
- @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanidsWithoutRange"), SelectedValue = Request["collegeID"], ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "QueryCollegeDropdownList", OnLoadSuccess = "QueryCollegeDropdownList" })
- </li>
- <li class="sn" style="padding-left: 5px;">教研室:</li>
- <li class="sv">
- @Html.DropdownList(new DropdownListOptions { ID = "DepartmentDropdown", Name = "DepartmentDropdown", ItemSourceUrl = Url.Content("~/Department/DepartmentDropdownListBanid"), SelectedValue = Request["departmentID"], BindType = DropdownListBindType.SelectAll, OnLoadSuccess = "QueryDepartmentDropdownList" })
- </li>
- <li class="sn" style="padding-left: 5px;">处理方式:</li>
- <li class="sv">
- @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"]) } })
- </li>
- <li class="sv">@Html.Button(new ButtonOptions { OnClick = "reload()", Icon = ButtonIcon.Search, Text = "查询" })</li>
- </ul>
- </div>
- </div>
- <div id="leftContainer" style="float: left; position: absolute; width: 220px; top: 40px; bottom: 2px; overflow: hidden;">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="EducationSchedulingClassID", IsHidden=true },
- new BoundFieldColumn { FieldName="CoursematerialName", HeaderText="课程名称", Align=AlignStyle.Center, Width=100 },
- new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="任务班名称", Align=AlignStyle.Center, Width=200 },
- new BoundFieldColumn { FieldName="TaskGroupName", HeaderText="分组", Align=AlignStyle.Center, Width=50 },
- new BoundFieldColumn { FieldName="TeachingModeName", HeaderText="授课方式", Align=AlignStyle.Center, Width=70 },
- new BoundFieldColumn { FieldName="StartStopWeeklyNum", HeaderText="执行周次", Align=AlignStyle.Center, Width=70 },
- new BoundFieldColumn { FieldName="ExecutablePlanCourseTime", HeaderText="执行学时", Align=AlignStyle.Center, Width=70 },
- new BoundFieldColumn { FieldName="TeacherNames", HeaderText="授课老师", Align=AlignStyle.Center, OverflowLength=8, Width=100 },
- new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室", Align=AlignStyle.Center, Width=70 },
- new BoundFieldColumn { FieldName="RemainCourseTime", HeaderText="剩余学时", Align=AlignStyle.Center, Width=70 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/EducationSchedule/GetDepartmentEducationSchedulingClass?departmentID=" + Request["departmentID"]) + "&schoolyearID=" + BaseExtensions.GetCurrentSchoolYearID(),
- ID = "dgEducationSchedulingClassList",
- OnClickRow = "selectItem",
- OnLoadSuccessFun = "gridLoaded",
- CustomerRowStyleFun = "isScheduleEnable",
- RowHighlightColor = System.Drawing.Color.FromArgb(114, 181, 233),
- IsMouseOverHighlight = true,
- IsAutoLoad = false,
- IsPagination = false,
- IsShowRowNumbers = true,
- IsSingleSelect = true
- })
- </div>
- <div class="middleBar" style="float: left; position: absolute; margin-left: 222px; width: 2px; background-color: #e8e8e8; height: 100%;">
- </div>
- <div style="float: right; position: absolute; left: 225px; top: 40px; right: 5px; bottom: 2px; overflow: hidden;"
- id="scheduleContainer">
- </div>
- <div>
- <div id="popupMenu" class="scheduleMenu">
- <div onclick="EducationScheduling_DeleteItem();$('#popupMenu').css('display', 'none');">删除</div>
- <div onclick="EducationScheduling_WeekModify();$('#popupMenu').css('display', 'none');">编辑周次</div>
- <div onclick="EducationScheduling_ModifyTeacher();$('#popupMenu').css('display', 'none');">修改老师</div>
- <div onclick="EducationScheduling_ModifyClassroom();$('#popupMenu').css('display', 'none');">修改教室</div>
- <div class="commonMenu" onclick="window.location.reload(true);$('#popupMenu').css('display', 'none');">刷新页面</div>
- </div>
- </div>
- </div>
- </div>
|