GradeyearReport.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. 
  2. function queryStandard() {
  3. try {
  4. var jsonString = "({'QueryParamsDatas':'";
  5. var collegeID = $("#ddlCollege").combobox("getValue");
  6. var yearID = $("#ddlYear").combobox("getValue");
  7. if (collegeID != nonSelect) {
  8. jsonString += "CollegeDropdown|*|" + collegeID + "|@|";
  9. }
  10. if (yearID != nonSelect) {
  11. jsonString += "DictionaryGrade|*|" + yearID + "|@|";
  12. }
  13. jsonString += "'})";
  14. $("#cgbStandard").combogridX("reload", eval(jsonString));
  15. } catch (e) { }
  16. }
  17. function reload() {
  18. var schoolYearID = $("#ddlSchoolyear").combobox("getValue");
  19. var collegeID = $("#ddlCollege").combobox("getValue");
  20. var yearID = $("#ddlYear").combobox("getValue");
  21. var standardID = $("#cgbStandard").combogridX("getValue");
  22. if (yearID == nonSelect) yearID = null;
  23. if (standardID == nonSelect) standardID = null;
  24. top.ReportParameter = {
  25. CollegeID: collegeID,
  26. SchoolyearID: schoolYearID,
  27. GradeyearID: yearID,
  28. StandardID: standardID
  29. };
  30. if (schoolYearID == nonSelect || !schoolYearID)
  31. $.messager.alert("系统信息", "请选择学年学期。");
  32. else if (collegeID == nonSelect || !collegeID)
  33. $.messager.alert("系统信息", "请选择" + collegeTitle + "。");
  34. else if (yearID == nonSelect || !yearID)
  35. $.messager.alert("系统信息", "请选择年级。");
  36. else
  37. $("#reportContent").attr("src", CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fPaymentManage%2fGradeyearReport");
  38. }