ExaminationExemptionReport.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. var UserIDs;
  2. var SchoolyearID;
  3. var CollegeID;
  4. var Year;
  5. var StandardID;
  6. var EducationID;
  7. var LearningformID;
  8. var LearnSystem;
  9. var ClassmajorID;
  10. var ConditionString;
  11. var ApprovalStatus;
  12. var isWindowCanClose = false;
  13. function Report() {
  14. var userIDs = reportParameter.ids;
  15. top.ReportParameter = {
  16. SchoolyearID: SchoolyearID,
  17. CollegeID: CollegeID,
  18. YearID: Year,
  19. StandardID: StandardID,
  20. EducationID: EducationID,
  21. LearningformID: LearningformID,
  22. LearnSystem: LearnSystem,
  23. ClassmajorID: ClassmajorID,
  24. ApprovalStatus: ApprovalStatus,
  25. SchoolName: SchoolName,
  26. LoginUserID:LoginUserID,
  27. ConditionString: ConditionString,
  28. UserIDs: userIDs
  29. };
  30. var str = CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fEducationResult%2fExaminationExemptionReport";
  31. $("#reportContent").attr("src", str);
  32. isWindowCanClose = true;
  33. }
  34. $.parser.onComplete = function (context) {
  35. var jsonString = "";
  36. var parameterString = "";
  37. var windowID = $.SystemGeneral.getUrlParam("WindowID");
  38. reportParameter = top.$('#' + windowID).data("inputData");
  39. SchoolyearID = reportParameter.schoolyearID;
  40. CollegeID = reportParameter.collegeID;
  41. StandardID = reportParameter.standardID;
  42. Year = reportParameter.year;
  43. EducationID = reportParameter.educationID;
  44. LearningformID = reportParameter.learningformID;
  45. LearnSystem = reportParameter.learnSystem;
  46. ClassmajorID = reportParameter.classmajorID;
  47. ApprovalStatus = reportParameter.approvalStatus;
  48. ConditionString = " and " + reportParameter.conditionString;
  49. if (CollegeID == nonSelect) CollegeID = null;
  50. if (StandardID == nonSelect) StandardID = null;
  51. if (Year == nonSelect) Year = null;
  52. if (EducationID == nonSelect) EducationID = null;
  53. if (LearningformID == nonSelect) LearningformID = null;
  54. if (LearnSystem == nonSelect) LearnSystem = null;
  55. if (SchoolyearID == nonSelect) SchoolyearID = null;
  56. if (ClassmajorID == nonSelect) ClassmajorID = null;
  57. if (ApprovalStatus == nonSelect) ApprovalStatus = null;
  58. Report();
  59. }