洛阳中航光电项目,为12年项目,此处使用反编译工具恢复源码,恢复为.netframe4.0版本,但仍需使用ie8访问; 数据库使用oracle,现再192.168.8.3服务器,访问账户scott,密码800100

workSearch.aspx 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="workSearch.aspx.cs" Inherits="JAnCallCenter.WorkSearch.workSearch" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head 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="../_grid/grid.css" rel="stylesheet" type="text/css" />
  14. <link href="../_grid/AppGrid.css" rel="stylesheet" type="text/css" />
  15. <link href="../_common/styles/menu.css" rel="stylesheet" type="text/css" />
  16. <link href="../_common/styles/tabs.css" rel="stylesheet" type="text/css" />
  17. <script src="../_common/scripts/Global.js" type="text/javascript"></script>
  18. <script src="../_common/scripts/windowinformation.js" type="text/javascript"></script>
  19. <script src="../_common/scripts/Util.js" type="text/javascript"></script>
  20. <script src="../_grid/action.js" type="text/javascript"></script>
  21. <script src="../_javascripts/globalctrl.js" type="text/javascript"></script>
  22. <script src="../_common/scripts/calendar.js" type="text/javascript"></script>
  23. <script src="../_javascripts/JS/search.js" type="text/javascript"></script>
  24. <style type="text/css">
  25. .wbox
  26. {
  27. width: 100%;
  28. height: 100%;
  29. border: 1px solid #849bba;
  30. background: #FFF;
  31. padding: 1px;
  32. }
  33. .lbox
  34. {
  35. width: 100%;
  36. height: 100%;
  37. padding-bottom: 4px;
  38. padding-left: 4px;
  39. padding-right: 4px;
  40. background: #c6d4e4;
  41. }
  42. .tbox
  43. {
  44. height: 25px;
  45. color: #15428b;
  46. font-size: 14px;
  47. cursor: move;
  48. margin: 0px;
  49. padding: 0px;
  50. padding-left: 5px;
  51. line-height: 25px; *overflow:hidden;}
  52. .tbox img
  53. {
  54. float: right;
  55. margin-right: 3px;
  56. margin-top: 5px; *top:-28px;*position:relative;}
  57. .nrbox
  58. {
  59. width: 100%;
  60. height: auto;
  61. border: 1px solid #849bba;
  62. background: #dfe8f6;
  63. margin: 0px auto;
  64. }
  65. </style>
  66. <script language="javascript">
  67. var divmark = "";
  68. 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>";
  69. 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;\">";
  70. 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>";
  71. divmark += "<div id=\"divContent\" class=\"nrbox\"></div></div></div></div>";
  72. document.write(divmark);
  73. </script>
  74. <script language="javascript" type="text/javascript">
  75. var pageIndex = "";
  76. var frmId = "";
  77. var win;
  78. var winmessage;
  79. var strWhere = "";
  80. function OpenMessage(strid, strtitle, strmessage, strwidth, btnstyle, _height) {
  81. var btnstr = "";
  82. switch (btnstyle) {
  83. case 0:
  84. btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();'>确 定</button></div>";
  85. break;
  86. case 1:
  87. btnstr = "<br /><div style='padding-bottom:15px; text-align:center;'><img alt='加载数据中' style='width:180px;' src='../_imgs/inprogress.gif'></div><br />";
  88. break;
  89. case 2:
  90. btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();pagination(1);'>确 定</button></div>";
  91. break;
  92. case 3:
  93. btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();LoadingData();'>确 定</button></div>";
  94. break;
  95. case 4:
  96. 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>";
  97. break;
  98. default:
  99. break;
  100. }
  101. if (_height != null) {
  102. strmessage = "<div style='padding:0px;'>" + strmessage + "</div>" + btnstr;
  103. document.getElementById("divMessageBox").style.height = _height;
  104. }
  105. else {
  106. strmessage = "<div style='padding:10px;'>" + strmessage + "</div>" + btnstr;
  107. document.getElementById("divMessageBox").style.height = 50;
  108. _height = 120;
  109. }
  110. document.getElementById("spanTitle").innerHTML = strtitle;
  111. document.getElementById("divContent").innerHTML = strmessage;
  112. document.getElementById("divMessageBox").style.width = strwidth;
  113. try {
  114. document.getElementById("divMessageBox").style.top = (document.body.clientHeight - _height) / 2;
  115. document.getElementById("divMessageBox").style.left = (document.body.clientWidth - strwidth) / 2;
  116. }
  117. catch (e)
  118. { }
  119. document.getElementById("divLock").style.display = "block";
  120. document.getElementById("divMessageBox").style.display = "block";
  121. }
  122. function OpenWindowPage(_title, _id, _width, _height, _url) {
  123. var html = "<iframe id='" + _id + "' src='" + _url + "' style='width:100%; height:" + _height + ";'></iframe>";
  124. OpenMessage(_id, _title, html, _width, -1, _height);
  125. }
  126. function MessageBoxClose() {
  127. document.getElementById("divLock").style.display = "none";
  128. document.getElementById("divMessageBox").style.display = "none";
  129. }
  130. function CloseWindowPage(type) {
  131. MessageBoxClose();
  132. }
  133. function Init() {
  134. frmId = top.stage.GetFramName();
  135. pagination('1');
  136. }
  137. function pagination(index) {
  138. pageIndex = index;
  139. LoadingData();
  140. }
  141. function GetWhere() {
  142. strWhere = "";
  143. if (document.getElementById("cuscode").value != "") {
  144. strWhere += " and cuscode like '%" + document.getElementById("cuscode").value + "%'";
  145. }
  146. if (document.getElementById("cusname").value != "") {
  147. strWhere += " and cusname like '%" + document.getElementById("cusname").value + "%'";
  148. }
  149. if (document.getElementById("salman").value != "") {
  150. strWhere += " and salman like '%" + document.getElementById("salman").value + "%'";
  151. }
  152. if (document.getElementById("drpWorkType").value != "-1") {
  153. strWhere += " and worktype=" + document.getElementById("drpWorkType").value;
  154. }
  155. if (document.getElementById("content").value != "") {
  156. strWhere += " and workid like '%" + document.getElementById("content").value + "%'";
  157. }
  158. if (document.getElementById("txtBgnTime").value != "") {
  159. strWhere += " and addtime >= to_date('" + document.getElementById('txtBgnTime').value + " 00:00:00', 'yyyy-mm-dd hh24:mi:ss')";
  160. }
  161. if (document.getElementById("txtEndTime").value != "") {
  162. strWhere += " and addtime <= to_date('" + document.getElementById('txtEndTime').value + " 23:59:59', 'yyyy-mm-dd hh24:mi:ss') ";
  163. }
  164. if (document.getElementById("drpControlUser").value != "0") {
  165. strWhere += " and zxbh=" + document.getElementById("drpControlUser").value;
  166. }
  167. if (document.getElementById("txtlink").value != "") {
  168. strWhere += " and linkname like '%" + document.getElementById("txtlink").value + "%'";
  169. }
  170. }
  171. function LoadingData() {
  172. try {
  173. OpenMessage('framemessage', '加载数据', '正在读取数据...', 220, 1);
  174. GetWhere();
  175. }
  176. catch (e) { }
  177. JAnCallCenter.WorkSearch.workSearch.LoadingData(pageIndex, strWhere, DataBand_callback);
  178. }
  179. function DataBand_callback(res) {
  180. document.getElementById("divDataItems").innerHTML = res.value;
  181. res = null;
  182. MessageBoxClose()
  183. }
  184. function GetStrValue(strid, sort) {
  185. document.getElementById("trList").style.height = "50%";
  186. document.getElementById("trShow").style.height = "50%";
  187. document.getElementById("ifShow").src = "workSearch_show.aspx?id=" + escape(strid); //获取工单编号
  188. }
  189. function CloseWindowPage() {
  190. MessageBoxClose();
  191. }
  192. </script>
  193. </head>
  194. <body onload="Init();">
  195. <form id="form1" runat="server">
  196. <table class="stdTable" cellspacing="0" cellpadding="0">
  197. <tbody>
  198. <tr height="100%">
  199. <td colspan="2">
  200. <table class="stdTable" style="background-color: #DBEBF8" cellspacing="0" cellpadding="0">
  201. <tbody>
  202. <tr>
  203. <td id="tdHeight" style="height: 20px;">
  204. <table border="0" cellpadding="0" cellspacing="0">
  205. <tr>
  206. <td style="width: 80%">
  207. 工单查询条件
  208. </td>
  209. <td align="left">
  210. <img src="../images/searchOpen.gif" border="0" id="imgShow" style="cursor: hand"
  211. alt="显示搜索条件" onclick=" disaspplays('imgShow','tbdShow');" />
  212. </td>
  213. </tr>
  214. <tbody id="tbdShow" style="display: none;">
  215. <tr>
  216. <td colspan="2">
  217. <table id="SearchPanelInt" cellspacing="0" cellpadding="1" width="100%">
  218. <tbody>
  219. <tr>
  220. <td style="width: 100px;" align="right">
  221. 客户代码 :
  222. </td>
  223. <td style="width: 100px;" align="left">
  224. <input type="text" id="cuscode" class="txt" />
  225. </td>
  226. <td style="width: 100px;" align="right">
  227. 客户名称 :
  228. </td>
  229. <td style="width: 100px;" align="left">
  230. <input type="text" id="cusname" class="txt" />
  231. </td>
  232. <td style="width: 100px;"align="right">
  233. 销售经理 :
  234. </td>
  235. <td align="left">
  236. <input type="text" id="salman" style="width: 100px;" class="txt" />
  237. </td>
  238. <td style="width: 100px;" align="right">
  239. 工单类型 :
  240. </td> <td>
  241. <asp:DropDownList ID="drpWorkType" runat="server" Width="100">
  242. <asp:ListItem Text="请选择类型" Value="-1"></asp:ListItem>
  243. <asp:ListItem Text="咨询工单" Value="0"></asp:ListItem>
  244. <asp:ListItem Text="投诉工单" Value="1"></asp:ListItem>
  245. <asp:ListItem Text="其他工单" Value="2"></asp:ListItem>
  246. </asp:DropDownList>
  247. </td>
  248. <td style="width: 200px;" align="center">
  249. 联系人:<input type="text" id="txtlink" style="width: 100px;" class="txt" />
  250. </td>
  251. </tr>
  252. <tr>
  253. <td style="width: 100px;" align="right">
  254. 工单编号 :
  255. </td>
  256. <td align="left">
  257. <input type="text" id="content" style="width: 100px;" class="txt" />
  258. </td>
  259. <td style="width: 100px;" align="right">
  260. 开始时间 :
  261. </td>
  262. <td style="width: 100px;">
  263. <input type="text" id="txtBgnTime" class="txt" onfocus="calendar();" />
  264. </td>
  265. <td style="width: 100px;" align="right">
  266. 结束时间 :
  267. </td>
  268. <td style="width: 100px;" align="left">
  269. <input type="text" id="txtEndTime" class="txt" onfocus="calendar();" />
  270. </td>
  271. <td style="width: 100px;" align="right">
  272. 受理坐席 :
  273. </td>
  274. <td align="left" style="width: 100px;">
  275. <asp:DropDownList ID="drpControlUser" runat="server" Width="100">
  276. </asp:DropDownList>
  277. </td>
  278. <td style="width: 200px;" align="center">
  279. <input title="重置" style="width: 60px;" type="reset" class="btn" />&nbsp;&nbsp;&nbsp;&nbsp;
  280. <button title="搜索" style="width: 60px;" onclick="pagination('1');" class="btn" tabindex="5">搜索</button>
  281. </td>
  282. </tr>
  283. </tbody>
  284. </table>
  285. </td>
  286. </tr>
  287. </tbody>
  288. </table>
  289. </td>
  290. </tr>
  291. <tr id="trList" height="100%">
  292. <td>
  293. <div id="divDataItems">
  294. </div>
  295. </td>
  296. </tr>
  297. <tr id="trShow" height="0px">
  298. <td>
  299. <iframe id="ifShow" name="ifShow" height="100%" width="100%" scrolling="auto" frameborder="0"
  300. src=""></iframe>
  301. </td>
  302. </tr>
  303. </tbody>
  304. </table>
  305. </td>
  306. </tr>
  307. </tbody>
  308. </table>
  309. </form>
  310. </body>
  311. </html>