gkjcssjsfx.jsp 8.3 KB

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