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

📄 list.jsp

📁 J2EE客户关系管理系统!!!!!!!!!!!!!!!!!!!!
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>jb-aptech毕业设计项目</title>
<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/engine.js'></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/util.js'></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/interface/Pager.js'></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/interface/custservice.js'></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/interface/DAOCSTService.js'></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/js/custlist.js'></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/js/s1.js'></script>		
		<!-- 自定义分页控件的客户端js -->
<script type='text/javascript' src='<%=request.getContextPath()%>/js/PageCtl.js'></script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/cust.js"></script>
<script type="text/javascript" src="js/share.js"></script>
<script>
      var tab = new TablePage('tab','tbody', 'pgCtl', 'cst_customer');
      //以下是可选的
      tab.dateformat="yyyy年MM月dd日 HH时mm分ss秒" ;    //如果包含日期列,这里可以定义日期的显示格式
      tab.sqlFilter=" and cust_status < 3";  //查询条件
      //tab.pagesize=10;                            每页多少行
      tab.wait='waitCtl';                            //等待的提示
      tab.default_callback=function over()                   //显示完成以后的回调函数
                    {
                      waitCtl.style.display = 'none';
                    };
      function searchCust(){
      		tab.sqlFilter=" and cust_status < 3";
      		if("" != $('custNo').value)
      			tab.sqlFilter +=" and cust_No='"+$('custNo').value+"'";
      		if("" != $('custName').value)
      			tab.sqlFilter+=" and cust_Name like '%"+$('custName').value+"%'";
      		if("全部" != $('custRegion').value)
      		 tab.sqlFilter+=" and cust_Region='"+$('custRegion').value+"'";
      		if("" != $('custManagerName').value)
      		  tab.sqlFilter+=" and cust_Manager_Name like'%"+$('custManagerName').value+"%'";
      		if("全部" != $('custLevel').value) 
      		   tab.sqlFilter+=" and cust_Level='"+$('custLevel').value+"'";
      		tab.go(1);
      }   
   </script>

</head>
<body onload="javascript:{initlist(),smanPromptList('custNo'),smanPromptList2('custName')}">
<input type="hidden" id="status" value="${sessionScope.usrFlagIndex}">
<input type="hidden" id="userFlag" value="${sessionScope.usrIdIndex}">
<input type="hidden" id="pagenum" value="${param.pagenum}">
<div class="page_title">客户信息管理</div>
<div class="button_bar">
	<button class="common_button" onclick="helpq5();">帮助</button>
	<button class="common_button" onclick="searchCust();">查询</button>  
</div>
<form action="ClientNexus/com/accp/action/CstCustaction" method="post" name="form1">
<input type="hidden" name="actionType">
<input type="hidden" name="cust_name">
</form>
<table class="query_form_table">
	<tr>
		<th>客户编号</th>
		<td><input id="custNo"/></td>
		<th>名称</th>
		<td><input id="custName"/></td>
		<th>地区</th>
		<td>
			<select id="custRegion"></select>
		</td>
	</tr>
	<tr>
		<th>客户经理</th>
		<td><input id="custManagerName"/></td>
		<th>客户等级</th>
		<td>
			<div id='menu1'><select id="custLevel"></select></div>
		</td>
		<th> </th>
		<td> </td>
	</tr>
</table>
<br />
<table class="data_list_table">
	<tr>
		<th>序号</th>
		<th>客户编号</th>
		<th>名称</th>
		<th>地区</th>
		<th>客户经理</th>
		<th>客户等级</th>
		<th>操作</th>
	</tr>
	<tbody id="tbody">
	<tr id="template" style="display:none" ondblclick="edit(this.id.substring(8));" onmouseenter="shose(this.id.substring(8));" onmouseleave="go00(this.id.substring(8));">
		<td id="template:numb" class="list_data_number"></td>
		<td id="template:cust_no" class="list_data_text"></td>
		<td id="template:cust_name" class="list_data_ltext"></td>
		<td id="template:cust_region" class="list_data_text"></td>
		<td id="template:cust_manager_name" class="list_data_text"></td>
		<td id="template:cust_level_label" class="list_data_text"></td>
		<td id="template:cust" class="list_data_op">
			<img onclick="edit(this.parentNode.id.substring(13));" title="编辑" src="images/bt_edit.gif" class="op_button" />
			<img onclick="go('linkman.jsp?custId='+this.parentNode.id.substring(13)+'&pagenum='+tableobj.pageno);" title="联系人" src="images/bt_linkman.gif" class="op_button" />
			<img onclick="go('activities.jsp?atv_cust_no='+this.parentNode.id.substring(13)+'&pagenum='+tableobj.pageno);" title="交往记录" src="images/bt_acti.gif" class="op_button" />
			<img onclick="submitedit(this.parentNode.id.substring(13))" title="历史订单" src="images/bt_orders.gif" class="op_button" />			
			<img id='deleimg' onclick="dele(this.parentNode.id.substring(13))" title="删除" src="images/bt_del.gif" class="op_button"/>	
		</td>
	</tr>
	</tbody>
	<tr id="reveal" style="display:none"><td align="center" colspan="8">没有找到你所需要的数据</td></tr>
	<tr>
	<th colspan="100" class="pager">
		<div align="left" id="waitCtl">正在加载...</div>
		<div id="pgCtl" class="pager">
	</th>
	</tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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