📄 client_select.jsp
字号:
<%@ page language="java" contentType="text/html; charset=GB18030"
pageEncoding="GB18030"%>
<%@ page import="java.util.*" %>
<%@ page import="com.bjsxt.drp.util.*" %>
<%@ page import="com.bjsxt.drp.basedata.*" %>
<%
int pageNo = 1;
String strPageNo = request.getParameter("pageNo");
if (strPageNo != null && !strPageNo.equals("")) {
pageNo = Integer.parseInt(strPageNo);
}
int pageSize = 2;
String queryStr = request.getParameter("clientIdOrName");
if (queryStr == null){
queryStr= "";
}
PageModel pageModel = ClientManager.getInstance().findAllClients(pageNo, pageSize, queryStr);
%>
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<title>请选择分销商</title>
<link rel="stylesheet" href="../style/drp.css">
<script src="../script/client_validate.js"></script>
<script type="text/javascript">
function topPage() {
window.self.location = "client_select.jsp?pageNo=<%=pageModel.getTopPageNo()%>";
}
function previousPage() {
window.self.location = "client_select.jsp?pageNo=<%=pageModel.getPreviousPageNo()%>";
}
function nextPage() {
window.self.location = "client_select.jsp?pageNo=<%=pageModel.getNextPageNo()%>";
}
function bottomPage() {
window.self.location = "client_select.jsp?pageNo=<%=pageModel.getBottomPageNo()%>";
}
function queryClient() {
document.clientForm.method = "post";
document.clientForm.action = "client_select.jsp";
document.clientForm.submit();
}
function doubleclick(clientId, clientName) {
window.opener.document.all.clientId.value = clientId;
window.opener.document.all.clientName.value = clientName;
window.close();
}
function selectOk(clientId, clientName) {
////
window.close();
}
</script>
</head>
<body class="body1">
<form name="clientForm" >
<div align="center">
<table width="95%" border="0" cellspacing="0" cellpadding="0" height="34">
<tr>
<td width="522" class="p1" height="34" nowrap><img src="../images/search.gif" width="32" height="32"> <b>请选择分销商</b></td>
</tr>
</table>
<hr width="100%" align="center" size=0>
<table width="95%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="17%" height="29"> <div align="left">分销商代码/名称:</div></td>
<td width="57%"><input name="clientIdOrName" type="text" class="text1" id="clientIdOrName" value="<%=queryStr %>" size="50" maxlength="50">
</td>
<td width="26%"> <div align="left">
<input name="btnQuery" type="button" class="button1" id="btnQuery" value="查询" onclick="queryClient()">
</div></td>
</tr>
<tr>
<td height="16">
<div align="right"></div></td>
<td> </td>
<td><div align="right"></div></td>
</tr>
</table>
</div>
<table width="95%" border="0" cellspacing="0" cellpadding="0" class="rd1" align="center">
<tr>
<td nowrap height="10" class="p2">分销商信息</td>
<td nowrap height="10" class="p3"> </td>
</tr>
</table>
<table width="95%" border="1" cellspacing="0" cellpadding="0" align="center" class="table1">
<tr>
<td class="rd6">选择</td>
<td class="rd6">分销商代码</td>
<td class="rd6">分销商名称</td>
<td class="rd6">分销商类型</td>
</tr>
<%
List clientList = pageModel.getList();
for (Iterator iter = clientList.iterator(); iter.hasNext();) {
Client client = (Client)iter.next();
%>
<tr >
<td class="rd8" ><input type="radio" name="selectFlag" value="radiobutton" ondblclick="doubleclick('<%=client.getClientId()%>', '<%=client.getName()%>')"></td>
<td class="rd8" ><%=client.getClientId() %></td>
<td class="rd8" ><%=client.getName() %></td>
<td class="rd8" ><%=client.getClientLevel().getName() %></td>
</tr>
<%
}
%>
</table>
<table width="95%" height="30" border="0" align="center" cellpadding="0" cellspacing="0" class="rd1">
<tr>
<td nowrap class="rd19" height="2" width="36%"> <div align="left"><font color="#FFFFFF"> 共 <%=pageModel.getTotalPages() %> 页</font> <font color="#FFFFFF">当前第</font> <font color="#FF0000"><%=pageModel.getPageNo() %></font> <font color="#FFFFFF">页</font>
</div></td>
<td nowrap class="rd19" width="64%"> <div align="right">
<input name="btnTopPage" class="button1" type="button" id="btnTopPage" value="|<< " title="首页" onClick="topPage()">
<input name="btnPreviousPage" class="button1" type="button" id="btnPreviousPage" value=" < " title="上页" onClick="previousPage()">
<input name="btnNext" class="button1" type="button" id="btnNext" value=" > " title="下页" onClick="nextPage()">
<input name="btnBottomPage" class="button1" type="button" id="btnBottomPage" value=" >>|" title="尾页" onClick="bottomPage()">
<input name="btnOk" class="button1" type="button" id="btnOk" value="确定" onclick="selectOk()">
<input name="btnClose" class="button1" type="button" id="btnClose" value="关闭" onClick="window.close()">
</div></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -