StudentScoreReport.cshtml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "StudentScoreReport";
  5. }
  6. @section scripts{
  7. <script type="text/javascript">
  8. var classmajorID, inSchoolStatus;
  9. var str = decodeURI(location.href); //取得整个地址栏
  10. var num = str.indexOf("?");
  11. if (num != -1) {
  12. str = str.substr(num + 1); //取得所有参数
  13. //各个参数放到数组里
  14. var arr = str.split("&");
  15. for (var i = 0; i < arr.length; i++) {
  16. switch (arr[i].split("=")[0]) {
  17. case "ClassmajorID":
  18. classmajorID = arr[i].split("=")[1];
  19. break;
  20. case "InSchoolStatus":
  21. inSchoolStatus = arr[i].split("=")[1];
  22. break;
  23. }
  24. }
  25. }
  26. classmajorID = classmajorID == "" ? "=" : "=" + classmajorID;
  27. inSchoolStatus = inSchoolStatus == "" ? "=" : "=" + inSchoolStatus;
  28. Report();
  29. function Report() {
  30. var str = CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationResult%2fSpecialityScoreSumView&ClassmajorID_RAP" + classmajorID
  31. + "&InSchoolStatus_RAP" + inSchoolStatus
  32. + "&rc:Parameters=false&CollegeID_RAP=&Years_RAP=&GrademajorID_RAP=&LoginID_RAP=&Condition_RAP=&UserName_RAP=&ClassName_RAP=";
  33. $("#reportContent").attr("src", str);
  34. }
  35. </script>
  36. }
  37. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  38. <div class="search_list">
  39. <iframe id="reportContent" frameborder="0" scrolling="no" style="width: 99%; height: 95%; position: absolute;
  40. left: 5px;"></iframe>
  41. </div>
  42. </div>