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

📄 frameplan.jsp

📁 通过这个系统完成对客户基本信息、联系人信息、交往信息、客户服务信息的充分共享和规范化管理;希望通过对销售机会、客户开发过程的追踪和记录
💻 JSP
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ include file="/include.inc"%>


<html>
	<head>

		<title>制定计划项</title>

		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/salchancecommon.js"></script>
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/salchancevalidate.js"></script>
		<link rel="stylesheet"
			href="<%=request.getContextPath()%>/css/styles.css" type="text/css"></link>
	</head>


	<script type="text/javascript">
        //删除计划项
        function del(frameid){
            document.forms[0].action = "${pageContext.request.contextPath}/plan.do?o=doDel&id="+frameid;
            document.forms[0].submit();   
        }
        //保存计划项
        function save(){
             document.forms[0].action = "${pageContext.request.contextPath}/plan.do?o=doAdd";
             document.forms[0].submit();
        }
          //执行计划按钮操作
          function dosubmit(id){
          
              document.forms[0].action = "${pageContext.request.contextPath}/plan.do?o=toExecute&salchanceid="+id;
              document.forms[0].submit();
          }
        
    </script>

	<body>
		<br>
		<html:form action="/plan" method="post">
			<html:hidden property="salChance.chcId"
				value="${requestScope.salChance.chcId}" />
			<div class="page_title">
				客户开发计划 &gt; 制定计划
			</div>
			<div class="button_bar">
				<button class="common_button" onclick="help('');">
					帮助
				</button>
				<button class="common_button"
					onclick="dosubmit(${requestScope.salChance.chcId});">
					执行计划
				</button>
				<button class="common_button" onclick="javascript:history.go(-1);">
					返回
				</button>
			</div>
			<table class="query_form_table">
				<tr>
					<th>
						编号
						<br>
					</th>
					<td>
						${requestScope.salChance.chcId}

						<br>
					</td>
					<th>
						机会来源
						<br>
					</th>
					<td>
						${requestScope.salChance.chcSource}

						<br>
					</td>
				</tr>
				<tr>
					<th>
						客户名称
						<br>
					</th>
					<td>
						${requestScope.salChance.chcCustName}

						<br>
					</td>
					<th>
						成功机率(%)
						<br>
					</th>
					<td>
						${requestScope.salChance.chcRate}

						<br>
					</td>
				</tr>
				<tr>
					<th>
						概要
						<br>
					</th>
					<td colspan="3">
						${requestScope.salChance.chcTitle}
						<br>
					</td>
				</tr>
				<tr>
					<th>
						联系人
						<br>
					</th>
					<td>
						${requestScope.salChance.chcLinkman}

						<br>
					</td>
					<th>

						联系人电话
						<br>
					</th>
					<td>
						${requestScope.salChance.chcTel}
						<br>
					</td>
				</tr>
				<tr>
					<th>
						机会描述
						<br>
					</th>
					<td colspan="3">
						${requestScope.salChance.chcDesc}
						<br>
					</td>
				</tr>
				<tr>
					<th>
						创建人
					</th>
					<td>
						${requestScope.salChance.chcCreateBy}
					</td>
					<th>

						创建时间
					</th>
					<td>
						<fmt:formatDate value="${requestScope.salChance.chcCreateDate}"
							pattern="yyyy-MM-dd" />

					</td>
				</tr>
				<tr>
					<th>
						指派给
					</th>
					<td>
						${requestScope.salChance.chcDueTo}
					</td>
					<th>
						指派时间
					</th>
					<td>
						${requestScope.salChance.chcDueDate}
					</td>
				</tr>
			</table>

			<br />

			<table class="data_list_table" id="table1">
				<tr>
					<th width="150px">
						日期
					</th>
					<th height="31">
						计划项
					</th>
					<th>
						操作
					</th>
				</tr>
				<!-- 这里要循环 -->
				<c:forEach items="${requestScope.salChance.salPlans}" var="plan">
					<html:hidden property="plan.plaId" write="false"
						value="${salplan.plaId}" />
					<tr>
						<td class="list_data_text" height="24">
							<fmt:formatDate value="${plan.plaDate}"
								pattern="yyyy-MM-dd hh:mm" />
						</td>
						<td>
						<input type="text" value="${plan.plaTodo}" size="100">
						</td>
						<td class="list_data_ltext" height="24">
							<button class="common_button">
								保存
							</button>
							<button class="common_button" onclick="del(${plan.plaId});">
								删除
							</button>
						</td>
					</tr>
				</c:forEach>
				<!-- 循环结束 -->
			</table>
			<div>
				<div class="button_bar">
					<font color="red">${requestScope.newplan}</font>
					<!-- 这个保存按钮是提交到本页 -->
					<button class="common_button" onclick="save();">
						保存
					</button>
				</div>
				<table class="query_form_table" id="table2">
					<tr>
						<th>
							日期
						</th>
						<td>
							当前默认时间
							<span class="red_star">*</span>
						</td>
						<th>
							计划项
						</th>
						<td>
							<html:text property="salplan.plaTodo" size="30"></html:text>
							<span class="red_star">*</span>
						</td>
					</tr>
				</table>
			</div>
		</html:form>
	</body>
</html>

⌨️ 快捷键说明

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