@using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; } @section scripts{ }
@Html.Position()
@Html.PositionCondition()
  • 考试类型:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/ExaminationType/DropdownList"), ID = "ExaminationTypeDropdown", Name = "ExaminationTypeDropdown", OnSelect = "queryExaminationSubject" }, new Dictionary { { "data-condition", "dgOpenControlList" } })
  • 考试科目:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/ExaminationSubject/DropdownList"), ID = "ExaminationSubjectDropdown", Name = "ExaminationSubjectDropdown", OnSelect = "reload", OnLoadSuccess = "reload" }, new Dictionary { { "data-condition", "dgOpenControlList" } })
  • 年级数:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "YearNumDropdown", Name = "YearNumDropdown", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgOpenControlList" } })
  • 学生类别:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_STUDENTTYPE, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "StudentTypeDropdown", Name = "StudentTypeDropdown", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgOpenControlList" } })
开放控制列表
@Html.ContextMenuBar("List")
@Html.PositionBatchModify()
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationOpenControlID"}, new LinkButtonColumn { FieldName="ExaminationSubjectName", HeaderText="考试科目", Align=AlignStyle.Center , Handle="edit" }, new BoundFieldColumn { FieldName="StudentTypeDesc", HeaderText="学生类别", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="SchoolyearNumName", HeaderText="年级数", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="StartDate", HeaderText="报名时间起", Formatter = Formatter.OnlyYearMonthDay, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="EndDate", HeaderText="报名时间止", Formatter = Formatter.OnlyYearMonthDay, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="PeopleNumLimit", HeaderText="限定人数", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationOpenControl/List"), ID = "dgOpenControlList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })