No Description

Urge_Report.aspx 19KB

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