ClassmajorBatchAdd.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //确定
  2. function Classmajor_BatchSave() {
  3. var BeForeYearID = $("#SchoolyearID").combobox("getValue");
  4. if (BeForeYearID == nonSelect) {
  5. $.messager.alert("系统提示", "请选择要复制的年级。");
  6. return;
  7. }
  8. var AfterYearID = $("#BatchSchoolyearID").combobox("getValue");
  9. if (AfterYearID == nonSelect) {
  10. $.messager.alert("系统提示", "请选择目标年级。");
  11. return;
  12. }
  13. if (BeForeYearID >= AfterYearID) {
  14. $.messager.alert("系统提示", "目标年级要大于复制的年级。");
  15. return;
  16. }
  17. $(document.forms[0]).submit();
  18. }
  19. function QueryComboGridList() {
  20. var parameterString = "";
  21. $("#StandardID").combogridX("setValue", "-1");
  22. var collegeID = $("#CollegeID").combogridX("getValue");
  23. if (collegeID != nonSelect) {
  24. parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
  25. }
  26. var schoolyearID = $("#SchoolyearID").combobox("getValue");
  27. if (schoolyearID != nonSelect) {
  28. parameterString += "DictionaryGrade|*|" + schoolyearID + "|@|";
  29. }
  30. if (parameterString != "") {
  31. jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
  32. $("#StandardID").combogridX("reload", eval(jsonString));
  33. } else {
  34. $("#StandardID").combogridX("reload");
  35. }
  36. }