StudentCradReport.js 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. var CampusID, CollegeID, GradeID, StandardID, EducationID, LearningformID, LearnSystem, ClassmajorID, IsPhoto, ReportStatus, PlanningGraduateDate,
  2. InSchoolStatus, UserIDs, ApproveEndStatusID, UniversityName, ConditionString, StudentCradReportName, LoginUserID, DataRangeID, Url, isWindowCanClose = false;
  3. $.parser.onComplete = function (context) {
  4. var windowID = $.SystemGeneral.getUrlParam("WindowID");
  5. var reportParameter = top.$('#' + windowID).data("inputData");
  6. UserIDs = reportParameter.UserIDs;
  7. if (UserIDs == "" || UserIDs == 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. IsPhoto = reportParameter.IsPhoto;
  17. ReportStatus = reportParameter.ReportStatus;
  18. PlanningGraduateDate = reportParameter.PlanningGraduateDate;
  19. InSchoolStatus = reportParameter.InSchoolStatus;
  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. IsPhoto = null;
  31. ReportStatus = null;
  32. PlanningGraduateDate = null;
  33. InSchoolStatus = null;
  34. ConditionString = null;
  35. }
  36. StudentCradReportName = reportParameter.StudentCradReportName;
  37. ApproveEndStatusID = approveEndStatusID;
  38. UniversityName = universityName;
  39. LoginUserID = loginUserID;
  40. DataRangeID = dataRangeID;
  41. Url = localhostPaht;
  42. if (CampusID == nonSelect || CampusID == "") CampusID = null;
  43. if (CollegeID == nonSelect || CollegeID == "") CollegeID = null;
  44. if (GradeID == nonSelect || GradeID == "") GradeID = null;
  45. if (StandardID == nonSelect || StandardID == "") StandardID = null;
  46. if (EducationID == nonSelect || EducationID == "") EducationID = null;
  47. if (LearningformID == nonSelect || LearningformID == "") LearningformID = null;
  48. if (LearnSystem == nonSelect || LearnSystem == "") LearnSystem = null;
  49. if (ClassmajorID == nonSelect || ClassmajorID == "") ClassmajorID = null;
  50. if (IsPhoto == nonSelect || IsPhoto == "") IsPhoto = null;
  51. if (ReportStatus == nonSelect || ReportStatus == "") ReportStatus = null;
  52. if (PlanningGraduateDate == nonSelect || PlanningGraduateDate == "") PlanningGraduateDate = null;
  53. if (InSchoolStatus == nonSelect || InSchoolStatus == "") InSchoolStatus = null;
  54. if (ConditionString == nonSelect || ConditionString == "") ConditionString = null;
  55. if (StudentCradReportName == "" || StudentCradReportName == null) StudentCradReportName = "DefaultStudentCard";
  56. StudentCradReport();
  57. }
  58. function StudentCradReport() {
  59. top.ReportParameter = {
  60. CampusID: CampusID,
  61. CollegeID: CollegeID,
  62. GradeID: GradeID,
  63. StandardID: StandardID,
  64. EducationID: EducationID,
  65. LearningformID: LearningformID,
  66. LearnSystem: LearnSystem,
  67. ClassmajorID: ClassmajorID,
  68. IsPhoto: IsPhoto,
  69. ReportStatus: ReportStatus,
  70. PlanningGraduateDate: PlanningGraduateDate,
  71. InSchoolStatus: InSchoolStatus,
  72. UserIDs: UserIDs,
  73. ConditionString: ConditionString,
  74. LoginUserID: LoginUserID,
  75. DataRangeID: DataRangeID,
  76. ApproveEndStatusID: ApproveEndStatusID,
  77. UniversityName: UniversityName,
  78. Url: Url
  79. };
  80. var studentCradReportID = $("#DictionaryStudentCradReport").combobox("getValue");
  81. if (studentCradReportID == card) {
  82. var str = CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fStudentManage%2fStudentProfile%2f" + StudentCradReportName;
  83. $("#reportContent").attr("src", str);
  84. } else if (studentCradReportID == classStudent) {
  85. var str = CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fStudentManage%2fStudentProfile%2f" + "DefaultClassStudent";
  86. $("#reportContent").attr("src", str);
  87. } else if (studentCradReportID == admissionNo) {
  88. var str = CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fStudentManage%2fStudentProfile%2f" + "DefaultAdmissionNo";
  89. $("#reportContent").attr("src", str);
  90. } else if (studentCradReportID == admissionNoBack) {
  91. var str = CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fStudentManage%2fStudentProfile%2f" + "DefaultAdmissionNoBack";
  92. $("#reportContent").attr("src", str);
  93. } else {
  94. var str = "";
  95. $("#reportContent").attr("src", str);
  96. }
  97. }