StudentProveReport.js 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. var CampusID, CollegeID, GradeID, StandardID, EducationID, LearningformID, LearnSystem, ClassmajorID, IsPhoto, ReportStatus, PlanningGraduateDate,
  2. InSchoolStatus, UserIDs, UniversityName, ConditionString, LearningProveReportName, RiseOnlyThisProveReportName, GraduateProveReportName,
  3. LoginUserID, DataRangeID, isWindowCanClose = false;
  4. $.parser.onComplete = function (context) {
  5. var windowID = $.SystemGeneral.getUrlParam("WindowID");
  6. var reportParameter = top.$('#' + windowID).data("inputData");
  7. UserIDs = reportParameter.UserIDs;
  8. if (UserIDs == "" || UserIDs == null) {
  9. CampusID = reportParameter.CampusID;
  10. CollegeID = reportParameter.CollegeID;
  11. GradeID = reportParameter.GradeID;
  12. StandardID = reportParameter.StandardID;
  13. EducationID = reportParameter.EducationID;
  14. LearningformID = reportParameter.LearningformID;
  15. LearnSystem = reportParameter.LearnSystem;
  16. ClassmajorID = reportParameter.ClassmajorID;
  17. IsPhoto = reportParameter.IsPhoto;
  18. ReportStatus = reportParameter.ReportStatus;
  19. PlanningGraduateDate = reportParameter.PlanningGraduateDate;
  20. InSchoolStatus = reportParameter.InSchoolStatus;
  21. ConditionString = reportParameter.ConditionString;
  22. } else {
  23. CampusID = null;
  24. CollegeID = null;
  25. GradeID = null;
  26. StandardID = null;
  27. EducationID = null;
  28. LearningformID = null;
  29. LearnSystem = null;
  30. ClassmajorID = null;
  31. IsPhoto = null;
  32. ReportStatus = null;
  33. PlanningGraduateDate = null;
  34. InSchoolStatus = null;
  35. ConditionString = null;
  36. }
  37. LearningProveReportName = reportParameter.LearningProveReportName;
  38. RiseOnlyThisProveReportName = reportParameter.RiseOnlyThisProveReportName;
  39. GraduateProveReportName = reportParameter.GraduateProveReportName;
  40. UniversityName = universityName;
  41. LoginUserID = loginUserID;
  42. DataRangeID = dataRangeID;
  43. if (CampusID == nonSelect || CampusID == "") CampusID = null;
  44. if (CollegeID == nonSelect || CollegeID == "") CollegeID = null;
  45. if (GradeID == nonSelect || GradeID == "") GradeID = null;
  46. if (StandardID == nonSelect || StandardID == "") StandardID = null;
  47. if (EducationID == nonSelect || EducationID == "") EducationID = null;
  48. if (LearningformID == nonSelect || LearningformID == "") LearningformID = null;
  49. if (LearnSystem == nonSelect || LearnSystem == "") LearnSystem = null;
  50. if (ClassmajorID == nonSelect || ClassmajorID == "") ClassmajorID = null;
  51. if (IsPhoto == nonSelect || IsPhoto == "") IsPhoto = null;
  52. if (ReportStatus == nonSelect || ReportStatus == "") ReportStatus = null;
  53. if (PlanningGraduateDate == nonSelect || PlanningGraduateDate == "") PlanningGraduateDate = null;
  54. if (InSchoolStatus == nonSelect || InSchoolStatus == "") InSchoolStatus = null;
  55. if (ConditionString == nonSelect || ConditionString == "") ConditionString = null;
  56. if (LearningProveReportName == "" || LearningProveReportName == null) LearningProveReportName = "DefaultLearningProve";
  57. if (RiseOnlyThisProveReportName == "" || RiseOnlyThisProveReportName == null) RiseOnlyThisProveReportName = "DefaultRiseOnlyThisProve";
  58. if (GraduateProveReportName == "" || GraduateProveReportName == null) GraduateProveReportName = "DefaultGraduateProve";
  59. StudentProveReport();
  60. }
  61. function StudentProveReport() {
  62. top.ReportParameter = {
  63. CampusID: CampusID,
  64. CollegeID: CollegeID,
  65. GradeID: GradeID,
  66. StandardID: StandardID,
  67. EducationID: EducationID,
  68. LearningformID: LearningformID,
  69. LearnSystem: LearnSystem,
  70. ClassmajorID: ClassmajorID,
  71. IsPhoto: IsPhoto,
  72. ReportStatus: ReportStatus,
  73. PlanningGraduateDate: PlanningGraduateDate,
  74. InSchoolStatus: InSchoolStatus,
  75. UserIDs: UserIDs,
  76. ConditionString: ConditionString,
  77. LoginUserID: LoginUserID,
  78. DataRangeID: DataRangeID,
  79. UniversityName: UniversityName
  80. };
  81. var studentProveReportID = $("#DictionaryStudentProveReport").combobox("getValue");
  82. if (studentProveReportID == learning) {
  83. var str = CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fStudentManage%2fStudentProfile%2f" + LearningProveReportName;
  84. $("#reportContent").attr("src", str);
  85. } else if (studentProveReportID == riseOnlyThis) {
  86. var str = CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fStudentManage%2fStudentProfile%2f" + RiseOnlyThisProveReportName;
  87. $("#reportContent").attr("src", str);
  88. } else if (studentProveReportID == graduate) {
  89. var str = CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fStudentManage%2fStudentProfile%2f" + GraduateProveReportName;
  90. $("#reportContent").attr("src", str);
  91. } else {
  92. var str = "";
  93. $("#reportContent").attr("src", str);
  94. }
  95. }