StudentProofReport.js 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. var Attribute, CampusID, SchoolYearID, CollegeID, StandardID, LearningFormID, ClassmajorID, InSchoolStatus, IsGraduation, IsPhotos, LoginID, Condition, Value, UserIDs, ConditionString, ReportStatusID;
  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. UserIDs = reportParameter.Ids;
  22. ConditionString = " and " + reportParameter.ConditionString;
  23. if (CampusID == nonSelect || CampusID == "") CampusID = null;
  24. if (SchoolYearID == nonSelect || SchoolYearID == "") SchoolYearID = null;
  25. if (CollegeID == nonSelect || CollegeID == "") CollegeID = null;
  26. if (StandardID == nonSelect || StandardID == "") StandardID = null;
  27. if (LearningFormID == nonSelect || LearningFormID == "") LearningFormID = null;
  28. if (InSchoolStatus == nonSelect || InSchoolStatus == "") InSchoolStatus = null;
  29. if (ClassmajorID == nonSelect || ClassmajorID == "") ClassmajorID = null;
  30. if (IsGraduation == nonSelect || IsGraduation == "") IsGraduation = null;
  31. if (LoginID == nonSelect || LoginID == "") LoginID = null;
  32. if (IsPhotos == nonSelect || IsPhotos == "") IsPhotos = null;
  33. if (UserIDs == nonSelect || UserIDs == "") UserIDs = null;
  34. if (ReportStatusID == nonSelect || ReportStatusID == "") ReportStatusID = null;
  35. Report();
  36. }
  37. function Report() {
  38. var i = $("#selReport").combobox("getValue");
  39. top.ReportParameter = {
  40. CampusID: CampusID,
  41. Years: SchoolYearID,
  42. CollegeID: CollegeID,
  43. StandardID: StandardID,
  44. LearningformID: LearningFormID,
  45. ClassID: ClassmajorID,
  46. InSchoolStatusID: InSchoolStatus,
  47. StudentStatus: IsGraduation,
  48. LoginID: LoginID,
  49. isPhotos: IsPhotos,
  50. ConditionString: ConditionString,
  51. LoginUserID: LoginUserID,
  52. DataRange: DataRange,
  53. ReportStatusID: ReportStatusID,
  54. UserIDs: UserIDs,
  55. SchoolName:SchoolName
  56. };
  57. if (i == 1) {//在学证明
  58. var str = CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fStudentManage%2fStudentProof";
  59. $("#reportContent").attr("src", str);
  60. }
  61. else if (i == 2) { //毕业证明
  62. var str = CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fStudentManage%2fGraduateProof";
  63. $("#reportContent").attr("src", str);
  64. }
  65. else if (i == 3) { //专升本证明
  66. var str = CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fStudentManage%2fSpecialEditionProof";
  67. $("#reportContent").attr("src", str);
  68. }
  69. }