123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- @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 == 1) {
- $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fStudentManage%2fStudentCountView&InSchoolStatusID_RAP=1"); //&rc:toolbar=false
- }
- else if (InSchoolStatusID == 2) {
- $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fStudentManage%2fStudentCountView&InSchoolStatusID_RAP=2"); //&rc:toolbar=false
- }
- else {
- $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fStudentManage%2fStudentCountView&InSchoolStatusID_RAP=0"); //&rc:toolbar=false
- }
- }
- if (CMS_SystemConfig.ReportType == 2) {
- var fileUrl = CMS_SystemConfig.VirtualDirectoryPath + "/StudentStatistics/StudentCountPDF?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="0">全部</option>
- <option value="1" selected="selected">在校</option>
- <option value="2">非在校</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>
|