@using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; ComboGridOptions cgopCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", ID = "cgCollege", Name = "cgCollege", OnSelect = "queryClass", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center } }, //OnLoadSuccessFun = "reloadStandard", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions cgopStandard = new ComboGridOptions { TextField = "StandardName", ValueField = "StandardID", OnSelect = "queryClass", Name = "ddlStandard", ID = "ddlStandard", 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 cgopClassmajor = new ComboGridOptions { TextField = "Name", ValueField = "ClassmajorID", Name = "cgClassmajor", ID = "cgClassmajor", OnSelect = "reload", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center } }, OnLoadSuccessFun = "reload", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classmajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@Html.Position()
@Html.PositionCondition()
  • 学年学期:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "reload", SelectedValue = ViewBag.SchoolYearID }, new Dictionary { { "data-condition", "dgStudentEvaluationCountList" } })
  • 年级:
  • @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlYear", Name = "ddlYear", OnSelect = "queryClass" }, new Dictionary { { "data-condition", "dgStudentEvaluationCountList" } })
  • @*
  • 年级:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Grade, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlYear", Name = "ddlYear", OnSelect = "reloadClassmajor", OnLoadSuccess = "reloadClassmajor" }, new Dictionary { { "data-condition", "dgStudentEvaluationCountList" } })
  • *@
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.ComboGrid(cgopCollege, new Dictionary { { "data-condition", "dgStudentEvaluationCountList" } })
  • 专业名称:
  • @Html.ComboGrid(cgopStandard, new Dictionary { { "data-condition", "dgStudentEvaluationCountList" } })
  • @*
  • 专业名称:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Facultymajor/BindStandardDropDownList"), Name = "ddlStandard", ID = "ddlStandard", OnSelect = "reloadClassmajor", OnLoadSuccess = "reloadClassmajor" }, new Dictionary { { "data-condition", "dgStudentEvaluationCountList" } })
  • *@
  • 班级名称:
  • @Html.ComboGrid(cgopClassmajor, new Dictionary { { "data-condition", "dgStudentEvaluationCountList" } })
学生名单列表
@Html.ContextMenuBar("List")
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationRegistrationID", Width=0.05, Align=AlignStyle.Center}, new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center,Width=0.04}, new BoundFieldColumn { FieldName="StudentNo", HeaderText="学号", Align=AlignStyle.Center,Width=0.03}, new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center,Width=0.02 }, //new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center,Width=0.01 }, new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center,OverflowLength=25 }, new BoundFieldColumn { FieldName="NeedEvaluationCount", HeaderText="需评人次", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="CompleteCount", HeaderText="已评人次", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="UncompletedCount", HeaderText="未评人次", Align=AlignStyle.Center, Width=0.04 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/StudentEvaluationCount/List"), ID = "dgStudentEvaluationCountList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })