@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "StudentViewSelect"; ComboGridOptions cgopCampus = new ComboGridOptions { TextField = "Name", ValueField = "CampusID", ID = "cgCampus", Name = "cgCampus", OnSelect = "queryCollege", GridOptions = new DataGridOptions { Columns = new List() { 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 cgop = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", Name = "CollegeComboGrid", ID = "CollegeComboGrid", OnSelect = "SelectCollegeComboGrid", 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 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopStandard = new ComboGridOptions { TextField = "StandardName", ValueField = "StandardID", OnSelect = "SelectStandardComboGrid", Name = "StandardID", ID = "StandardID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/GrademajorBindComboGridOptions"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; //ComboGridOptions cgopGrademajor = new ComboGridOptions //{ // TextField = "Name", // ValueField = "GrademajorID", // Name = "GrademajorComboGrid", // ID = "GrademajorComboGrid", // OnSelect = "SelectGrademajorComboGrid", // GridOptions = new DataGridOptions // { // Columns = new List() // { // new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center }, // new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center } // }, // 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", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classmajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@Html.PositionCondition("GdssStudentSelect")
  • 校区:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolArea, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlSchoolArea", Name = "ddlSchoolArea" }, new Dictionary { { "data-condition", "dgStudentList" } })
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.ComboGrid(cgop, new Dictionary { { "data-condition", "dgStudentList" } })
  • 年级:
  • @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlYear", Name = "ddlYear", OnSelect = "queryGrademajor" }, new Dictionary { { "data-condition", "dgStudentList" } })
  • @*
  • 年级专业:
  • @Html.ComboGrid(cgopGrademajor, new Dictionary { { "data-condition", "dgStudentList" } })
  • *@
  • 专业名称:
  • @Html.ComboGrid(cgopStandard, new Dictionary { { "data-condition", "dgStudentList" } })
  • 班级:
  • @Html.ComboGrid(cgopClassmajor, new Dictionary { { "data-condition", "dgStudentList" } })
@Html.ContextMenuBar("Edit-StudentSelect") @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"}, new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.08 }, new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.08 }, new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号", Align=AlignStyle.Center, Width=0.12 }, }, IsAutoLoad = false, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/StudentListForSelect?examinationRegistrationID=" + @ViewBag.examinationRegistrationID + "&examinationBatchID=" + @ViewBag.examinationBatchID + "&examinationProjectID=" + @ViewBag.examinationProjectID), ID = "dgStudentList", IsPagination = true, PageSize = 100, IsShowRowNumbers = true, IsSingleSelect = false, IsAutoHeight = false, })