@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() { //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() { 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{ }
课程安排
@Html.ContextMenuBar("SchedulingForm")
  • 学年学期:
  • @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" })
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanidsWithoutRange"), SelectedValue = Request["collegeID"], ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "QueryCollegeDropdownList", OnLoadSuccess = "QueryCollegeDropdownList" })
  • 年级:
  • @Html.DropdownList(new DropdownListOptions { Width = 80, ID = "DictionarySchoolyear", Name = "DictionarySchoolyear", BindType = DropdownListBindType.SelectAll, SelectedValue = Request["yearID"], OnSelect = "QueryYearDropdownList", OnLoadSuccess = "QueryYearDropdownList" })
  • 专业名称:
  • @Html.ComboGrid(optStandard)
  • 班级名称:
  • @Html.ComboGrid(cgopClassmajor, new Dictionary { { "data-condition", "dgEducationSchedulingClassList" } })
  • @*
  • 班级名称:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, SelectedValue = , ID = "ClassmajorDropdown", Name = "ClassmajorDropdown", OnSelect = "reload", OnLoadSuccess = "QueryClassmajorDropdownList" })
  • *@
@Html.DataGrid(new DataGridOptions { Columns = new List() { 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 })
删除
编辑周次
修改老师
修改教室
编辑周次
刷新页面