@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("CollegeDropdown", Request["CollegeID"], new Dictionary { { "data-condition", "dgClassroomList" } }) @Html.Hidden("MinSeatCount", Request["MinSeatCount"], new Dictionary { { "data-condition", "dgClassroomList" } })
  • 所在建筑物:
  • @Html.ComboGrid(cgop, 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("~/EducationMissionClass/GetCourseProcessClassroomList"), ID = "dgClassroomList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })