dcttltj.jsp 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. <!DOCTYPE html >
  2. <html >
  3. <%@ page language="java" contentType="text/html; charset=UTF-8"
  4. pageEncoding="UTF-8"%>
  5. <%@ include file="../common/base.jsp"%>
  6. <%@ page import="java.text.SimpleDateFormat"%>
  7. <%@ include file="../common.jsp"%>
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  10. <title>单船吞吐量统计</title>
  11. </head>
  12. <link rel="stylesheet" type="text/css" href="${app }/css/public.css" />
  13. <link rel="stylesheet" type="text/css" href="${app }/css/other.css" />
  14. <script type="text/javascript" src="${app }/static/js/highcharts.js"></script>
  15. <script type="text/javascript" src="${app }/static/js/exporting.js"></script>
  16. <script type="text/javascript" src="${app }/static/js/highcharts-3d.js"></script>
  17. <script type="text/javascript" src="${app }/static/biz/js/dcttl/dcttltjmain.js"></script>
  18. <script>
  19. $(function () {
  20. var list = ${dcttltjlist};
  21. var aqname=[];
  22. var aqcount=[];
  23. var aqsum=[];
  24. $.each(list, function (n, value) {
  25. aqname[n]=value.szd;
  26. aqcount[n]=value.sbsl;
  27. aqsum[n]=value.sum;
  28. });
  29. var myDate = new Date();
  30. year=myDate.getFullYear(); //获取完整的年份(4位,1970-????)
  31. month=myDate.getMonth()+1; //获取当前月份(0-11,0代表1月)
  32. day=("0"+myDate.getDate()).substr(-2); //获取当前日(1-31)
  33. nextDay=myDate.getDate()+1;
  34. if (month<10){
  35. month = "0"+month;
  36. }
  37. var firstDay = "01";
  38. if($('#d4311').val()==null||$('#d4311').val()==''){
  39. $('#d4311').val(year+'-'+month+'-'+firstDay);
  40. }
  41. if($('#d4312').val()==null||$('#d4312').val()==''){
  42. $('#d4312').val(year+'-'+month+'-'+day);
  43. }
  44. $('#container').highcharts({
  45. chart: {
  46. zoomType: 'xy'
  47. },
  48. plotOptions:{
  49. series:{pointWidth:16}
  50. },
  51. credits:{//右下角的文本
  52. enabled: true,
  53. position: {//位置设置
  54. align: 'right',
  55. x: -10,
  56. y: -10
  57. },
  58. href: "",//点击文本时的链接
  59. style: {
  60. color:'blue'
  61. },
  62. text: ""//显示的内容
  63. },
  64. title: {
  65. text: ' '
  66. },
  67. lang :{
  68. contextButtonTitle:"图表菜单",
  69. resetRoom:"重置",
  70. printChart:"打印图片",
  71. downloadJPEG: "下载JPEG 图片",
  72. downloadPDF: "下载PDF文档",
  73. downloadPNG: "下载PNG 图片",
  74. downloadSVG: "下载SVG 矢量图",
  75. exportButtonTitle: "导出图片",
  76. },
  77. xAxis: [{
  78. categories: aqname,
  79. labels: {
  80. rotation: 0,
  81. style: {
  82. color: '#262626',//刻度颜色
  83. fontSize:'12px', //刻度字体大小
  84. fontFamily:'宋体'
  85. }
  86. }
  87. }],
  88. yAxis: [{ // Primary yAxis
  89. labels: {
  90. format: '{value}',
  91. style: {
  92. color: '#262626'
  93. }
  94. },
  95. title: {
  96. text: '单船作业吞吐量(万吨)',
  97. style: {
  98. color: '#262626'
  99. }
  100. }
  101. }, { // Secondary yAxis
  102. title: {
  103. text: '单船作业申报数量(个)',
  104. style: {
  105. color: '#262626'
  106. }
  107. },
  108. labels: {
  109. format: '{value}',
  110. style: {
  111. color: '#262626'
  112. }
  113. },
  114. opposite: true
  115. }],
  116. tooltip: {
  117. shared: true
  118. },
  119. legend: {
  120. align: 'left',
  121. x: 50,
  122. verticalAlign: 'top',
  123. y: -15,
  124. floating: true,
  125. backgroundColor: 'transparent'
  126. },
  127. series: [{
  128. name: '<font style="font-size:12px;color:#5e5d5d;">单船作业申报数量(个)</font>',
  129. color: '#5F49E4',
  130. type: 'column',
  131. yAxis: 1,
  132. data: aqcount,
  133. tooltip: {
  134. valueSuffix: ' 个'
  135. }
  136. }, {
  137. name: '<font style="font-size:12px;color:#5e5d5d;">单船作业吞吐量(万吨)</font>',
  138. color: '#F4B620',
  139. type: 'spline',
  140. data: aqsum,
  141. tooltip: {
  142. valueSuffix: '万吨'
  143. }
  144. }]
  145. });
  146. });
  147. /**
  148. * highcharts 主题
  149. */
  150. // Load the fonts
  151. Highcharts.createElement('link', {
  152. href: 'http://fonts.googleapis.com/css?family=Signika:400,700',
  153. rel: 'stylesheet',
  154. type: 'text/css'
  155. }, null, document.getElementsByTagName('head')[0]);
  156. // Add the background image to the container
  157. Highcharts.wrap(Highcharts.Chart.prototype, 'getContainer', function (proceed) {
  158. proceed.call(this);
  159. this.container.style.background = 'url(http://www.highcharts.com/samples/graphics/sand.png)';
  160. });
  161. Highcharts.theme = {
  162. colors: ["#f45b5b", "#8085e9", "#8d4654", "#7798BF", "#aaeeee", "#ff0066", "#eeaaee",
  163. "#55BF3B", "#DF5353", "#7798BF", "#aaeeee"],
  164. chart: {
  165. backgroundColor: null,
  166. style: {
  167. fontFamily: "Signika, serif"
  168. }
  169. },
  170. title: {
  171. style: {
  172. color: 'black',
  173. fontSize: '16px',
  174. fontWeight: 'bold'
  175. }
  176. },
  177. subtitle: {
  178. style: {
  179. color: 'black'
  180. }
  181. },
  182. tooltip: {
  183. borderWidth: 0
  184. },
  185. legend: {
  186. itemStyle: {
  187. fontWeight: 'bold',
  188. fontSize: '13px'
  189. }
  190. },
  191. xAxis: {
  192. labels: {
  193. style: {
  194. color: '#6e6e70'
  195. }
  196. }
  197. },
  198. yAxis: {
  199. labels: {
  200. style: {
  201. color: '#6e6e70'
  202. }
  203. }
  204. },
  205. plotOptions: {
  206. series: {
  207. shadow: true
  208. },
  209. candlestick: {
  210. lineColor: '#404048'
  211. },
  212. map: {
  213. shadow: false
  214. }
  215. },
  216. // Highstock specific
  217. navigator: {
  218. xAxis: {
  219. gridLineColor: '#D0D0D8'
  220. }
  221. },
  222. rangeSelector: {
  223. buttonTheme: {
  224. fill: 'white',
  225. stroke: '#C0C0C8',
  226. 'stroke-width': 1,
  227. states: {
  228. select: {
  229. fill: '#D0D0D8'
  230. }
  231. }
  232. }
  233. },
  234. scrollbar: {
  235. trackBorderColor: '#C0C0C8'
  236. },
  237. // General
  238. background2: '#E0E0E8'
  239. };
  240. // Apply the theme
  241. Highcharts.setOptions(Highcharts.theme);
  242. </script>
  243. </head>
  244. <body>
  245. <div style="margin-top:30px;">
  246. <form action="${app }/dcttltj/main.html" id="dcttltjform" method="post">
  247. <table class="search_table" cellpadding="0" cellspacing="0" align="center" >
  248. <tr>
  249. <th width="20%"></th>
  250. <th width="20%"></th>
  251. <th width="20%"></th>
  252. <th width="10%"></th>
  253. <th width="10%"></th>
  254. <th width="20%"></th>
  255. </tr>
  256. <tr align="center">
  257. <td align="right" ><font style="font-size:14px;color:#196794;font-family:微软雅黑;">报告时间起:&nbsp;</font></td>
  258. <td align="left" ><input id="d4311" class="Wdate" style="width: 201px;" name="startDate" value="${startDate}" type="text" onFocus="WdatePicker({lang:'zh-cn',skin:'default',dateFmt:'yyyy-MM-dd',maxDate: '#F{$dp.$D(\'d4312\',{d:0})}'})"></td>
  259. <td align="right"><font style="font-size:14px;color:#196794;font-family:微软雅黑;">报告时间止:&nbsp;</font></td>
  260. <td align="left" ><input id="d4312" class="Wdate" style="width: 201px;" name="endDate" value="${endDate}" type="text" onFocus="WdatePicker({lang:'zh-cn',skin:'default',dateFmt:'yyyy-MM-dd',minDate: '#F{$dp.$D(\'d4311\',{d:0})}'})"></td>
  261. <td align="left" ></td>
  262. <td align="left">
  263. <a class="btn btn-default btn-sm" href="#" onclick="dcttltj.main.search()">
  264. <i class="glyphicon glyphicon-search"></i>检索</a>
  265. </td>
  266. </tr>
  267. <tr>
  268. </tr>
  269. </table>
  270. </form>
  271. </div>
  272. <h2 align="center" style="margin-top:20px;" ><font style="font-size:16px;color:#196794;font-family:微软雅黑;font-weight: bold;">
  273. ${queryTime1}<c:if test="${queryTime2!=''&&(queryTime2!=queryTime1)}">-${queryTime2}</c:if>单船吞吐量统计图</font></h2>
  274. <div id="container" style="min-width: 200px; min-height:300px; margin: 0 auto;"></div>
  275. <div style="margin:28px 35px ;height:40%;min-height:200px;overflow:auto">
  276. <table class="table_ud">
  277. <tr >
  278. <th >所在地</th>
  279. <th >单船作业申报数量(个)</th>
  280. <th >单船作业吞吐量(万吨)</th>
  281. </tr>
  282. <c:forEach items="${dcttltj}" var="dcttltjlist">
  283. <tr>
  284. <td>${dcttltjlist.szd}</td>
  285. <td >${dcttltjlist.sbsl}</td>
  286. <td >${dcttltjlist.sum}</td>
  287. </tr>
  288. </c:forEach>
  289. </table>
  290. </div>
  291. </body>
  292. </html>