MyReport.js 1.2 KB

1234567891011121314151617181920
  1. var isFirstLoadDepartment = true;
  2. var isFirstLoadStaff = true;
  3. function reload() {
  4. var schoolYearID = $("#SchoolYearDropdown").combobox("getValue");
  5. var collegeID = $("#CollegeID").val();
  6. //collegeID = collegeID == -1 ? ":isnull=true" : "=" + collegeID;
  7. var userID = $("#UserID").val();
  8. // if (userID == -1 || userID == "")
  9. // $.messager.alert("系统信息", "请选择教师");
  10. // else
  11. //$("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationScheduling%2fTeacherselfSchedulingView&UserID_RAP=" + userID + "&SchoolyearID_RAP=" + schoolYearID);
  12. if (CMS_SystemConfig.ReportType == 1) {
  13. $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationScheduling%2fTeacherselfSchedulingView&UserID_RAP=" + userID + "&SchoolyearID_RAP=" + schoolYearID);
  14. }
  15. if (CMS_SystemConfig.ReportType == 2) {
  16. var fileUrl = CMS_SystemConfig.VirtualDirectoryPath + "/EducationSchedulingReport/TeacherselfSchedulingPDF?UserID=" + userID + "&SchoolyearID=" + schoolYearID;
  17. $("#reportContent").attr("src", CMS_SystemConfig.VirtualDirectoryPath + "/Scripts/pdf.js/web/viewer.html?file=" + encodeURIComponent(fileUrl));
  18. }
  19. }