@*期末设定补考设定专用*@ @using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "TeacherSelect"; string CollegeID = ViewBag.CollegeID; string GradeYearID = ViewBag.GradeYearID; string StandardID = ViewBag.StandardID; ComboGridOptions cgopCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", OnSelect = "QueryCollegeComboGridList", Name = "CollegeDropdown", ID = "CollegeDropdown", SelectedValue=CollegeID, GridOptions = new DataGridOptions { Columns = new List() { // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.3 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions cgopGrademajor = new ComboGridOptions { TextField = "Name", ValueField = "GrademajorID", Name = "GrademajorComboGrid", ID = "GrademajorComboGrid", OnSelect = "queryClass", GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.3 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopStandard = new ComboGridOptions { TextField = "StandardName", ValueField = "StandardID", OnSelect = "QueryStandardDropdownList", Name = "DictionaryStandard", ID = "DictionaryStandard", SelectedValue=StandardID, GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@*
班级信息列表
*@
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.ComboGrid(cgopCollege, new Dictionary { { "data-condition", "dgClassmajorList" } })
  • 年级:
  • @Html.SchoolYearDropDownList(new DropdownListOptions { ID = "DictionarySchoolyear", Name = "DictionarySchoolyear", BindType = DropdownListBindType.SelectAll, SelectedValue = GradeYearID, OnSelect = "QueryLearningformDropdownList" }, new Dictionary { { "data-condition", "dgClassmajorList" } })
  • 专业名称:
  • @Html.ComboGrid(cgopStandard, new Dictionary { { "data-condition", "dgClassmajorList" } }) @*@Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "DictionaryStandard", Name = "DictionaryStandard", OnSelect = "QueryStandardDropdownList", ItemSourceUrl = Url.Content("~/Facultymajor/Standard") }, new Dictionary { { "data-condition", "dgFacultymajorList" } })*@
  • 查询
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="ClassmajorID" }, new BoundFieldColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center, Width=0.08 }, new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.12 }, //new BoundFieldColumn { FieldName="yearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.03 }, //new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 }, //new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 }, new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.05 }, //new BoundFieldColumn { FieldName="GraduatingSemesterCode", HeaderText="毕业学期", Align=AlignStyle.Center, Width=0.08 }, //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 }, //new BoundFieldColumn { FieldName="AssistantUserName", HeaderText="辅导员", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="StudentCount", HeaderText="人数", Align=AlignStyle.Center, Width=0.02 } }, PageSize = 20, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classmajor/List"), ID = "dgClassmajorList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })