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

📄 customer_list.jsp

📁 crm系统 有源码 及相关文档sql2005 数据库 客户反馈模块
💻 JSP
字号:
<%@ page language="java" pageEncoding="GBK"%>

<%@ 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="/WEB-INF/jb-common.tld" prefix="jb"%>
<script src="validate.js" type="text/javascript"></script>
<script src="icommon.js" type="text/javascript"></script>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
<title>客户基本信息管理</title>
<link rel="stylesheet" type="text/css" href="styles.css">
<script type="text/javascript">
		function doDel(id){
			if ( window.confirm("确定删除?") ){
				window.location.href = "?o=doDel&id=" + id;
			}
		}
	</script>
</head>
<body>
<html:form action="customer">
	<html:hidden property="o" value="toList" />
	<div class="page_title">客户基本信息管理</div>
	<div class="button_bar">
	<button class="common_button" onclick="help('');">帮助</button>
	<button class="common_button" onclick="javascript:doSubmit('toList');">查询</button>
	</div>
	<table class="query_form_table" border="0" cellPadding="3"
		cellSpacing="0">
		<tr>
			<th>客户编号</th>
			<td><html:text property="item.custNo" /></td>
			<th>客户名称</th>
			<td><html:text property="item.custName" /></td>
			<th>地区</th>
			<td>
				<html:select property="item.custRegion">
					<html:option value="">全部</html:option>
					<html:optionsCollection name="DICTS_OPTIONS_地区" label="dictItem"
						value="dictValue" />
				</html:select>
			</td>
		</tr>
		<tr>
			<th>客户经理</th>
			<td><html:text property="item.custManagerName" /></td>
			<th>客户等级</th>
			<td>
				<html:select property="item.custLevelLabel">
					<html:option value="">全部</html:option>
					<html:optionsCollection name="DICTS_OPTIONS_客户等级" label="dictItem"
						value="dictValue" />
				</html:select>
			</td>
			<th>状态</th>
			<td><html:select property="item.custStatus">
					<html:option value="">全部</html:option>
					<html:option value="1">正常</html:option>
					<html:option value="2">流失</html:option>
					<html:option value="3">删除</html:option>					
				</html:select></td>
		</tr>
	</table>
	<!-- 列表数据 -->
	<br />
	<table class="data_list_table" border="0" cellPadding="3"
		cellSpacing="0">
		<tr>
			<th onclick="order_by('custNo');">客户编号</th>
			<th onclick="order_by('custName');">客户名称</th>
			<th onclick="order_by('custRegion');">地区</th>
			<th onclick="order_by('custManagerName');">客户经理</th>
			<th onclick="order_by('custLevelLabel');">客户等级</th>
			<th onclick="order_by('custStatus');">状态</th>
			<th>操作</th>
		</tr>
		<logic:iterate id="item" name="customerForm"
			property="pageResult.list"
			type="org.jb.y272.team0.entity.CstCustomer">
			<tr>
				<td class="list_data_text">${item.custNo }&nbsp;</td>
				<td class="list_data_ltext">${item.custName }&nbsp;</td>
				<td class="list_data_text">${item.custRegion }&nbsp;</td>
				<td class="list_data_text">${item.custManagerName }&nbsp;</td>
				<td class="list_data_text">${item.custLevelLabel }&nbsp;</td>
				<td class="list_data_text"><%
					switch(Integer.parseInt(item.getCustStatus().trim())){
						case 1:out.print("正常");break;
						case 2:out.print("流失");break;
						case 3:out.print("删除");break;
						default:break;
					}
				%>&nbsp;</td>
				<td class="list_data_op">
					<logic:notEqual name="item" property="custStatus" value="3">
					<img
					onclick="window.location.href='?o=toEdit&amp;id=${item.custNo }';"
					title="编辑" src="images/bt_edit.gif" class="op_button" alt="" /> 
					<img
					onclick="window.location.href='linkman.do?o=toList&amp;id=${item.custNo }';"
					title="联系人" src="images/bt_linkman.gif" class="op_button" alt="" /> 
					<img
					onclick="window.location.href='activity.do?o=toList&amp;id=${item.custNo }';"
					title="交往记录" src="images/bt_acti.gif" class="op_button" alt="" /> 
					<img
					onclick="window.location.href='orders.do?o=toList&amp;id=${item.custNo }';"
					title="历史订单" src="images/bt_orders.gif" class="op_button" alt="" /> 
					
					<img
					onclick="doDel('${item.custNo }');" title="删除"
					src="images/bt_del.gif" class="op_button" alt="" />
					</logic:notEqual>
					&nbsp;
					</td>					
			</tr>
		</logic:iterate>
		<logic:empty name="customerForm" property="pageResult.list">
			<tr>
				<td class="data_cell" colspan="20"
					style="text-align:center;height:40px;">没有记录</td>
			</tr>
		</logic:empty>
		<tr>
			<td colspan="20" style="padding:0 1px;">
			<div class="pager"><jb:pager form="customerForm" /></div>
			</td>
		</tr>
	</table>
</html:form>
</body>
</html:html>

⌨️ 快捷键说明

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