HBKDStudentScoreReport.js 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. var CollegeID, YearID, ClassmajorID, SchoolyearID, StandardID, EducationID, LearningformID, LearnSystem, CoursematerialID, CourseTypeID, ExamsCategoryID, StarttermBegin, StarttermEnd, UserIDs, LoginCollegeID, loginCampusID, LoginClassmajorID;
  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. YearID = reportParameter.YearID;
  9. ClassmajorID = reportParameter.ClassmajorID;
  10. SchoolyearID = reportParameter.SchoolYearID;
  11. StandardID = reportParameter.StandardID;
  12. EducationID = reportParameter.Education;
  13. LearningformID = reportParameter.LearningFormID;
  14. LearnSystem = reportParameter.LearnSystem;
  15. CoursematerialID = reportParameter.CoursematerialID;
  16. CourseTypeID = reportParameter.CourseTypeID;
  17. ExamsCategoryID = reportParameter.ExamsCategoryID;
  18. StarttermBegin = reportParameter.StarttermBegin;
  19. StarttermEnd = reportParameter.StarttermEnd;
  20. UserIDs = reportParameter.Ids;
  21. ConditionString = " and " + reportParameter.ConditionString;
  22. if (CollegeID == nonSelect || CollegeID == "") CollegeID = null;
  23. if (YearID == nonSelect || YearID == "") YearID = null;
  24. if (ClassmajorID == nonSelect || ClassmajorID == "") ClassmajorID = null;
  25. if (SchoolyearID == nonSelect || SchoolyearID == "") SchoolyearID = null;
  26. if (StandardID == nonSelect || StandardID == "") StandardID = null;
  27. if (EducationID == nonSelect || EducationID == "") EducationID = null;
  28. if (LearningformID == nonSelect || LearningformID == "") LearningformID = null;
  29. if (LearnSystem == nonSelect || LearnSystem == "") LearnSystem = null;
  30. if (CoursematerialID == nonSelect || CoursematerialID == "") CoursematerialID = null;
  31. if (CourseTypeID == nonSelect || CourseTypeID == "") CourseTypeID = null;
  32. if (ExamsCategoryID == nonSelect || ExamsCategoryID == "") ExamsCategoryID = null;
  33. if (StarttermBegin == nonSelect || StarttermBegin == "") StarttermBegin = null;
  34. if (StarttermEnd == nonSelect || StarttermEnd == "") StarttermEnd = null;
  35. if (UserIDs == nonSelect || UserIDs == "") UserIDs = null;
  36. Report();
  37. }
  38. function Report() {
  39. if (loginCampusID == nonSelect || loginCampusID == "") loginCampusID = null;
  40. if (LoginCollegeID == nonSelect || LoginCollegeID == "") LoginCollegeID = null;
  41. if (LoginClassmajorID == nonSelect || LoginClassmajorID == "") LoginClassmajorID = null;
  42. top.ReportParameter = {
  43. CollegeID: CollegeID,
  44. YearID: YearID,
  45. ClassmajorID: ClassmajorID,
  46. SchoolyearID: SchoolyearID,
  47. StandardID: StandardID,
  48. EducationID: EducationID,
  49. LearningformID: LearningformID,
  50. LearnSystem: LearnSystem,
  51. CoursematerialID: CoursematerialID,
  52. CourseTypeID: CourseTypeID,
  53. ExamsCategoryID: ExamsCategoryID,
  54. StarttermBegin: StarttermBegin,
  55. StarttermEnd: StarttermEnd,
  56. UserIDs: UserIDs,
  57. ConditionString: ConditionString,
  58. loginCampusID: loginCampusID,
  59. LoginCollegeID: LoginCollegeID,
  60. LoginClassmajorID: LoginClassmajorID
  61. };
  62. var str = CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fEducationResult%2fHBKDStudentFinallyScoreView";
  63. $("#reportContent").attr("src", str);
  64. }