ChangeApplyReport.js 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. var CampusID, CollegeID, GradeID, StandardID, EducationID, LearningformID, LearnSystem, ClassmajorID, SchoolyearID, ChangeTypeID, InSchoolStatus,
  2. ApprovalStatus, StudentChangeIDs, ConditionString, StudentChangeApplyReportName, LoginUserID, DataRangeID, UniversityName, Url, isWindowCanClose = false;
  3. $.parser.onComplete = function (context) {
  4. var windowID = $.SystemGeneral.getUrlParam("WindowID");
  5. var reportParameter = top.$('#' + windowID).data("inputData");
  6. StudentChangeIDs = reportParameter.StudentChangeIDs;
  7. if (StudentChangeIDs == "" || StudentChangeIDs == null) {
  8. CampusID = reportParameter.CampusID;
  9. CollegeID = reportParameter.CollegeID;
  10. GradeID = reportParameter.GradeID;
  11. StandardID = reportParameter.StandardID;
  12. EducationID = reportParameter.EducationID;
  13. LearningformID = reportParameter.LearningformID;
  14. LearnSystem = reportParameter.LearnSystem;
  15. ClassmajorID = reportParameter.ClassmajorID;
  16. SchoolyearID = reportParameter.SchoolyearID;
  17. ChangeTypeID = reportParameter.ChangeTypeID;
  18. InSchoolStatus = reportParameter.InSchoolStatus;
  19. ApprovalStatus = reportParameter.ApprovalStatus;
  20. ConditionString = reportParameter.ConditionString;
  21. } else {
  22. CampusID = null;
  23. CollegeID = null;
  24. GradeID = null;
  25. StandardID = null;
  26. EducationID = null;
  27. LearningformID = null;
  28. LearnSystem = null;
  29. ClassmajorID = null;
  30. SchoolyearID = null;
  31. ChangeTypeID = null;
  32. InSchoolStatus = null;
  33. ApprovalStatus = null;
  34. ConditionString = null;
  35. }
  36. StudentChangeApplyReportName = reportParameter.StudentChangeApplyReportName;
  37. LoginUserID = loginUserID;
  38. DataRangeID = dataRangeID;
  39. UniversityName = universityName;
  40. Url = localhostPaht;
  41. if (CampusID == nonSelect || CampusID == "") CampusID = null;
  42. if (CollegeID == nonSelect || CollegeID == "") CollegeID = null;
  43. if (GradeID == nonSelect || GradeID == "") GradeID = null;
  44. if (StandardID == nonSelect || StandardID == "") StandardID = null;
  45. if (EducationID == nonSelect || EducationID == "") EducationID = null;
  46. if (LearningformID == nonSelect || LearningformID == "") LearningformID = null;
  47. if (LearnSystem == nonSelect || LearnSystem == "") LearnSystem = null;
  48. if (ClassmajorID == nonSelect || ClassmajorID == "") ClassmajorID = null;
  49. if (SchoolyearID == nonSelect || SchoolyearID == "") SchoolyearID = null;
  50. if (ChangeTypeID == nonSelect || ChangeTypeID == "") ChangeTypeID = null;
  51. if (InSchoolStatus == nonSelect || InSchoolStatus == "") InSchoolStatus = null;
  52. if (ApprovalStatus == nonSelect || ApprovalStatus == "") ApprovalStatus = null;
  53. if (ConditionString == nonSelect || ConditionString == "") ConditionString = null;
  54. if (StudentChangeApplyReportName == "" || StudentChangeApplyReportName == null) StudentChangeApplyReportName = "DefaultStudentChangeApply";
  55. ChangeApplyReport();
  56. }
  57. function ChangeApplyReport() {
  58. top.ReportParameter = {
  59. CampusID: CampusID,
  60. CollegeID: CollegeID,
  61. GradeID: GradeID,
  62. StandardID: StandardID,
  63. EducationID: EducationID,
  64. LearningformID: LearningformID,
  65. LearnSystem: LearnSystem,
  66. ClassmajorID: ClassmajorID,
  67. SchoolyearID: SchoolyearID,
  68. ChangeTypeID: ChangeTypeID,
  69. InSchoolStatus: InSchoolStatus,
  70. ApprovalStatus: ApprovalStatus,
  71. StudentChangeIDs: StudentChangeIDs,
  72. ConditionString: ConditionString,
  73. LoginUserID: LoginUserID,
  74. DataRangeID: DataRangeID,
  75. UniversityName: UniversityName,
  76. Url: Url
  77. };
  78. var str = CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fStudentManage%2fStudentChange%2f" + StudentChangeApplyReportName;
  79. $("#reportContent").attr("src", str);
  80. isWindowCanClose = true;
  81. }