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