GenerateEdit.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. function FinalExamination_SettingsGenerate() {
  2. $.messager.defaults = { ok: "是的", cancel: "暂时不" };
  3. $.messager.confirm("系统提示", "系统默认只生成已提交的教学任务,是否需要同时生成未提交的教学任务?", function (r) {
  4. if (r) {
  5. $("[name='IsGenerateNotSubmit']").val(true);
  6. } else {
  7. $("[name='IsGenerateNotSubmit']").val(false);
  8. }
  9. $(document.forms[0]).submit();
  10. });
  11. }
  12. function queryCollege(data) {
  13. queryClass();
  14. }
  15. function queryClass() {
  16. var jsonString = "";
  17. var parameterString = "";
  18. //var campusID = $("#CampusDropdown").combogridX("getValue");
  19. var collegeID = $("#CollegeDropdown").combogridX("getValue");
  20. //var educationID = $("#Education").combobox("getValue");
  21. var schoolYearID = $("#SchoolyearDictionaryDropDown").combobox("getValue");
  22. var standardID = $("#StandardDictionaryDropDown").combogridX("getValue");
  23. //var learningFormID = $("#LearningformDictionaryDropDown").combobox("getValue");
  24. //if (campusID != nonSelect) parameterString += "CampusDropdown|*|" + campusID + "|@|";
  25. if (collegeID != nonSelect) parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
  26. //if (educationID != nonSelect) parameterString += "DictionaryEducation|*|" + educationID + "|@|";
  27. if (schoolYearID != nonSelect) parameterString += "DictionaryGrade|*|" + schoolYearID + "|@|";
  28. if (standardID != nonSelect) parameterString += "DictionaryStandard|*|" + standardID + "|@|";
  29. //if (learningFormID != nonSelect) parameterString += "DictionaryLearningform|*|" + learningFormID + "|@|";
  30. if (parameterString != "") {
  31. jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
  32. $("#ClassmajorDropdown").combogridX("reload", eval(jsonString));
  33. $("#StandardDictionaryDropDown").combogridX("reload", eval(jsonString));
  34. } else {
  35. $("#ClassmajorDropdown").combogridX("reload");
  36. $("#StandardDictionaryDropDown").combogridX("reload");
  37. }
  38. }