Report.cshtml 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "Report";
  5. }
  6. @section scripts{
  7. <script type="text/javascript">
  8. var nonSelect = "@DropdownList.SELECT_ALL";
  9. var SchoolyearID;
  10. var CollegeID;
  11. var StandardID;
  12. var Year;
  13. var EducationID;
  14. var LearningformID;
  15. var LearnSystem;
  16. var GrademajorID;
  17. var ConditionString;
  18. var TempTableName;
  19. var urlStr = location.href;
  20. var isWindowCanClose = false;
  21. //var str = decodeURI(location.href); //取得整个地址栏
  22. var num = urlStr.indexOf("?");
  23. if (num != -1) {
  24. urlStr = urlStr.substr(num + 1); //取得所有参数
  25. //各个参数放到数组里
  26. var arr = urlStr.split("&");
  27. for (var i = 0; i < arr.length; i++) {
  28. switch (arr[i].split("=")[0]) {
  29. case "SchoolyearID":
  30. SchoolyearID = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
  31. break;
  32. case "CollegeID":
  33. CollegeID = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
  34. break;
  35. case "StandardID":
  36. StandardID = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
  37. break;
  38. case "Year":
  39. Year = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
  40. break;
  41. case "EducationID":
  42. EducationID = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
  43. break;
  44. case "LearningformID":
  45. LearningformID = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
  46. break;
  47. case "LearnSystem":
  48. LearnSystem = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
  49. break;
  50. case "GrademajorID":
  51. GrademajorID = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
  52. break;
  53. case "ConditionString":
  54. ConditionString = arr[i].split("=#")[1];
  55. ConditionString = " and " + ConditionString;
  56. break;
  57. case "TempTableName":
  58. TempTableName = arr[i].split("=#")[1];
  59. TempTableName = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
  60. break;
  61. }
  62. }
  63. }
  64. Report();
  65. function Report() {
  66. var str = CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationManage%2fSpecialtyStatistics&SchoolyearID_RAP=" + SchoolyearID
  67. + "&CollegeID_RAP=" + CollegeID
  68. + "&YearID_RAP=" + Year
  69. + "&StandardID_RAP=" + StandardID
  70. + "&EducationID_RAP=" + EducationID
  71. + "&LearningformID_RAP=" + LearningformID
  72. + "&LearnSystem_RAP=" + LearnSystem
  73. + "&GrademajorID_RAP=" + GrademajorID
  74. + "&TempTableName_RAP=" + TempTableName
  75. + "&ConditionString_RAP=" + escape(ConditionString);
  76. $("#reportContent").attr("src", str);
  77. isWindowCanClose = true;
  78. }
  79. </script>
  80. }
  81. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  82. <div class="search_list">
  83. <iframe id="reportContent" frameborder="0" scrolling="no" style="width: 99%; height: 95%; position: absolute;
  84. left: 5px;"></iframe>
  85. </div>
  86. </div>