StudentScoreNewReport.cshtml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "StudentScoreNewReport";
  5. }
  6. @section scripts{
  7. <script type="text/javascript">
  8. var nonSelect = "@DropdownList.SELECT_ALL";
  9. var LoginID, CollegeID, StandardID, YearID, SchoolyearNumID, SchoolcodeID, ClassmajorID, CourseTypeID;
  10. var str = decodeURI(location.href); //取得整个地址栏
  11. var num = str.indexOf("?");
  12. if (num != -1) {
  13. str = str.substr(num + 1); //取得所有参数
  14. //各个参数放到数组里
  15. var arr = str.split("&");
  16. for (var i = 0; i < arr.length; i++) {
  17. switch (arr[i].split("=")[0]) {
  18. case "CollegeID":
  19. CollegeID = arr[i].split("=")[1];
  20. break;
  21. case "StandardID":
  22. StandardID = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
  23. break;
  24. case "YearID":
  25. YearID = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
  26. break;
  27. case "SchoolyearNumID":
  28. SchoolyearNumID = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
  29. break;
  30. case "SchoolcodeID":
  31. SchoolcodeID = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
  32. break;
  33. case "ClassmajorID":
  34. ClassmajorID = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
  35. break;
  36. case "LoginID":
  37. LoginID = arr[i].split("=")[1];
  38. break;
  39. case "CourseTypeID":
  40. CourseTypeID = arr[i].split("=")[1];
  41. break;
  42. }
  43. }
  44. }
  45. Report();
  46. function Report() {
  47. var i = document.getElementById("selReport").value;
  48. if (i == 1) {
  49. var str = CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationResult%2fGZtyPersonalStudentScoreView&LoginID_RAP=&UserID_RAP="
  50. + "&CollegeID_RAP=" + CollegeID + "&StandardID_RAP=" + StandardID + "&YearID_RAP=" + YearID
  51. + "&SchoolyearNumID_RAP=" + SchoolyearNumID + "&SchoolcodeID_RAP=" + SchoolcodeID + "&ClassmajorID_RAP=" + ClassmajorID;
  52. $("#reportContent").attr("src", str);
  53. }
  54. else if (i == 2) {
  55. var str = CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationResult%2fGZtySpecialityScoreSumView&LoginID_RAP=&UserID_RAP="
  56. + "&CollegeID_RAP=" + CollegeID + "&StandardID_RAP=" + StandardID + "&YearID_RAP=" + YearID
  57. + "&SchoolyearNumID_RAP=" + SchoolyearNumID + "&SchoolcodeID_RAP=" + SchoolcodeID + "&ClassmajorID_RAP=" + ClassmajorID + "&CourseTypeID_RAP=" + CourseTypeID;
  58. $("#reportContent").attr("src", str);
  59. }
  60. }
  61. </script>
  62. }
  63. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  64. <select id="selReport" onchange="Report()">
  65. <option value="0" selected="selected">请选择报表</option>
  66. <option value="1">个人成绩报表</option>
  67. <option value="2">专业成绩汇总报表</option>
  68. </select>
  69. <div class="search_list">
  70. <iframe id="reportContent" frameborder="0" scrolling="no" style="width: 99%; height: 95%; position: absolute;
  71. left: 5px;"></iframe>
  72. </div>
  73. </div>