@using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @{ ViewBag.Title = "ClassStudentStatisticsList"; 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 = "reload", 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 = "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 } }; 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/GrademajorBindComboGridOptions"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions cgExaminationSubject = new ComboGridOptions { TextField = "Name", ValueField = "ExaminationSubjectID", Name = "ddlExaminationSubject", ID = "ddlExaminationSubject", OnSelect = "reload", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="考试科目名称", Align=AlignStyle.Center } }, //OnLoadSuccessFun = "SelectExaminationSubjectDropdown", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationSubject/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@Html.Position()
  • @EMIS.Utility.RSL.Get("Campus"):
  • @Html.ComboGrid(cgopCampus, new Dictionary { { "data-condition", "dgClassStudentStatisticsList" } })
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.ComboGrid(cgopCollege, new Dictionary { { "data-condition", "dgClassStudentStatisticsList" } })
  • 年级:
  • @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "queryClass" }, new Dictionary { { "data-condition", "dgClassStudentStatisticsList" } })
  • 专业名称:
  • @Html.ComboGrid(cgopStandard, new Dictionary { { "data-condition", "dgClassStudentStatisticsList" } }) @*@Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll, new ComboGridOptions { ID = "StandardDictionaryDropDown", Name = "StandardDictionaryDropDown", OnSelect = "queryClass" }, new Dictionary { { "data-condition", "dgList" } })*@
  • 班级名称:
  • @Html.ComboGrid(cgopClassmajor, new Dictionary { { "data-condition", "dgClassStudentStatisticsList" } })
  • 考试学年学期:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "SelectExaminationSubjectDropdown", SelectedValue = ViewBag.SchoolYearID, OnLoadSuccess = "QueryExaminationSubjectDropdown" }, new Dictionary { { "data-condition", "dgClassStudentStatisticsList" } })
  • 考试科目:
  • @Html.ComboGrid(cgExaminationSubject, new Dictionary { { "data-condition", "dgClassStudentStatisticsList" } }) @* @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/ExaminationSubject/DropdownList"), ID = "ddlExaminationSubject", Name = "ddlExaminationSubject", OnSelect = "SelectExaminationSubjectDropdown" }, new Dictionary { { "data-condition", "dgStudentList" } })*@
  • @*
  • 查询
  • *@
学生名单列表
@Html.ContextMenuBar("List")
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID",Width=0.1}, new BoundFieldColumn { FieldName="Year", HeaderText="年级", Align=AlignStyle.Center,Width=0.025 }, new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="报名学年学期", Align=AlignStyle.Center,Width=0.035 }, new BoundFieldColumn { FieldName="GrademajorName", HeaderText="年级专业", Align=AlignStyle.Center,OverflowLength=20 }, new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级", Align=AlignStyle.Center,OverflowLength=20 }, new BoundFieldColumn { FieldName="ExaminationSchoolyearCode", HeaderText="考试学年学期", Align=AlignStyle.Center,Width=0.035 }, new BoundFieldColumn { FieldName="SubjectName", HeaderText="科目", Align=AlignStyle.Center,OverflowLength=20 }, new BoundFieldColumn { FieldName="StudentCount", HeaderText="报名人数", Align=AlignStyle.Center,Width=0.035 }, new BoundFieldColumn { FieldName="Cost", HeaderText="收费", Align=AlignStyle.Center,Width=0.03 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/ClassStudentStatisticsList"), ID = "dgClassStudentStatisticsList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })