123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- @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<DataGridColumn>()
- {
- 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{
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- function reload() {
- $("#dgClassroomList").cmsXDataTable("load", $.getDataGridParams("dgClassroomList"));
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgClassroomList").cmsXDataTable("getSelections"), function (index) {
- d.push(this);
- });
- return d;
- }
- function QueryBuildingsDropdownList(data) {
- reload();
- }
- function Classroom_Confirm() {
- var d = validChoose();
- var windowID = $.SystemGeneral.getUrlParam("WindowID");
- var maxSelect = $.SystemGeneral.getUrlParam("MaxSelect");
- if (!maxSelect || isNaN(maxSelect)) maxSelect = 0;
- if (d.length == 0) {
- $.messager.alert("系统提示", "请选择教室。");
- return;
- }
- if (maxSelect > 0 && d.length > maxSelect) {
- $.messager.alert("系统提示", "只能选择" + maxSelect + "项记录。");
- return;
- }
- top.$("#" + windowID).data("resultData", d);
- top.$("#" + windowID).dialog("close");
- }
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- <div class="p_title">
- @*<div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- 教室信息列表
- </div>*@
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
- <div class="current_navbar toolbar">
- <div class="func_info">
- <a class="easyui-linkbutton" href="javascript:Classroom_Confirm()" data-options="iconCls:'icon-ok',plain:'true'"
- onfocus="this.blur()">选中</a>
- </div>
- </div>
- </div>
- </div>
- <form id="formQuery" method="post">
- @*@Html.PositionCondition("ClassroomSelect", null)*@
- @*@Html.Hidden("ClassroomType", Request["ClassroomTypeID"], new Dictionary<string, object> { { "data-condition", "dgClassroomList" } })*@
- @Html.Hidden("schedulingWeek", Request["schedulingWeek"], new Dictionary<string, object> { { "data-condition", "dgClassroomList" } })
- @Html.Hidden("weekDay", Request["weekDay"], new Dictionary<string, object> { { "data-condition", "dgClassroomList" } })
- @Html.Hidden("coursesTimeID", Request["coursesTimeID"], new Dictionary<string, object> { { "data-condition", "dgClassroomList" } })
- <div class="search_keyword">
- <div class="search_input">
- <ul>
- <li class="sn" style="padding-left: 5px;">建筑名称:</li>
- <li class="sv">
- @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgClassroomList" } })
- </li>
- @*<li class="sn" style="padding-left: 5px;">教室类型:</li>
- <li class="sv">
- @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_ClassroomType, new DropdownListOptions { Name = "ClassroomType", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgClassroomList" } })
- </li>*@
- </ul>
- </div>
- </div>
- </form>
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- 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
- })
- </div>
- </div>
|