12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- 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");
- }
- }
- }
- }
- function Report_Search() {
- var schoolYearID = $("#SchoolYearDropdown").combobox("getValue");
- var collegeID = $("#CollegeDropdown").combobox("getValue");
- var year = "";
- if (collegeID == -1 || collegeID == "") {
- $.messager.alert("系统信息", "请选择院系所");
- return;
- }
- collegeID = collegeID == -1 ? "=" : "=" + collegeID;
- var classmajorID = $("#ClassmajorDropdown").combogridX("getValue");
- if (classmajorID == -1 || classmajorID == "")
- $.messager.alert("系统信息", "请选择班级");
- else {
- if (CMS_SystemConfig.ReportType == 1) {
- $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationScheduling%2fClassmajorSchedulingPrintView&CollegeID_RAP=" + collegeID + "&SchoolyearID_RAP=" + schoolYearID + "&Years_RAP=" + year + "&ClassmajorID_RAP=" + year);
- }
- if (CMS_SystemConfig.ReportType == 2) {
- var fileUrl = CMS_SystemConfig.VirtualDirectoryPath + "/EducationSchedulingReport/ClassmajorPrintingSchedulingPDF?CollegeID" + collegeID + "&SchoolyearID=" + schoolYearID + "&Years=" + year;
- $("#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");
- // var year = "";
- // $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationScheduling%2fClassmajorSchedulingPrintView&CollegeID_RAP=" + collegeID + "&SchoolyearID_RAP=" + schoolYearID + "&Years_RAP=" + year + "&ClassmajorID_RAP=" + year);
- //}
|