市长热线演示版

YearContrastPic.aspx 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="YearContrastPic.aspx.cs" Inherits="HySoft.BaseCallCenter.Web.reportmanage.operationdata.YearContrastPic" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head runat="server">
  5. <title>图形报表</title>
  6. <link href="../../scripts/ui/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  7. <link href="../../images/style.css" rel="stylesheet" type="text/css" />
  8. <script src="../../scripts/jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
  9. <script src="../../scripts/ui/js/ligerui.min.js" type="text/javascript"></script>
  10. <script src="../../scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
  11. <script src="../../ThirdParty/js/highcharts.js" type="text/javascript"></script>
  12. <script src="../../ThirdParty/js/modules/exporting.js" type="text/javascript"></script>
  13. <%--wbx 5-7 打印--%>
  14. <script type="text/javascript">
  15. $(function () {
  16. SearchData();
  17. });
  18. //报表列表
  19. function SearchData() {
  20. $('#divfromlist').highcharts({
  21. chart: {
  22. },
  23. title: {
  24. text: '呼叫数据对比'
  25. },
  26. xAxis: {
  27. categories: ['一月', '二月', '三月', '四月', '五月','六月','七月','八月','九月','十月','十一月','十二月']
  28. },
  29. yAxis: [
  30. {
  31. title: {
  32. text: '百分比',
  33. style: {
  34. color: '#4572A7'
  35. }
  36. }, opposite: true },
  37. {
  38. title: {
  39. text: '电话数量'
  40. },
  41. }
  42. ],
  43. tooltip: {
  44. shared: true
  45. },
  46. series: [{
  47. type: 'column',
  48. name: document.getElementById("dptBgn").value+'客户呼叫数',
  49. yAxis: 1,
  50. tooltip: {
  51. valueSuffix: '通'
  52. },
  53. data: [<%=GetKhCall( dptBgn.SelectedValue) %>],
  54. color:Highcharts.getOptions().colors[6],
  55. }, {
  56. type: 'column',
  57. name: document.getElementById("dptBgn").value+'坐席接听数',
  58. yAxis: 1,
  59. tooltip: {
  60. valueSuffix: '通'
  61. },
  62. data: [<%=GetZxJt(dptBgn.SelectedValue) %>],
  63. color:Highcharts.getOptions().colors[7],
  64. }, {
  65. type: 'column',
  66. name: document.getElementById("dptEnd").value+'客户呼叫数',
  67. yAxis: 1,
  68. tooltip: {
  69. valueSuffix: '通'
  70. },
  71. data: [<%=GetKhCall(dptEnd.SelectedValue) %>],
  72. color:Highcharts.getOptions().colors[8],
  73. }
  74. , {
  75. type: 'column',
  76. name: document.getElementById("dptEnd").value+'坐席接听数',
  77. yAxis: 1,
  78. tooltip: {
  79. valueSuffix: '通'
  80. },
  81. data: [<%=GetZxJt(dptEnd.SelectedValue) %>],
  82. color:Highcharts.getOptions().colors[9],
  83. }
  84. ,{
  85. type: 'spline',
  86. name: document.getElementById("dptBgn").value+'接通率',
  87. data: [<%=GetJTL(dptBgn.SelectedValue) %>],
  88. tooltip: {
  89. valueSuffix: '%'
  90. },
  91. marker: {
  92. lineWidth: 2,
  93. lineColor: Highcharts.getOptions().colors[5],
  94. fillColor: 'white'
  95. }
  96. }, {
  97. type: 'spline',
  98. name: document.getElementById("dptEnd").value+'接通率',
  99. tooltip: {
  100. valueSuffix: '%'
  101. },
  102. data: [<%=GetJTL(dptEnd.SelectedValue) %>],
  103. marker: {
  104. lineWidth: 2,
  105. lineColor: Highcharts.getOptions().colors[5],
  106. fillColor: 'white'
  107. }
  108. }]
  109. });
  110. }
  111. </script>
  112. </head>
  113. <body>
  114. <form id="form1" runat="server">
  115. <asp:HiddenField ID="htHtmlReport" runat="server" />
  116. <div class="tools_box">
  117. <div class="tools_bar">
  118. <div class="search_box">
  119. 选择年份:<asp:DropDownList ID="dptBgn" runat="server" CssClass="select"></asp:DropDownList> &nbsp;对比&nbsp;
  120. <asp:DropDownList ID="dptEnd" runat="server" CssClass="select"></asp:DropDownList>&nbsp;&nbsp;
  121. <input id="Button2" type="button" value="搜 索" class="btnSearch" onclick="SearchData();" />&nbsp;&nbsp;
  122. </div>
  123. </div>
  124. </div>
  125. <div id="divfromlist" style="min-width: 700px; height: 400px">
  126. </div>
  127. </form>
  128. </body>
  129. </html>