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

📄 openplan.jsp

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<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>

		<script type="text/javascript">
		//帮助按钮操作
		   function helpbtn(){
		   
		     alert("欢迎使用");
		      
		   }
		   //查询按钮
		   function dosubmit(o){
		   
		      document.forms[0].action = "${pageContext.request.contextPath}/plan.do?o="+o;
		      document.forms[0].submit();
		   }
		   
		   //分页操作
		  function sub(page){
	 	 var reg =/^\d+$/;
		 if(!reg.test(document.getElementById("pagebean.perCount").value)
		 			||!reg.test(document.getElementById("pagebean.pageCount").value)	   
		     ||document.getElementById("pagebean.perCount").value==0||document.getElementById("pagebean.pageCount").value==0){
	    	   alert("分页条数和页数必须为正整数!");
	 		return false;
	 		}
         	document.getElementById("pagebean.operate").value=page;			 
	     	document.forms[0].submit();
	 	}
	 	//制定计划
	 	function frame(id){
	 	   document.forms[0].action = "${pageContext.request.contextPath}/plan.do?o=toFrame&frameid="+id;
	 	   document.forms[0].submit();
	 	}
	 	
	 	 //执行计划按钮操作
          function doexcute(id){
          
              document.forms[0].action = "${pageContext.request.contextPath}/plan.do?o=toExecute&salchanceid="+id;
              document.forms[0].submit();
          }
           //查看按钮操作
          function dosee(id){
          
              document.forms[0].action = "${pageContext.request.contextPath}/plan.do?o=toSee&chanceid="+id;
              document.forms[0].submit();
          }
          
          
	 	
		</script>

	</head>

	<body>

		<html:form action="/plan.do?o=doList" method="post">
			<div class="page_title">
				客户开发计划
			</div>
			<div class="button_bar">
				<button class="common_button" onclick="helpbtn();">
					帮助
				</button>
				<button class="common_button" onclick="dosubmit('doList');">
					查询
				</button>
			</div>
			<table class="query_form_table">
				<tr>
					<th>
						客户名称
					</th>
					<td>
						<html:text property="salChance.chcCustName"></html:text>
					</td>
					<th>
						概要
					</th>
					<td>
						<html:text property="salChance.chcTitle"></html:text>
					</td>
					<th>
						联系人
					</th>
					<td>
						<html:text property="salChance.chcLinkman" size="20"></html:text>
					</td>
				</tr>
			</table>
			<br />
			<table class="data_list_table">
				<tr>
					<th>
						编号
					</th>
					<th>
						客户名称
					</th>
					<th>
						概要
					</th>
					<th>
						联系人
					</th>
					<th>
						联系人电话
					</th>
					<th>
						创建时间
					</th>
					<th>
						状态
					</th>
					<th>
						操作
					</th>
				</tr>
				<!-- 循环这一行开始 -->
				<c:forEach items="${requestScope.chancelist}" var="chanceItem">
					<tr>
						<td class="list_data_number">
							${chanceItem.chcId}
						</td>
						<td class="list_data_text">
							${chanceItem.chcCustName}
						</td>
						<td class="list_data_ltext">
							${chanceItem.chcTitle}
						</td>
						<td class="list_data_text">
							${chanceItem.chcLinkman}
						</td>
						<td class="list_data_text">
							${chanceItem.chcTel}
						</td>
						<td class="list_data_text">
							${chanceItem.chcCreateDate}
						</td>

						<c:choose>
							<c:when
								test="${chanceItem.chcStatus eq '3' or chanceItem.chcStatus eq '4' }">
								<td class="list_data_text">
								${chanceItem.chcStatus}
									已归档
								</td>
							</c:when>
							<c:otherwise>
								<td class="list_data_text">
								${chanceItem.chcStatus}
									开发中...
								</td>
							</c:otherwise>
						</c:choose>

						<td class="list_data_op">
							
								<img onclick="frame(${chanceItem.chcId});" title="制定计划"
									src="<%=request.getContextPath()%>/images/bt_plan.gif"
									class="op_button" />
							
							<c:if test="${chanceItem.chcStatus eq '2'}">
								<img onclick="doexcute(${chanceItem.chcId});" title="执行计划"
									src="<%=request.getContextPath()%>/images/bt_feedback.gif"
									class="op_button"/>
							</c:if>
							<c:if test="${chanceItem.chcStatus eq '3'}">
								<img onclick="alert('用户开发成功,已添加新客户记录。');" title="开发成功"
									src="<%=request.getContextPath()%>/images/bt_yes.gif"
									class="op_button" />
							</c:if>
							<c:if
								test="${chanceItem.chcStatus eq '3' or chanceItem.chcStatus eq '4'}">
								<img onclick="dosee(${chanceItem.chcId});" title="查看"
									src="<%=request.getContextPath()%>/images/bt_detail.gif"
									class="op_button" />
							</c:if>
						</td>
					</tr>
				</c:forEach>
				<c:if test="${empty requestScope.chancelist}">
					<tr>
						<td class="data_cell" colspan="20"
							style="text-align: center; height: 40px;">
							没有记录
						</td>
					</tr>
				</c:if>
			</table>
			<table class="data_list_table">
				<html:hidden styleId="pagebean.operate" property="pagebean.operate" />
				<tr>
					<th colspan="7" class="pager">
						<div class="pager">
							<span><html:hidden property="pagebean.maxinum"
									write="true" /> </span>条记录 每页
							<html:text property="pagebean.perCount" size="3"
								style="text-align: center;"></html:text>
							条 第
							<html:hidden property="pagebean.pageCount" write="true" />
							<span>${pagebean.pageCount}</span> 页/共
							<span><html:hidden property="pagebean.pageNum"
									write="true" /> </span>页
							<button class="common_button"
								onclick="sub('<%=PaginationBean.FIRST%>')">
								首页
							</button>
							<button class="common_button"
								onclick="sub('<%=PaginationBean.PREVIOUS%>')">
								上一页
							</button>
							<button class="common_button"
								onclick="sub('<%=PaginationBean.NEXT%>')">
								下一页
							</button>
							<button class="common_button"
								onclick="sub('<%=PaginationBean.LAST%>')">
								尾页
							</button>
							转到
							<html:text property="pagebean.pageCount" size="3"
								style="text-align: center;"></html:text>
							<input type="button" class="common_button" value="跳转"
								onclick="sub('')">
						</div>
					</th>
				</tr>
			</table>
		</html:form>
	</body>
</html>

⌨️ 快捷键说明

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