12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "Index";
- }
- @section scripts{
- <script type="text/javascript">
- $(function () {
- // var iframe = document.getElementById("reportContent");
- // if (iframe) {
- // var iframeWin = iframe.contentWindow || iframe.contentDocument.parentWindow;
- // if (iframeWin.document.body) {
- // iframe.height = (iframeWin.document.documentElement.scrollHeight || iframeWin.document.body.scrollHeight)-200;
- // }
- // }
- $("#reportContent").width(document.getElementById("search_list").offsetWidth);
- $("#divHead").width($("#reportContent").width());
- $("#reportContent").height(document.getElementById("search_list").offsetHeight - document.getElementById("table").offsetHeight);
- })
- Report();
- function Report() {
- var InSchoolStatusID = document.getElementById("selReport").value;
- if (CMS_SystemConfig.ReportType == 1) {
- if (InSchoolStatusID == 0) {
- $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fStudentManage%2fStudentStatistics&INSchoolStatus_RAP=0"); //&rc:toolbar=false
- }
- else if (InSchoolStatusID == 1) {
- $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fStudentManage%2fStudentStatistics&INSchoolStatus_RAP=1"); //&rc:toolbar=false
- }
- else {
- $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fStudentManage%2fStudentStatistics&INSchoolStatus_RAP="); //&rc:toolbar=false
- }
- }
- if (CMS_SystemConfig.ReportType == 2) {
- var fileUrl = CMS_SystemConfig.VirtualDirectoryPath + "/StudentStatistics/StudentStatisticsPDF?InSchoolStatusID=" + InSchoolStatusID;
- $("#reportContent").attr("src", CMS_SystemConfig.VirtualDirectoryPath + "/Scripts/pdf.js/web/viewer.html?file=" + encodeURIComponent(fileUrl));
- }
- }
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;"
- id="divPanel">
- <div class="search_list" id="search_list" style="height: 99%">
- <table id="table"><tr><td>在校情况:</td><td><select id="selReport" onchange="Report()">
- <option value="2">全部</option>
- <option value="1" selected="selected">在校</option>
- <option value="0">非在校</option>
- </select></td></tr></table>
- @*<div style="width: 99%; text-align: center; background-color:#C6E4FD" id="divHead">
- <h2>
- @ViewBag.SchoolYearID</h2>
- </div>*@
- <iframe id="reportContent" frameborder="0" scrolling="no" style="width: 99%; height: 100%; position: absolute;
- "></iframe>
- </div>
- </div>
|