@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 = "queryCollege", GridOptions = new DataGridOptions { Columns = new List() { 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 cgopExamination = new ComboGridOptions { TextField = "Name", ValueField = "ExaminationTypeID", Name = "cgExamination", ID = "cgExamination", OnSelect = "SelectExaminationSubjectDropdown", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="考试类型名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationType/List"), 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 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationSubject/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopClassmajor = new ComboGridOptions { TextField = "Name", ValueField = "ClassmajorID", Name = "cgClassmajor", ID = "cgClassmajor", OnSelect = "queryClass", GridOptions = new DataGridOptions { Columns = new List() { 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 = "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, } }; } @section scripts{ }
@Html.Position()
@Html.PositionCondition()
  • 考试类型:
  • @Html.ComboGrid(cgopExamination, new Dictionary { { "data-condition", "dgStudentList" } })
  • 考试科目:
  • @Html.ComboGrid(cgExaminationSubject, new Dictionary { { "data-condition", "dgStudentList" } }) @* @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/ExaminationSubject/DropdownList"), ID = "ddlExaminationSubject", Name = "ddlExaminationSubject", OnSelect = "SelectExaminationSubjectDropdown" }, new Dictionary { { "data-condition", "dgStudentList" } })*@
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.ComboGrid(cgopCollege, new Dictionary { { "data-condition", "dgStudentList" } })
  • 年级:
  • @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlYear", Name = "ddlYear", OnSelect = "queryGrademajor" }, new Dictionary { { "data-condition", "dgStudentList" } })
  • @*
  • 年级:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Grade, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlYear", Name = "ddlYear", OnSelect = "queryClass", OnLoadSuccess = "reloadClassmajor" }, new Dictionary { { "data-condition", "dgStudentList" } })
  • *@
  • 考试学年学期:
  • @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", "dgStudentList" } })
  • 专业名称:
  • @Html.ComboGrid(cgopStandard, new Dictionary { { "data-condition", "dgStudentList" } })
  • @*
  • 专业名称:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"), Name = "ddlStandard", ID = "ddlStandard", OnSelect = "queryClass", OnLoadSuccess = "reloadStandard" }, new Dictionary { { "data-condition", "dgStudentList" } })
  • *@
  • 班级名称:
  • @Html.ComboGrid(cgopClassmajor, new Dictionary { { "data-condition", "dgStudentList" } })
  • 是否已缴费:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { Name = "IsPay", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgStudentList" } })
学生名单列表
@Html.ContextMenuBar("List")
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationRegistrationID",Width=0.05}, 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="SubjectName", HeaderText="科目名称", Align=AlignStyle.Center,OverflowLength=25 }, new BoundFieldColumn { FieldName="CertificatesTypeName", HeaderText="证件类型", Align=AlignStyle.Center,Width=0.03 }, new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号码", Align=AlignStyle.Center,Width=0.06 }, new BoundFieldColumn { FieldName="Cost", HeaderText="报名费", Align=AlignStyle.Center, Width=0.02 }, new BoundFieldColumn { FieldName="IsPay", HeaderText="是否交费", Align=AlignStyle.Center, Width=0.02} }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/List"), ID = "dgStudentList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })