StudentScoreReport.cshtml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 LoginID;
  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 "LoginID":
  18. LoginID = arr[i].split("=")[1];
  19. break;
  20. }
  21. }
  22. }
  23. Report();
  24. function Report() {
  25. var str = CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationResult%2fStuStudentScoreView"
  26. + "&LoginID_RAP=" + LoginID;
  27. $("#reportContent").attr("src", str);
  28. }
  29. </script>
  30. }
  31. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  32. <div class="search_list">
  33. <iframe id="reportContent" scrolling="no" frameborder="0" style="width: 99%; height: 95%; position: absolute;
  34. left: 5px;"></iframe>
  35. </div>
  36. </div>