StudentAppraiseReport.js 4.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. var CampusID, CollegeID, GradeID, StandardID, EducationID, LearningformID, LearnSystem, ClassmajorID, IsPhoto, ReportStatus, PlanningGraduateDate,
  2. InSchoolStatus, UserIDs, UniversityName, ConditionString, StudentGraAppraiseReportName, StudentPPraAppraiseReportName, 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. StudentGraAppraiseReportName = reportParameter.StudentGraAppraiseReportName;
  37. StudentPPraAppraiseReportName = reportParameter.StudentPPraAppraiseReportName;
  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 (StudentGraAppraiseReportName == "" || StudentGraAppraiseReportName == null) StudentGraAppraiseReportName = "DefaultGraduateAppraise";
  56. if (StudentPPraAppraiseReportName == "" || StudentPPraAppraiseReportName == null) StudentPPraAppraiseReportName = "DefaultPostPracticeAppraise";
  57. StudentAppraiseReport();
  58. }
  59. function StudentAppraiseReport() {
  60. top.ReportParameter = {
  61. CampusID: CampusID,
  62. CollegeID: CollegeID,
  63. GradeID: GradeID,
  64. StandardID: StandardID,
  65. EducationID: EducationID,
  66. LearningformID: LearningformID,
  67. LearnSystem: LearnSystem,
  68. ClassmajorID: ClassmajorID,
  69. IsPhoto: IsPhoto,
  70. ReportStatus: ReportStatus,
  71. PlanningGraduateDate: PlanningGraduateDate,
  72. InSchoolStatus: InSchoolStatus,
  73. UserIDs: UserIDs,
  74. ConditionString: ConditionString,
  75. LoginUserID: LoginUserID,
  76. DataRangeID: DataRangeID,
  77. UniversityName: UniversityName,
  78. Url: Url
  79. };
  80. var studentAppraiseReportID = $("#DictionaryStudentAppraiseReport").combobox("getValue");
  81. if (studentAppraiseReportID == graduateAppraise) {
  82. var str = CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fStudentManage%2fStudentProfile%2f" + StudentGraAppraiseReportName;
  83. $("#reportContent").attr("src", str);
  84. } else if (studentAppraiseReportID == postPracticeAppraise) {
  85. var str = CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fStudentManage%2fStudentProfile%2f" + StudentPPraAppraiseReportName;
  86. $("#reportContent").attr("src", str);
  87. } else {
  88. var str = "";
  89. $("#reportContent").attr("src", str);
  90. }
  91. }