@using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; } @section scripts{ }
@Html.Position()
@Html.PositionCondition()
  • @EMIS.Utility.RSL.Get("Campus"):
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Campus/CampusDropdownListBanid"), ID = "CampusDropdown", Name = "CampusDropdown", OnSelect = "QueryCampusDropdownList" }, new Dictionary { { "data-condition", "dgRoomSettingList" } })
  • 所在建筑物:
  • @Html.ComboGrid(new ComboGridOptions { TextField = "Name", ValueField = "BuildingsInfoID", Name = "BuildingsDropdown", OnSelect = "QueryBuildingsDropdownList", GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="Code", HeaderText="建筑物代码", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="建筑物名称", Width=0.3, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Buildings/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }, new Dictionary { { "data-condition", "dgRoomSettingList" } })
  • 是否可用:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "IsSpecialDictionaryDropDown", OnSelect = "QueryIsSpecialDropdownList" }, new Dictionary { { "data-condition", "dgRoomSettingList" } })
考场列表
@Html.ContextMenuBar("List")
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="ClassroomID"}, new BoundFieldColumn { FieldName="Name", HeaderText="教室", Align=AlignStyle.Center, OverflowLength=29, Width=0.25 }, new BoundFieldColumn { FieldName="IsAvailableName", HeaderText="是否可用", Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="ClassroomTypeName", HeaderText="教室类型", Align=AlignStyle.Center, OverflowLength=17, Width=0.15 }, new BoundFieldColumn { FieldName="Totalseating", HeaderText="总座位数", Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="Effectiveseating", HeaderText="有效座位数", Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="Examinationseating", HeaderText="考试座位数", Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="IsWrittenExamName", HeaderText="笔试考试", Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="IsMachinetestName", HeaderText="机试考试", Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="BuildingsInfoName", HeaderText="所在建筑物", Align=AlignStyle.Center, OverflowLength=22, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationRoomSetting/List"), ID = "dgRoomSettingList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })