⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dev_plan.jsp

📁 主要实现管理客户以及客户信息和其公司的服务管理
💻 JSP
字号:
<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>jb-aptech毕业设计项目</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link href="<%=request.getContextPath()%>/html/css/style.css"
			rel="stylesheet" type="text/css">
		<script src="<%=request.getContextPath()%>/html/script/common.js"></script>
		<script type="text/javascript">
			  function addplan(obj,sid){
		  document.forms[obj].action="<%=request.getContextPath()%>/sales.do?method=doAddPlan&sid="+sid;
		  document.forms[obj].submit();
		  }
		  function updateplan(obj,pid,sid){
		  	  document.forms[obj].action="<%=request.getContextPath()%>/sales.do?method=doEditPlan&pid="+pid+"&sid="+sid;
		  document.forms[obj].submit();
		  }
		  function delplan(sid,pid){
		  	   	 var url = "<%=request.getContextPath()%>/sales.do?method=doDeletePlan&sid="+sid+"&pid="+pid;
		  	   	 if(window.confirm("确定删除计划ID:"+pid)){
					 to(url);}
		  }
		      function executeplan(obj){
		   	 var url = "<%=request.getContextPath()%>/sales.do?method=toExecute&sid="+obj;
		 to(url);
		  }
		</script>
</head>
<body>

<div class="page_title">客户开发计划 &gt; 制定计划</div>
<div class="button_bar">
	<button class="common_button" onclick="help('');">帮助</button>
	<button class="common_button" onclick="executeplan('${sales.salesChanceId }');">执行计划</button>
	<button class="common_button" onclick="back();">返回</button>
</div>
<table class="query_form_table">
	<tr>
		<th>编号</th>
		<td>${sales.salesChanceId }</td>
		<th>机会来源</th>
		<td>
			${sales.salesChanceSource } </td>
	</tr>
	<tr>
		<th>客户名称</th>
		<td>${sales.salesChanceCustomerName }</td>
		<th>成功机率(%)</th>
		<td>&nbsp;${sales.salesChanceSucessOdds }</td>
	</tr>	
	<tr>
		<th>概要</th>
		<td colspan="3">${sales.salesChanceSummary }</td>
	</tr>
	<tr>
		<th>联系人</th>
		<td>${sales.salesChanceLinkMan }</td>
		<th>联系人电话</th>
		<td>${sales.salesChanceLinkManPhone }</td>
	</tr>
	<tr>
		<th>机会描述</th>
		<td colspan="3">${sales.salesChanceDescription }</td>
	</tr>
	<tr>
		<th>创建人</th>
		<td>${sales.userInfoBySalesChanceCreaterId.userName }</td>
		<th>创建时间</th>
		<td>${sales.salesChanceDataTime }</td>
	</tr>
</table>

<table class="data_list_table" id="table1">

	<tr>
		<th width="150px">日期</th>
		<th height="31">计划项</th>
	</tr>
	<c:forEach items="${planlist}" var="plan">
	<html:form action="/sales" method="post" styleId="pageForm${plan.exploitationPlanId }">
	<tr>
		<td class="list_data_text" height="24">		<logic:notEmpty name="planlist" scope="request">
					<bean:write name="plan" property="exploitationPlanDatetime" format="yyyy年MM月dd日"/>
					</logic:notEmpty></td>
		<td class="list_data_ltext" height="24"><html:text property="plan.exploitationPlanPlan" value="${plan.exploitationPlanPlan }" size="50"/>
	<button class="common_button" onclick="updateplan('pageForm${plan.exploitationPlanId }','${plan.exploitationPlanId }','${sales.salesChanceId }');">保存</button>
	<button class="common_button" onclick="delplan('${sales.salesChanceId }','${plan.exploitationPlanId }');">删除</button>
		</td>
	</tr>
	</html:form>
	</c:forEach>
</table>

<div class="button_bar">
	<button class="common_button" onclick="addplan('pageForm','${sales.salesChanceId }');">保存</button>
	</div>
	<html:form action="/sales" method="post" styleId="pageForm">
<table class="query_form_table" id="table2">
	<tr>
		<th>日期</th>
		<td><html:text property="plan.date"/><span class="red_star">*</span></td>
		<th>计划项</th>
		<td>
			<html:text property="plan.exploitationPlanPlan" size="50"/><span class="red_star">*</span>
		</td>
	</tr>
</table></html:form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -