@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ComboGridOptions cgopCampus = new ComboGridOptions { TextField = "Name", ValueField = "CampusID", OnSelect = "QueryCampusComboGridList", Name = "CampusDropdown", ID = "CampusDropdown", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Campus/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions cgopCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", OnSelect = "QueryCollegeComboGridList", Name = "CollegeDropdown", ID = "CollegeDropdown", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; 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("IsSpecialDictionaryDropDown", Request["IsAvailable"], new Dictionary { { "data-condition", "dgClassroomList" } }) @Html.Hidden("MinSeatCount", Request["MinSeatCount"], new Dictionary { { "data-condition", "dgClassroomList" } })
  • @EMIS.Utility.RSL.Get("Campus"):
  • @Html.ComboGrid(cgopCampus, new Dictionary { { "data-condition", "dgClassroomList" } })
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.ComboGrid(cgopCollege, new Dictionary { { "data-condition", "dgClassroomList" } })
  • 所在建筑物:
  • @Html.ComboGrid(cgop, new Dictionary { { "data-condition", "dgClassroomList" } })
  • @if (Request["IsAvailable"] == "") {
  • 是否可用:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "IsSpecialDictionaryDropDown", OnSelect = "QueryIsSpecialDropdownList" }, 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("~/Classroom/List?lodaType=1&IsSpecialDictionaryDropDown=1"), ID = "dgClassroomList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })