StudentReport.js 835 B

1234567891011121314
  1. var isFirstLoadCollege = true;
  2. function Report_Search() {
  3. var schoolYearID = $("#SchoolYearDropdown").combobox("getValue");
  4. var UserID = $("#StudentNo").combogridX("getValue");
  5. if (CMS_SystemConfig.ReportType == 1) {
  6. $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationScheduling%2fStudentForTeacherSchedulingView&StudentNo_RAP=" + UserID + "&SchoolyearID_RAP=" + schoolYearID);
  7. }
  8. if (CMS_SystemConfig.ReportType == 2) {
  9. var fileUrl = CMS_SystemConfig.VirtualDirectoryPath + "/EducationSchedulingReport/StudentForTeacherSchedulingPDF?StudentNo=" + UserID + "&SchoolyearID=" + schoolYearID;
  10. $("#reportContent").attr("src", CMS_SystemConfig.VirtualDirectoryPath + "/Scripts/pdf.js/web/viewer.html?file=" + encodeURIComponent(fileUrl));
  11. }
  12. }