市长热线演示版

woekorderDCLedit.aspx 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="woekorderDCLedit.aspx.cs" Inherits="HySoft.BaseCallCenter.Web.workordermanage.workorder.woekorderDCLedit" %>
  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 id="Head1" runat="server">
  5. <title>待处理工单编辑</title>
  6. <link href="../../scripts/ui/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  7. <script src="../../scripts/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  8. <script src="../../scripts/ui/json2.js" type="text/javascript"></script>
  9. <script src="../../scripts/ui/js/core/base.js" type="text/javascript"></script>
  10. <script type="text/javascript" src="../../scripts/function.js"></script>
  11. <script src="../../scripts/ui/js/ligerui.min.js" type="text/javascript"></script>
  12. <link href="../../scripts/ui/skins/Tab/css/tab.css" rel="stylesheet" type="text/css" />
  13. <link href="../../scripts/ui/skins/Tab/css/grid.css" rel="stylesheet" type="text/css" />
  14. <script src="../../scripts/ui/js/plugins/ligerGrid.js" type="text/javascript"></script>
  15. <script src="../../scripts/ui/js/plugins/ligerLayout.js" type="text/javascript"></script>
  16. <script src="../../scripts/ui/js/plugins/ligerTree.js" type="text/javascript"></script>
  17. <script src="../../scripts/ui/js/plugins/ligerMenu.js" type="text/javascript"></script>
  18. <script src="../../scripts/ui/js/plugins/ligerTab.js" type="text/javascript"></script>
  19. <script src="../../scripts/ui/js/plugins/ligerDrag.js" type="text/javascript"></script>
  20. <script src="../../scripts/CustomersData.js" type="text/javascript"></script>
  21. <link href="../../scripts/ui/skins/Tab/css/tab.css" rel="stylesheet" type="text/css" />
  22. <link href="../../scripts/ui/skins/Tab/css/grid.css" rel="stylesheet" type="text/css" />
  23. <link href="../../scripts/ui/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
  24. <link href="../../images/style.css" rel="stylesheet" type="text/css" />
  25. <script src="../../scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
  26. <script type="text/javascript">
  27. var gridlist;
  28. $(function () {
  29. InitList();
  30. });
  31. function CloseThis() {
  32. var dialog = frameElement.dialog;
  33. dialog.close();
  34. }
  35. function GetValue(id) {
  36. document.getElementById("hfSQDX").value = id;
  37. iframeDeal.window.SetValue(id);
  38. }
  39. function Close() {
  40. var dialog = frameElement.dialog;
  41. parent.InitList();
  42. dialog.close();
  43. }
  44. function InitList() {
  45. try {
  46. gridlist = $("#divDataList").ligerGrid({
  47. height: 205,
  48. width: '100%',
  49. columns: [
  50. { display: '工单处理', name: '_f_name', align: 'left', width: '10%' },
  51. { display: '处理人', name: '_f_username', width: '12%' },
  52. {
  53. display: '处理内容', name: '_f_remark', width: '40%', render: function (rowdata, rowindex) {
  54. return "<div title='" + rowdata._f_remark + "' onmouseover='title_show(this);' onmouseout='title_back(this);'>" + rowdata._f_remark + "</div>";
  55. }
  56. },
  57. { display: '处理时间', name: '_f_optdate', width: '24%', type: 'date', format: 'yyyy-MM-dd hh:mm:ss' },
  58. {
  59. display: '耗时', name: '_f_elapsedtime', width: '12%', render: function (rowdata, rowindex) {
  60. var value = rowdata._f_elapsedtime;
  61. var s = value % 60 + "秒";
  62. var m = ((value / 60).toFixed(0)) % 60 + "分";
  63. var h = (value / 3600).toFixed(0) + "时";
  64. return h + m + s;
  65. }
  66. }
  67. ],
  68. url: '../ajax/CommonDataList.ashx?action=getlist&intenseid=' + document.getElementById('HDintenseid').value, pageSize: 10, rownumbers: true
  69. });
  70. }
  71. catch (e) {
  72. alert(e.Message);
  73. }
  74. gridlist.changePage('first');
  75. $("#pageloading").hide();
  76. }
  77. function OpenWindowShow(Url, Title, Width, Height) {
  78. $.ligerDialog.open({
  79. title: Title, url: Url, height: Height, width: Width, isResize: true, modal: true
  80. });
  81. }
  82. var title_value = "";
  83. function title_show(td) {
  84. var div = document.getElementById("title_show");
  85. title_value = td.title;
  86. div.style.left = (td.offsetLeft + 130) + "px";;
  87. var words_per_line = 40; //每行字数
  88. var title = split_str(td.title, words_per_line); //按每行25个字显示标题内容。
  89. div.innerHTML = title;
  90. div.style.display = 'block';
  91. td.title = ''; //去掉原有title显示。
  92. }
  93. function split_str(string, words_per_line) {
  94. var output_string = string.substring(0, 1); //取出i=0时的字,避免for循环里换行时多次判断i是否为0
  95. for (var i = 1; i < string.length; i++) {
  96. if (i % words_per_line == 0) {
  97. output_string += "<br/>";
  98. }
  99. output_string += string.substring(i, i + 1);
  100. }
  101. return output_string;
  102. }
  103. function title_back(td) {
  104. var div = document.getElementById("title_show");
  105. td.title = title_value;
  106. div.style.display = "none";
  107. }
  108. function call() {
  109. if (document.getElementById("F_REPAIRMANPHONE").value != "" && top.document.getElementById("lblAgentExt").innerHTML != "") {
  110. top.PhoneCallOutJD(1, document.getElementById("F_REPAIRMANPHONE").value, document.getElementById("HDworkorderid").value);
  111. }
  112. }
  113. </script>
  114. </head>
  115. <body>
  116. <form id="form1" runat="server">
  117. <div id="contentTab" style="float: left; width: 550px;">
  118. <asp:HiddenField ID="HDintenseid" runat="server" />
  119. <asp:HiddenField ID="HDworkorderid" runat="server" />
  120. <asp:HiddenField ID="hfSQDX" runat="server" />
  121. <div class="tab_con" style="display: block;" title="来电信息">
  122. <table class="form_table">
  123. <tr>
  124. <th>客户名称:
  125. </th>
  126. <td>
  127. <asp:TextBox ID="F_CUSTOMERNAME" runat="server" CssClass="txtInput normal" ReadOnly="true" Style="width: 120px;"></asp:TextBox>
  128. </td>
  129. <%--<th>客户等级:
  130. </th>
  131. <td>
  132. <asp:TextBox ID="F_CustomerClass" runat="server" CssClass="txtInput normal"
  133. Style="width: 120px;" ReadOnly="true"></asp:TextBox>
  134. </td>--%>
  135. <th>所属部门:
  136. </th>
  137. <td>
  138. <asp:TextBox ID="F_ServiceDept" runat="server" CssClass="txtInput normal" Style="width: 120px;" ReadOnly="true"></asp:TextBox>
  139. </td>
  140. </tr>
  141. <tr>
  142. <th>系统开通时间:
  143. </th>
  144. <td>
  145. <asp:TextBox ID="F_SystemStartTime" runat="server" CssClass="txtInput normal"
  146. Style="width: 120px;" ReadOnly="true"></asp:TextBox>
  147. </td>
  148. <th>工单类型:
  149. </th>
  150. <td>
  151. <asp:TextBox ID="F_TypeName" runat="server" CssClass="txtInput normal" Style="width: 120px;" ReadOnly="true"></asp:TextBox>
  152. </td>
  153. </tr>
  154. <tr style="display: none;">
  155. <th>客户属性:
  156. </th>
  157. <td>
  158. <asp:TextBox ID="F_CustomerNature" runat="server" CssClass="txtInput normal" Style="width: 120px;" ReadOnly="true"></asp:TextBox>
  159. </td>
  160. <th>售后负责人:
  161. </th>
  162. <td>
  163. <asp:TextBox ID="F_REPAIRLEVEL" runat="server" CssClass="txtInput normal"
  164. Style="width: 120px;" ReadOnly="true"></asp:TextBox>
  165. </td>
  166. </tr>
  167. <tr style="display: none;">
  168. <th>客户编号:
  169. </th>
  170. <td>
  171. <asp:TextBox ID="F_CUSTOMERID" runat="server" CssClass="txtInput normal" Style="width: 120px;" ReadOnly="true"></asp:TextBox>
  172. </td>
  173. <th>工单开始时间:
  174. </th>
  175. <td>
  176. <asp:TextBox ID="F_CREATEDATE" runat="server" CssClass="txtInput normal"
  177. Style="width: 120px;" ReadOnly="true"></asp:TextBox>
  178. </td>
  179. </tr>
  180. <%--<tr>
  181. <th>系统类型:
  182. </th>
  183. <td>
  184. <asp:TextBox ID="F_SystemType" runat="server" CssClass="txtInput normal" Style="width: 120px;" ReadOnly="true"></asp:TextBox>
  185. </td>
  186. </tr>--%>
  187. <%--<tr>
  188. <th>质保到期时间:
  189. </th>
  190. <td>
  191. <asp:TextBox ID="F_QualityGuaranteeEndTime" runat="server" CssClass="txtInput normal"
  192. Style="width: 120px;" ReadOnly="true"></asp:TextBox>
  193. </td>
  194. <th>报修级别:
  195. </th>
  196. <td>
  197. <asp:TextBox ID="F_REPAIRLEVELNAME" runat="server" CssClass="txtInput normal"
  198. Style="width: 120px;" ReadOnly="true"></asp:TextBox>
  199. </td>
  200. </tr>--%>
  201. <tr style="display: none">
  202. <th>是否形成知识:
  203. </th>
  204. <td>
  205. <asp:TextBox ID="F_KNOWLEDGE" runat="server" CssClass="txtInput normal" Style="width: 120px;" ReadOnly="true"></asp:TextBox>
  206. </td>
  207. <th>是否已经形成知识:
  208. </th>
  209. <td>
  210. <asp:TextBox ID="F_ALREADYKNOWLEDGE" runat="server" CssClass="txtInput normal"
  211. Style="width: 120px;" ReadOnly="true"></asp:TextBox>
  212. </td>
  213. </tr>
  214. <tr style="display: none">
  215. <th>知识条目名称:
  216. </th>
  217. <td>
  218. <asp:TextBox ID="F_KNOWLEDGENAME" runat="server" CssClass="txtInput normal" Style="width: 120px;" ReadOnly="true"></asp:TextBox>
  219. </td>
  220. <th>报修人性质:
  221. </th>
  222. <td>
  223. <asp:TextBox ID="F_STANDARDADDRESS" runat="server" CssClass="txtInput normal"
  224. Style="width: 120px;" ReadOnly="true"></asp:TextBox>
  225. </td>
  226. </tr>
  227. <tr>
  228. <th>诉求人:
  229. </th>
  230. <td>
  231. <asp:TextBox ID="F_REPAIRMANNAME" runat="server" CssClass="txtInput normal"
  232. Style="width: 120px;" ReadOnly="true"></asp:TextBox>
  233. </td>
  234. <th>诉求人电话:
  235. </th>
  236. <td>
  237. <asp:TextBox ID="F_REPAIRMANPHONE" runat="server" CssClass="txtInput normal"
  238. Style="width: 120px;"></asp:TextBox><img onclick="call();" title="坐席可以点击直接拨打电话" src="../../images/seatimgs/tonghua.jpg" height="20px" />
  239. </td>
  240. </tr>
  241. <tr>
  242. <th style="position: relative;">诉求内容:
  243. </th>
  244. <td colspan="3">
  245. <asp:TextBox ID="F_CONTENT" runat="server" CssClass="txtInput normal" TextMode="MultiLine"
  246. Style="width: 370px; height: 120px;"></asp:TextBox>
  247. <asp:Button ID="btnModify" class="btnSearch" runat="server" Text="保存"
  248. OnClick="btnModify_Click" />
  249. <%--onmouseover="title_show(this);" onmouseout="title_back(this);"--%>
  250. </td>
  251. </tr>
  252. </table>
  253. </div>
  254. <div title="数据列表" style="display: block;">
  255. <div id='title_show'
  256. style='position: absolute; display: none; border: solid 1px #999999; background: #edeef0; z-index: 444;'>
  257. </div>
  258. <div id="divDataList">
  259. </div>
  260. </div>
  261. </div>
  262. <div style="width: 235px; height: 600px; float: right;">
  263. <iframe id="iframeDeal" name="iframeDeal" runat="server" scrolling="no" frameborder="0" src="" style="height: 100%;"></iframe>
  264. </div>
  265. </form>
  266. </body>
  267. </html>