@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "StudentViewSelect"; ComboGridOptions cgop = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", Name = "CollegeComboGrid", ID = "CollegeComboGrid", SelectedValue = ViewBag.CollegeID, OnSelect = "SelectCollegeComboGrid", 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 } }, OnLoadSuccessFun = "queryGrade", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopGrademajor = new ComboGridOptions { TextField = "Name", ValueField = "GrademajorID", Name = "GrademajorComboGrid", ID = "GrademajorComboGrid", OnSelect = "SelectGrademajorComboGrid", SelectedValue = ViewBag.GrademajorID, 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 } }, OnLoadSuccessFun = "queryClass", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopClassmajor = new ComboGridOptions { TextField = "Name", ValueField = "ClassmajorID", Name = "ClassmajorComboGrid", ID = "ClassmajorComboGrid", OnSelect = "reload", SelectedValue = ViewBag.ClassmajorID, GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.3 } }, OnLoadSuccessFun = "queryStudent", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classmajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; var cgopStudent = new ComboGridOptions { TextField = "UserName", ValueField = "UserID", Name = "StudentComboGrid", ID = "StudentComboGrid", OnSelect = "SelectStudentComboGrid", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.2 }, new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.1 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Students/BaseStudentViewList"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@*
学生信息列表
*@
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.ComboGrid(cgop, new Dictionary { { "data-condition", "dgStudentList" } })
  • 年级专业:
  • @Html.ComboGrid(cgopGrademajor, new Dictionary { { "data-condition", "dgStudentList" } })
  • 班级名称:
  • @Html.ComboGrid(cgopClassmajor, new Dictionary { { "data-condition", "dgStudentList" } })
@*
  • 姓名:
  • @Html.ComboGrid(cgopStudent, new Dictionary { { "data-condition", "dgStudentList" } })
*@
@Html.PositionCondition("StudentSelect",null)
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"}, new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center , Width=0.03}, new BoundFieldColumn { FieldName="Years", HeaderText="年级", Align=AlignStyle.Center, Width=0.3 }, new BoundFieldColumn { FieldName="GrademajorName", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center, Width=0.04 } }, IsAutoLoad = false, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Students/BaseStudentViewList"), ID = "dgStudentList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, IsAutoHeight = false, })