ClearAutoSchedule.js 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. function SelectCollegeComboGrid(data) {
  2. if (data != null) {
  3. reloadStandard();
  4. }
  5. }
  6. function SelectDictionaryGrade(data) {
  7. if (data.Value != "-1") {
  8. selectClass();
  9. }
  10. }
  11. function reloadStandard() {
  12. var url = CMS_SystemConfig.VirtualDirectoryPath + "/Facultymajor/BindStandardDropDownList?bindType=0";
  13. var collegeID = $("#CollegeID").combogridX("getValue");
  14. if (collegeID != nonSelect) url += "&collegeID=" + collegeID;
  15. $("#StandardID").combobox("reload", url);
  16. }
  17. function SelectStandard(data) {
  18. if (data != null) {
  19. selectClass();
  20. }
  21. }
  22. function selectClass() {
  23. var collegeID = $("#CollegeID").combogridX("getValue");
  24. var year = $("#Year").combobox("getValue");
  25. var standard = $("#StandardID").combobox("getValue");
  26. var jsonString = "({'QueryParamsDatas':'CollegeDropdown|*|" + collegeID + "|@|DictionaryGrade|*|" + year
  27. + "|@|DictionaryStandard|*|" + standard + "|@|'})";
  28. $("#ClassmarjorID").combogridX("reload", eval(jsonString));
  29. }
  30. function ClearAutoSchedule_Confirm() {
  31. $(document.forms[0]).submit();
  32. }