Generate.js 1.6 KB

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