@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; } @section scripts{ }
@Html.Position()
  • 学年学期:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), OnSelect = "reload()", Name = "ddlSchoolyear" }, new Dictionary { { "data-condition", "dgEducationSchedulingList" } })
  • 教师:
  • @Html.ComboGrid(new ComboGridOptions { TextField = "Name", ValueField = "UserID", ID = "cgbTeacher", Name = "cgbTeacher", OnSelect = "reload", SelectedValue = EMIS.Utility.FormValidate.CustomPrincipal.Current.UserID, GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="教师姓名", Width=0.1, Align=AlignStyle.Center } }, OnLoadSuccessFun = "reload", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Staff/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, IsAutoLoad = true } }, new Dictionary { { "data-condition", "dgEducationSchedulingList" } })
  • 课程名称:
  • @Html.ComboGrid(new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", Name = "cgbCoursematerial", OnSelect = "reload", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.12 }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 } }, IsAutoLoad = false, IsCheckOnSelect = true, IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }, new Dictionary { { "data-condition", "dgEducationSchedulingList" } })
  • 任务班名称:
  • @Html.ComboGrid(new ComboGridOptions { TextField = "EducationMissionClassName", ValueField = "EducationMissionClassID", Name = "cgbEducationMissionClass", OnSelect = "reload", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="任务班名称", Align=AlignStyle.Center } }, IsAutoLoad = false, IsCheckOnSelect = true, IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }, new Dictionary { { "data-condition", "dgEducationSchedulingList" } })
  • 周次:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, OnSelect = "reload()", Name = "ddlWeekNum" }, new Dictionary { { "data-condition", "dgEducationSchedulingList" } })
  • 星期:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, OnSelect = "reload()", Name = "ddlWeekDay" }, new Dictionary { { "data-condition", "dgEducationSchedulingList" } })
  • 节次:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, OnSelect = "reload()", Name = "ddlCourseTimes" }, new Dictionary { { "data-condition", "dgEducationSchedulingList" } })
  • 教室:
  • @Html.ComboGrid(new ComboGridOptions { TextField = "ClassroomName", ValueField = "ClassroomID", Name = "cgbClassroom", OnSelect = "reload", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室名称", Align=AlignStyle.Center } }, IsAutoLoad = false, IsCheckOnSelect = true, IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }, new Dictionary { { "data-condition", "dgEducationSchedulingList" } })
课程列表
@Html.ContextMenuBar("Edit")
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="EducationSchedulingWeekNumID" }, new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="任务班名称", Align=AlignStyle.Center, Width=230 }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程", Align=AlignStyle.Center, Width=80 }, new BoundFieldColumn { FieldName="TeacherNames", HeaderText="教师", Align=AlignStyle.Center, Width=80 }, new BoundFieldColumn { FieldName="WeekNum", HeaderText="周次", Align=AlignStyle.Center, Width=80 }, new BoundFieldColumn { FieldName="WeekdayDesc", HeaderText="星期", Align=AlignStyle.Center, Width=80 }, new BoundFieldColumn { FieldName="CoursesTimeName", HeaderText="节次", Align=AlignStyle.Center, Width=80 }, new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室", Align=AlignStyle.Center, Width=80 } }, IsAutoLoad = false, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/EducationSchedule/Stop"), ID = "dgEducationSchedulingList", IsPagination = false, IsShowRowNumbers = true, IsSingleSelect = false })