1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- @*@using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "StudentCardReport";
- }
- @section scripts{
- <script type="text/javascript">
- var campusID, schoolYearID, collegeID, standardID, learningFormID, classmajorID, InSchoolStatus, isGraduation, isPhotos;
- var str = decodeURI(location.href); //取得整个地址栏
- var num = str.indexOf("?");
- if (num != -1) {
- str = str.substr(num + 1); //取得所有参数
- //各个参数放到数组里
- var arr = str.split("&");
- for (var i = 0; i < arr.length; i++) {
- switch (arr[i].split("=")[0]) {
- case "campusID":
- campusID = arr[i].split("=")[1];
- break;
- case "schoolYearID":
- schoolYearID = arr[i].split("=")[1];
- break;
- case "collegeID":
- collegeID = arr[i].split("=")[1];
- break;
- case "standardID":
- standardID = arr[i].split("=")[1];
- break;
- case "learningFormID":
- learningFormID = arr[i].split("=")[1];
- break;
- case "classmajorID":
- classmajorID = arr[i].split("=")[1];
- break;
- case "InSchoolStatus":
- InSchoolStatus = arr[i].split("=")[1];
- break;
- case "isGraduation":
- isGraduation = arr[i].split("=")[1];
- break;
- case "isPhotos":
- isPhotos = arr[i].split("=")[1];
- break;
- }
- }
- }
- campusID = campusID == "" || null ? ":isnull=true" : "=" + campusID;
- schoolYearID = schoolYearID == null ? "-1" : schoolYearID;
- collegeID = collegeID == "" || null ? ":isnull=true" : "=" + collegeID;
- standardID = standardID == "" || null ? ":isnull=true" : "=" + standardID;
- learningFormID = learningFormID == "" || null ? ":isnull=true" : "=" + learningFormID;
- classmajorID = classmajorID == "" || null ? ":isnull=true" : "=" + classmajorID;
- InSchoolStatus = InSchoolStatus == null ? "-1" : InSchoolStatus;
- isGraduation = isGraduation == null ? "-1" : +isGraduation;
- isPhotos = isPhotos == null ? "-1" : isPhotos;
- //var FinalExaminationID = location.search.split("&")[0].split("=")[1]; //从地址获取FinalExaminationID参数
- $("#reportContent").attr("src", EMISFunction.ReportingServices + "?%2fStudentManage%2fStudentCardView&rs:Command=Render&CampusID"
- + campusID + "&Years=" + schoolYearID + "&CollegeID" + collegeID + "&StandardID" + standardID
- + "&LearningformID" + learningFormID + "&ClassID" + classmajorID + "&InSchoolStatusID=" + InSchoolStatus
- + "&StudentStatus=" + isGraduation + "&isPhotos=" + isPhotos + "&rc:Parameters=false");
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- <div class="search_list">
- <iframe id="reportContent" frameborder="0" style="width: 99%; height: 95%; position: absolute;
- left: 5px;"></iframe>
- </div>
- </div>
- *@
|