NotPassStudent.js 1.7 KB

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