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