editContactRecord.jsp 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  7. <title>编辑联系记录</title>
  8. <link href="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  9. <link href="/shares/css/yw/master1/reset.css" rel="stylesheet" type="text/css" />
  10. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  11. <link href="${pageContext.request.contextPath }/main.css" rel="stylesheet" type="text/css" />
  12. <script type="text/javascript" src="/shares/js/constant.js"></script>
  13. <script type="text/javascript" src="/shares/js/common.js"></script>
  14. <script type="text/javascript" src="/shares/js/file.js"></script>
  15. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  16. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
  17. <script src="/shares/xheditor/xheditor-1.1.14/xheditor-1.1.14-zh-cn.min.js" type="text/javascript" ></script>
  18. <!-- 选择窗口需要加载的js文件 start-->
  19. <script src="${pageContext.request.contextPath}/liger/lib/json2.js" type="text/javascript"></script>
  20. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
  21. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
  22. <script type="text/javascript" src="/shares/js/yw/erp/crmCustomerLookup.js"></script>
  23. <script type="text/javascript" src="/shares/js/yw/erp/crmContacterLookup.js"></script>
  24. <script type="text/javascript" src="/shares/js/yw/erp/contactRecordTableVar.js"></script>
  25. <!-- add the jScrollPane script -->
  26. <link rel="stylesheet" type="text/css" href="/shares/css/yw/master1/win/jquery.jscrollpane.codrops1.css" />
  27. <script type="text/javascript" src="/shares/js/yw/master1/jquery.mousewheel.js"></script>
  28. <script type="text/javascript" src="/shares/js/yw/master1/jquery.jscrollpane.min.js"></script>
  29. <script type="text/javascript" src="/shares/js/yw/master1/scroll-startstop.events.jquery.js"></script>
  30. <script type="text/javascript" src="/shares/js/yw/master1/scroll.js"></script>
  31. <script type="text/javascript">
  32. $(function (){
  33. $("input[type='text']:first").focus();
  34. $("#contact_date").ligerDateEditor({ showTime: true, labelAlign: 'left', showTime:false, width:150,height:21});
  35. $("#next_contact_date").ligerDateEditor({ showTime: true, labelAlign: 'left', showTime:false, width:150,height:21});
  36. loadTypeTree("assignedUserBtn", {
  37. type : "usersingle",
  38. backId : "assigned_user_id",
  39. backName : "assigned_user_name",
  40. tab : "1,2,3"
  41. });
  42. });
  43. //编辑保存
  44. function btnSaveRecord(){
  45. if(checkForm()){
  46. $("#btnSave").attr({"disabled":"disabled"});
  47. $("#contacterRecordForm").submit();
  48. }
  49. }
  50. </script>
  51. <style type="text/css">
  52. body {
  53. background: #fff;
  54. }
  55. </style>
  56. </head>
  57. <body style="background: none; overflow: hidden;" ontouchmove="event.preventDefault();">
  58. <form id="contacterRecordForm" action="mtContacterRecordAction.do" method="post">
  59. <div class="s_title b10 f6">
  60. <img src="/shares/images/master1/gg_ico.png" width="27" height="26" />编辑联系记录
  61. <div class="article_title">
  62. <input class="art_back" style="width: 50px;" title="返回" name="" onclick="history.back();" type="button" />
  63. <input class="art_sub" title="提交" name="" type="button" value="" onclick="btnSaveRecord();" />
  64. </div>
  65. </div>
  66. <div id="jp-container" class="jp-container liuyan" style="margin-top:60px;">
  67. <div class="container-layout" >
  68. <div class="forum-container ">
  69. <center>
  70. <table class="l-table-edit">
  71. <tr>
  72. <td class="l-table-edit-text">主题<FONT COLOR="red">*</FONT>:</td>
  73. <td class="l-table-edit-td">
  74. <input type="text" id="note_title" name="note_title" value="${requestScope.contactRecord.note_title }" size="50" />
  75. </td>
  76. </tr>
  77. <tr>
  78. <td class="l-table-edit-text">销售商机<FONT COLOR="red">*</FONT>:</td>
  79. <td class="l-table-edit-td">
  80. <input type="hidden" id="opportunity_id" name="opportunity_id" value="${requestScope.contactRecord.opportunity_id }"/>
  81. <input type="text" id="opportunity_title" name="opportunity_title" value="${requestScope.contactRecord.opportunity_title }" size="50" readonly="readonly" />
  82. <input type="button" class="l-button" value="请选择" onclick="saleOpportunity({opportunity_id:'opportunity_id',opportunity_title:'opportunity_title',opportunity_stage:'opportunity_stage'});" />
  83. </td>
  84. </tr>
  85. <tr>
  86. <td class="l-table-edit-text">客户名称<FONT COLOR="red">*</FONT>:</td>
  87. <td class="l-table-edit-td">
  88. <input type="hidden" id="customer_id" name="customer_id" value="${requestScope.contactRecord.customer_id }"/>
  89. <input type="text" id="customer_name" name="customer_name" value="${requestScope.contactRecord.customer_name }" size="50" readonly="readonly" />
  90. <input type="button" class="l-button" value="请选择" onclick="chooseCustomer({universalid:'customer_id',cus_name:'customer_name',cus_rating:'rating'});" />
  91. </td>
  92. </tr>
  93. <tr>
  94. <td class="l-table-edit-text">联系人:</td>
  95. <td class="l-table-edit-td">
  96. <input type="hidden" id="contacter_id" name="contacter_id" value="${requestScope.contactRecord.contacter_id }" readonly="readonly" />
  97. <input type="text" id="contacter_name" name="contacter_name" value="${requestScope.contactRecord.contacter_name }" size="20" />
  98. <input type="button" class="l-button" value="请选择" onclick="chooseContacter({universalid:'contacter_id',cp_truename:'contacter_name'});" />
  99. </td>
  100. </tr>
  101. <tr>
  102. <td class="l-table-edit-text">联系类型<FONT COLOR="red"></FONT>:</td>
  103. <td class="l-table-edit-td">
  104. <select id="note_type" name="note_type" class="short-text">
  105. <c:forEach items="${note_type}" var="erpdatadic">
  106. <c:if test="${requestScope.contactRecord.note_type eq erpdatadic.dvalue }">
  107. <option value="${erpdatadic.dvalue }" selected="selected">${erpdatadic.dname }</option>
  108. </c:if>
  109. <c:if test="${requestScope.contactRecord.note_type ne erpdatadic.dvalue }">
  110. <option value="${erpdatadic.dvalue }" >${erpdatadic.dname }</option>
  111. </c:if>
  112. </c:forEach>
  113. </select>
  114. </td>
  115. </tr>
  116. <tr>
  117. <td class="l-table-edit-text">联系日期<FONT COLOR="red">*</FONT>:</td>
  118. <td class="l-table-edit-td">
  119. <input type="text" id="contact_date" name="contact_date" value="${requestScope.contactRecord.contact_date }" size="20" />
  120. <input type="hidden" id="contact_date_prompt" name="contact_date" value="" size="20" />
  121. </td>
  122. </tr>
  123. <tr>
  124. <td class="l-table-edit-text">负责人<FONT COLOR="red">*</FONT>:</td>
  125. <td class="l-table-edit-td">
  126. <input type="text" id="assigned_user_name" name="assigned_user_name" value="${requestScope.contactRecord.assigned_user_name}" size="20" readonly="readonly" />
  127. <input type="hidden" name="assigned_user_id" id="assigned_user_id" value="${requestScope.contactRecord.assigned_user_id }" />
  128. <input type="button" value="请选择" id="assignedUserBtn" class="l-button"/>
  129. <div id="assignedUserMsg" style="width: 500px;"></div>
  130. </td>
  131. </tr>
  132. <tr>
  133. <tr>
  134. <td class="l-table-edit-text">销售阶段<FONT COLOR="red"></FONT>:</td>
  135. <td class="l-table-edit-td">
  136. <input type="hidden" id="opportunity_stage" name="opportunity_stage" value="${requestScope.contactRecord.opportunity_stage }" size="20" />
  137. <c:forEach items="${opportunity_stage}" var="erpdatadic">
  138. <c:if test="${requestScope.contactRecord.opportunity_stage eq erpdatadic.dvalue }">
  139. <input type="text" id="opportunity_stage_name" name="opportunity_stage_name" value="${erpdatadic.dname }" readonly="readonly" />
  140. </c:if>
  141. </c:forEach>
  142. </td>
  143. </tr>
  144. <tr>
  145. <td class="l-table-edit-text">客户状态<FONT COLOR="red"></FONT>:</td>
  146. <td class="l-table-edit-td">
  147. <input type="hidden" id="rating" name="rating" value="${requestScope.contactRecord.rating }" size="20" />
  148. <c:forEach items="${rating}" var="erpdatadic">
  149. <c:if test="${requestScope.contactRecord.rating eq erpdatadic.dvalue }">
  150. <input type="text" id="rating_name" name="rating_name" value="${erpdatadic.dname }" readonly="readonly" />
  151. </c:if>
  152. </c:forEach>
  153. </td>
  154. </tr>
  155. <tr>
  156. <td class="l-table-edit-text">回访日期<FONT COLOR="red">*</FONT>:</td>
  157. <td class="l-table-edit-td">
  158. <input type="text" id="next_contact_date" name="next_contact_date" value="${requestScope.contactRecord.next_contact_date }" size="20" />
  159. <input type="hidden" id="next_contact_date_prompt" name="next_contact_date" value="" size="20" />
  160. </td>
  161. </tr>
  162. <tr>
  163. <td class="l-table-edit-text">内容<FONT COLOR="red"></FONT>:</td>
  164. <td class="l-table-edit-td" colspan="3">
  165. <div>
  166. <textarea id="note_content" name="note_content" rows="5" cols="50">${requestScope.contactRecord.note_content }</textarea>
  167. </div>
  168. </td>
  169. </tr>
  170. </table>
  171. <input type="hidden" id="universalid" name="universalid" value="${requestScope.contactRecord.universalid}">
  172. <input type="hidden" id="unit_id" name="unit_id" value="${requestScope.contactRecord.unit_id }"/>
  173. <input type="hidden" id="tabid" name="tabid" value="${param.tabid }">
  174. <input type="hidden" id="task" name="task" value="update">
  175. <input type="hidden" id="validateImg" value="0">
  176. </center>
  177. </div>
  178. </div>
  179. </div>
  180. </form>
  181. <%@ include file="/include/message.jsp"%>
  182. </body>
  183. </html>