ClassStudentReport.js 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. var Attribute, CampusID, SchoolYearID, CollegeID, StandardID, LearningFormID, ClassmajorID, InSchoolStatus, IsGraduation, IsPhotos, LoginID, Condition, Value, UserIDs, ConditionString, ReportStatusID, Education, LearnSystem;
  2. $.parser.onComplete = function (context) {
  3. var jsonString = "";
  4. var parameterString = "";
  5. var windowID = $.SystemGeneral.getUrlParam("WindowID");
  6. reportParameter = top.$('#' + windowID).data("inputData");
  7. Attribute = reportParameter.Attribute;
  8. CampusID = reportParameter.CampusID;
  9. SchoolYearID = reportParameter.SchoolYearID;
  10. CollegeID = reportParameter.CollegeID;
  11. StandardID = reportParameter.StandardID;
  12. LearningFormID = reportParameter.LearningFormID;
  13. ClassmajorID = reportParameter.ClassmajorID;
  14. InSchoolStatus = reportParameter.InSchoolStatus;
  15. IsGraduation = reportParameter.IsGraduation;
  16. IsPhotos = reportParameter.IsPhotos;
  17. LoginID = reportParameter.LoginID;
  18. Condition = reportParameter.Condition;
  19. Value = reportParameter.Value;
  20. ReportStatusID = reportParameter.ReportStatusID,
  21. Education = reportParameter.Education,
  22. LearnSystem = reportParameter.LearnSystem,
  23. UserIDs = reportParameter.Ids;
  24. ConditionString = " and " + reportParameter.ConditionString;
  25. if (CampusID == nonSelect || CampusID == "") CampusID = null;
  26. if (SchoolYearID == nonSelect || SchoolYearID == "") SchoolYearID = null;
  27. if (CollegeID == nonSelect || CollegeID == "") CollegeID = null;
  28. if (StandardID == nonSelect || StandardID == "") StandardID = null;
  29. if (LearningFormID == nonSelect || LearningFormID == "") LearningFormID = null;
  30. if (InSchoolStatus == nonSelect || InSchoolStatus == "") InSchoolStatus = null;
  31. if (ClassmajorID == nonSelect || ClassmajorID == "") ClassmajorID = null;
  32. if (IsGraduation == nonSelect || IsGraduation == "") IsGraduation = null;
  33. if (LoginID == nonSelect || LoginID == "") LoginID = null;
  34. if (IsPhotos == nonSelect || IsPhotos == "") IsPhotos = null;
  35. if (UserIDs == nonSelect || UserIDs == "") UserIDs = null;
  36. if (Education == nonSelect || Education == "") Education = null;
  37. if (ReportStatusID == nonSelect || ReportStatusID == "") ReportStatusID = null;
  38. if (LearnSystem == nonSelect || LearnSystem == "") LearnSystem = null;
  39. Report();
  40. }
  41. function Report() {
  42. var ApprovalStatus = endStatusID;
  43. if(ApprovalStatus=="") {
  44. ApprovalStatus = "99";
  45. }
  46. var StudentCardName = $(CMS_SystemConfig.GetConfig()).find("configuration>reportServer>customReportName[name='StudentCardView']").attr("customName");
  47. StudentCardName = StudentCardName == "" || StudentCardName == null ? "StudentCardView" : StudentCardName;
  48. var i = $("#selReport").combobox("getValue");
  49. top.ReportParameter = {
  50. CampusID: CampusID,
  51. Years: SchoolYearID,
  52. CollegeID: CollegeID,
  53. StandardID: StandardID,
  54. LearningformID: LearningFormID,
  55. ClassID: ClassmajorID,
  56. InSchoolStatusID: InSchoolStatus,
  57. StudentStatus: IsGraduation,
  58. LoginID: LoginID,
  59. isPhotos: IsPhotos,
  60. ConditionString: ConditionString,
  61. ApprovalStatus:ApprovalStatus,
  62. LoginUserID:LoginUserID,
  63. DataRange: DataRange,
  64. Url: localhostPaht,
  65. ReportStatusID: ReportStatusID,
  66. Education: Education,
  67. LearnSystem: LearnSystem,
  68. UserIDs: UserIDs,
  69. SchoolName: SchoolName
  70. };
  71. if (i == 1) {
  72. var str = CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fStudentManage%2fClassStudentView";
  73. $("#reportContent").attr("src", str);
  74. }
  75. else if (i == 2) { //学籍卡
  76. var str = CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fStudentManage%2f" + StudentCardName;
  77. $("#reportContent").attr("src", str);
  78. }
  79. else if (i == 3) { //准考证
  80. var str = CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fStudentManage%2fGZtyAdmissionNoView";
  81. $("#reportContent").attr("src", str);
  82. }
  83. else if (i == 4) { //准考证背面
  84. var str = CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fStudentManage%2fGZtyAdmissionNoBackView";
  85. $("#reportContent").attr("src", str);
  86. }
  87. }