ClassStudentStatisticsReport.cshtml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "ClassStudentStatisticsReport";
  5. }
  6. @section scripts{
  7. <script type="text/javascript">
  8. var schoolYearID, examinationSubjectID;
  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 "SchoolYearID":
  18. schoolYearID = arr[i].split("=")[1];
  19. break;
  20. case "ExaminationSubjectID":
  21. examinationSubjectID = arr[i].split("=")[1];
  22. break;
  23. }
  24. }
  25. }
  26. schoolYearID = schoolYearID == "" || schoolYearID==-1 ? "=" : "=" + schoolYearID;
  27. examinationSubjectID = examinationSubjectID == "" || examinationSubjectID== - 1 ? "=" : "=" + examinationSubjectID;
  28. Report();
  29. function Report() {
  30. $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fExaminationManage%2fExaminationClassStudentStatisticsView&SchoolyearID_RAP"
  31. + schoolYearID + "&ExaminationSubjectID_RAP" + examinationSubjectID);
  32. }
  33. </script>
  34. }
  35. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  36. <div class="search_list">
  37. <iframe id="reportContent" frameborder="0" scrolling="no" style="width: 99%; height: 95%; position: absolute;
  38. left: 5px;"></iframe>
  39. </div>
  40. </div>