@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ComboGridOptions cgop = new ComboGridOptions { TextField = "Name", ValueField = "BuildingsInfoID", Name = "BuildingsDropdown", OnSelect = "QueryBuildingsDropdownList", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="建筑物名称", Width=0.3, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Buildings/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
教室列表
@Html.PositionCondition("ClassroomSelect", null) @*@Html.Hidden("ClassroomType", Request["ClassroomTypeID"], new Dictionary { { "data-condition", "dgClassroomList" } })*@ @Html.Hidden("schedulingWeek", Request["schedulingWeek"], new Dictionary { { "data-condition", "dgClassroomList" } }) @Html.Hidden("weekDay", Request["weekDay"], new Dictionary { { "data-condition", "dgClassroomList" } }) @Html.Hidden("coursesTimeID", Request["coursesTimeID"], new Dictionary { { "data-condition", "dgClassroomList" } })
  • 所在建筑物:
  • @Html.ComboGrid(cgop, new Dictionary { { "data-condition", "dgClassroomList" } })
  • @*
  • 教室类型:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_ClassroomType, new DropdownListOptions { Name = "ClassroomType", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgClassroomList" } })
  • *@
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="ClassroomID" }, new BoundFieldColumn { FieldName="Code", HeaderText="教室代码", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="FloorLevel", HeaderText="所在楼层", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Totalseating", HeaderText="总座位数", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="IsAvailableName", HeaderText="是否可用", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/FreeSelectionCourseApply/GetCourseProcessClassroomList"), ID = "dgClassroomList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })