GrademajorReport.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. var isFirstLoadCollege = true;
  2. $(function () {
  3. $("#txtGroupCount").on("change", reload);
  4. })
  5. function QueryCollegeDropdownList(data) {
  6. if (((data.length && data.length > 0) || data)) {
  7. if (isFirstLoadCollege) {
  8. isFirstLoadCollege = false;
  9. } else {
  10. if (data.length > 0) {
  11. $("#CollegeDropdown").combobox("setValue", data[0].Value);
  12. } else {
  13. $("#CollegeDropdown").combobox("clear");
  14. }
  15. }
  16. reload();
  17. }
  18. }
  19. function reload() {
  20. var schoolYearID = $("#SchoolYearDropdown").combobox("getValue");
  21. var collegeID = $("#CollegeDropdown").combobox("getValue");
  22. var groupCount = $("#txtGroupCount").val();
  23. if (groupCount == "" || isNaN(groupCount)) {
  24. $.messager.alert("系统信息", "填写正确的分组数");
  25. }
  26. if (collegeID == -1 || collegeID == "") {
  27. $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationScheduling%2fGrademajorSchedulingView&CollegeID_RAP=&SchoolyearID_RAP=" + schoolYearID + "&GroupCount_RAP=" + groupCount);
  28. } else {
  29. $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationScheduling%2fGrademajorSchedulingView&CollegeID_RAP=" + collegeID + "&SchoolyearID_RAP=" + schoolYearID + "&GroupCount_RAP=" + groupCount);
  30. }
  31. }