StudentScoreReport.cshtml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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 UserID;
  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 "LoginID":
  19. LoginID = arr[i].split("=")[1];
  20. break;
  21. case "UserID":
  22. UserID = arr[i].split("=")[1];
  23. break;
  24. }
  25. }
  26. }
  27. Report();
  28. // function Report() {
  29. // var str = CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationResult%2fPersonalStudentScoreView&LoginID_RAP=" + LoginID
  30. // + "&UserID_RAP=" + UserID
  31. // + "&CollegeID_RAP=" + "&StandardID_RAP=" + "&YearID_RAP="
  32. // + "&SchoolyearNumID_RAP=" + "&SchoolcodeID_RAP=" + "&ClassmajorID_RAP=";
  33. // $("#reportContent").attr("src", str);
  34. // }
  35. function Report() {
  36. var i = document.getElementById("selReport").value;
  37. if (i == 1) {
  38. var str = CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationResult%2fGZtyPersonalStudentScoreView&LoginID_RAP=" + LoginID
  39. + "&UserID_RAP=" + UserID
  40. + "&CollegeID_RAP=" + "&StandardID_RAP=" + "&YearID_RAP="
  41. + "&SchoolyearNumID_RAP=" + "&SchoolcodeID_RAP=" + "&ClassmajorID_RAP=";
  42. $("#reportContent").attr("src", str);
  43. }
  44. else if (i == 2) {
  45. var str = CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationResult%2fGZtyPersonalStudentScoreNoHonestMessageView&LoginID_RAP=" + LoginID
  46. + "&UserID_RAP=" + UserID
  47. + "&CollegeID_RAP=" + "&StandardID_RAP=" + "&YearID_RAP="
  48. + "&SchoolyearNumID_RAP=" + "&SchoolcodeID_RAP=" + "&ClassmajorID_RAP=";
  49. $("#reportContent").attr("src", str);
  50. }
  51. else if (i == 3) {
  52. var str = CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationResult%2fGztyPersonalStudentScoreOptionalView&LoginID_RAP=" + LoginID
  53. + "&UserID_RAP=" + UserID
  54. + "&CollegeID_RAP=" + "&StandardID_RAP=" + "&YearID_RAP="
  55. + "&SchoolyearNumID_RAP=" + "&SchoolcodeID_RAP=" + "&ClassmajorID_RAP=";
  56. $("#reportContent").attr("src", str);
  57. }
  58. else if (i == 4) {
  59. var str = CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationResult%2fGztyPersonalStudentScoreNoHonestMessageOptionalView&LoginID_RAP=" + LoginID
  60. + "&UserID_RAP=" + UserID
  61. + "&CollegeID_RAP=" + "&StandardID_RAP=" + "&YearID_RAP="
  62. + "&SchoolyearNumID_RAP=" + "&SchoolcodeID_RAP=" + "&ClassmajorID_RAP=";
  63. $("#reportContent").attr("src", str);
  64. }
  65. else if (i == 5) {
  66. var str = CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationResult%2fGZtyPersonalStudentScorePassView&LoginID_RAP=" + LoginID
  67. + "&UserID_RAP=" + UserID
  68. + "&CollegeID_RAP=" + "&StandardID_RAP=" + "&YearID_RAP="
  69. + "&SchoolyearNumID_RAP=" + "&SchoolcodeID_RAP=" + "&ClassmajorID_RAP=";
  70. $("#reportContent").attr("src", str);
  71. }
  72. else if (i == 6) {
  73. var str = CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationResult%2fGztyPersonalStudentScoreNoHonestMessagePassView&LoginID_RAP=" + LoginID
  74. + "&UserID_RAP=" + UserID
  75. + "&CollegeID_RAP=" + "&StandardID_RAP=" + "&YearID_RAP="
  76. + "&SchoolyearNumID_RAP=" + "&SchoolcodeID_RAP=" + "&ClassmajorID_RAP=";
  77. $("#reportContent").attr("src", str);
  78. }
  79. }
  80. </script>
  81. }
  82. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  83. <select id="selReport" onchange="Report()">
  84. <option value="1" selected="selected">存档成绩A4_全部_广体</option>
  85. <option value="2">存档成绩A4_全部无诚信值_广体</option>
  86. <option value="3">存档成绩A4_限选任选校本及格_广体</option>
  87. <option value="4">存档成绩A4_限选任选校本及格无诚信值_广体</option>
  88. <option value="5">存档成绩A4_所有及格成绩_广体</option>
  89. <option value="6">存档成绩A4_所有及格成绩无诚信值_广体</option>
  90. </select>
  91. <div class="search_list">
  92. <iframe id="reportContent" frameborder="0" scrolling="no" style="width: 99%; height: 95%; position: absolute;
  93. left: 5px;"></iframe>
  94. </div>
  95. </div>