GenerateExecutableMinorPlan.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. $("#YearID").combogridX("reload", eval(jsonString));
  9. reload();
  10. }
  11. function QueryYearDropdownList(data) {
  12. reloadGrademajor();
  13. }
  14. function QueryStandardDropdownList(data) {
  15. //$("#YearID").combogridX("reload", eval(jsonString));
  16. reload();
  17. }
  18. function reload() {
  19. var campusID = $("#CampusID").combogridX("getValue");
  20. var collegeID = $("#CollegeID").combogridX("getValue");
  21. // var yearID = $("#YearID").combobox("getValue");
  22. var yearID = $("#YearID").combogridX("getValue");
  23. var standardID = $("#StandardID").combogridX("getValue");
  24. var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID
  25. + "|@|CollegeDropdown|*|" + collegeID
  26. + "|@|DictionaryGrade|*|" + yearID
  27. + "|@|DictionaryStandard|*|" + standardID
  28. + "|@|'})";
  29. $("#CollegeID").combogridX("reload", eval(jsonString));
  30. $("#StandardID").combogridX("reload", eval(jsonString));
  31. $("#YearID").combogridX("reload", eval(jsonString));
  32. $("#GrademajorID").combogridX("reload", eval(jsonString));
  33. }
  34. function reloadGrademajor() {
  35. var campusID = $("#CampusID").combogridX("getValue");
  36. var collegeID = $("#CollegeID").combogridX("getValue");
  37. // var yearID = $("#YearID").combobox("getValue");
  38. var yearID = $("#YearID").combogridX("getValue");
  39. var standardID = $("#StandardID").combogridX("getValue");
  40. var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID
  41. + "|@|CollegeDropdown|*|" + collegeID
  42. + "|@|DictionaryGrade|*|" + yearID
  43. + "|@|DictionaryStandard|*|" + standardID
  44. + "|@|'})";
  45. $("#GrademajorID").combogridX("reload", eval(jsonString));
  46. }
  47. function ExecutableMinorPlanCreate_Confirm() {
  48. $(document.forms[0]).submit();
  49. }