| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <title>编辑联系记录</title>
- <link href="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <link href="/shares/css/yw/master1/reset.css" rel="stylesheet" type="text/css" />
- <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
- <link href="${pageContext.request.contextPath }/main.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript" src="/shares/js/file.js"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
- <script src="/shares/xheditor/xheditor-1.1.14/xheditor-1.1.14-zh-cn.min.js" type="text/javascript" ></script>
- <!-- 选择窗口需要加载的js文件 start-->
- <script src="${pageContext.request.contextPath}/liger/lib/json2.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/yw/erp/crmCustomerLookup.js"></script>
- <script type="text/javascript" src="/shares/js/yw/erp/crmContacterLookup.js"></script>
- <script type="text/javascript" src="/shares/js/yw/erp/contactRecordTableVar.js"></script>
- <!-- add the jScrollPane script -->
- <link rel="stylesheet" type="text/css" href="/shares/css/yw/master1/win/jquery.jscrollpane.codrops1.css" />
- <script type="text/javascript" src="/shares/js/yw/master1/jquery.mousewheel.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/jquery.jscrollpane.min.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/scroll-startstop.events.jquery.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/scroll.js"></script>
- <script type="text/javascript">
- $(function (){
- $("input[type='text']:first").focus();
- $("#contact_date").ligerDateEditor({ showTime: true, labelAlign: 'left', showTime:false, width:150,height:21});
- $("#next_contact_date").ligerDateEditor({ showTime: true, labelAlign: 'left', showTime:false, width:150,height:21});
- loadTypeTree("assignedUserBtn", {
- type : "usersingle",
- backId : "assigned_user_id",
- backName : "assigned_user_name",
- tab : "1,2,3"
- });
- });
-
-
- //编辑保存
- function btnSaveRecord(){
- if(checkForm()){
- $("#btnSave").attr({"disabled":"disabled"});
- $("#contacterRecordForm").submit();
- }
- }
- </script>
- <style type="text/css">
- body {
- background: #fff;
- }
- </style>
- </head>
- <body style="background: none; overflow: hidden;" ontouchmove="event.preventDefault();">
- <form id="contacterRecordForm" action="mtContacterRecordAction.do" method="post">
- <div class="s_title b10 f6">
- <img src="/shares/images/master1/gg_ico.png" width="27" height="26" />编辑联系记录
- <div class="article_title">
- <input class="art_back" style="width: 50px;" title="返回" name="" onclick="history.back();" type="button" />
- <input class="art_sub" title="提交" name="" type="button" value="" onclick="btnSaveRecord();" />
- </div>
- </div>
- <div id="jp-container" class="jp-container liuyan" style="margin-top:60px;">
- <div class="container-layout" >
- <div class="forum-container ">
- <center>
- <table class="l-table-edit">
- <tr>
- <td class="l-table-edit-text">主题<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <input type="text" id="note_title" name="note_title" value="${requestScope.contactRecord.note_title }" size="50" />
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">销售商机<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <input type="hidden" id="opportunity_id" name="opportunity_id" value="${requestScope.contactRecord.opportunity_id }"/>
- <input type="text" id="opportunity_title" name="opportunity_title" value="${requestScope.contactRecord.opportunity_title }" size="50" readonly="readonly" />
- <input type="button" class="l-button" value="请选择" onclick="saleOpportunity({opportunity_id:'opportunity_id',opportunity_title:'opportunity_title',opportunity_stage:'opportunity_stage'});" />
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">客户名称<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <input type="hidden" id="customer_id" name="customer_id" value="${requestScope.contactRecord.customer_id }"/>
- <input type="text" id="customer_name" name="customer_name" value="${requestScope.contactRecord.customer_name }" size="50" readonly="readonly" />
- <input type="button" class="l-button" value="请选择" onclick="chooseCustomer({universalid:'customer_id',cus_name:'customer_name',cus_rating:'rating'});" />
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">联系人:</td>
- <td class="l-table-edit-td">
- <input type="hidden" id="contacter_id" name="contacter_id" value="${requestScope.contactRecord.contacter_id }" readonly="readonly" />
- <input type="text" id="contacter_name" name="contacter_name" value="${requestScope.contactRecord.contacter_name }" size="20" />
- <input type="button" class="l-button" value="请选择" onclick="chooseContacter({universalid:'contacter_id',cp_truename:'contacter_name'});" />
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">联系类型<FONT COLOR="red"></FONT>:</td>
- <td class="l-table-edit-td">
- <select id="note_type" name="note_type" class="short-text">
- <c:forEach items="${note_type}" var="erpdatadic">
- <c:if test="${requestScope.contactRecord.note_type eq erpdatadic.dvalue }">
- <option value="${erpdatadic.dvalue }" selected="selected">${erpdatadic.dname }</option>
- </c:if>
- <c:if test="${requestScope.contactRecord.note_type ne erpdatadic.dvalue }">
- <option value="${erpdatadic.dvalue }" >${erpdatadic.dname }</option>
- </c:if>
- </c:forEach>
- </select>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">联系日期<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <input type="text" id="contact_date" name="contact_date" value="${requestScope.contactRecord.contact_date }" size="20" />
- <input type="hidden" id="contact_date_prompt" name="contact_date" value="" size="20" />
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">负责人<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <input type="text" id="assigned_user_name" name="assigned_user_name" value="${requestScope.contactRecord.assigned_user_name}" size="20" readonly="readonly" />
- <input type="hidden" name="assigned_user_id" id="assigned_user_id" value="${requestScope.contactRecord.assigned_user_id }" />
- <input type="button" value="请选择" id="assignedUserBtn" class="l-button"/>
- <div id="assignedUserMsg" style="width: 500px;"></div>
- </td>
- </tr>
- <tr>
- <tr>
- <td class="l-table-edit-text">销售阶段<FONT COLOR="red"></FONT>:</td>
- <td class="l-table-edit-td">
- <input type="hidden" id="opportunity_stage" name="opportunity_stage" value="${requestScope.contactRecord.opportunity_stage }" size="20" />
- <c:forEach items="${opportunity_stage}" var="erpdatadic">
- <c:if test="${requestScope.contactRecord.opportunity_stage eq erpdatadic.dvalue }">
- <input type="text" id="opportunity_stage_name" name="opportunity_stage_name" value="${erpdatadic.dname }" readonly="readonly" />
- </c:if>
- </c:forEach>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">客户状态<FONT COLOR="red"></FONT>:</td>
- <td class="l-table-edit-td">
- <input type="hidden" id="rating" name="rating" value="${requestScope.contactRecord.rating }" size="20" />
- <c:forEach items="${rating}" var="erpdatadic">
- <c:if test="${requestScope.contactRecord.rating eq erpdatadic.dvalue }">
- <input type="text" id="rating_name" name="rating_name" value="${erpdatadic.dname }" readonly="readonly" />
- </c:if>
- </c:forEach>
-
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">回访日期<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <input type="text" id="next_contact_date" name="next_contact_date" value="${requestScope.contactRecord.next_contact_date }" size="20" />
- <input type="hidden" id="next_contact_date_prompt" name="next_contact_date" value="" size="20" />
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">内容<FONT COLOR="red"></FONT>:</td>
- <td class="l-table-edit-td" colspan="3">
- <div>
- <textarea id="note_content" name="note_content" rows="5" cols="50">${requestScope.contactRecord.note_content }</textarea>
- </div>
- </td>
- </tr>
- </table>
- <input type="hidden" id="universalid" name="universalid" value="${requestScope.contactRecord.universalid}">
- <input type="hidden" id="unit_id" name="unit_id" value="${requestScope.contactRecord.unit_id }"/>
- <input type="hidden" id="tabid" name="tabid" value="${param.tabid }">
- <input type="hidden" id="task" name="task" value="update">
- <input type="hidden" id="validateImg" value="0">
- </center>
- </div>
- </div>
- </div>
- </form>
- <%@ include file="/include/message.jsp"%>
- </body>
- </html>
|