@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; ComboGridOptions cgop = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", OnSelect = "QueryComboGridList", Name = "CoursematerialComboGrid", 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 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions cgopCampus = new ComboGridOptions { TextField = "Name", ValueField = "CampusID", OnSelect = "queryCollege", Name = "CampusDropdown", ID = "CampusDropdown", GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center } }, //OnLoadSuccessFun = "reload", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Campus/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions cgopCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", OnSelect = "reload", Name = "CollegeDropdown", ID = "CollegeDropdown", GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions cgopClassmajor = new ComboGridOptions { TextField = "Name", ValueField = "ClassmajorID", Name = "ClassmajorDropdown", ID = "ClassmajorDropdown", OnSelect = "queryClass", GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classmajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopStandard = new ComboGridOptions { TextField = "StandardName", ValueField = "StandardID", OnSelect = "queryStandard", Name = "StandardDictionaryDropDown", ID = "StandardDictionaryDropDown", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions cgopdepartment = new ComboGridOptions { TextField = "Name", ValueField = "DepartmentID", Name = "DepartmentDropdown", OnSelect = "reload", GridOptions = new DataGridOptions { Columns = new List() { // new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Department/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopGrademajor = new ComboGridOptions { TextField = "Name", ValueField = "GrademajorID", Name = "GrademajorComboGrid", ID = "GrademajorComboGrid", OnSelect = "reload", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions time = new ComboGridOptions { TextField = "time_starTime_endTime", ValueField = "CoursesTimeID", OnSelect = "reload", Name = "TimeComboGrid", ID = "TimeComboGrid", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="time_starTime_endTime", HeaderText="上课时间", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/CoursesTime/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@Html.Position()
查询条件
@Html.PositionCondition()
  • 学年学期:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolyearDropdown", Name = "SchoolyearDropdown", OnSelect = "QuerySchoolyearDropdownList", OnLoadSuccess = "reload", SelectedValue = @ViewBag.SchoolYearID }, new Dictionary { { "data-condition", "dgEducationMissionClassList" } })
  • 开课@(EMIS.Utility.RSL.Get("College")):
  • @Html.ComboGrid(cgopCollege, new Dictionary { { "data-condition", "dgEducationMissionClassList" } })
  • 年级:
  • @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "queryClass" }, new Dictionary { { "data-condition", "dgEducationMissionClassList" } })
  • 专业名称:
  • @Html.ComboGrid(cgopStandard, new Dictionary { { "data-condition", "dgEducationMissionClassList" } })
  • 班级名称:
  • @Html.ComboGrid(cgopClassmajor, new Dictionary { { "data-condition", "dgEducationMissionClassList" } })
  • 课程名称:
  • @Html.ComboGrid(cgop, new Dictionary { { "data-condition", "dgEducationMissionClassList" } })
  • 授课方式:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, new DropdownListOptions { Name = "DictionaryTeachingMode", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgEducationMissionClassList" } })
  • 状态:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.EM_EducationMissionClassStatus, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "ApprovalStatusDropdownList", OnSelect = "QueryApprovalStatusDropdownList" }, new Dictionary { { "data-condition", "dgEducationMissionClassList" } })
    @*导出数据*@
教学任务列表
@Html.ContextMenuBar("List")
@Html.PositionBatchModify()
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="EducationMissionClassID" }, new BoundFieldColumn{ HeaderText="", FieldName="ExecutablePlanID" ,IsHidden=true}, new BoundFieldColumn{ HeaderText="", FieldName="ExecutableOptionalCourseID" ,IsHidden=true}, new BoundFieldColumn{ HeaderText="", FieldName="ExecutableFreeSelectionCouseID",IsHidden=true}, new BoundFieldColumn{ HeaderText="", FieldName="CollegeID",IsHidden=true}, new BoundFieldColumn{ HeaderText="", FieldName="SchoolyearID",IsHidden=true}, new TextBoxColumn { FieldName="OrderNo", HeaderText="序号", IsRequired=true, Validator=new OnlyNumberValidator(), Align=AlignStyle.Center, Width=20 }, new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center,Width=0.06 }, new BoundFieldColumn { FieldName="Name", HeaderText="任务班名称", Align=AlignStyle.Center, Width=0.15 }, new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center,Width=0.04 }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="TeachingModeName", HeaderText="授课方式", Align=AlignStyle.Center, OrderFieldName="TeachingModeID", Width=0.04 }, new BoundFieldColumn { FieldName="DepartmentName", HeaderText="教研室",OverflowLength=8, Align=AlignStyle.Center }, //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="StartStopWeeklyNum", HeaderText="执行周次", Align=AlignStyle.Center,Width=0.04 }, new BoundFieldColumn { FieldName="StandardID", HeaderText="专业", Align=AlignStyle.Center,IsHidden=true }, new BoundFieldColumn { FieldName="GradeYearID", HeaderText="年级", Align=AlignStyle.Center,IsHidden=true,Width=0.02 }, new BoundFieldColumn { FieldName="Totalhours", HeaderText="总学时", Align=AlignStyle.Center,Width=0.03 }, new BoundFieldColumn { FieldName="CourseProcessTimes", HeaderText="执行学时", Align=AlignStyle.Center,Width=0.04 }, new BoundFieldColumn { FieldName="Credit", HeaderText="学分", Align=AlignStyle.Center,Width=0.02 }, //new BoundFieldColumn { FieldName="WeeklyNum", HeaderText="每周次数", Align=AlignStyle.Center }, //new LinkButtonColumn { FieldName="SchedulingClassNum", HeaderText="排课班数", Align=AlignStyle.Center, Handle = "SchedulingClassEdit" }, new BoundFieldColumn { FieldName="ClassroomTypeName", HeaderText="教室类型", Align=AlignStyle.Center,Width=0.04 }, new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室名称", Align=AlignStyle.Center,Width=0.04 }, new BoundFieldColumn { FieldName="TeacherName", HeaderText="授课老师",OverflowLength=6, Align=AlignStyle.Center,Width=0.04 }, new LinkButtonColumn { FieldName="ClassNum", HeaderText="人数", Align=AlignStyle.Center, Handle="SchedulingClassStudentEdit",Width=0.02 }, new BoundFieldColumn { FieldName="ApprovalStatusName", HeaderText="状态", Align=AlignStyle.Center,Width=0.03 }, }, IsAutoLoad = false, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/EducationMissionClass/List"), ID = "dgEducationMissionClassList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })