GenerateResitExaminationEdit.js 1.5 KB

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