?? dev_plan.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">客戶開發計劃 > 制定計劃</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> ${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 + -