📄 list.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%@ include file="../../include.inc"%>
<jsp:directive.page import="com.t53.crm4.common.PaginationBean" />
<html>
<head>
<title>客户信息管理</title>
<link href="<%=request.getContextPath()%>/css/style.css"
rel="stylesheet" type="text/css">
<script src="<%=request.getContextPath()%>/js/customer.js"></script>
<script type="text/javascript"
src="<%=request.getContextPath()%>/js/customer-ajax.js"></script>
<link rel="stylesheet" type="text/css"
href="<%=request.getContextPath()%>/js/ext-2.2/resources/css/ext-all.css" />
<!-- GC -->
<!-- LIBS -->
<script type="text/javascript"
src="<%=request.getContextPath()%>/js/ext-2.2/adapter/ext/ext-base.js"></script>
<!-- ENDLIBS -->
<script type="text/javascript"
src="<%=request.getContextPath()%>/js/ext-2.2/ext-all.js"></script>
<!-- Common Styles for the examples -->
<link rel="stylesheet" type="text/css"
href="<%=request.getContextPath()%>/js/ext-2.2/examples/shared/examples.css" />
<script type="text/javascript"
src="<%=request.getContextPath()%>/js/ext-2.2/examples/shared/examples.js"></script>
</head>
<body>
<br>
<html:form action="/customer/list.do?op=find" method="POST">
<div class="page_title">
客户信息管理
</div>
<div class="button_bar">
<html:hidden styleId="bean.operate" property="bean.operate" />
<button class="common_button" onclick="help('');">
帮助
</button>
<input type="button" class="common_button" value="查询" name="btnx"
onclick="sub('<%=PaginationBean.FIRST%>')" />
</div>
<table class="query_form_table">
<tr>
<th>
客户编号
</th>
<td>
<html:text property="cust.custNo" />
</td>
<th>
名称
</th>
<td>
<html:text property="cust.custName" />
</td>
<th>
地区
</th>
<td>
<select name="cust.custRegion">
<option value="全部">
全部
</option>
<c:if test="${not empty requestScope.region}">
<c:forEach items="${requestScope.region}" var="all">
<c:choose>
<c:when test="${all eq requestScope.currentRegion }">
<option value="${all }" selected="selected">
${all }
</option>
</c:when>
<c:otherwise>
<option value="${all }">
${all }
</option>
</c:otherwise>
</c:choose>
</c:forEach>
</c:if>
</select>
</td>
</tr>
<tr>
<th>
客户经理
</th>
<td>
<html:text property="cust.custManagerName" />
</td>
<th>
客户等级
</th>
<td>
<select name="cust.custLevelLabel">
<option value="全部">
全部
</option>
<c:if test="${not empty requestScope.custLevelLabel}">
<c:forEach items="${requestScope.custLevelLabel}" var="all">
<c:choose>
<c:when test="${all eq requestScope.levelLabel}">
<option value="${all }" selected="selected">
${all }
</option>
</c:when>
<c:otherwise>
<option value="${all }">
${all }
</option>
</c:otherwise>
</c:choose>
</c:forEach>
</c:if>
</select>
</td>
<th>
</th>
<td>
</td>
</tr>
</table>
<table class="data_list_table">
<tr>
<th>
序号
</th>
<th>
客户编号
</th>
<th>
名称
</th>
<th>
地区
</th>
<th>
客户经理
</th>
<th>
客户等级
</th>
<th>
操作
</th>
</tr>
<c:if test="${not empty requestScope.custList}">
<c:forEach items="${requestScope.custList}" var="cust"
varStatus="vs">
<c:if test="${cust.custStatus ne 3 }">
<tr>
<td class="list_data_number">
${vs.count }
</td>
<td class="list_data_text">
${cust.custNo }
</td>
<td class="list_data_ltext">
${cust.custName }
</td>
<td class="list_data_text">
${cust.custRegion }
</td>
<td class="list_data_text">
${cust.custManagerName }
</td>
<td class="list_data_text">
${cust.custLevelLabel }
</td>
<td class="list_data_op">
<img
onclick="to('<%=request.getContextPath()%>/customer/list.do?custNo=${cust.custNo }&op=edit')"
title="编辑"
src="<%=request.getContextPath()%>/images/bt_edit.gif"
class="op_button" />
<img
onclick="to('<%=request.getContextPath()%>/customer/linkman.do?custNo=${cust.custNo}&op=show')"
title="联系人"
src="<%=request.getContextPath()%>/images/bt_linkman.gif"
class="op_button" />
<img
onclick="to('activities.do?custNo=${cust.custNo }&op=show')"
title="交往记录"
src="<%=request.getContextPath()%>/images/bt_acti.gif"
class="op_button" />
<img onclick="to('orders.do?op=show&custNo=${cust.custNo }')"
title="历史订单"
src="<%=request.getContextPath()%>/images/bt_orders.gif"
class="op_button" />
<img title="删除" id="del"
onclick="to('<%=request.getContextPath()%>/customer/list.do?custNo=${cust.custNo }&op=del')"
src="<%=request.getContextPath()%>/images/bt_del.gif"
class="op_button" />
<button id="mb1">
Show
</button>
</td>
</tr>
</c:if>
</c:forEach>
</c:if>
<c:if test="${empty requestScope.custList}">
<tr>
<td colspan="7" style="color: red; font-size: 15px;"
align="center">
客户列表为已为空!
</td>
</tr>
</c:if>
<tr>
<th colspan="100" class="pager">
<div class="pager">
共
<span><html:hidden property="bean.maxinum" write="true" />
</span> 条 每页
<html:text property="bean.perCount" styleClass="mytext"
style="width:30px;"></html:text>
条 第
<span><html:hidden property="bean.pageCount" write="true" />
</span>页/共
<span><html:hidden property="bean.pageNum" write="true" />
</span>页
<input type="button" value="首页" name="btn1"
onclick="sub('<%=PaginationBean.FIRST%>')" class="common_button" />
<input type="button" value="上一页" name="btn2"
onclick="sub('<%=PaginationBean.PREVIOUS%>')"
class="common_button" />
<input type="button" value="下一页" name="btn3"
onclick="sub('<%=PaginationBean.NEXT%>')" class="common_button" />
<input type="button" value="尾页" name="btn4"
onclick="sub('<%=PaginationBean.LAST%>')" class="common_button" />
转到
<html:text property="bean.pageCount" styleClass="mytext"
style="width:30px;"></html:text>
页
<input type="button" value="GO" name="btn5" onclick="sub('')"
class="common_button" />
</div>
</th>
</tr>
</table>
</html:form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -