function reload() { $("#dgClassmajorList").cmsXDataTable("load", $.getDataGridParams("dgClassmajorList")); } //获取选中的数据 function validChoose() { var d = []; $.each($("#dgClassmajorList").cmsXDataTable("getSelections"), function (index) { d.push(this); }); return d; } function QueryCollegeComboGridList(data) { var collegeID = $("#CollegeDropdown").combogridX("getValue"); var yearID = document.getElementsByName("DictionarySchoolyear")[0].value; var parameterString = ""; $("#DictionaryStandard").combogridX("setValue", "-1"); var collegeID = $("#CollegeDropdown").combogridX("getValue"); if (collegeID != nonSelect) { parameterString += "CollegeDropdown|*|" + collegeID + "|@|"; } var schoolyearID = $("#DictionarySchoolyear").combobox("getValue"); if (schoolyearID != nonSelect) { parameterString += "DictionaryGrade|*|" + schoolyearID + "|@|"; } if (parameterString != "") { jsonString = "({'QueryParamsDatas':'" + parameterString + "'})"; $("#DictionaryStandard").combogridX("reload", eval(jsonString)); } else { $("#DictionaryStandard").combogridX("reload"); } queryClass(); } function QueryStandardDropdownList(data) { queryClass(); } function QueryEducationDropdownList(data) { reload(); } function QueryLearningformDropdownList(data) { QueryCollegeComboGridList(data); } function queryStandard(data) { queryClass(); reload(); } function queryClass() { var jsonString = ""; var parameterString = ""; var campusID = $("#CampusDropdown").combogridX("getValue"); var collegeID = $("#CollegeDropdown").combogridX("getValue"); var standardID = $("#DictionaryStandard").combogridX("getValue"); var schoolyearID = $("#DictionarySchoolyear").combobox("getValue"); if (schoolyearID != nonSelect) parameterString += "DictionaryGrade|*|" + schoolyearID + "|@|"; if (campusID != nonSelect) parameterString += "CampusDropdown|*|" + campusID + "|@|"; if (collegeID != nonSelect) parameterString += "CollegeDropdown|*|" + collegeID + "|@|"; if (standardID != nonSelect) parameterString += "DictionaryStandard|*|" + standardID + "|@|"; if (parameterString != "") { jsonString = "({'QueryParamsDatas':'" + parameterString + "'})"; $("#GrademajorComboGrid").combogridX("reload", eval(jsonString)); } else { $("#GrademajorComboGrid").combogridX("reload"); } reload(); }