@using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; ComboGridOptions cgopCampus = new ComboGridOptions { TextField = "Name", ValueField = "CampusID", OnSelect = "queryCollege", Name = "CampusDropdown", ID = "CampusDropdown", GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center }, 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 = "CollegeDropdown", ID = "CollegeDropdown", 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 } }, //OnLoadSuccessFun = "queryClass", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions cgopClassmajor = new ComboGridOptions { TextField = "Name", ValueField = "ClassmajorID", Name = "ClassmajorDropdown", ID = "ClassmajorDropdown", OnSelect = "queryClass", 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 } }; ComboGridOptions cgopStandard = new ComboGridOptions { TextField = "StandardName", ValueField = "StandardID", OnSelect = "queryStandard", Name = "StandardDictionaryDropDown", ID = "StandardDictionaryDropDown", 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, } }; ComboGridOptions cgopPlanningGraduate = new ComboGridOptions { TextField = "PlanningGraduateStr", ValueField = "PlanningGraduateStr", OnSelect = "reload", Name = "PlanningGraduateDropDown", ID = "PlanningGraduateDropDown", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="PlanningGraduateStr", HeaderText="毕业学期", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Students/PlanningGraduateList"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions cgopLearnSystem = new ComboGridOptions { TextField = "LearnSystem", ValueField = "LearnSystem", OnSelect = "queryClass", Name = "DictionaryLearnSystem", ID = "DictionaryLearnSystem", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Specialty/LearnSystem"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, IsShowHeader = false } }; } @section scripts{ }
@Html.Position()
查询条件
@Html.PositionCondition() @Html.Hidden("SelectedIDs")
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.ComboGrid(cgopCollege, new Dictionary { { "data-condition", "dgStudentList" } })
  • 年级:
  • @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "queryClass"}, new Dictionary { { "data-condition", "dgStudentList" } })
  • 专业名称:
  • @Html.ComboGrid(cgopStandard, new Dictionary { { "data-condition", "dgStudentList" } }) @*@Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll, new ComboGridOptions { ID = "StandardDictionaryDropDown", Name = "StandardDictionaryDropDown", OnSelect = "queryClass" }, new Dictionary { { "data-condition", "dgStudentList" } })*@
  • @Html.RSLabel("EducationID"):
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education, new DropdownListOptions { ID = "DictionaryEducation", Name = "DictionaryEducation", BindType = DropdownListBindType.SelectAll, OnSelect = "queryClass" }, new Dictionary { { "data-condition", "dgStudentList" } })
  • 学习形式:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "LearningformDictionaryDropDown", Name = "LearningformDictionaryDropDown", OnSelect = "queryClass" }, new Dictionary { { "data-condition", "dgStudentList" } })
  • 学制:
  • @Html.ComboGrid(cgopLearnSystem, new Dictionary { { "data-condition", "dgStudentList" } })
  • 班级名称:
  • @Html.ComboGrid(cgopClassmajor, new Dictionary { { "data-condition", "dgStudentList" } })
  • 在校状态:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, SelectedValue = 1, ID = "InSchoolStatusDictionaryDropDown", Name = "InSchoolStatusDictionaryDropDown", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgStudentList" } })
  • 是否有照片:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_YesOrNoStatus, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "YesOrNoStatusDictionaryDropDown", Name = "YesOrNoStatusDictionaryDropDown", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgStudentList" } })
  • @*
  • 是否是圆梦计划:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_YesOrNoStatus, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "YesOrNoStatus", Name = "YesOrNoStatus", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgStudentList" } })
  • *@
  • 注册状态:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_ReportStatus, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ReportStatusDictionaryDropDown", Name = "ReportStatusDictionaryDropDown", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgStudentList" } })
  • 是否毕业生:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, SelectedValue = (int)EMIS.ViewModel.CF_GeneralPurpose.IsNo, ID = "GeneralPurposeDictionaryDropDown", Name = "GeneralPurposeDictionaryDropDown", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgStudentList" } })
  • 预计毕业时间:
  • @Html.ComboGrid(cgopPlanningGraduate, new Dictionary { { "data-condition", "dgStudentList" } })
    @*导出数据*@
学生信息列表
@Html.ContextMenuBar("List")
@Html.PositionBatchModify()
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"}, new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center,Handle="edit", Width=0.1 }, new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, Width=0.03}, new BoundFieldColumn { FieldName="Grade", HeaderText="年级", Align=AlignStyle.Center, Width=0.03 }, new BoundFieldColumn { FieldName="ClassMajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.15 }, //new BoundFieldColumn { FieldName="GradeMajorName", HeaderText="年级专业", Align=AlignStyle.Center, Width=0.15 }, new BoundFieldColumn { FieldName="PoliticsName", HeaderText="政治面貌", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号码", Align=AlignStyle.Center, Width=0.12 }, new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="ReportStatusName", HeaderText="注册状态", Align=AlignStyle.Center, Width=0.04} , new BoundFieldColumn { FieldName="IsPhotoUrl", HeaderText="是否有照片", Align=AlignStyle.Center, Width=0.05} , new BoundFieldColumn { FieldName="IsProofreadStr", HeaderText="是否核对", Align=AlignStyle.Center, Width=0.05} , }, PageSize = 50, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Students/GdssList"), ID = "dgStudentList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, IsAutoHeight = false, })