jzxxltj.jsp 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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">
  17. $(document).ready(function () {
  18. iFrameHeightIframe('${menuid}');//自适应高度
  19. });
  20. $(function () {
  21. var list = '${list}';
  22. var kxxl=[];
  23. var zxxl=[];
  24. var name=[];
  25. var zxl=[];
  26. var zbl=[]
  27. $.each(JSON.parse(list), function (n, value) {
  28. name[n]=value.tjmonth+"月";
  29. kxxl[n]=value.kxxl;
  30. zxxl[n]=value.zxxl;
  31. zxl[n]=value.zxl;
  32. zbl[n]=value.zbl;
  33. });
  34. $('#container').highcharts({
  35. title:{
  36. text:""
  37. },
  38. chart: {
  39. type: 'column'
  40. },
  41. xAxis: [{
  42. categories: eval(name)
  43. }],
  44. yAxis: [{ // Secondary yAxis
  45. min:0,
  46. max:100,
  47. gridLineWidth: 0,
  48. title: {
  49. text: '箱数',
  50. style: {
  51. color: '#4572A7'
  52. }
  53. },
  54. labels: {
  55. formatter: function() {
  56. return this.value +' 个';
  57. },
  58. style: {
  59. color: '#4572A7'
  60. }
  61. }
  62. }, { // Tertiary yAxis
  63. min:0,
  64. max:500,
  65. gridLineWidth: 0,
  66. title: {
  67. text: '空箱占比率',
  68. style: {
  69. color: '#AA4643'
  70. }
  71. },
  72. labels: {
  73. formatter: function() {
  74. return this.value +' %';
  75. },
  76. style: {
  77. color: '#AA4643'
  78. }
  79. },
  80. opposite: true
  81. }],
  82. tooltip: {
  83. pointFormat: '<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b><br/>',
  84. shared: true
  85. },
  86. plotOptions: {
  87. column: {
  88. stacking: 'percent'
  89. }
  90. },
  91. /* legend: {
  92. layout: 'vertical',
  93. align: 'left',
  94. x: 80,
  95. verticalAlign: 'top',
  96. y: 80,
  97. floating: true,
  98. backgroundColor: '#FFFFFF'
  99. }, */
  100. series: [{
  101. name: '空箱数量',
  102. color: '#4572A7',
  103. type: 'column',
  104. data: eval('['+kxxl+']'),
  105. tooltip: {
  106. valueSuffix: ' 个'
  107. }
  108. }, {
  109. name: '重箱箱数',
  110. type: 'column',
  111. color: '#AA4643',
  112. data: eval('['+zxxl+']'),
  113. tooltip: {
  114. valueSuffix: ' 个'
  115. }
  116. }, {
  117. name: '空箱占用率',
  118. color: '#89A54E',
  119. type: 'spline',
  120. yAxis: 1,
  121. data: eval('['+zbl+']'),
  122. tooltip: {
  123. valueSuffix: ' %'
  124. }
  125. }]
  126. });
  127. });
  128. </script>
  129. <style type="text/css">
  130. .main_table td{
  131. text-align:left;
  132. padding-left:20px;
  133. width:50px;
  134. }
  135. </style>
  136. </head>
  137. <body>
  138. <div style="margin-top:30px;">
  139. <form action="${app }/jzxttltj/main" id="jzxttltjform" method="post">
  140. <table class="search_table" cellpadding="0" cellspacing="0" align="center" >
  141. <tr>
  142. <th width="11%"></th>
  143. <th width="22%"></th>
  144. <th width="11%"></th>
  145. <th width="22%"></th>
  146. <th width="12%"></th>
  147. </tr>
  148. <tr align="center">
  149. <td align="right" >报告时间起:&nbsp;</td>
  150. <td align="left" ><input id="d4311" class="Wdate" name="startDate" value="${startDate}" type="text" onFocus="WdatePicker({lang:'zh-cn',skin:'default',dateFmt:'yyyy-MM',maxDate: '#F{$dp.$D(\'d4312\',{d:0})}'})"></td>
  151. <td align="right">报告时间止:&nbsp;</td>
  152. <td align="left" ><input id="d4312" class="Wdate" name="endDate" value="${endDate}" type="text" onFocus="WdatePicker({lang:'zh-cn',skin:'default',dateFmt:'yyyy-MM',minDate: '#F{$dp.$D(\'d4311\',{d:0})}'})"></td>
  153. <td align="left">
  154. <a class="btn btn-default btn-sm" href="#" onclick="search()">
  155. <i class="glyphicon glyphicon-search"></i>检索</a>
  156. </td>
  157. </tr>
  158. <tr>
  159. </tr>
  160. </table>
  161. </form>
  162. </div>
  163. <h2 align="center" style="margin-top:20px;" ><font style="font-size:16px;color:#196794;font-family:微软雅黑;font-weight: bold;">
  164. ${startDate}-${endDate}集装箱空箱/重箱统计图</font></h2>
  165. <div id="container" style="min-width: 200px; min-height:300px; margin: 0 auto;"></div>
  166. </body>
  167. </html>