hwttlmt.jsp 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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. title: {
  110. text: ' '
  111. },
  112. xAxis: [{
  113. categories: eval(month)
  114. }],
  115. yAxis: [{ // Primary yAxis
  116. labels: {
  117. format: '{value}吨',
  118. style: {
  119. color: '#89A54E'
  120. }
  121. },
  122. title: {
  123. text: '吞吐量',
  124. style: {
  125. color: '#89A54E'
  126. }
  127. }
  128. }, { // Secondary yAxis
  129. title: {
  130. text: '增长率',
  131. style: {
  132. color: '#4572A7'
  133. }
  134. },
  135. labels: {
  136. format: '{value}%',
  137. style: {
  138. color: '#4572A7'
  139. }
  140. },
  141. opposite: true
  142. }],
  143. tooltip: {
  144. shared: true
  145. },
  146. legend: {
  147. layout: 'vertical',
  148. align: 'left',
  149. x: 120,
  150. verticalAlign: 'top',
  151. y: 100,
  152. floating: true,
  153. backgroundColor: '#FFFFFF'
  154. },
  155. series: [{
  156. name: '增长率',
  157. color: '#4572A7',
  158. type: 'column',
  159. yAxis: 1,
  160. data: eval('['+hbzzl+']'),
  161. tooltip: {
  162. valueSuffix: ' %'
  163. }
  164. }, {
  165. name: '吞吐量',
  166. color: '#89A54E',
  167. type: 'spline',
  168. data:eval('['+zttl+']'),
  169. tooltip: {
  170. valueSuffix: '吨'
  171. }
  172. }]
  173. });
  174. });
  175. </script>
  176. </head>
  177. <body>
  178. <div style="margin-top:30px;">
  179. <form action="${app }/hwttlfz/hwttlmt" id="hwttlmtform" method="post">
  180. <!-- 查询条件 -->
  181. <div >
  182. <table class="search_table" cellpadding="0" cellspacing="0">
  183. <tr>
  184. <th width="10%"></th>
  185. <th width="24%"></th>
  186. <th width="10%"></th>
  187. <th width="24%"></th>
  188. <th width="10%"></th>
  189. <th width="22%"></th>
  190. </tr>
  191. <tr>
  192. <td class="right">
  193. 所在地:&nbsp;
  194. </td>
  195. <td>
  196. <span id="szdsel">
  197. </span>
  198. </td>
  199. <td class="right">
  200. 所在港口:&nbsp;
  201. </td>
  202. <td>
  203. <span id="szgksel">
  204. </span>
  205. </td>
  206. <td class="right">
  207. 所在港区:&nbsp;
  208. </td>
  209. <td>
  210. <span id="szgqsel">
  211. </span>
  212. </td>
  213. </tr>
  214. <tr>
  215. <td class="right">
  216. 货物种类:&nbsp;
  217. </td>
  218. <td>
  219. <span id="hwzl">
  220. </span>
  221. </td>
  222. <td class="right">
  223. 报告时间起:&nbsp;
  224. </td>
  225. <td>
  226. <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})}'})">
  227. </td>
  228. <td class="right">
  229. 报告时间止:&nbsp;
  230. </td>
  231. <td>
  232. <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})}'})">
  233. </td>
  234. </tr>
  235. <tr>
  236. <td class="right">
  237. 同比/环比:&nbsp;
  238. </td>
  239. <td>
  240. <span id="thb">
  241. </span>
  242. </td>
  243. <td class="right">
  244. 是否对外开放:&nbsp;
  245. </td>
  246. <td>
  247. <span id="sfdwkf"></span>
  248. </td>
  249. </tr>
  250. <tr>
  251. <td class="right" colspan="6">
  252. <a class="btn btn-default btn-sm" href="#" onclick="hwttlmt.main.search()">
  253. <i class="glyphicon glyphicon-search"></i>查询
  254. </a>
  255. </td>
  256. </tr>
  257. </table>
  258. </div>
  259. </form>
  260. </div>
  261. <h2 align="center" style="margin-top:20px;" ><font style="font-size:16px;color:#196794;font-family:微软雅黑;font-weight: bold;">
  262. ${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>
  263. <div id="container" style="min-width: 200px; min-height:300px; margin: 0 auto;"></div>
  264. </body>
  265. </html>