SupEvaluationReport.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. var IDs, CollegeID, SupervisionType, StarDate, EndDate, ConditionString, SchoolyearID;
  2. $.parser.onComplete = function (context) {
  3. var jsonString = "";
  4. var parameterString = "";
  5. var windowID = $.SystemGeneral.getUrlParam("WindowID");
  6. reportParameter = top.$('#' + windowID).data("inputData");
  7. CollegeID = reportParameter.CollegeID;
  8. StarDate = reportParameter.StarDate;
  9. EndDate = reportParameter.EndDate;
  10. SupervisionType = reportParameter.SupervisionType;
  11. IDs = reportParameter.Ids;
  12. SchoolyearID = reportParameter.SchoolyearID;
  13. ConditionString = " and " + reportParameter.ConditionString;
  14. if (CollegeID == nonSelect || CollegeID == "") CollegeID = null;
  15. if (SupervisionType == nonSelect || SupervisionType == "") SupervisionType = null;
  16. if (StarDate == nonSelect || StarDate == "") StarDate = null;
  17. if (EndDate == nonSelect || EndDate == "") EndDate = null;
  18. if (IDs == nonSelect || IDs == ",") IDs = null;
  19. if (SchoolyearID == nonSelect || SchoolyearID == "") SchoolyearID = null;
  20. Report();
  21. }
  22. function Report() {
  23. top.ReportParameter = {
  24. CollegeID: CollegeID,
  25. SupervisionType: SupervisionType,
  26. SchoolyearID: SchoolyearID,
  27. StarDate: StarDate,
  28. EndDate:EndDate,
  29. ConditionString: ConditionString,
  30. UserID: UserID,
  31. IDs:IDs,
  32. DataRange: DataRange
  33. };
  34. var str = CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fSUPManage%2fSupEvaluation";
  35. $("#reportContent").attr("src", str);
  36. }