Certificate.js 2.2 KB

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