hwttlmt.jsp 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  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/gkttlfx/hwttlmtmain.js"></script>
  17. <script>
  18. function inithwzlSelect(divid,existVal,width){
  19. $.post($.app + "/hwttlfz/selectHwzl", {
  20. }, function(data) {
  21. var str = "";
  22. str+="<select class='hwzlselectpicker' name='hwzlid' >";
  23. str+="<option></option>";
  24. if(data){
  25. for(var i=0;i<data.length;i++){
  26. var hwzl = data[i];
  27. if(hwzl.val==existVal){
  28. str+=" <option selected='selected' value='"+hwzl.id+"' >"+hwzl.text+"</option>";
  29. }else{
  30. str+=" <option value='"+hwzl.id+"' >"+hwzl.text+"</option>";
  31. }
  32. }
  33. }
  34. str+="</select>";
  35. $("#"+divid).empty();
  36. $("#"+divid).append(str);
  37. $('.hwzlselectpicker').selectpicker({
  38. width:width
  39. });
  40. }, "json");
  41. }
  42. function initthbSelect(){
  43. var str = "";
  44. str+="<select class='thbselectpicker' name='tonghuanbi' >";
  45. str+="<option></option>";
  46. if("tongbi"=='${tonghuanbi}'){
  47. str+=" <option value='tongbi' selected='selected'>同比</option>";
  48. str+=" <option value='huanbi'>环比</option>";
  49. }
  50. else{
  51. str+=" <option value='tongbi'>同比</option>";
  52. str+=" <option value='huanbi' selected='selected'>环比</option>";
  53. }
  54. str+="</select>";
  55. $("#thb").empty();
  56. $("#thb").append(str);
  57. $('.thbselectpicker').selectpicker({
  58. width:'80%'
  59. });
  60. }
  61. function initsfdwkfSelect(divid,existVal,width){
  62. $.post($.app + "/hwttlfz/selectSfdwkf", {
  63. }, function(data) {
  64. var str = "";
  65. str+="<select class='sfdwkfselectpicker' name='sfdwkf' >";
  66. str+="<option></option>";
  67. if(data){
  68. for(var i=0;i<data.length;i++){
  69. var sf = data[i];
  70. if(sf.id==existVal){
  71. str+=" <option selected='selected' value='"+sf.id+"' >"+sf.text+"</option>";
  72. }else{
  73. str+=" <option value='"+sf.id+"' >"+sf.text+"</option>";
  74. }
  75. }
  76. }
  77. str+="</select>";
  78. $("#"+divid).empty();
  79. $("#"+divid).append(str);
  80. $('.sfdwkfselectpicker').selectpicker({
  81. width:width
  82. });
  83. }, "json");
  84. }
  85. $(function () {
  86. initthbSelect();
  87. initsfdwkfSelect('sfdwkf','${sfdwkf}','80%');
  88. inithwzlSelect('hwzl','${hwzl}','80%');
  89. initszdSelect('szdsel', '${szd}', 'showgk', '80%');
  90. initgkSelect('szgksel', '${szgk}', '${szd}', 'showgq', '80%');
  91. initgqSelect('szgqsel', '${szgq}','${szd}', '${szgk}', null, '80%');
  92. iFrameHeightIframe('${menuid}');//自适应高度
  93. var list = '${hwttllist}';
  94. var listhb='${hwttlhblist}';
  95. var zttl=[];
  96. var month=[];
  97. var hbzzl=[];
  98. $.each(JSON.parse(list), function (n, value) {
  99. month[n]=value.month;
  100. zttl[n]=value.zttl;
  101. });
  102. $.each(JSON.parse(listhb), function (n, value) {
  103. hbzzl[n]=value.hwttlhb;
  104. });
  105. $('#container').highcharts({
  106. chart: {
  107. zoomType: 'xy'
  108. },
  109. lang : {
  110. contextButtonTitle : "图表菜单",
  111. resetRoom : "重置",
  112. printChart : "打印图片",
  113. downloadJPEG : "下载JPEG 图片",
  114. downloadPDF : "下载PDF文档",
  115. downloadPNG : "下载PNG 图片",
  116. downloadSVG : "下载SVG 矢量图",
  117. exportButtonTitle : "导出图片",
  118. },
  119. title: {
  120. text: ' '
  121. },
  122. xAxis: [{
  123. categories: eval(month)
  124. }],
  125. yAxis: [{ // Primary yAxis
  126. labels: {
  127. format: '{value}吨',
  128. style: {
  129. color: '#89A54E'
  130. }
  131. },
  132. title: {
  133. text: '吞吐量',
  134. style: {
  135. color: '#89A54E'
  136. }
  137. }
  138. }, { // Secondary yAxis
  139. title: {
  140. text: '增长率',
  141. style: {
  142. color: '#4572A7'
  143. }
  144. },
  145. labels: {
  146. format: '{value}%',
  147. style: {
  148. color: '#4572A7'
  149. }
  150. },
  151. opposite: true
  152. }],
  153. tooltip: {
  154. shared: true
  155. },
  156. legend: {
  157. layout: 'vertical',
  158. align: 'left',
  159. x: 120,
  160. verticalAlign: 'top',
  161. y: 100,
  162. floating: true,
  163. backgroundColor: '#FFFFFF'
  164. },
  165. series: [{
  166. name: '增长率',
  167. color: '#4572A7',
  168. type: 'column',
  169. yAxis: 1,
  170. data: eval('['+hbzzl+']'),
  171. tooltip: {
  172. valueSuffix: ' %'
  173. }
  174. }, {
  175. name: '吞吐量',
  176. color: '#89A54E',
  177. type: 'spline',
  178. data:eval('['+zttl+']'),
  179. tooltip: {
  180. valueSuffix: '吨'
  181. }
  182. }]
  183. });
  184. });
  185. </script>
  186. </head>
  187. <body>
  188. <div style="margin-top:30px;">
  189. <form action="${app }/hwttlfz/hwttlmt" id="hwttlmtform" method="post">
  190. <!-- 查询条件 -->
  191. <div >
  192. <table class="search_table" cellpadding="0" cellspacing="0">
  193. <tr>
  194. <th width="10%"></th>
  195. <th width="24%"></th>
  196. <th width="10%"></th>
  197. <th width="24%"></th>
  198. <th width="10%"></th>
  199. <th width="22%"></th>
  200. </tr>
  201. <tr>
  202. <td class="right">
  203. 所在地:&nbsp;
  204. </td>
  205. <td>
  206. <span id="szdsel">
  207. </span>
  208. </td>
  209. <td class="right">
  210. 所在港口:&nbsp;
  211. </td>
  212. <td>
  213. <span id="szgksel">
  214. </span>
  215. </td>
  216. <td class="right">
  217. 所在港区:&nbsp;
  218. </td>
  219. <td>
  220. <span id="szgqsel">
  221. </span>
  222. </td>
  223. </tr>
  224. <tr>
  225. <td class="right">
  226. 货物种类:&nbsp;
  227. </td>
  228. <td>
  229. <span id="hwzl">
  230. </span>
  231. </td>
  232. <td class="right">
  233. 报告时间起:&nbsp;
  234. </td>
  235. <td>
  236. <input id="d4311" class="Wdate" style="width:80%;" name="startDate" value="${startDate}" type="text" onFocus="WdatePicker({lang:'zh-cn',skin:'default',dateFmt:'yyyy-MM-dd',maxDate: '#F{$dp.$D(\'d4312\',{d:0})}'})">
  237. </td>
  238. <td class="right">
  239. 报告时间止:&nbsp;
  240. </td>
  241. <td>
  242. <input id="d4312" class="Wdate" style="width:80%;" name="endDate" value="${endDate}" type="text" onFocus="WdatePicker({lang:'zh-cn',skin:'default',dateFmt:'yyyy-MM-dd',minDate: '#F{$dp.$D(\'d4311\',{d:0})}'})">
  243. </td>
  244. </tr>
  245. <tr>
  246. <td class="right">
  247. 同比/环比:&nbsp;
  248. </td>
  249. <td>
  250. <span id="thb">
  251. </span>
  252. </td>
  253. <td class="right">
  254. 是否对外开放:&nbsp;
  255. </td>
  256. <td>
  257. <span id="sfdwkf"></span>
  258. </td>
  259. </tr>
  260. <tr>
  261. <td class="right" colspan="6">
  262. <a class="btn btn-default btn-sm" href="#" onclick="hwttlmt.main.search()">
  263. <i class="glyphicon glyphicon-search"></i>查询
  264. </a>
  265. </td>
  266. </tr>
  267. </table>
  268. </div>
  269. </form>
  270. </div>
  271. <h2 align="center" style="margin-top:20px;" ><font style="font-size:16px;color:#196794;font-family:微软雅黑;font-weight: bold;">
  272. ${szgkzw}<c:if test="${sfdwkf=='201'}">公用码头</c:if><c:if test="${sfdwkf=='202'}">货主码头</c:if>${hwzlzw}吞吐量发展<c:if test="${tonghuanbi=='tongbi'}">同比</c:if><c:if test="${tonghuanbi=='huanbi'||(tonghuanbi=='')}">环比</c:if>分析</font></h2>
  273. <div id="container" style="min-width: 200px; min-height:300px; margin: 0 auto;"></div>
  274. </body>
  275. </html>