gkjcssjsfx.jsp 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. <!DOCTYPE html >
  2. <html >
  3. <%@ page language="java" contentType="text/html; charset=UTF-8"
  4. pageEncoding="UTF-8"%>
  5. <%@ page import="java.text.SimpleDateFormat"%>
  6. <%@ include file="../../common.jsp"%>
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  9. <title>单船吞吐量统计</title>
  10. </head>
  11. <link rel="stylesheet" type="text/css" href="${app }/static/css/public.css" />
  12. <link rel="stylesheet" type="text/css" href="${app }/static/css/other.css" />
  13. <script type="text/javascript" src="${app }/static/js/highcharts.js"></script>
  14. <script type="text/javascript" src="${app }/static/js/exporting.js"></script>
  15. <script type="text/javascript" src="${app }/static/js/highcharts-3d.js"></script>
  16. <script type="text/javascript" src="${app }/static/biz/js/gkyxtjyfx/gkjcssjsfx/gkjcssjsfxmain.js"></script>
  17. <script type="text/javascript">
  18. $(document).ready(function () {
  19. gkjcssjsfx.main.init();
  20. gkjcssjsfx.main.xmlx='${xmlxid}';
  21. gkjcssjsfx.main.tzlx='${tzlxid}';
  22. initXmlxSelect('xmlxsel',gkjcssjsfx.main.xmlx,'80%');
  23. initTzlxSelect('tzlxsel',gkjcssjsfx.main.tzlx,'80%')
  24. });
  25. $(function () {
  26. iFrameHeightIframe('${menuid}');//自适应高度
  27. var list = '${tzjhgllist}';
  28. var aqname=[];
  29. var aqsum=[];
  30. $.each(JSON.parse(list), function (n, value) {
  31. aqname[n]=value.szd;
  32. aqsum[n]=value.ztz;
  33. });
  34. $('#container').highcharts({
  35. chart: {
  36. zoomType: 'xy'
  37. },
  38. plotOptions:{
  39. series:{pointWidth:16}
  40. },
  41. credits:{//右下角的文本
  42. enabled: true,
  43. position: {//位置设置
  44. align: 'right',
  45. x: -10,
  46. y: -10
  47. },
  48. href: "",//点击文本时的链接
  49. style: {
  50. color:'blue'
  51. },
  52. text: ""//显示的内容
  53. },
  54. title: {
  55. text: ' '
  56. },
  57. lang :{
  58. contextButtonTitle:"图表菜单",
  59. resetRoom:"重置",
  60. printChart:"打印图片",
  61. downloadJPEG: "下载JPEG 图片",
  62. downloadPDF: "下载PDF文档",
  63. downloadPNG: "下载PNG 图片",
  64. downloadSVG: "下载SVG 矢量图",
  65. exportButtonTitle: "导出图片",
  66. },
  67. xAxis: [{
  68. categories: aqname,
  69. labels: {
  70. rotation: 0,
  71. style: {
  72. color: '#262626',//刻度颜色
  73. fontSize:'12px', //刻度字体大小
  74. fontFamily:'宋体'
  75. }
  76. }
  77. }],
  78. yAxis: [{ // Primary yAxis
  79. labels: {
  80. format: '{value}',
  81. style: {
  82. color: '#262626'
  83. }
  84. },
  85. title: {
  86. text: '',
  87. style: {
  88. color: '#262626'
  89. }
  90. }
  91. }, { // Secondary yAxis
  92. title: {
  93. text: '',
  94. style: {
  95. color: '#262626'
  96. }
  97. },
  98. labels: {
  99. format: '{value}',
  100. style: {
  101. color: '#262626'
  102. }
  103. },
  104. opposite: true
  105. }],
  106. tooltip: {
  107. shared: true
  108. },
  109. legend: {
  110. align: 'left',
  111. x: 50,
  112. verticalAlign: 'top',
  113. y: -15,
  114. floating: true,
  115. backgroundColor: 'transparent'
  116. },
  117. series: [{
  118. name: '<font style="font-size:12px;color:#5e5d5d;">总投资</font>',
  119. color: '#5F49E4',
  120. type: 'column',
  121. yAxis: 1,
  122. data: eval('['+aqsum+']'),
  123. tooltip: {
  124. valueSuffix: '万元'
  125. }
  126. }]
  127. });
  128. });
  129. /**
  130. * highcharts 主题
  131. */
  132. // Load the fonts
  133. /* Highcharts.createElement('link', {
  134. href: 'http://fonts.googleapis.com/css?family=Signika:400,700',
  135. rel: 'stylesheet',
  136. type: 'text/css'
  137. }, null, document.getElementsByTagName('head')[0]); */
  138. // Add the background image to the container
  139. /* Highcharts.wrap(Highcharts.Chart.prototype, 'getContainer', function (proceed) {
  140. proceed.call(this);
  141. this.container.style.background = 'url(http://www.highcharts.com/samples/graphics/sand.png)';
  142. }); */
  143. Highcharts.theme = {
  144. colors: ["#f45b5b", "#8085e9", "#8d4654", "#7798BF", "#aaeeee", "#ff0066", "#eeaaee",
  145. "#55BF3B", "#DF5353", "#7798BF", "#aaeeee"],
  146. chart: {
  147. backgroundColor: null,
  148. style: {
  149. fontFamily: "Signika, serif"
  150. }
  151. },
  152. title: {
  153. style: {
  154. color: 'black',
  155. fontSize: '16px',
  156. fontWeight: 'bold'
  157. }
  158. },
  159. subtitle: {
  160. style: {
  161. color: 'black'
  162. }
  163. },
  164. tooltip: {
  165. borderWidth: 0
  166. },
  167. legend: {
  168. itemStyle: {
  169. fontWeight: 'bold',
  170. fontSize: '13px'
  171. }
  172. },
  173. xAxis: {
  174. labels: {
  175. style: {
  176. color: '#6e6e70'
  177. }
  178. }
  179. },
  180. yAxis: {
  181. labels: {
  182. style: {
  183. color: '#6e6e70'
  184. }
  185. }
  186. },
  187. plotOptions: {
  188. series: {
  189. shadow: true
  190. },
  191. candlestick: {
  192. lineColor: '#404048'
  193. },
  194. map: {
  195. shadow: false
  196. }
  197. },
  198. // Highstock specific
  199. navigator: {
  200. xAxis: {
  201. gridLineColor: '#D0D0D8'
  202. }
  203. },
  204. rangeSelector: {
  205. buttonTheme: {
  206. fill: 'white',
  207. stroke: '#C0C0C8',
  208. 'stroke-width': 1,
  209. states: {
  210. select: {
  211. fill: '#D0D0D8'
  212. }
  213. }
  214. }
  215. },
  216. scrollbar: {
  217. trackBorderColor: '#C0C0C8'
  218. },
  219. // General
  220. background2: '#E0E0E8'
  221. };
  222. // Apply the theme
  223. Highcharts.setOptions(Highcharts.theme);
  224. </script>
  225. </head>
  226. <body>
  227. <div style="margin-top:30px;">
  228. <form action="${app }/gkjcssjsfx/main" id="gkjcssjsfxform" method="post">
  229. <table class="search_table" cellpadding="0" cellspacing="0" align="center" >
  230. <tr>
  231. <th width="20%"></th>
  232. <th width="20%"></th>
  233. <th width="20%"></th>
  234. <th width="10%"></th>
  235. <th width="10%"></th>
  236. <th width="20%"></th>
  237. </tr>
  238. <tr align="center">
  239. <td align="right" ><font style="font-size:14px;color:#196794;font-family:微软雅黑;">项目类型:&nbsp;</font></td>
  240. <td align="left" ><span id="xmlxsel"></span></td>
  241. <td align="right" ><font style="font-size:14px;color:#196794;font-family:微软雅黑;">投资类型:&nbsp;</font></td>
  242. <td align="left"><span id="tzlxsel"></span></td>
  243. <td align="right">
  244. <a class="btn btn-default btn-sm" href="#" onclick="gkjcssjsfx.main.search()">
  245. <i class="glyphicon glyphicon-search"></i>检索</a>
  246. </td>
  247. </tr>
  248. <tr>
  249. </tr>
  250. </table>
  251. </form>
  252. </div>
  253. <h2 align="center" style="margin-top:20px;" ><font style="font-size:16px;color:#196794;font-family:微软雅黑;font-weight: bold;">
  254. 项目投资统计图</font></h2>
  255. <div id="container" style="min-width: 200px; min-height:300px; margin: 0 auto;"></div>
  256. <div style="margin:28px 35px ;height:40%;min-height:200px;">
  257. <table class="table_ud">
  258. <tr>
  259. <c:if test="${flag!=1 }">
  260. <th >所在港口</th>
  261. </c:if>
  262. <c:if test="${flag!=0 }">
  263. <th >所在港区</th>
  264. </c:if>
  265. <th >总投资(万元)</th>
  266. </tr>
  267. <c:forEach items="${tzjhgltj}" var="tzjhgltjlist">
  268. <tr>
  269. <td>${tzjhgltjlist.szd}</td>
  270. <td>${tzjhgltjlist.ztz}</td>
  271. </tr>
  272. </c:forEach>
  273. </table>
  274. </div>
  275. </body>
  276. </html>