@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="建筑物名称", Align=AlignStyle.Center, Width=0.2 } }, 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, Width=0.04 }, new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Align=AlignStyle.Center, Width=0.1 }, //new BoundFieldColumn { FieldName="FloorLevel", HeaderText="所在楼层", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="Totalseating", HeaderText="总座位数", Align=AlignStyle.Center, Width=0.05 }, //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="IsAvailableName", HeaderText="是否可用", Align=AlignStyle.Center, Width=0.04 } }, PageSize = 20, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/RetakePlanTask/GetCourseProcessClassroomList"), ID = "dgClassroomList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })