jzxxltj.jsp 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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. lang : {
  42. contextButtonTitle : "图表菜单",
  43. resetRoom : "重置",
  44. printChart : "打印图片",
  45. downloadJPEG : "下载JPEG 图片",
  46. downloadPDF : "下载PDF文档",
  47. downloadPNG : "下载PNG 图片",
  48. downloadSVG : "下载SVG 矢量图",
  49. exportButtonTitle : "导出图片",
  50. },
  51. xAxis: [{
  52. categories: eval(name)
  53. }],
  54. yAxis: [{ // Secondary yAxis
  55. title: {
  56. text: '箱数',
  57. style: {
  58. color: '#4572A7'
  59. }
  60. },
  61. labels: {
  62. formatter: function() {
  63. return this.value +' 个';
  64. },
  65. style: {
  66. color: '#4572A7'
  67. }
  68. }
  69. }, { // Tertiary yAxis
  70. title: {
  71. text: '空箱占比率',
  72. style: {
  73. color: '#AA4643'
  74. }
  75. },
  76. labels: {
  77. formatter: function() {
  78. return this.value +' %';
  79. },
  80. style: {
  81. color: '#AA4643'
  82. }
  83. },
  84. opposite: true
  85. }],
  86. tooltip: {
  87. pointFormat: '<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b><br/>',
  88. shared: true
  89. },
  90. /* plotOptions: {
  91. column: {
  92. stacking: 'percent'
  93. }
  94. }, */
  95. /* legend: {
  96. layout: 'vertical',
  97. align: 'left',
  98. x: 80,
  99. verticalAlign: 'top',
  100. y: 80,
  101. floating: true,
  102. backgroundColor: '#FFFFFF'
  103. }, */
  104. series: [{
  105. name: '空箱数量',
  106. color: '#4572A7',
  107. type: 'column',
  108. data: eval('['+kxxl+']'),
  109. tooltip: {
  110. valueSuffix: ' 个'
  111. }
  112. }, {
  113. name: '重箱箱数',
  114. type: 'column',
  115. color: '#AA4643',
  116. data: eval('['+zxxl+']'),
  117. tooltip: {
  118. valueSuffix: ' 个'
  119. }
  120. }, {
  121. name: '空箱占用率',
  122. color: '#89A54E',
  123. type: 'spline',
  124. yAxis: 1,
  125. data: eval('['+zbl+']'),
  126. tooltip: {
  127. valueSuffix: ' %'
  128. }
  129. }]
  130. });
  131. });
  132. function searchMain(){
  133. $("#jzxxltjform").submit();
  134. }
  135. </script>
  136. <style type="text/css">
  137. .main_table td{
  138. text-align:left;
  139. padding-left:20px;
  140. width:50px;
  141. }
  142. </style>
  143. </head>
  144. <body>
  145. <div style="margin-top:30px;">
  146. <form action="${app }/jzxxltj/main" id="jzxxltjform" method="post">
  147. <table class="search_table" cellpadding="0" cellspacing="0" align="center" >
  148. <tr>
  149. <th width="11%"></th>
  150. <th width="22%"></th>
  151. <th width="11%"></th>
  152. <th width="22%"></th>
  153. <th width="12%"></th>
  154. </tr>
  155. <tr align="center">
  156. <td align="right" >报告时间起:&nbsp;</td>
  157. <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>
  158. <td align="right">报告时间止:&nbsp;</td>
  159. <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>
  160. <td align="left">
  161. <a class="btn btn-default btn-sm" href="#" onclick="searchMain()">
  162. <i class="glyphicon glyphicon-search"></i>检索</a>
  163. </td>
  164. </tr>
  165. <tr>
  166. </tr>
  167. </table>
  168. </form>
  169. </div>
  170. <h2 align="center" style="margin-top:20px;" ><font style="font-size:16px;color:#196794;font-family:微软雅黑;font-weight: bold;">
  171. (${startDate}月——${endDate}月)集装箱空箱/重箱统计图</font></h2>
  172. <br>
  173. <div id="container" style="min-width: 200px; min-height:300px; margin: 0 auto;"></div>
  174. </body>
  175. </html>