123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250 |
- <%@ page language="java" contentType="text/html;charset=utf-8"%>
- <%@include file="/pages/includes/taglibs.jsp"%>
- <html>
- <head>
- <title>宁夏集控</title>
- <style>
- body{
- font-size: 12px;
- margin-left: 0px;
- margin-top: 0px;
- margin-right: 0px;
- margin-bottom: 0px;
- }
- @font-face {
- font-family: 'fontNameRegular';
- src: url('<%=request.getContextPath() %>/resource/fonts/DS-DIGIT-webfont.eot');
- src: local('<%=request.getContextPath() %>/resource/fonts/DS-DIGIT-webfont Regular'),
- local('<%=request.getContextPath() %>/resource/fonts/DS-DIGIT-webfont'),
- url('<%=request.getContextPath() %>/resource/fonts/DS-DIGIT-webfont.woff') format('woff'),
- url('<%=request.getContextPath() %>/resource/fonts/DS-DIGIT-webfont.ttf') format('truetype'),
- url('<%=request.getContextPath() %>/resource/fonts/DS-DIGIT-webfont.svg#fontName') format('svg');
- font-size: 20px;
- font-weight: bolder;
- }
- </style>
- <link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resource/plugin/jqueryui/css/custom-theme/jquery-ui-1.9.2.custom.css" />
- <script src="<%=request.getContextPath() %>/resource/plugin/jqueryui/js/jquery-ui-1.9.2.custom.js" type="text/javascript"></script>
- <script src="<%=request.getContextPath() %>/resource/plugin/jqueryui/development-bundle/ui/jquery.ui.widget.js"></script>
- <script src="<%=request.getContextPath() %>/resource/plugin/jqueryui/development-bundle/ui/jquery.ui.tabs.js"></script>
- <script type="text/javascript">
- $(function() {
- $( "#tabs" ).tabs({
- select: function(event, ui) {
- // ui.tab锚元素选中的标签页
- // ui.panel 锚元素选中的标签页的内容
- // ui.index 锚元素选中的标签页的索引(从0开始)
-
- if(ui.index==0)
- {
- var wpId2 =$(window.frames[1].document).find("#wpId").val();
- var wpId3 =$(window.frames[2].document).find("#wpId").val();
-
- var year2 =$(window.frames[1].document).find("#year").val();
- var year3 =$(window.frames[2].document).find("#year").val();
-
- var month2 =$(window.frames[1].document).find("#month").val();
- var month3 =$(window.frames[2].document).find("#month").val();
-
-
- var wpId;
- var year;
- var month;
-
- if(wpId2!=null && wpId2!="")
- {
- wpId=wpId2;
- }
- else if(wpId3!=null && wpId3!="")
- {
- wpId=wpId3;
- }
-
-
- if(year2!=null && year2!="")
- {
- year=year2;
- }
- else if(year3!=null && year3!="")
- {
- year=year3;
- }
-
-
- if(month2!=null && month2!="")
- {
- month=month2;
- }
- else if(month3!=null && month3!="")
- {
- month=month3;
- }
-
- /****************************************************************/
- $("#tab1").attr("src","<%=request.getContextPath() %>/scatter/wpscatterIndex.action?year="+year
- +"&month="+month+"&wpId="+wpId);
- $("#tab2").attr("src","about:blank");
- $("#tab3").attr("src","about:blank");
- }else if(ui.index==1)
- {
- var wpId1 =$(window.frames[0].document).find("#wpId").val();
- var wpId3 =$(window.frames[2].document).find("#wpId").val();
-
- var year1 =$(window.frames[0].document).find("#year").val();
- var year3 =$(window.frames[2].document).find("#year").val();
-
- var month1 =$(window.frames[0].document).find("#month").val();
- var month3 =$(window.frames[2].document).find("#month").val();
-
-
- var wpId;
- var year;
- var month;
-
- if(wpId1!=null && wpId1!="")
- {
- wpId=wpId1;
- }
- else if(wpId3!=null && wpId3!="")
- {
- wpId=wpId3;
- }
-
-
- if(year1!=null && year1!="")
- {
- year=year1;
- }
- else if(year3!=null && year3!="")
- {
- year=year3;
- }
-
-
- if(month1!=null && month1!="")
- {
- month=month1;
- }
- else if(month3!=null && month3!="")
- {
- month=month3;
- }
-
- /****************************************************************/
- $("#tab2").attr("src","<%=request.getContextPath() %>/scatter/pjscatterIndex.action?year="+year
- +"&month="+month+"&wpId="+wpId);
- $("#tab1").attr("src","about:blank");
- $("#tab3").attr("src","about:blank");
-
- }else if(ui.index==2)
- {
- var wpId1 =$(window.frames[0].document).find("#wpId").val();
- var wpId2 =$(window.frames[1].document).find("#wpId").val();
-
- var year1 =$(window.frames[0].document).find("#year").val();
- var year2 =$(window.frames[1].document).find("#year").val();
-
- var month1 =$(window.frames[0].document).find("#month").val();
- var month2 =$(window.frames[1].document).find("#month").val();
-
-
- var wpId;
- var year;
- var month;
-
- if(wpId2!=null && wpId2!="")
- {
- wpId=wpId2;
- }
- else if(wpId1!=null && wpId1!="")
- {
- wpId=wpId1;
- }
-
-
- if(year2!=null && year2!="")
- {
- year=year2;
- }
- else if(year1!=null && year1!="")
- {
- year=year1;
- }
-
-
- if(month2!=null && month2!="")
- {
- month=month2;
- }
- else if(month1!=null && month1!="")
- {
- month=month1;
- }
-
- /****************************************************************/
- $("#tab3").attr("src","<%=request.getContextPath() %>/scatter/lnscatterIndex.action?year="+year
- +"&month="+month+"&wpId="+wpId);
- $("#tab2").attr("src","about:blank");
- $("#tab1").attr("src","about:blank");
-
- }
- }
- });
- var year='<s:property value="year"/>';
- var month='<s:property value="month"/>';
- $("#tab1").attr("src","<%=request.getContextPath() %>/scatter/wpscatterIndex.action?year="+year
- +"&month="+month);
- });
- </script>
- </head>
- <body>
- <div id="tabs" style="width: 1560px;height: 795px;border: 0px;margin: 0px">
- <ul >
- <li><a href="#tabs-1" >风场功率风速排布图</a></li>
- <li><a href="#tabs-2" >项目功率风速排布图</a></li>
- <li><a href="#tabs-3">线路功率风速排布图</a></li>
-
- </ul>
- <div id="tabs-1" style="border: 0px;margin: 0px">
- <iframe id="tab1" src="" style="border: 0px;margin: 0px" marginwidth="0px" marginheight="0px" frameborder="0" width="1560px" height="785px" scrolling="auto"></iframe>
- </div>
- <div id="tabs-2" style="border: 0px;margin: 0px">
- <iframe id="tab2" src="" style="border: 0px;margin: 0px" marginwidth="0px" marginheight="0px" frameborder="0" width="1560px" height="785px" scrolling="auto"></iframe>
- </div>
- <div id="tabs-3" style="border: 0px;margin: 0px">
- <iframe id="tab3" src="" style="border: 0px;margin: 0px" marginwidth="0px" marginheight="0px" frameborder="0" width="1560px" height="785px" scrolling="auto"></iframe>
- </div>
- </div>
- </body>
- </html>
|