No Description

WorkOrderDGDList.aspx 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="WorkOrderDGDList.aspx.cs"
  2. Inherits="Business_WorkOrderDGDList" %>
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  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="../_grid/grid.css" rel="stylesheet" type="text/css" />
  15. <link href="../_grid/AppGrid.css" rel="stylesheet" type="text/css" />
  16. <link href="../_common/styles/menu.css" rel="stylesheet" type="text/css" />
  17. <link href="../_common/styles/tabs.css" rel="stylesheet" type="text/css" />
  18. <script src="../_common/scripts/Global.js" type="text/javascript"></script>
  19. <script src="../_common/scripts/windowinformation.js" type="text/javascript"></script>
  20. <script src="../_common/scripts/Util.js" type="text/javascript"></script>
  21. <script src="../_grid/action.js" type="text/javascript"></script>
  22. <script src="../_javascripts/globalctrl.js" type="text/javascript"></script>
  23. <%-- <script src="../_common/scripts/calendar.js" type="text/javascript"></script>--%>
  24. <script src="../Scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
  25. <script src="../_javascripts/JS/search.js" type="text/javascript"></script>
  26. <script src="../Scripts/RecPlayer.js" type="text/javascript"></script>
  27. <style type="text/css">
  28. .wbox
  29. {
  30. width: 100%;
  31. height: 100%;
  32. border: 1px solid #849bba;
  33. background: #FFF;
  34. padding: 1px;
  35. }
  36. .lbox
  37. {
  38. width: 100%;
  39. height: 100%;
  40. padding-bottom: 4px;
  41. padding-left: 4px;
  42. padding-right: 4px;
  43. background: #c6d4e4;
  44. }
  45. .tbox
  46. {
  47. height: 25px;
  48. color: #15428b;
  49. font-size: 14px;
  50. cursor: move;
  51. margin: 0px;
  52. padding: 0px;
  53. padding-left: 5px;
  54. line-height: 25px;
  55. overflow: hidden;
  56. }
  57. .tbox img
  58. {
  59. float: right;
  60. margin-right: 3px;
  61. margin-top: 5px;
  62. top: -28px;
  63. position: relative;
  64. }
  65. .nrbox
  66. {
  67. width: 100%;
  68. height: auto;
  69. border: 1px solid #849bba;
  70. background: #dfe8f6;
  71. margin: 0px auto;
  72. }
  73. .style1
  74. {
  75. height: 32px;
  76. }
  77. </style>
  78. <script language="javascript">
  79. var divmark = "";
  80. 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>";
  81. 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;\">";
  82. 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>";
  83. divmark += "<div id=\"divContent\" class=\"nrbox\"></div></div></div></div>";
  84. document.write(divmark);
  85. </script>
  86. <script language="javascript" type="text/javascript">
  87. function OpenMessage(strid, strtitle, strmessage, strwidth, btnstyle, _height) {
  88. var btnstr = "";
  89. switch (btnstyle) {
  90. case 0:
  91. btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();'>确 定</button></div>";
  92. break;
  93. case 1:
  94. btnstr = "<br /><div style='padding-bottom:15px; text-align:center;'><img alt='加载数据中' style='width:180px;' src='../_imgs/inprogress.gif'></div><br />";
  95. break;
  96. case 2:
  97. btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();parent.pagination(1);'>确 定</button></div>";
  98. break;
  99. case 3:
  100. btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();LoadingData();'>确 定</button></div>";
  101. break;
  102. case 4:
  103. 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>";
  104. break;
  105. default:
  106. break;
  107. }
  108. if (_height != null) {
  109. strmessage = "<div style='padding:0px;'>" + strmessage + "</div>" + btnstr;
  110. document.getElementById("divMessageBox").style.height = _height;
  111. }
  112. else {
  113. strmessage = "<div style='padding:10px;'>" + strmessage + "</div>" + btnstr;
  114. document.getElementById("divMessageBox").style.height = 50;
  115. _height = 120;
  116. }
  117. document.getElementById("spanTitle").innerHTML = strtitle;
  118. document.getElementById("divContent").innerHTML = strmessage;
  119. document.getElementById("divMessageBox").style.width = strwidth;
  120. try {
  121. document.getElementById("divMessageBox").style.top = (document.body.clientHeight - _height) / 2;
  122. document.getElementById("divMessageBox").style.left = (document.body.clientWidth - strwidth) / 2;
  123. }
  124. catch (e)
  125. { }
  126. document.getElementById("divLock").style.display = "block";
  127. document.getElementById("divMessageBox").style.display = "block";
  128. }
  129. function OpenWindowPage(_title, _id, _width, _height, _url) {
  130. var html = "<iframe id='" + _id + "' src='" + _url + "' style='width:100%; height:" + _height + ";'></iframe>";
  131. OpenMessage(_id, _title, html, _width, -1, _height);
  132. }
  133. function MessageBoxClose() {
  134. document.getElementById("divLock").style.display = "none";
  135. document.getElementById("divMessageBox").style.display = "none";
  136. }
  137. function CloseWindowPage(type) {
  138. MessageBoxClose();
  139. }
  140. </script>
  141. <script type="text/javascript" language="javascript">
  142. var _searchitems; //查询条件:0当前页码,1每页数量2查询条件
  143. var pagesize = 20; //
  144. var strWhere;
  145. var pageIndex = 1;
  146. //初始化页面数据
  147. function Init() {
  148. pagination(1); //绑定数据
  149. }
  150. //重新绑定页码
  151. function pagination(index) {
  152. pageIndex = index;
  153. LoadingData();
  154. }
  155. //获取查询条件
  156. function GetSearchItems() {
  157. GetSql();
  158. _searchitems = new Array;
  159. _searchitems[0] = pageIndex;
  160. _searchitems[1] = pagesize;
  161. _searchitems[2] = strWhere;
  162. _searchitems[3] = document.getElementById("hfUserId").value;
  163. }
  164. //获取sql
  165. function GetSql() {
  166. strWhere = "";
  167. var cusPhone = document.getElementById("txtCusPhone").value.replace(/\s/g, "");
  168. var account = document.getElementById("ddlAccount").value.replace(/\s/g, "");
  169. var infoType = document.getElementById("ddlInfoType").value.replace(/\s/g, "");
  170. var cusName = document.getElementById("txtCusName").value.replace(/\s/g, "");
  171. var beginTime = document.getElementById("txtBeginTime").value.replace(/\s/g, "");
  172. var endTime = document.getElementById("txtEndTime").value.replace(/\s/g, "");
  173. var workOrderCode = document.getElementById("txtWorkOrderCode").value.replace(/\s/g, "");
  174. // var state = document.getElementById("ddlState").value.replace(/\s/g, "");
  175. if (account != "") {
  176. strWhere += " and UserId=" + account;
  177. }
  178. if (infoType != "") {
  179. strWhere += " and InfoType=" + infoType;
  180. }
  181. // if (state != "") {
  182. // strWhere += " and State=" + state;
  183. // }
  184. if (beginTime != "") {
  185. strWhere += " and DATEDIFF(d,AddTime,'" + beginTime + "')<=0";
  186. }
  187. if (endTime != "") {
  188. strWhere += " and DATEDIFF(d,AddTime,'" + endTime + "')>=0";
  189. }
  190. if (workOrderCode != "") {
  191. strWhere += " and WorkOrderCode like '%" + workOrderCode + "%'";
  192. }
  193. if (cusName != "") {
  194. strWhere += " and CusName like '%" + cusName + "%'";
  195. }
  196. if (cusPhone != "") {
  197. strWhere += " and CusConnPhone like '%" + cusPhone + "%'";
  198. }
  199. }
  200. //加载数据
  201. function LoadingData() {
  202. GetSearchItems();
  203. try {
  204. OpenMessage('framemessage', '加载数据', '正在读取数据...', 220, 1);
  205. Business_WorkOrderDGDList.LoadingData(_searchitems, DataBand_callback);
  206. }
  207. catch (e) { }
  208. }
  209. //加载数据
  210. function DataBand_callback(res) {
  211. document.getElementById("divDataItems").innerHTML = res.value;
  212. res = null;
  213. MessageBoxClose();
  214. document.getElementById("trList").style.height = "100%";
  215. document.getElementById("trShow").style.height = "0";
  216. }
  217. function GetStrValue(strid) {
  218. document.getElementById("trList").style.height = "50%";
  219. document.getElementById("trShow").style.height = "50%";
  220. document.getElementById("ifShow").src = "WorkOrderInfo.aspx?id=" + escape(strid); //获取工单编号
  221. }
  222. //分配、设置
  223. function Operate(type, id) {
  224. switch (type) {
  225. case 'gd':
  226. OpenWindowPage('工单归档', 'show', 680, 310, 'WorkOrderGDDeal.aspx?id=' + id);
  227. break;
  228. }
  229. }
  230. //播放录音
  231. function PlayRecord(appid) {
  232. Player(document.getElementById("hfPlayPath").value + appid);
  233. }
  234. </script>
  235. </head>
  236. <body onload="Init();">
  237. <form id="form1" runat="server">
  238. <asp:HiddenField ID="hfUserId" runat="server" />
  239. <asp:HiddenField ID="hfPlayPath" runat="server" />
  240. <table class="stdTable" cellspacing="0" cellpadding="0">
  241. <tbody>
  242. <tr height="100%">
  243. <td colspan="2">
  244. <table class="stdTable" style="background-color: #DBEBF8" cellspacing="0" cellpadding="0">
  245. <tbody>
  246. <tr>
  247. <td id="tdHeight">
  248. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  249. <tr>
  250. <td style="width: 80%">
  251. 工单查询条件
  252. </td>
  253. <td align="left">
  254. <img src="../images/searchOpen.gif" border="0" id="imgShow" style="cursor: hand"
  255. alt="显示搜索条件" onclick=" disaspplays('imgShow','tbdShow');" />
  256. </td>
  257. </tr>
  258. <tbody id="tbdShow" style="display: none;">
  259. <tr>
  260. <td colspan="2">
  261. <table id="SearchPanelInt" cellspacing="0" cellpadding="1" width="100%">
  262. <tbody>
  263. <tr>
  264. <td style="width: 100px;" align="right">
  265. 工单编号 :
  266. </td>
  267. <td>
  268. <input type="text" id="txtWorkOrderCode" style="width: 120px;" class="txt" />
  269. </td>
  270. <td style="width: 100px;" align="right">
  271. 客户姓名 :
  272. </td>
  273. <td align="left">
  274. <input type="text" id="txtCusName" style="width: 120px;" class="txt" />
  275. </td>
  276. <td style="width: 100px;" align="right">
  277. 联系电话 :
  278. </td>
  279. <td style="width: 130px;" align="left">
  280. <input type="text" id="txtCusPhone" class="txt" />
  281. </td>
  282. <td style="width: 100px;" align="right">
  283. 业务类型 :
  284. </td>
  285. <td align="left" style="width: 130px;">
  286. <asp:DropDownList ID="ddlInfoType" runat="server" Width="120">
  287. </asp:DropDownList>
  288. </td>
  289. </tr>
  290. <tr>
  291. <td style="width: 100px;" align="right">
  292. 来电时间 :
  293. </td>
  294. <td colspan="3">
  295. <input type="text" id="txtBeginTime" class="txt Wdate" style="width: 120px" onclick="WdatePicker()" />
  296. -
  297. <input type="text" id="txtEndTime" class="txt Wdate" style="width: 120px" onclick="WdatePicker()" />
  298. </td>
  299. <td style="width: 100px;" align="right">
  300. 受理人:
  301. </td>
  302. <td style="width: 130px;">
  303. <asp:DropDownList ID="ddlAccount" name="drpControlUser" runat="server" CssClass="selectBox">
  304. </asp:DropDownList>
  305. </td>
  306. <td style="width: 100px;" align="right">
  307. <%-- 工单状态 :--%>&nbsp;
  308. </td>
  309. <td>
  310. <%-- <asp:DropDownList ID="ddlState" runat="server">
  311. </asp:DropDownList>--%>&nbsp;
  312. </td>
  313. <td align="left">
  314. <input title="搜索" style="width: 60px;" type="button" class="btn" onclick="pagination(1)"
  315. value="搜索" />&nbsp;&nbsp;
  316. <input title="重置" style="width: 60px;" type="reset" class="btn" />
  317. </td>
  318. </tr>
  319. </tbody>
  320. </table>
  321. </td>
  322. </tr>
  323. </tbody>
  324. </table>
  325. </td>
  326. </tr>
  327. <tr id="trList" height="100%">
  328. <td>
  329. <div id="divDataItems">
  330. </div>
  331. </td>
  332. </tr>
  333. <tr id="trShow" height="0px">
  334. <td>
  335. <iframe id="ifShow" name="ifShow" height="100%" width="100%" scrolling="auto" frameborder="0"
  336. src=""></iframe>
  337. </td>
  338. </tr>
  339. </tbody>
  340. </table>
  341. </td>
  342. </tr>
  343. </tbody>
  344. </table>
  345. </form>
  346. </body>
  347. </html>