@using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; } @section scripts{ }
@Html.Position()
  • 考试类型:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/ExaminationType/DropdownList"), ID = "ExaminationTypeDropdown", Name = "ExaminationTypeDropdown", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgSubjectCountLimitList" } })
  • 院系专业:
  • @Html.ComboGrid(new ComboGridOptions { TextField = "Name", ValueField = "FacultymajorID", OnSelect = "reload", ID = "FacultymajorDropdown", Name = "FacultymajorDropdown", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="Code", HeaderText="院系专业代码", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="院系专业名称", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("Campus"), Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Facultymajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }, new Dictionary { { "data-condition", "dgSubjectCountLimitList" } })
  • 年级数:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "YearNumDropdown", Name = "YearNumDropdown", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgSubjectCountLimitList" } })
门数限定列表
@Html.ContextMenuBar("List")
@Html.PositionBatchModify()
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationSubjectCountLimitID"}, new LinkButtonColumn { FieldName="ExaminationTypeName", HeaderText="考试类型", Align=AlignStyle.Center , Handle="edit" }, new BoundFieldColumn { FieldName="FacultymajorName", HeaderText="院系专业", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="FacultymajorID", HeaderText="院系专业", Align=AlignStyle.Center,IsHidden=true }, new BoundFieldColumn { FieldName="SchoolyearNumName", HeaderText="年级数", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Years", HeaderText="年级数", Align=AlignStyle.Center,IsHidden=true }, new BoundFieldColumn { FieldName="SubjectCountLimit", HeaderText="报名门数", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationSubjectCountLimit/List"), ID = "dgSubjectCountLimitList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })