OptionalCourseSettingCreate.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. function QueryCampusComboGridList() {
  2. var campusID = $("#CampusID").combogridX("getValue");
  3. if (campusID != nonSelect) {
  4. var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@|'})";
  5. $("#CollegeID").combogridX("reload", eval(jsonString));
  6. }
  7. $("#StandardID").combogridX("reload", eval(jsonString));
  8. $("#Years").combogridX("reload", eval(jsonString));
  9. reloadGrademajor();
  10. }
  11. function QueryCollegeComboGridList(data) {
  12. var campusID = $("#CampusID").combogridX("getValue");
  13. var collegeID = $("#CollegeID").combogridX("getValue");
  14. var jsonString = "({'QueryParamsDatas':'CollegeDropdown|*|" + collegeID + "|@|CampusDropdown|*|" + campusID + "|@|'})";
  15. $("#StandardID").combogridX("reload", eval(jsonString));
  16. $("#Years").combogridX("reload", eval(jsonString));
  17. reloadGrademajor();
  18. }
  19. function QueryYearDropdownList(data) {
  20. reloadGrademajor();
  21. }
  22. function QueryStandardDropdownList(data) {
  23. //$("#YearID").combogridX("reload", eval(jsonString));
  24. reloadGrademajor();
  25. }
  26. function reloadGrademajor() {
  27. var campusID = $("#CampusID").combogridX("getValue");
  28. var collegeID = $("#CollegeID").combogridX("getValue");
  29. // var yearID = $("#YearID").combobox("getValue");
  30. var yearID = $("#Years").combogridX("getValue");
  31. var standardID = $("#StandardID").combogridX("getValue");
  32. var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID
  33. + "|@|CollegeDropdown|*|" + collegeID
  34. + "|@|DictionaryGrade|*|" + yearID
  35. + "|@|DictionaryStandard|*|" + standardID
  36. + "|@|'})";
  37. $("#CollegeID").combogridX("reload", eval(jsonString));
  38. $("#StandardID").combogridX("reload", eval(jsonString));
  39. $("#Years").combogridX("reload", eval(jsonString));
  40. $("#GrademajorID").combogridX("reload", eval(jsonString));
  41. }
  42. function OptionalCourseSetting_Save() {
  43. $(document.forms[0]).submit();
  44. }
  45. function QueryCoursematerialComboGrid(data) {
  46. //reload();
  47. }