AdmissionLetterReport.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. var CampusID, CollegeID, GradeID, StandardID, EducationID, LearningformID, LearnSystem, GrademajorID, ClassmajorID,
  2. IsDoubt, IsStudentNo, RecordStatus, NewStudentIDs, ConditionString, LoginUserID, DataRangeID, Url, isWindowCanClose = false;
  3. $.parser.onComplete = function (context) {
  4. var windowID = $.SystemGeneral.getUrlParam("WindowID");
  5. var reportParameter = top.$('#' + windowID).data("inputData");
  6. NewStudentIDs = reportParameter.NewStudentIDs;
  7. if (NewStudentIDs == "" || NewStudentIDs == 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. GrademajorID = reportParameter.GrademajorID
  16. ClassmajorID = reportParameter.ClassmajorID;
  17. IsDoubt = reportParameter.IsDoubt;
  18. IsStudentNo = reportParameter.IsStudentNo;
  19. RecordStatus = reportParameter.RecordStatus;
  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. GrademajorID = null;
  30. ClassmajorID = null;
  31. IsDoubt = null;
  32. IsStudentNo = null;
  33. RecordStatus = null;
  34. ConditionString = null;
  35. }
  36. LoginUserID = loginUserID;
  37. DataRangeID = dataRangeID;
  38. Url = localhostPaht;
  39. if (CampusID == nonSelect || CampusID == "") CampusID = null;
  40. if (CollegeID == nonSelect || CollegeID == "") CollegeID = null;
  41. if (GradeID == nonSelect || GradeID == "") GradeID = null;
  42. if (StandardID == nonSelect || StandardID == "") StandardID = null;
  43. if (EducationID == nonSelect || EducationID == "") EducationID = null;
  44. if (LearningformID == nonSelect || LearningformID == "") LearningformID = null;
  45. if (LearnSystem == nonSelect || LearnSystem == "") LearnSystem = null;
  46. if (GrademajorID == nonSelect || GrademajorID == "") GrademajorID = null;
  47. if (ClassmajorID == nonSelect || ClassmajorID == "") ClassmajorID = null;
  48. if (IsDoubt == nonSelect || IsDoubt == "") IsDoubt = null;
  49. if (IsStudentNo == nonSelect || IsStudentNo == "") IsStudentNo = null;
  50. if (RecordStatus == nonSelect || RecordStatus == "") RecordStatus = null;
  51. if (ConditionString == nonSelect || ConditionString == "") ConditionString = null;
  52. AdmissionLetterReport();
  53. }
  54. function AdmissionLetterReport() {
  55. top.ReportParameter = {
  56. CampusID: CampusID,
  57. CollegeID: CollegeID,
  58. GradeID: GradeID,
  59. StandardID: StandardID,
  60. EducationID: EducationID,
  61. LearningformID: LearningformID,
  62. LearnSystem: LearnSystem,
  63. GrademajorID: GrademajorID,
  64. ClassmajorID: ClassmajorID,
  65. IsDoubt: IsDoubt,
  66. IsStudentNo: IsStudentNo,
  67. RecordStatus: RecordStatus,
  68. NewStudentIDs: NewStudentIDs,
  69. ConditionString: ConditionString,
  70. LoginUserID: LoginUserID,
  71. DataRangeID: DataRangeID
  72. };
  73. var admissionLetterReportName = $(CMS_SystemConfig.GetConfig()).find("configuration>reportServer>customReportName[name='AdmissionLetterReport']").attr("customName");
  74. if (admissionLetterReportName == "HBGDAdmissionLetter") {
  75. var str = CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fEnrollManage%2fNewStudent%2f" + admissionLetterReportName;
  76. $("#reportContent").attr("src", str);
  77. } else {
  78. $.messager.alert("系统提示", "录取通知书报表打印失败,原因:未提供相应的录取通知书打印报表信息。");
  79. }
  80. isWindowCanClose = true;
  81. }