@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; ComboGridOptions cgopCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", Name = "ComboGridCollege", ID = "ComboGridCollege", OnSelect = "queryCollege", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions cgopOpenCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", Name = "ComboGridOpenCollege", ID = "ComboGridOpenCollege", OnSelect = "queryCollege", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions week = new ComboGridOptions { TextField = "x", ValueField = "x", OnSelect = "reload", Name = "ddlWeekNum", ID = "ddlWeekNum", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="x", HeaderText="上课时间", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/SchoolYear/GetWeekListDropdown"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions time = new ComboGridOptions { TextField = "Times", ValueField = "CoursesTimeID", OnSelect = "reload", Name = "Times", ID = "Times", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Times", HeaderText="上课时间", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/CoursesTime/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgop = new ComboGridOptions { TextField = "Name", ValueField = "ClassroomID", Name = "ClassroomID", ID = "ClassroomID", OnSelect = "reload", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="Code", HeaderText="教室代码", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Width=0.2, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classroom/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@Html.Position()
查询条件
  • 学年学期:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, SelectedValue = @ViewBag.SchoolYearID, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), OnSelect = "QuerySchoolyearDropdownList", Name = "SchoolyearDropdownList" }, new Dictionary { { "data-condition", "dgEducationMissionClassSchedule" } })
  • @EMIS.Utility.RSL.Get("CourseCollege"):
  • @Html.ComboGrid(cgopOpenCollege, new Dictionary { { "data-condition", "dgEducationMissionClassSchedule" } })
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.ComboGrid(cgopCollege, new Dictionary { { "data-condition", "dgEducationMissionClassSchedule" } })
  • 上课周次:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/GetWeekListDropdown"), ID = "ddlWeekNum", Name = "ddlWeekNum", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgEducationMissionClassSchedule" } })
  • 星期:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.ES_WeekDay, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "WeekDay", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgEducationMissionClassSchedule" } })
  • 上课节次:
  • @Html.ComboGrid(time, new Dictionary { { "data-condition", "dgEducationMissionClassSchedule" } })
  • 教室名称:
  • @Html.ComboGrid(cgop, new Dictionary { { "data-condition", "dgEducationMissionClassSchedule" } })
  • 查询
实时课表信息
@Html.ContextMenuBar("List")
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="EducationMissionClassID" }, new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室名称", Align=AlignStyle.Center, Width=0.08 }, new BoundFieldColumn { FieldName="WeekNum", HeaderText="上课周次", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="WeekdayName", HeaderText="星期", Align=AlignStyle.Center, Width=0.04, OrderFieldName="Weekday" }, new BoundFieldColumn { FieldName="Times", HeaderText="上课节次", Align=AlignStyle.Center, Width=0.05, OverflowLength=5 }, new BoundFieldColumn { FieldName="TimesHoure", HeaderText="上课时间", Align=AlignStyle.Center, Width=0.06 }, new BoundFieldColumn { FieldName="TeacherName", HeaderText="授课老师", Align=AlignStyle.Center, Width=0.06, OrderFieldName="" }, new BoundFieldColumn { FieldName="Name", HeaderText="任务班名称", Align=AlignStyle.Center, Width=0.15, OverflowLength=20 }, new BoundFieldColumn { FieldName="OpenCollegeName", HeaderText=@EMIS.Utility.RSL.Get("CourseCollege"), Align=AlignStyle.Center, Width=0.06, OverflowLength=6 }, new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.06, OverflowLength=6 }, new LinkButtonColumn { FieldName="ClassNum", HeaderText="人数", Align=AlignStyle.Center, Handle="SchedulingClassStudentEdit", Width=0.03 }, }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/EducationSchedulingReport/RealtimeGT"), ID = "dgEducationMissionClassSchedule", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })