@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; ComboGridOptions optCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", OnSelect = "queryUser", Name = "cgbCollege", ID = "cgbCollege", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions optStudentCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", OnSelect = "queryStandard", Name = "cgbStudentCollege", ID = "cgbStudentCollege", GridOptions = new DataGridOptions { Columns = new List() { 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 optCourseCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", OnSelect = "reload", Name = "cgbCourseCollege", ID = "cgbCourseCollege", GridOptions = new DataGridOptions { Columns = new List() { 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 optStandard = new ComboGridOptions { TextField = "StandardName", ValueField = "StandardID", OnSelect = "reload", Name = "cgbStandard", ID = "cgbStandard", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, IsShowHeader = false } }; ComboGridOptions optUser = new ComboGridOptions { TextField = "Name", ValueField = "UserID", OnSelect = "reload", ID = "cgbUser", Name = "cgbUser", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="教师名字", Width=0.1, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Staff/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, IsAutoLoad = true } }; ComboGridOptions optCourse = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", OnSelect = "reload", Name = "cgbCourse", 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, } }; } @section scripts{ }
@Html.Position()
查询条件
@Html.PositionCondition()
  • 学年学期:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), Name = "ddlSchoolyear", ID = "ddlSchoolyear", SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), OnSelect = "reload" }, new Dictionary { { "data-condition", "dgWorktimeAdditionList" } })
  • 教师@(EMIS.Utility.RSL.Get("College")):
  • @Html.ComboGrid(optCollege, new Dictionary { { "data-condition", "dgWorktimeAdditionList" } })
  • 教师:
  • @Html.ComboGrid(optUser, new Dictionary { { "data-condition", "dgWorktimeAdditionList" } })
  • 学生@(EMIS.Utility.RSL.Get("College")):
  • @Html.ComboGrid(optStudentCollege, new Dictionary { { "data-condition", "dgWorktimeAdditionList" } })
  • 年级:
  • @Html.DictionaryDropDownListForSearch(EMIS.ViewModel.DictionaryItem.CF_Grade, "dgWorktimeAdditionList", new DropdownListOptions { ID = "ddlYear", Name = "ddlYear", OnSelect = "queryStandard" })
  • 专业:
  • @Html.ComboGrid(optStandard, new Dictionary { { "data-condition", "dgWorktimeAdditionList" } })
  • @(EMIS.Utility.RSL.Get("CourseCollege")):
  • @Html.ComboGrid(optCourseCollege, new Dictionary { { "data-condition", "dgWorktimeAdditionList" } })
  • 课程:
  • @Html.ComboGrid(optCourse, new Dictionary { { "data-condition", "dgWorktimeAdditionList" } })
  • 授课方式:
  • @Html.DictionaryDropDownListForSearch(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, "dgWorktimeAdditionList", new DropdownListOptions { ID = "ddlTeachingMode", Name = "ddlTeachingMode", OnSelect = "reload" })
  • 月份:
  • @Html.DictionaryDropDownListForSearch(EMIS.ViewModel.DictionaryItem.CF_Month, "dgWorktimeAdditionList", new DropdownListOptions { ID = "ddlMonth", Name = "ddlMonth", OnSelect = "reload" })
课时补登
@Html.ContextMenuBar("List")
@Html.PositionBatchModify()
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="WorktimeAdditionID" }, new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CollegeName", HeaderText="教师单位", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="TeacherName", HeaderText="教师姓名", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="GradeYearID", HeaderText="年级", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="StandardDesc", HeaderText="专业", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CourseCollegeName", HeaderText=EMIS.Utility.RSL.Get("CourseCollege"), Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="任务班名", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="TeachingModeDesc", HeaderText="授课方式", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="TeachTypeDesc", HeaderText="任课方式", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="StudentCount", HeaderText="学生人数", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CourseTime", HeaderText="课时数", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Month", HeaderText="月份", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/WorktimeAddition/List"), ID = "dgWorktimeAdditionList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })