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

📄 aim_client_select.jsp

📁 java大型企业DRP系统源码带sql数据库
💻 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 index = Integer.parseInt(request.getParameter("index"));
	int pageNo = 1;
	String strPageNo = request.getParameter("pageNo");
	if (strPageNo != null && !strPageNo.equals("")) {
		pageNo = Integer.parseInt(strPageNo);
	}
	int pageSize = 2;
	String queryStr = request.getParameter("AimclientIdOrName");
	if (queryStr == null){
		queryStr= "";
	}
	PageModel pageModel = ClientManager.getInstance().findAllAimClients(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 = "aim_client_select.jsp?index=<%=index%>&pageNo=<%=pageModel.getTopPageNo()%>";
	}
	
	function previousPage() {
		window.self.location = "aim_client_select.jsp?index=<%=index%>&pageNo=<%=pageModel.getPreviousPageNo()%>";
	}
	
	function nextPage() {
		window.self.location = "aim_client_select.jsp?index=<%=index%>&pageNo=<%=pageModel.getNextPageNo()%>";
	}
	
	function bottomPage() {
		window.self.location = "aim_client_select.jsp?index=<%=index%>&pageNo=<%=pageModel.getBottomPageNo()%>";
	}
	
	function queryClient() {
		document.clientForm.method = "post";
		document.clientForm.action = "aim_client_select.jsp";
		document.clientForm.submit();
	}
	
	function doubleclick(aimId, aimName) {
		var rowLength = window.opener.document.all.tblFlowCardDetail.rows.length
//		alert(rowLength);
		if (rowLength == 2) {
			window.opener.document.all.aimId.value = aimId;
			window.opener.document.all.aimName.value = aimName;
		} else {
//			alert("index=" + <%=index%>);
			window.opener.document.all.aimId[<%=index%>].value = aimId;
			window.opener.document.all.aimName[<%=index%>].value = aimName;
		}
		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">&nbsp;<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="AimclientIdOrName" type="text"  class="text1" id="AimclientIdOrName" 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>&nbsp; </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">&nbsp;</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();) {
    		AimClient aimClient = (AimClient)iter.next();    		
    %>
    <tr > 
      <td class="rd8" ><input type="radio" name="selectFlag" value="radiobutton" ondblclick="doubleclick('<%=aimClient.getId()%>', '<%=aimClient.getName()%>')"></td>
      <td  class="rd8" ><%=aimClient.getId() %></td>
      <td  class="rd8" ><%=aimClient.getName() %></td>
      <td  class="rd8" ><%=aimClient.getLevelName() %></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">&nbsp;共&nbsp<%=pageModel.getTotalPages() %>&nbsp页</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#FFFFFF">当前第</font>&nbsp<font color="#FF0000"><%=pageModel.getPageNo() %></font>&nbsp<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="|&lt;&lt; "  title="首页" onClick="topPage()">
        <input name="btnPreviousPage" class="button1" type="button" id="btnPreviousPage" value=" &lt;  "  title="上页" onClick="previousPage()">
        <input name="btnNext" class="button1" type="button" id="btnNext" value="  &gt; "  title="下页" onClick="nextPage()">
        <input name="btnBottomPage" class="button1" type="button" id="btnBottomPage" value=" &gt;&gt;|"  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 + -