var isFirstLoadCollege = true; function QueryCollegeDropdownList(data) { if (((data.length && data.length > 0) || data)) { if (isFirstLoadCollege) { isFirstLoadCollege = false; } else { if (data.length > 0) { $("#CollegeDropdown").combobox("setValue", data[0].Value); } else { $("#CollegeDropdown").combobox("clear"); } } } reload(); } function reload() { if ($.data($("#DictionarySchoolyear")[0], "combobox") && $.data($("#DictionaryStandard")[0], "combogridX")) { var schoolYearID = $("#SchoolYearDropdown").combobox("getValue"); var collegeID = $("#CollegeDropdown").combobox("getValue"); var year = $("#DictionarySchoolyear").combobox("getValue"); var yearString = ""; var standardID = $("#DictionaryStandard").combogridX("getValue"); var standardString = ""; if (year == nonSelect) { yearString = "Year_RAP="; } else { yearString = "Year_RAP=" + year; } if (standardID == nonSelect || standardID == "") { standardString = "StandardID_RAP="; } else { standardString = "StandardID_RAP=" + standardID; } //教学任务状态 var statusIDs = document.getElementsByName("StatusID"); var statusList = ""; for (i = 0; i < statusIDs.length; i++) { if (statusIDs[i].checked) { statusList = statusList + statusIDs[i].value + ','; } } statusList = statusList.substring(0, statusList.length - 1); $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationManage%2fCourseProcessSumary&CollegeID_RAP=" + collegeID + "&SchoolyearID_RAP=" + schoolYearID + "&" + yearString + "&" + standardString + "&StatusID_RAP=" + statusList + "&ClassScheduleWeekTimeCount_RAP=" + Count); } } function SelectCollegeDropdownList(data) { $("#DictionaryStandard").combogridX("setValue", "-1"); var collegeID = $("#CollegeDropdown").combobox("getValue"); if (collegeID != nonSelect) { var jsonString = "({'QueryParamsDatas':'CollegeDropdown|*|" + collegeID + "|@|'})"; $("#DictionaryStandard").combogridX("reload", eval(jsonString)); } reload(); } //联动查询 function queryStandard(data) { queryClass(); reload(); } function queryCollege(data) { var campusID = $("#CampusDropdown").combogridX("getValue"); var collegeID = $("#CollegeDropdown").combogridX("getValue"); var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@|"; jsonString += "CollegeDropdown|*|" + collegeID + "|@|'})"; $("#CollegeDropdown").combogridX("reload", eval(jsonString)); $("#StandardDictionaryDropDown").combogridX("reload", eval(jsonString)); // if (campusID != nonSelect) { // var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@|'})"; // $("#CollegeDropdown").combogridX("reload", eval(jsonString)); // } queryClass(); reload(); } function queryClass() { var jsonString = ""; var parameterString = ""; //var campusID = $("#CampusDropdown").combogridX("getValue"); var collegeID = $("#CollegeDropdown").combobox("getValue"); //var educationID = $("#Education").combobox("getValue"); var schoolYearID = $("#DictionarySchoolyear").combobox("getValue"); var standardID = $("#DictionaryStandard").combogridX("getValue"); //var learningFormID = $("#LearningformDictionaryDropDown").combobox("getValue"); //if (campusID != nonSelect) parameterString += "CampusDropdown|*|" + campusID + "|@|"; if (collegeID != nonSelect) parameterString += "CollegeDropdown|*|" + collegeID + "|@|"; //if (educationID != nonSelect) parameterString += "DictionaryEducation|*|" + educationID + "|@|"; if (schoolYearID != nonSelect) parameterString += "DictionaryGrade|*|" + schoolYearID + "|@|"; if (standardID != nonSelect) parameterString += "DictionaryStandard|*|" + standardID + "|@|"; //if (learningFormID != nonSelect) parameterString += "DictionaryLearningform|*|" + learningFormID + "|@|"; if (parameterString != "") { jsonString = "({'QueryParamsDatas':'" + parameterString + "'})"; $("#DictionaryStandard").combogridX("reload", eval(jsonString)); } else { $("#DictionaryStandard").combogridX("reload"); } reload(); }