ExaminationSchedule.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. var isFirstLoadSchoolyear = true;
  2. //var customReportNameSetting = $(CMS_SystemConfig.GetConfig()).find("configuration>reportServer>customReportName[name='ExaminationSchedule']");
  3. //var reportName = "ExaminationSchedule";
  4. //if (customReportNameSetting) {
  5. // if (customReportNameSetting.attr("customName")) {
  6. // reportName = customReportNameSetting.attr("customName");
  7. // }
  8. //}
  9. function SchoolyearLoaded(data) {
  10. if (((data.length && data.length > 0) || data)) {
  11. if (isFirstLoadSchoolyear) {
  12. isFirstLoadSchoolyear = false;
  13. } else {
  14. reload();
  15. }
  16. }
  17. }
  18. function reload() {
  19. var schoolYearID = $("#SchoolYearDropdown").combobox("getValue");
  20. var examsCategoryID = $("#ddlExamsCategory").combobox("getValue");
  21. var collegeID = $("#ddlCollege").combobox("getValue");
  22. var statusID = $("#ddlExaminationPlanStatus").combobox("getValue");
  23. var YearID = $("#DictionaryGrade").combobox("getValue");
  24. var collegeString = "CollegeID_RAP=";
  25. if (collegeID != nonSelect) {
  26. collegeString = "CollegeID_RAP=" + collegeID;
  27. }
  28. var YearString = "YearID_RAP=";
  29. if (YearID != nonSelect) {
  30. YearString = "YearID_RAP=" + YearID;
  31. }
  32. if (collegeID != nonSelect) {
  33. collegeString = "CollegeID_RAP=" + collegeID;
  34. }
  35. var statusString = "RecordStatus_RAP=";
  36. if (statusID != nonSelect) {
  37. statusString = "RecordStatus_RAP=" + statusID;
  38. }
  39. var examsCategoryString = "ExamsCategoryID_RAP=";
  40. if (examsCategoryID != nonSelect) {
  41. examsCategoryString = "ExamsCategoryID_RAP=" + examsCategoryID;
  42. }
  43. $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fExaminationManage%2fExaminationSchedule&rs:Command=Render&SchoolyearID_RAP=" + schoolYearID + "&" + examsCategoryString + "&" + statusString + "&" + collegeString + "&" + YearString);
  44. }