123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- function Report_Search() {
- var schoolYearID = $("#SchoolYearDropdown").combobox("getValue");
- var collegeID = $("#DDCollegeDropdown").combogridX("getValue");
- collegeID = collegeID == -1 ? "=" : "=" + collegeID;
- var Month = document.getElementById("txtDate").value;
- var EndMonth = document.getElementById("txtEndDate").value;
- if (Month != null && Month != "") {
- if (isNaN(Month)) {
- $.messager.alert("系统提示", "请输入正确的月份");
- } else {
- if (EndMonth != null && EndMonth != "") {
- if (isNaN(EndMonth)) {
- $.messager.alert("系统提示", "请输入正确的月份");
- } else {
- var monthNum = Number(Month);
- var endMonthNum = Number(EndMonth);
- var MonthStr = Month.toString();
- var EndMonthStr = EndMonth.toString();
- if (Month < 1 || Month > 12 || EndMonth < 1 || EndMonth > 12) {
- $.messager.alert("系统提示", "请输入正确的月份");
- return;
- }
- if (monthNum > endMonthNum) {
- $.messager.alert("系统提示", "开始月份不能大于结束月份");
- return;
- }
- if (Month < 10) {
- MonthStr = "0" + Month;
- if (EndMonth < 10) {
- EndMonthStr = "0" + EndMonth;
- }
- $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fSUPManage%2fSupervisionTotal&SchoolyearID_RAP=" + schoolYearID + "&CollegeID_RAP" + collegeID + "&Month_RAP=" + MonthStr + "&EndMonth_RAP=" + EndMonthStr);
- } else {
- $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fSUPManage%2fSupervisionTotal&SchoolyearID_RAP=" + schoolYearID + "&CollegeID_RAP" + collegeID + "&Month_RAP=" + MonthStr + "&EndMonth_RAP=" + EndMonthStr);
- }
- }
- } else {
- var MonthStr = Month.toString();
- var EndMonthStr = "";
- EndMonth = null;
- if (Month < 1 || Month > 12) {
- $.messager.alert("系统提示", "请输入正确的月份");
- return;
- }
- if (Month < 10) {
- MonthStr = "0" + Month;
- $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fSUPManage%2fSupervisionTotal&SchoolyearID_RAP=" + schoolYearID + "&CollegeID_RAP" + collegeID + "&Month_RAP=" + MonthStr + "&EndMonth_RAP=" + EndMonthStr);
- } else {
- $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fSUPManage%2fSupervisionTotal&SchoolyearID_RAP=" + schoolYearID + "&CollegeID_RAP" + collegeID + "&Month_RAP=" + MonthStr + "&EndMonth_RAP=" + EndMonthStr);
- }
- }
- }
- } else {
- var EndMonthStr = "";
- EndMonth = null;
- $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fSUPManage%2fSupervisionTotal&SchoolyearID_RAP=" + schoolYearID + "&CollegeID_RAP" + collegeID + "&Month_RAP=" + Month + "&EndMonth_RAP=" + EndMonthStr);
- }
- }
|