whtj.jsp 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  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/base.jsp"%>
  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/aqjgwhtj/aqjgwhtjmain.js"></script>
  18. <script>
  19. $(function () {
  20. var list = ${aqjgwhtjlist};
  21. var aqname=[];
  22. var aqcount=[];
  23. var aqsum=[];
  24. $.each(list, function (n, value) {
  25. aqname[n]=value.bz;
  26. aqcount[n]=value.count;
  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. printChart:"打印图片",
  70. downloadJPEG: "下载JPEG 图片",
  71. downloadPDF: "下载PDF文档",
  72. downloadPNG: "下载PNG 图片",
  73. downloadSVG: "下载SVG 矢量图",
  74. exportButtonTitle: "导出图片",
  75. },
  76. xAxis: [{
  77. categories: aqname,
  78. labels: {
  79. rotation: 0,
  80. style: {
  81. color: '#262626',//刻度颜色
  82. fontSize:'12px', //刻度字体大小
  83. fontFamily:'宋体'
  84. }
  85. }
  86. }],
  87. yAxis: [{ // Primary yAxis
  88. labels: {
  89. format: '{value}',
  90. style: {
  91. color: '#262626'
  92. }
  93. },
  94. title: {
  95. text: '危货作业装载量(万吨)',
  96. style: {
  97. color: '#262626'
  98. }
  99. }
  100. }, { // Secondary yAxis
  101. title: {
  102. text: '危货作业申报审批(个)',
  103. style: {
  104. color: '#262626'
  105. }
  106. },
  107. labels: {
  108. format: '{value}',
  109. style: {
  110. color: '#262626'
  111. }
  112. },
  113. opposite: true
  114. }],
  115. tooltip: {
  116. shared: true
  117. },
  118. legend: {
  119. align: 'left',
  120. x: 50,
  121. verticalAlign: 'top',
  122. y: -15,
  123. floating: true,
  124. backgroundColor: 'transparent'
  125. },
  126. series: [{
  127. name: '<font style="font-size:12px;color:#5e5d5d;">危货作业申报审批(个)</font>',
  128. color: '#5F49E4',
  129. type: 'column',
  130. yAxis: 1,
  131. data: aqcount,
  132. tooltip: {
  133. valueSuffix: ' 个'
  134. }
  135. }, {
  136. name: '<font style="font-size:12px;color:#5e5d5d;">危货作业装载量(万吨)</font>',
  137. color: '#F4B620',
  138. type: 'spline',
  139. data: aqsum,
  140. tooltip: {
  141. valueSuffix: '万吨'
  142. }
  143. }]
  144. });
  145. });
  146. /**
  147. * highcharts 主题
  148. */
  149. // Load the fonts
  150. Highcharts.createElement('link', {
  151. href: 'http://fonts.googleapis.com/css?family=Signika:400,700',
  152. rel: 'stylesheet',
  153. type: 'text/css'
  154. }, null, document.getElementsByTagName('head')[0]);
  155. // Add the background image to the container
  156. Highcharts.wrap(Highcharts.Chart.prototype, 'getContainer', function (proceed) {
  157. proceed.call(this);
  158. this.container.style.background = 'url(http://www.highcharts.com/samples/graphics/sand.png)';
  159. });
  160. Highcharts.theme = {
  161. colors: ["#f45b5b", "#8085e9", "#8d4654", "#7798BF", "#aaeeee", "#ff0066", "#eeaaee",
  162. "#55BF3B", "#DF5353", "#7798BF", "#aaeeee"],
  163. chart: {
  164. backgroundColor: null,
  165. style: {
  166. fontFamily: "Signika, serif"
  167. }
  168. },
  169. title: {
  170. style: {
  171. color: 'black',
  172. fontSize: '16px',
  173. fontWeight: 'bold'
  174. }
  175. },
  176. subtitle: {
  177. style: {
  178. color: 'black'
  179. }
  180. },
  181. tooltip: {
  182. borderWidth: 0
  183. },
  184. legend: {
  185. itemStyle: {
  186. fontWeight: 'bold',
  187. fontSize: '13px'
  188. }
  189. },
  190. xAxis: {
  191. labels: {
  192. style: {
  193. color: '#6e6e70'
  194. }
  195. }
  196. },
  197. yAxis: {
  198. labels: {
  199. style: {
  200. color: '#6e6e70'
  201. }
  202. }
  203. },
  204. plotOptions: {
  205. series: {
  206. shadow: true
  207. },
  208. candlestick: {
  209. lineColor: '#404048'
  210. },
  211. map: {
  212. shadow: false
  213. }
  214. },
  215. // Highstock specific
  216. navigator: {
  217. xAxis: {
  218. gridLineColor: '#D0D0D8'
  219. }
  220. },
  221. rangeSelector: {
  222. buttonTheme: {
  223. fill: 'white',
  224. stroke: '#C0C0C8',
  225. 'stroke-width': 1,
  226. states: {
  227. select: {
  228. fill: '#D0D0D8'
  229. }
  230. }
  231. }
  232. },
  233. scrollbar: {
  234. trackBorderColor: '#C0C0C8'
  235. },
  236. // General
  237. background2: '#E0E0E8'
  238. };
  239. // Apply the theme
  240. Highcharts.setOptions(Highcharts.theme);
  241. </script>
  242. </head>
  243. <body>
  244. <div style="margin-top:30px;">
  245. <form action="${app }/aqjgwhtj/queryList.html" id="aqjgwhtjform" method="post">
  246. <table class="search_table" cellpadding="0" cellspacing="0" align="center" >
  247. <tr>
  248. <th width="20%"></th>
  249. <th width="20%"></th>
  250. <th width="20%"></th>
  251. <th width="10%"></th>
  252. <th width="10%"></th>
  253. <th width="20%"></th>
  254. </tr>
  255. <tr align="center">
  256. <td align="right" ><font style="font-size:14px;color:#196794;font-family:微软雅黑;">报告时间起:&nbsp;</font></td>
  257. <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>
  258. <td align="right"><font style="font-size:14px;color:#196794;font-family:微软雅黑;">报告时间止:&nbsp;</font></td>
  259. <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>
  260. <td align="left" ></td>
  261. <td align="left">
  262. <a class="btn btn-default btn-sm" href="#" onclick="aqjgwhtj.main.search()">
  263. <i class="glyphicon glyphicon-search"></i>检索</a>
  264. </td>
  265. </tr>
  266. <tr>
  267. </tr>
  268. </table>
  269. </form>
  270. </div>
  271. <h2 align="center" style="margin-top:20px;"><font style="font-size:16px;color:#196794;font-family:微软雅黑;font-weight: bold;">
  272. ${queryTime1}<c:if test="${queryTime2!=''&&(queryTime2!=queryTime1)}">-${queryTime2}</c:if>危货作业统计图</font></h2>
  273. <div id="container" style="min-width: 200px; min-height:300px; margin: 0 auto;margin-top:10px;"></div>
  274. <div style="margin:28px 35px ;height:40%;min-height:200px;overflow:auto;">
  275. <table class="table_ud" >
  276. <tr >
  277. <th >所在地</th>
  278. <th >危货作业申报审批(个)</th>
  279. <th >危货作业装载量(万吨)</th>
  280. </tr>
  281. <c:forEach items="${aqjgwhtj}" var="aqjgwhtj">
  282. <tr>
  283. <td>${aqjgwhtj.bz}</td>
  284. <td >${aqjgwhtj.count}</td>
  285. <td >${aqjgwhtj.sum}</td>
  286. </tr>
  287. </c:forEach>
  288. </table>
  289. </div>
  290. </body>
  291. </html>