//获取选中的数据 function validChoose() { var d = []; $.each($("#dgList").cmsXDataTable("getSelections"), function (index) { d.push(this); }); return d; } //联动查询 function queryStandard(data) { reload(); } function queryCollege(data) { var campusID = $("#cbgCampus").combogridX("getValue"); var collegeID = $("#cbgCollege").combogridX("getValue"); var jsonString = "({'QueryParamsDatas':'cbgCampus|*|" + campusID + "|@|"; jsonString += "cbgCollege|*|" + collegeID + "|@|'})"; $("#cbgCollege").combogridX("reload", eval(jsonString)); $("#cbgStandard").combogridX("reload", eval(jsonString)); reload(); } function reload() { $("#dgList").cmsXDataTable("load", $.getDataGridParams("dgList")); } function BatchSelect_Confirm() { var d = validChoose(); var windowID = $.SystemGeneral.getUrlParam("WindowID"); if (d.length == 0) { $.messager.alert("系统提示", "请选择要批量处理的学生。"); return; } top.$("#" + windowID).data("resultData", d); top.$("#" + windowID).dialog("close"); }