function reload() { $("#dgClassroomList").cmsXDataTable("load", $.getDataGridParams("dgClassroomList")); } //获取选中的数据 function validChoose() { var d = []; $.each($("#dgClassroomList").cmsXDataTable("getSelections"), function (index) { d.push(this); }); return d; } function QueryCampusComboGridList() { var campusID = $("#CampusDropdown").combogridX("getValue"); if (campusID != nonSelect) { var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@|'})"; $("#CollegeDropdown").combogridX("reload", eval(jsonString)); } reload(); } function QueryCollegeComboGridList() { // var collegeID = $("#CollegeDropdown").combogridX("getValue"); // if (collegeID != nonSelect) { // var jsonString = "({'QueryParamsDatas':'CollegeDropdown|*|" + collegeID + "|@|'})"; // $("#BuildingsDropdown").combogridX("reload", eval(jsonString)); // } reload(); } function QueryBuildingsDropdownList(data) { reload(); } function QueryIsSpecialDropdownList(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"); }