@using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @{ ViewBag.Title = "学生信息"; ComboGridOptions cgopCampus = new ComboGridOptions { TextField = "Name", ValueField = "CampusID", OnSelect = "queryCollege", Name = "cbgCampus", ID = "cbgCampus", 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 cgopCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", OnSelect = "queryCollege", Name = "cbgCollege", ID = "cbgCollege", 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 = "queryStandard", Name = "cbgStandard", ID = "cbgStandard", 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, } }; } @section scripts{ }
@Html.ContextMenuBar("StudentBatchSelect")
查询条件
@Html.PositionCondition("StudentBatchSelect", null)
  • @EMIS.Utility.RSL.Get("Campus"):
  • @Html.ComboGrid(cgopCampus, new Dictionary { { "data-condition", "dgList" } })
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.ComboGrid(cgopCollege, new Dictionary { { "data-condition", "dgList" } })
  • @Html.RSLabel("EducationID"):
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education, new DropdownListOptions { ID = "ddlEducation", Name = "ddlEducation", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgList" } })
  • 年级:
  • @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlYear", Name = "ddlYear", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgList" } })
  • 专业:
  • @Html.ComboGrid(cgopStandard, new Dictionary { { "data-condition", "dgList" } })
  • 学习形式:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform, new DropdownListOptions { ID = "ddlLearningform", Name = "ddlLearningform", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgList" } })
  • 班序:
  • @Html.NumberRangeDropdownList(1, 4, new DropdownListOptions { ID = "ddlClassNum", Name = "ddlClassNum", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgList" } })
  • 学籍状态:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_StudentStatus, new DropdownListOptions { ID = "ddlStudentStatus", Name = "ddlStudentStatus", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgList" } })
  • 是否有照片:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_YesOrNoStatus, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlHasPhoto", Name = "ddlHasPhoto", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgList" } })
  • @Html.CheckBox("chkOnlyGraduation", new Dictionary { { "data-condition", "dgList" } })   @Html.CheckBox("chkPreviousNotGraduated", new Dictionary { { "data-condition", "dgList" } })   @*Html.CheckBox("chkShowPicture", new Dictionary { { "data-condition", "dgStudentList" } })*@
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"}, new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="BirthDate", HeaderText="出生日期", Align=AlignStyle.Center, Formatter=Formatter.OnlyYearMonthDay }, new BoundFieldColumn { FieldName="ClassMajorName", HeaderText="班级名称", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Grade", HeaderText="年级", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号码", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="ExamineeNum", HeaderText="考生号", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Students/BatchSelectList"), ID = "dgList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })