GenerateFinalExamination.js 1.5 KB

1234567891011121314151617181920212223242526272829
  1. 
  2. function queryCollege(data) {
  3. queryClass();
  4. }
  5. function queryClass() {
  6. var jsonString = "";
  7. var parameterString = "";
  8. //var campusID = $("#CampusDropdown").combogridX("getValue");
  9. var collegeID = $("#CollegeDropdown").combogridX("getValue");
  10. //var educationID = $("#Education").combobox("getValue");
  11. var schoolYearID = $("#SchoolyearDictionaryDropDown").combobox("getValue");
  12. var standardID = $("#StandardDictionaryDropDown").combogridX("getValue");
  13. //var learningFormID = $("#LearningformDictionaryDropDown").combobox("getValue");
  14. //if (campusID != nonSelect) parameterString += "CampusDropdown|*|" + campusID + "|@|";
  15. if (collegeID != nonSelect) parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
  16. //if (educationID != nonSelect) parameterString += "DictionaryEducation|*|" + educationID + "|@|";
  17. if (schoolYearID != nonSelect) parameterString += "DictionaryGrade|*|" + schoolYearID + "|@|";
  18. if (standardID != nonSelect) parameterString += "DictionaryStandard|*|" + standardID + "|@|";
  19. //if (learningFormID != nonSelect) parameterString += "DictionaryLearningform|*|" + learningFormID + "|@|";
  20. if (parameterString != "") {
  21. jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
  22. $("#ClassmajorDropdown").combogridX("reload", eval(jsonString));
  23. $("#StandardDictionaryDropDown").combogridX("reload", eval(jsonString));
  24. } else {
  25. $("#ClassmajorDropdown").combogridX("reload");
  26. $("#StandardDictionaryDropDown").combogridX("reload");
  27. }
  28. }