function queryTeacher(data) { if (((data.length && data.length > 0) || data) && $("#cgbTeacher").length > 0 && $.data($("#cgbTeacher")[0], "combogridX")) { var jsonString = "({'QueryParamsDatas':'"; var collegeID = $("#ddlCollege").combobox("getValue"); if (collegeID != nonSelect) { jsonString += "CollegeDropdown|*|" + collegeID + "|@|"; } jsonString += "'})"; $("#cgbTeacher").combogridX("reload", eval(jsonString)); } } function queryStandard() { try { var jsonString = "({'QueryParamsDatas':'"; var yearID = $("#ddlYear").combobox("getValue"); if (yearID != nonSelect) { jsonString += "DictionaryGrade|*|" + yearID + "|@|"; } jsonString += "'})"; $("#cgbStandard").combogridX("reload", eval(jsonString)); queryClass(); } catch (e) { } } function queryClass() { try { var jsonString = "({'QueryParamsDatas':'"; var yearID = $("#ddlYear").combobox("getValue"); var standardID = $("#cgbStandard").combogridX("getValue"); if (yearID != nonSelect) { jsonString += "DictionaryGrade|*|" + yearID + "|@|"; } if (standardID != nonSelect) { jsonString += "DictionaryStandard|*|" + standardID + "|@|"; } jsonString += "'})"; $("#cgbClassmajor").combogridX("reload", eval(jsonString)); } catch (e) { } } function reload() { var schoolYearID = $("#ddlSchoolyear").combobox("getValue"); var collegeID = $("#ddlCollege").combobox("getValue"); var userID = $("#cgbTeacher").combogridX("getValue"); var yearID = $("#ddlYear").combobox("getValue"); var standardID = $("#cgbStandard").combogridX("getValue"); var classmajorID = $("#cgbClassmajor").combogridX("getValue"); var coursematerialID = $("#cgbCourse").combogridX("getValue"); if (collegeID == nonSelect) collegeID = null; if (userID == nonSelect) userID = null; if (yearID == nonSelect) yearID = null; if (standardID == nonSelect) standardID = null; if (classmajorID == nonSelect) classmajorID = null; if (coursematerialID == nonSelect) coursematerialID = null; top.ReportParameter = { SchoolyearID: schoolYearID, CollegeID: collegeID, TeacherUserID: userID, GradeyearID: yearID, StandardID: standardID, ClassmajorID: classmajorID, CoursematerialID: coursematerialID }; if (schoolYearID == nonSelect || !schoolYearID) $.messager.alert("系统信息", "请选择学年学期。"); else $("#reportContent").attr("src", CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fPaymentManage%2fCollegeTeacherReport"); }