StudentCardReport.cshtml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. @*@using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "StudentCardReport";
  5. }
  6. @section scripts{
  7. <script type="text/javascript">
  8. var campusID, schoolYearID, collegeID, standardID, learningFormID, classmajorID, InSchoolStatus, isGraduation, isPhotos;
  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 "campusID":
  18. campusID = arr[i].split("=")[1];
  19. break;
  20. case "schoolYearID":
  21. schoolYearID = arr[i].split("=")[1];
  22. break;
  23. case "collegeID":
  24. collegeID = arr[i].split("=")[1];
  25. break;
  26. case "standardID":
  27. standardID = arr[i].split("=")[1];
  28. break;
  29. case "learningFormID":
  30. learningFormID = arr[i].split("=")[1];
  31. break;
  32. case "classmajorID":
  33. classmajorID = arr[i].split("=")[1];
  34. break;
  35. case "InSchoolStatus":
  36. InSchoolStatus = arr[i].split("=")[1];
  37. break;
  38. case "isGraduation":
  39. isGraduation = arr[i].split("=")[1];
  40. break;
  41. case "isPhotos":
  42. isPhotos = arr[i].split("=")[1];
  43. break;
  44. }
  45. }
  46. }
  47. campusID = campusID == "" || null ? ":isnull=true" : "=" + campusID;
  48. schoolYearID = schoolYearID == null ? "-1" : schoolYearID;
  49. collegeID = collegeID == "" || null ? ":isnull=true" : "=" + collegeID;
  50. standardID = standardID == "" || null ? ":isnull=true" : "=" + standardID;
  51. learningFormID = learningFormID == "" || null ? ":isnull=true" : "=" + learningFormID;
  52. classmajorID = classmajorID == "" || null ? ":isnull=true" : "=" + classmajorID;
  53. InSchoolStatus = InSchoolStatus == null ? "-1" : InSchoolStatus;
  54. isGraduation = isGraduation == null ? "-1" : +isGraduation;
  55. isPhotos = isPhotos == null ? "-1" : isPhotos;
  56. //var FinalExaminationID = location.search.split("&")[0].split("=")[1]; //从地址获取FinalExaminationID参数
  57. $("#reportContent").attr("src", EMISFunction.ReportingServices + "?%2fStudentManage%2fStudentCardView&rs:Command=Render&CampusID"
  58. + campusID + "&Years=" + schoolYearID + "&CollegeID" + collegeID + "&StandardID" + standardID
  59. + "&LearningformID" + learningFormID + "&ClassID" + classmajorID + "&InSchoolStatusID=" + InSchoolStatus
  60. + "&StudentStatus=" + isGraduation + "&isPhotos=" + isPhotos + "&rc:Parameters=false");
  61. </script>
  62. }
  63. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  64. <div class="search_list">
  65. <iframe id="reportContent" frameborder="0" style="width: 99%; height: 95%; position: absolute;
  66. left: 5px;"></iframe>
  67. </div>
  68. </div>
  69. *@