📄 excuteplan.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ include file="/include.inc"%>
<%
String path = request.getContextPath();
%>
<html>
<head>
<title>执行计划</title>
<script type="text/javascript" src="<%=path%>/js/salchancecommon.js"></script>
<script type="text/javascript" src="<%=path%>/js/salchancevalidate.js"></script>
<script type='text/javascript' src='/crm4/dwr/interface/JPlanBiz.js'></script>
<script type='text/javascript' src='/crm4/dwr/engine.js'></script>
<script type='text/javascript' src='/crm4/dwr/util.js'></script>
<link rel="stylesheet" href="<%=path%>/css/styles.css" type="text/css"></link>
<link rel="stylesheet"
href="${pageContext.request.contextPath }/css/confirm.css"
type="text/css"></link>
<script type="text/javascript" src="<%=path%>/js/ty_alert_msg.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/js/jquery-1.2.3.min.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/js/jquery-impromptu.1.5.js"></script>
</head>
<script type="text/javascript">
//保存计划项结果
function dosave(planId){
var rs = document.getElementById(planId).value;
if(rs == null || rs == ""){
show("保存计划项不能为空");
return ;
}
var boold = JPlanBiz.ajax4SavaOrUpdate(planId,rs,function(data){
if(data)
show("保存计划项成功");
else
show("保存计划项失败");
});
}
//制定计划
function frame(id){
document.forms[0].action = "${pageContext.request.contextPath}/plan.do?o=toFrame&frameid="+id;
document.forms[0].submit();
}
//开发成功
function openSuccess(successid){
alert("用户开发成功,已添加新客户记录。");
document.forms[0].action = "${pageContext.request.contextPath}/plan.do?o=doOpenSuccess&chanceid="+successid;
document.forms[0].submit();
}
//开发失败
function openfaile(faileid){
alert("开发失败,已归档。");
document.forms[0].action = "${pageContext.request.contextPath}/plan.do?o=doOpenStop&chanceid="+faileid;
document.forms[0].submit();
}
function init(){
if('${requestScope.operMsg}'!=null && '${requestScope.operMsg}' != ""){
show('${requestScope.operMsg}');
}
}
function check(){
var rs = document.getElementById("result").value;
if(rs == null || rs == ""){
show("保存计划项不能为空");
return ;
}else {
document.forms[1].action="${pageContext.request.contextPath}/plan.do?o=doSavePlanResult";
document.forms[1].submit();
}
}
</script>
<body onload="init()">
<br>
<html:form action="/plan">
<div id="show_alt" class="alt_css"></div>
<!-- js的样式 -->
<div class="page_title">
客户开发计划 > 执行计划
</div>
<div class="button_bar">
<button class="common_button" onclick="help('');">
帮助
</button>
<button class="common_button"
onclick="openfaile(${requestScope.salChance.chcId});">
终止开发
</button>
<button class="common_button" onclick="javascript:history.go(-1);">
返回
</button>
<button class="common_button"
onclick="frame(${requestScope.salChance.chcId});">
制定计划
</button>
<button class="common_button"
onclick="openSuccess(${requestScope.salChance.chcId});">
开发成功
</button>
</div>
<table class="query_form_table">
<tr>
<th>
编号
</th>
<td>
${requestScope.salChance.chcId}
</td>
<th>
机会来源
</th>
<td>
${requestScope.salChance.chcSource}
</td>
</tr>
<tr>
<th>
客户名称
</th>
<td>
${requestScope.salChance.chcCustName}
</td>
<th>
成功机率(%)
</th>
<td>
${requestScope.salChance.chcRate}
</td>
</tr>
<tr>
<th>
概要
</th>
<td colspan="3">
${requestScope.salChance.chcTitle}
</td>
</tr>
<tr>
<th>
联系人
</th>
<td>
${requestScope.salChance.chcLinkman}
</td>
<th>
联系人电话
</th>
<td>
${requestScope.salChance.chcTel}
</td>
</tr>
<tr>
<th>
机会描述
</th>
<td colspan="3">
${requestScope.salChance.chcDesc}
</td>
</tr>
<tr>
<th>
创建人
</th>
<td>
${requestScope.salChance.chcCreateBy}
</td>
<th>
创建时间
</th>
<td>
${requestScope.salChance.chcCreateDate}
</td>
</tr>
<tr>
<th>
指派给
</th>
<td>
${requestScope.salChance.chcDueTo}
</td>
<th>
指派时间
</th>
<td>
${requestScope.salChance.chcDueDate}
</td>
</tr>
</table>
<br />
</html:form>
<html:form action="/plan?o=doSavePlanResult">
<table class="data_list_table" id="table1">
<tr>
<th>
日期
<br>
</th>
<th>
计划
<br>
</th>
<th>
执行效果
<br>
</th>
</tr>
<!-- 这里要循环 -->
<c:forEach items="${requestScope.salChance.salPlans}" var="plans">
<input type="hidden" id="planId" value="${plans.plaId}">
<html:hidden property="salplan.salChance.chcId"
value="${plans.salChance.chcId}"></html:hidden>
<tr>
<td class="list_data_text">
${plans.plaDate}
</td>
<td class="list_data_ltext">
<html:hidden property="salplan.plaTodo" value="${plans.plaTodo}"
write="true" />
<br>
</td>
<td class="list_data_ltext">
<input type="text" id="${plans.plaId }" value="${plans.plaResult}">
<input type="button" onclick="dosave(${plans.plaId })" class="common_button"
value="保存">
</td>
</tr>
</c:forEach>
<!-- 循环结束 -->
</table>
</html:form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -