1234567891011121314151617181920212223242526272829303132333435363738394041 |
- var isFirstLoadCollege = true;
- function QueryCollegeDropdownList(data) {
- if (((data.length && data.length > 0) || data)) {
- if (isFirstLoadCollege) {
- isFirstLoadCollege = false;
- } else {
- if (data.length > 0) {
- $("#CollegeDropdown").combobox("setValue", data[0].Value);
- } else {
- $("#CollegeDropdown").combobox("clear");
- }
- }
- //reload();
- }
- }
- function Report_Search() {
- var schoolYearID = $("#SchoolYearDropdown").combobox("getValue");
- var collegeID = $("#CollegeDropdown").combobox("getValue");
- collegeID = collegeID == -1 ? "=" : "=" + collegeID;
- if (collegeID == -1 || collegeID == "")
- $.messager.alert("系统信息", "请选择院系所");
- else {
- if (CMS_SystemConfig.ReportType == 1) {
- $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationScheduling%2fTeacherSchedulingPrintView&CollegeID_RAP" + collegeID + "&SchoolyearID_RAP=" + schoolYearID);
- }
- if (CMS_SystemConfig.ReportType == 2) {
- var fileUrl = CMS_SystemConfig.VirtualDirectoryPath + "/EducationSchedulingReport/TeacherPrintSchedulingPDF?CollegeID=" + collegeID + "&SchoolyearID=" + schoolYearID;
- $("#reportContent").attr("src", CMS_SystemConfig.VirtualDirectoryPath + "/Scripts/pdf.js/web/viewer.html?file=" + encodeURIComponent(fileUrl));
- }
- }
- }
- //function reload() {
- // var schoolYearID = $("#SchoolYearDropdown").combobox("getValue");
- // var collegeID = $("#CollegeDropdown").combobox("getValue");
- // $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationScheduling%2fTeacherSchedulingPrintView&CollegeID_RAP=" + collegeID + "&SchoolyearID_RAP=" + schoolYearID);
- //}
|