123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "List";
- ComboGridOptions cgopClassmajor = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ClassmajorID",
- Name = "ClassmajorDropdown",
- ID = "ClassmajorDropdown",
- OnSelect = "reload",
- Width = 300,
- SelectedValue=Request["classmajorID"],
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
- },
- OnLoadSuccessFun = "reload",
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Classmajor/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- ComboGridOptions optStandard = new ComboGridOptions
- {
- TextField = "StandardName",
- ValueField = "StandardID",
- OnSelect = "SelectStandardComboGrid",
- Name = "DictionaryStandard",
- ID = "DictionaryStandard",
- SelectedValue = Request["standardID"],
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
- },
- OnLoadSuccessFun = "QueryStandardComboGrid",
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- }
- @section scripts{
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- var windowID = '@(Request["WindowID"])';
- var standardIDs = '@(Request["standardID"])';
- var years = '@(Request["yearID"])';
- </script>
- <script src="@Url.Content("~/Scripts/Business/Common/WeekNum.js")" type="text/javascript"></script>
- <script src="@Url.Content("~/Scripts/Business/SchedulingManage/Scheduling/Scheduling.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 { Width=120, BindType = DropdownListBindType.None, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), SelectedValue = string.IsNullOrEmpty(Request["schoolyearID"]) ? BaseExtensions.GetCurrentSchoolYearID() : new Guid(Request["schoolyearID"]), ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "reload" })
- </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 { Width = 80, ID = "DictionarySchoolyear", Name = "DictionarySchoolyear", BindType = DropdownListBindType.SelectAll, SelectedValue = Request["yearID"], OnSelect = "QueryYearDropdownList", OnLoadSuccess = "QueryYearDropdownList" })
- </li>
- <li class="sn" style="padding-left: 5px;">专业名称:</li>
- <li class="sv">
- @Html.ComboGrid(optStandard)
- </li>
- <li class="sn" style="padding-left: 5px;">班级名称:</li>
- <li class="sv">
- @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgEducationSchedulingClassList" } })
- </li>
- @*<li class="sn" style="padding-left: 5px;">班级名称:</li>
- <li class="sv">
- @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, SelectedValue = , ID = "ClassmajorDropdown", Name = "ClassmajorDropdown", OnSelect = "reload", OnLoadSuccess = "QueryClassmajorDropdownList" })
- </li>*@
- </ul>
- </div>
- </div>
- <div id="leftContainer" style="float: left; position: absolute; width: 220px; top: 40px; bottom: 2px; overflow-x: scroll;">
- @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="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/GetEducationSchedulingClass?classmajorID=" + Request["classmajorID"]) + "&schoolyearID=" + BaseExtensions.GetCurrentSchoolYearID(),
- ID = "dgEducationSchedulingClassList",
- OnClickRow = "selectItem",
- OnLoadSuccessFun = "gridLoaded",
- CustomerRowStyleFun = "isScheduleEnable",
- RowHighlightColor = System.Drawing.Color.FromArgb(114, 181, 233),
- IsMouseOverHighlight = true,
- MaxHeight = 1024,
- IsAutoLoad = false,
- IsPagination = false,
- IsShowRowNumbers = true,
- IsSingleSelect = true
- })
- </div>
- <div class="middleBar" style="float: left; position: absolute; margin-left: 222px; width: 2px; cursor: e-resize; 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="schedulingClassMenu editWeek">编辑周次</div>
- <div class="commonMenu" onclick="window.location.reload(true);$('#popupMenu').css('display', 'none');">刷新页面</div>
- </div>
- </div>
- </div>
- </div>
|