Nav apraksta

TotalCount_Report.aspx 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="TotalCount_Report.aspx.cs" Inherits="Report_TotalCount_Report" validateRequest="false" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  3. <html>
  4. <head id="Head1" runat="server">
  5. <title>话务量统计</title>
  6. <base target="_self" />
  7. <link href="../_common/styles/global.css" rel="stylesheet" type="text/css" />
  8. <link href="../_common/styles/dialogs.css" rel="stylesheet" type="text/css" />
  9. <link href="../_common/styles/select.css" rel="stylesheet" type="text/css" />
  10. <link href="../_common/styles/form.css" rel="stylesheet" type="text/css" />
  11. <link href="../_common/styles/controls.css" rel="stylesheet" type="text/css" />
  12. <link href="../_common/styles/nav.css" rel="stylesheet" type="text/css" />
  13. <link href="../_common/styles/menu.css" type="text/css" rel="stylesheet">
  14. <link href="../_common/styles/tabs.css" type="text/css" rel="stylesheet">
  15. <script language="javascript" src="../_common/scripts/global.js"></script>
  16. <script language="javascript" src="../_common/scripts/windowinformation.js"></script>
  17. <script language="javascript" src="../_common/scripts/Util.js"></script>
  18. <script language="javascript" src="../_grid/action.js"></script>
  19. <script src="../_common/scripts/calendar.js" type="text/javascript"></script>
  20. <script type="text/javascript" language="javascript" src="../_javascripts/globalctrl.js"></script>
  21. <script src="../_common/scripts/print_function.js" type="text/javascript"></script>
  22. <style type="text/css">
  23. .wbox
  24. {
  25. width: 100%;
  26. height: 100%;
  27. border: 1px solid #849bba;
  28. background: #FFF;
  29. padding: 1px;
  30. }
  31. .lbox
  32. {
  33. width: 100%;
  34. height: 100%;
  35. padding-bottom: 4px;
  36. padding-left: 4px;
  37. padding-right: 4px;
  38. background: #c6d4e4;
  39. }
  40. .tbox
  41. {
  42. height: 25px;
  43. color: #15428b;
  44. font-size: 14px;
  45. cursor: move;
  46. margin: 0px;
  47. padding: 0px;
  48. padding-left: 5px;
  49. line-height: 25px;
  50. overflow:hidden;}
  51. .tbox img
  52. {
  53. float: right;
  54. margin-right: 3px;
  55. margin-top: 5px;
  56. top:-28px;
  57. position:relative;}
  58. .nrbox
  59. {
  60. width: 100%;
  61. height: auto;
  62. border: 1px solid #849bba;
  63. background: #dfe8f6;
  64. margin: 0px auto;
  65. }
  66. </style>
  67. <style type="text/css">
  68. .formtabletitle
  69. {
  70. height: 25px;
  71. background-color: #D5EDFE;
  72. border: 1px solid #CCCCCC;
  73. padding: 3px 3px 3px 3px;
  74. text-align: center;
  75. }
  76. .formtabletitle1
  77. {
  78. height: 25px;
  79. background-color: #D5EDFE;
  80. border-left: 0px solid #FFFFFF;
  81. border-right: 1px solid #CCCCCC;
  82. border-top: 1px solid #CCCCCC;
  83. border-bottom: 1px solid #CCCCCC;
  84. padding: 3px 3px 3px 3px;
  85. text-align: center;
  86. }
  87. .formtabletitle2
  88. {
  89. height: 25px;
  90. background-color: #D5EDFE;
  91. border-left: 0px solid #FFFFFF;
  92. border-right: 1px solid #CCCCCC;
  93. border-top: 0px solid #FFFFFF;
  94. border-bottom: 1px solid #CCCCCC;
  95. padding: 3px 3px 3px 3px;
  96. text-align: center;
  97. }
  98. .formtabletitle3
  99. {
  100. height: 25px;
  101. background-color: #D5EDFE;
  102. border-left: 1px solid #CCCCCC;
  103. border-right: 1px solid #CCCCCC;
  104. border-top: 0px solid #CCCCCC;
  105. border-bottom: 1px solid #CCCCCC;
  106. padding: 3px 10px 3px 2px;
  107. text-align: center;
  108. }
  109. .formtable_td
  110. {
  111. border-top: 0px solid #CCCCCC;
  112. border-bottom: 1px solid #CCCCCC;
  113. border-left: 1px solid #CCCCCC;
  114. border-right: 1px solid #CCCCCC;
  115. padding-left: 2px;
  116. height: 25px;
  117. padding-top: 3px;
  118. padding-bottom: 3px;
  119. background-color: #ffffff;
  120. }
  121. .formtable_td1
  122. {
  123. border-top: 0px solid #CCCCCC;
  124. border-bottom: 1px solid #CCCCCC;
  125. border-left: 0px solid #CCCCCC;
  126. border-right: 1px solid #CCCCCC;
  127. padding-left: 2px;
  128. height: 25px;
  129. padding-top: 3px;
  130. padding-bottom: 3px;
  131. }
  132. .formtable_td2
  133. {
  134. border-bottom: 1px solid #CCCCCC;
  135. padding-left: 2px;
  136. height: 25px;
  137. padding-top: 3px;
  138. padding-bottom: 3px;
  139. }
  140. .wdate
  141. {
  142. border-bottom:#999 1px solid;
  143. border-left:#999 1px solid;
  144. background:url(../Scripts/My97DatePicker/skin/datePicker.gif) #fff no-repeat right 50%;
  145. height:20px;
  146. border-top:#999 1px solid;
  147. border-right:#999 1px solid;
  148. }
  149. </style>
  150. <script language="javascript" type="text/javascript">
  151. var divmark = "";
  152. divmark += "<div id=\"divLock\" style=\"z-index:1;background-color:#AAA;filter:alpha(opacity=50);position: absolute;width:expression(this.parentNode.scrollWidth);top:expression(this.parentNode.scrollTop); left:0; height:100%;right:0; bottom:0; display:none;\"></div>";
  153. divmark += "<div id=\"divMessageBox\" onmousedown=\"MM_dragLayer('divMessageBox','',0,0,0,0,true,false,-1,-1,-1,-1,false,false,0,'',false,'')\" style=\"display:none;position: absolute;top:expression(this.parentNode.scrollHeight/2-100);left:expression(this.parentNode.scrollWidth/2-100);z-index:2;\">";
  154. divmark += "<div class=\"wbox\"><div class=\"lbox\"><h1 class=\"tbox\"><span id=\"spanTitle\"></span><img src=\"../_images/dialogclose.gif\" style=\"cursor:hand;\" onclick=\"MessageBoxClose();\" /></h1>";
  155. divmark += "<div id=\"divContent\" class=\"nrbox\"></div></div></div></div>";
  156. document.write(divmark);
  157. </script>
  158. <script type="text/javascript">
  159. document.onkeyup = click;
  160. function click() {
  161. if (event.keyCode == 13) {
  162. document.all("btnSelect").click();
  163. }
  164. }
  165. function OpenMessage(strid, strtitle, strmessage, strwidth, btnstyle, _height) {
  166. var btnstr = "";
  167. switch (btnstyle) {
  168. case 0:
  169. btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();'>确 定</button></div>";
  170. break;
  171. case 1:
  172. btnstr = "<br /><div style='padding-bottom:15px; text-align:center;'><img alt='加载数据中' style='width:180px;' src='../_imgs/inprogress.gif'></div><br />";
  173. break;
  174. case 2:
  175. btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();pagination(1);'>确 定</button></div>";
  176. break;
  177. case 3:
  178. btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();LoadingData();'>确 定</button></div>";
  179. break;
  180. case 4:
  181. btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();DeleteOpt();'>确 定</button>&nbsp;&nbsp;&nbsp;&nbsp;<button style='width: 65px;' onclick='MessageBoxClose();'>取 消</button></div>";
  182. break;
  183. default:
  184. break;
  185. }
  186. if (_height != null) {
  187. strmessage = "<div style='padding:0px;'>" + strmessage + "</div>" + btnstr;
  188. document.getElementById("divMessageBox").style.height = _height;
  189. }
  190. else {
  191. strmessage = "<div style='padding:10px;'>" + strmessage + "</div>" + btnstr;
  192. document.getElementById("divMessageBox").style.height = 50;
  193. _height = 120;
  194. }
  195. document.getElementById("spanTitle").innerHTML = strtitle;
  196. document.getElementById("divContent").innerHTML = strmessage;
  197. document.getElementById("divMessageBox").style.width = strwidth;
  198. try {
  199. document.getElementById("divMessageBox").style.top = (document.body.clientHeight - _height) / 2;
  200. document.getElementById("divMessageBox").style.left = (document.body.clientWidth - strwidth) / 2;
  201. }
  202. catch (e)
  203. { }
  204. document.getElementById("divLock").style.display = "block";
  205. document.getElementById("divMessageBox").style.display = "block";
  206. }
  207. function OpenWindowPage(_title, _id, _width, _height, _url) {
  208. var html = "<iframe id='" + _id + "' src='" + _url + "' style='width:100%; height:" + _height + ";'></iframe>";
  209. OpenMessage(_id, _title, html, _width, -1, _height);
  210. }
  211. function MessageBoxClose() {
  212. document.getElementById("divLock").style.display = "none";
  213. document.getElementById("divMessageBox").style.display = "none";
  214. }
  215. function CloseWindowPage(type) {
  216. MessageBoxClose();
  217. }
  218. function Init() {
  219. LoadingData();
  220. }
  221. var _searchitems;
  222. function GetSearchOperationsObj() {
  223. _searchitems = new Array;
  224. _searchitems[0] = document.getElementById("txtBeginDate").value;
  225. _searchitems[1] = document.getElementById("txtEndDate").value;
  226. }
  227. function LoadingData() {
  228. try {
  229. OpenMessage('framemessage', '加载数据', '正在读取数据...', 220, 1);
  230. GetSearchOperationsObj();
  231. }
  232. catch (e) { }
  233. Report_TotalCount_Report.GetReportTable(_searchitems, DataBand_callback);
  234. }
  235. function DataBand_callback(res) {
  236. document.getElementById("divDataItems").innerHTML = res.value;
  237. document.getElementById("txtHideItems").value = res.value;
  238. res = null;
  239. MessageBoxClose()
  240. }
  241. function menu_switch(objID) {
  242. for (var i = 0; i <= 1; i++) {
  243. if (objID == i) {
  244. document.getElementById("tab" + i).style.display = "inline";
  245. document.getElementById("li" + i).className = "current";
  246. document.getElementById("li" + i).style.color = "#fff";
  247. }
  248. else {
  249. document.getElementById("li" + i).className = "";
  250. document.getElementById("tab" + i).style.display = "none";
  251. document.getElementById("li" + i).style.color = "";
  252. }
  253. }
  254. }
  255. </script>
  256. </head>
  257. <body onload="Init();">
  258. <form id="form1" runat="server">
  259. <input id="txtHideItems" runat="server" value="" style="display: none;" />
  260. <table class="stdTable" cellspacing="0" cellpadding="0">
  261. <colgroup>
  262. <col width="200">
  263. <col>
  264. </colgroup>
  265. <tbody>
  266. <tr height="30">
  267. <td colspan="2">
  268. <table cellspacing="0" cellpadding="0" width="100%">
  269. <tbody>
  270. <tr>
  271. <td>
  272. <table class="actionBar" id="mnuBar1" cellspacing="0" cellpadding="0">
  273. <tbody>
  274. <tr>
  275. <td class="icMenu" nowrap align="left" style="cursor: default; height: 30px;">
  276. &nbsp;&nbsp;&nbsp;&nbsp;坐席话务量统计
  277. </td>
  278. <td width="50%">
  279. <table class="stdTable">
  280. <tbody>
  281. <tr>
  282. <td class="mnuTitle mnuRight">
  283. <nobr class="mnuTitle" id="mnuTitle"><object ID='webprint' WIDTH=0 HEIGHT=0 CLASSID='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2'></object>
  284. <input id="Button1" type="button" value="打印" onClick="do_print();" class="btn" />
  285. <%-- <input name=Button2 onClick="print_prev();" type=button class="btn" value="打印预览" />
  286. <input name=Button3 onClick="setting_print();" type=button class="btn" value="页面设置"/>--%>
  287. <asp:Button ID="btnExtWord" runat="server" Text="导出Excel" CssClass="btn"
  288. onclick="btnExtWord_Click" />&nbsp;&nbsp;
  289. </nobr>
  290. </td>
  291. </tr>
  292. </tbody>
  293. </table>
  294. </td>
  295. </tr>
  296. </tbody>
  297. </table>
  298. </td>
  299. </tr>
  300. </tbody>
  301. </table>
  302. </td>
  303. </tr>
  304. <tr height="100%">
  305. <td colspan="2">
  306. <table class="stdTable" style="background-color: #DBEBF8" cellspacing="0" cellpadding="0">
  307. <colgroup>
  308. <col width="200">
  309. <col>
  310. </colgroup>
  311. <tbody>
  312. <tr>
  313. <td style="padding-right: 1px; border-top: #A0A2AF 1px solid; padding-left: 1px;
  314. padding-bottom: 1px; border-left: #A0A2AF 1px solid; padding-top: 0px; border-bottom: #A0A2AF 1px solid">
  315. <table id="main" height="100%" cellspacing="0" cellpadding="1" width="100%">
  316. <tbody>
  317. <tr valign="top">
  318. <td>
  319. <div class="tab" id="searchDiv" style="display: inline">
  320. <table cellspacing="3" cellpadding="0" width="100%">
  321. <tr style="height: 28px;">
  322. <td>
  323. 开始时间:&nbsp;&nbsp;<input id="txtBeginDate" type="text" style="width: 90px;" class="wdate"
  324. onfocus="calendar();" runat="server" />
  325. </td>
  326. </tr>
  327. <tr style="height: 28px;">
  328. <td>
  329. 结束时间:&nbsp;&nbsp;<input id="txtEndDate" type="text" style="width: 90px;" class="wdate"
  330. onfocus="calendar();" runat="server" />
  331. </td>
  332. </tr>
  333. <tr style="height: 28px;">
  334. <td align="right">
  335. <button title="搜索" style="width: 55px;" onclick="LoadingData();" class="btn" tabindex="5"
  336. id="btnSelect">
  337. 搜索</button>&nbsp;&nbsp;&nbsp;&nbsp;
  338. </td>
  339. </tr>
  340. </table>
  341. </div>
  342. </td>
  343. </tr>
  344. </tbody>
  345. </table>
  346. </td>
  347. <td style="padding-right: 1px; border: #A0A2AF 1px solid; padding-left: 1px; padding-bottom: 1px;
  348. background-color: White; padding-top: 0px;">
  349. <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
  350. <tr>
  351. <td style="height: 100%; overflow-y: auto; scrollbar-face-color: #DBEBFE; scrollbar-shadow-color: #B8D6FA;
  352. scrollbar-highlight-color: #FFFFFF; scrollbar-3dlight-color: #DBEBFE; scrollbar-darkshadow-color: #458CE4;
  353. scrollbar-track-color: #FFFFFF; scrollbar-arrow-color: #458CE4;" valign="top">
  354. <div class="navcontainer" style="margin-bottom: 0px; padding-bottom: 0;">
  355. <ul class="navlist" style="margin-bottom: 0px;">
  356. <li><a href="#" id="li0" onclick="menu_switch('0');" class="current">报表分析</a></li><li
  357. style="display: none;"><a href="#" id="li1" onclick="menu_switch('1');">图形分析</a></li>
  358. </ul>
  359. </div>
  360. <div style="border-right: #32A7D9 2px solid; border-top: #32A7D9 0px solid; border-left: #32A7D9 2px solid;
  361. border-bottom: #32A7D9 2px solid; height: 450px; padding: 10px 5px;">
  362. <div id="tab0" style="display: inline; height: 375px;">
  363. <div id="Div1" style="width: 100%; height: 375px; text-align: center; cursor: text;
  364. overflow-y: auto; scrollbar-face-color: #DBEBFE; scrollbar-shadow-color: #B8D6FA;
  365. scrollbar-highlight-color: #FFFFFF; scrollbar-3dlight-color: #DBEBFE; scrollbar-darkshadow-color: #458CE4;
  366. scrollbar-track-color: #FFFFFF; scrollbar-arrow-color: #458CE4;" runat="server">
  367. <!--startprint-->
  368. <div id="divDataItems">
  369. </div>
  370. <!--endprint-->
  371. </div>
  372. </div>
  373. <div id="tab1" style="display: none; height: 375px;">
  374. <div id="divDataFlash" style="width: 100%; height: 375px; text-align: center; cursor: text;
  375. overflow-y: auto; scrollbar-face-color: #DBEBFE; scrollbar-shadow-color: #B8D6FA;
  376. scrollbar-highlight-color: #FFFFFF; scrollbar-3dlight-color: #DBEBFE; scrollbar-darkshadow-color: #458CE4;
  377. scrollbar-track-color: #FFFFFF; scrollbar-arrow-color: #458CE4;" runat="server">
  378. </div>
  379. </div>
  380. </div>
  381. </td>
  382. </tr>
  383. </table>
  384. </td>
  385. </tr>
  386. </tbody>
  387. </table>
  388. </td>
  389. </tr>
  390. </tbody>
  391. </table>
  392. </form>
  393. </body>
  394. </html>