var isFirstLoadGrademajor = true; var isFirstLoadClassmajor = true; function Report_Search() { var schoolYearID = $("#SchoolYearDropdown").combobox("getValue"); var classmajorID = $("#ClassmajorDropdown").combogridX("getValue"); if (classmajorID==-1) { classmajorID = classmajorID == -1 ? "=" : "=" + classmajorID; } else { classmajorID = classmajorID == "" ? "=" : "=" + classmajorID; } $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationScheduling%2fAdultClassmajorView&ClassmajorID_RAP" + classmajorID + "&SchoolyearID_RAP=" + schoolYearID); } function QueryCollegeDropdownList() { queryClass(); } function SelectGrademajorDropdownList() { var url = CMS_SystemConfig.VirtualDirectoryPath + "/Classmajor/BindDropdownListByGrademajorID?bindType=PleaseSelect"; var grademajorID = $("#GrademajorDropdown").combobox("getValue"); if (grademajorID != nonSelect) url += "&grademajorID=" + grademajorID; $("#ClassmajorDropdown").combobox("reload", url); SelectGrademajorDropdownList } function QueryGrademajorDropdownList(data) { if (((data.length && data.length > 0) || data) && $("#ClassmajorDropdown").length > 0 && $.data($("#ClassmajorDropdown")[0], "combobox")) { var url = CMS_SystemConfig.VirtualDirectoryPath + "/Classmajor/BindDropdownListByGrademajorID?bindType=PleaseSelect"; if (isFirstLoadGrademajor) { isFirstLoadGrademajor = false; } else { if (data.length > 0) { $("#GrademajorDropdown").combobox("setValue", data[0].Value); } else { $("#GrademajorDropdown").combobox("clear"); } } var grademajorID = $("#GrademajorDropdown").combobox("getValue"); if (grademajorID != nonSelect) url += "&grademajorID=" + grademajorID; $("#ClassmajorDropdown").combobox("reload", url); } } function QueryClassmajorDropdownList(data) { if (((data.length && data.length > 0) || data)) { if (isFirstLoadClassmajor) { isFirstLoadClassmajor = false; } else { if (data.length > 0) { $("#ClassmajorDropdown").combobox("setValue", data[0].Value); } else { $("#ClassmajorDropdown").combobox("clear"); } } queryClass(); } } function QueryLearningformDropdownList() { } function SelectClassmajorDropdownList() { // // var url = CMS_SystemConfig.VirtualDirectoryPath + "/Classmajor/BindDropdownListByYearOrStandard?bindType=PleaseSelect"; // var jsonString = "({'QueryParamsDatas':'"; // var year = $("#DictionarySchoolyear").combobox("getValue"); // //if (year != nonSelect) url += "&year=" + year; // if (year != nonSelect) jsonString += "DictionaryGrade|*|" + year + "|@|"; // var standardID = $("#DictionaryStandard").combogridX("getValue"); // //if (standardID != nonSelect) url += "&standardID=" + standardID; // if (standardID != nonSelect) jsonString += "DictionaryStandard|*|" + standardID + "|@|"; // $("#ClassmajorDropdown").combogridX("reload", eval(jsonString + "'})")); queryClass(); } function reload() { var schoolYearID = $("#SchoolYearDropdown").combobox("getValue"); var collegeID = $("#CollegeDropdown").combogridX("getValue"); var classmajorID = $("#ClassmajorDropdown").combogridX("getValue"); var standardID = $("#DictionaryStandard").combogridX("getValue"); } function queryClass() { var jsonString = ""; var parameterString = ""; var collegeID = $("#CollegeDropdown").combogridX("getValue"); var schoolYearID = $("#DictionarySchoolyear").combobox("getValue"); var standardID = $("#DictionaryStandard").combogridX("getValue"); var educationID = $("#DictionaryEducation").combobox("getValue"); var LearnSystem = $("#DictionaryLearnSystem").combogridX("getValue"); var learningFormID = $("#LearningformDictionaryDropDown").combobox("getValue"); if (collegeID != nonSelect) parameterString += "CollegeDropdown|*|" + collegeID + "|@|"; if (schoolYearID != nonSelect) parameterString += "DictionaryGrade|*|" + schoolYearID + "|@|"; if (standardID != nonSelect) parameterString += "DictionaryStandard|*|" + standardID + "|@|"; if (educationID != nonSelect) parameterString += "DictionaryEducation|*|" + educationID + "|@|"; if (learningFormID != nonSelect) parameterString += "DictionaryLearningform|*|" + learningFormID + "|@|"; if (LearnSystem != nonSelect) parameterString += "DictionaryLearnSystem|*|" + LearnSystem + "|@|"; if (parameterString != "") { jsonString = "({'QueryParamsDatas':'" + parameterString + "'})"; $("#ClassmajorDropdown").combogridX("reload", eval(jsonString)); $("#DictionaryStandard").combogridX("reload", eval(jsonString)); } else { $("#ClassmajorDropdown").combogridX("reload"); $("#DictionaryStandard").combogridX("reload"); } reload(); }