function reload() { $("#dgClassmajorList").cmsXDataTable("load", $.getDataGridParams("dgClassmajorList")); } //获取选中的数据 function validChoose() { var d = []; $.each($("#dgClassmajorList").cmsXDataTable("getSelections"), function (index) { d.push(this); }); return d; } function Class_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"); } function QueryCampusComboGridList() { var campusID = $("#CampusDropdown").combogridX("getValue"); if (campusID != nonSelect) { var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@|'})"; $("#CollegeDropdown").combogridX("reload", eval(jsonString)); } reload(); } function QueryCollegeComboGridList(data) { var collegeID = $("#CollegeDropdown").combogridX("getValue"); var yearID = document.getElementsByName("DictionarySchoolyear")[0].value; //if (collegeID != nonSelect) { var jsonString = "({'QueryParamsDatas':'CollegeDropdown|*|" + collegeID + "|@|DictionaryGrade|*|" + yearID + "|@|'})"; $("#GrademajorComboGrid").combogridX("reload", eval(jsonString)); //} reload(); } function QueryStandardDropdownList(data) { reload(); } function QueryEducationDropdownList(data) { reload(); } function QueryLearningformDropdownList(data) { var collegeID = $("#CollegeDropdown").combogridX("getValue"); var jsonString = "({'QueryParamsDatas':'DictionaryGrade|*|" + data.Value; jsonString += "|@|CollegeDropdown|*|" + collegeID; jsonString += "|@|'})"; $("#GrademajorComboGrid").combogridX("reload", eval(jsonString)); reload(); }