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

📄 60c5ac71f1a1001b1f33daaa7580fcc1

📁 gensou.rar为某渔具厂的一个简单ERP系统。为比较基础的工程
💻
字号:
<%--
    作者:宋宇
    时间:2007.1.8
    用于添加客户信息
--%>
<%@ page language="java" import="java.util.*,com.gensou.logic.sheji.client.*,com.gensou.hibernate.model.*;" pageEncoding="UTF-8"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/erp" prefix="erp"%>
<%
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>
  <title>沈阳根守渔具厂ERP系统</title>
<style type="text/css">

body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}


</style>
 <link href="/gensou/images/allcss.css" rel="stylesheet" type="text/css">
<style type="text/css">

.STYLE1 {color: #404040}

</style>

  </head>
  
  <body>
  <% 
       String str;
       String query="";
       String pages="";
       String maxpages="";
       Map querymap=new HashMap();
       try{
         query=(String)request.getAttribute("query");
         if(query==null){
             query="";
           
        }
         querymap.put("query",query);
         pages=(String)request.getAttribute("pageS");
         maxpages=(String)request.getAttribute("maxpages");
         str=(String)request.getAttribute("str");
         if(str==null||str.equals("")){
         }else{
           out.print("<font color='blue'>"+str+"</font>");
         }
       }catch(NullPointerException e){}
  %>
   <br><br><br>
     <table width="39%" class="table8" align="center" >
        <tr>
          <td width="33%" align="center"><a href="/gensou/gjsp/sheji/client/queryclient.jsp">查询客户视图</a></td>
          <td></td>
          <td width="34%" align="center"><a href="/gensou/gjsp/sheji/client/addclient.jsp">添加客户</a></td>
        </tr>
        <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td> 
        <td>&nbsp;</td>
      </tr>
      </table>
      <html:form action="/queryclient" method="POST">
      <table width="30%" border="0" cellpadding="0" cellspacing="2" class="table8" align="center">
       <tr>
          <td colspan="3" align="center" bgcolor="#f1f1f1">客户查询</td>
        </tr>
         <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
          <td width="20%">客户名称</td>
          <td width="49%"><input name="clientName" type="text" class="EditBox"></td>
          <input name="pageS" type="hidden" value="1" />
          <td width="31%"><input name="Submit" type="submit" class="blueButtonCss" value="查 询"></td>
        </tr>
      </table>
      </html:form>
      <% 
        List client_info=(List)request.getAttribute("client_info");
        if(client_info==null){
            client_info=new ArrayList();
        }
        if(!client_info.isEmpty()){%>
         <table width="39%" class="table8" align="center" border cellspacing="0" cellpadding="0">
         <tr>
          <th>客户编号</th><th>客户名称</th><th>联系方式</th><th>操作</th><th>详细信息</th>
         </tr>
        <%
          for(int i=0;i<client_info.size();i++){
           QueryClientService qcs=new QueryClientService((Client)client_info.get(i));
           
      %>
          <tr>
           <td><a href="gjsp/sheji/client/updateclient.jsp?id=<%=qcs.getId() %>&amp;clientid=<%=qcs.getClientId() %>&amp;clientname=<%=qcs.getClientName() %>&amp;address=<%=qcs.getClientAddress() %>&amp;clientTel=<%=qcs.getClientTel() %>&amp;clientEmi=<%=qcs.getClientEmi() %>&amp;clientFax=<%=qcs.getClientFax() %>&amp;beizhu=<%=qcs.getBeizhu() %>"><%=qcs.getClientId()%></a></td>
           <td><%=qcs.getClientName() %></td>
           <td><%=qcs.getClientTel() %></td>
           <td>
           <% 
              if(qcs.getZhuangtai().equals("0")){
                 out.print("<a href=\"deleteclient.do?id="+qcs.getId()+"&amp;zhuangtai=1&amp;query="+query+"\">停用</a>");
              }else{
                 out.print("<a href=\"deleteclient.do?id="+qcs.getId()+"&amp;zhuangtai=0&amp;query="+query+"\">激活</a>");
              }          
           
           %>
           </td>
           <td><a href="gjsp/sheji/client/querypartclient.jsp?id=<%=qcs.getId() %>&amp;clientid=<%=qcs.getClientId() %>&amp;clientname=<%=qcs.getClientName() %>&amp;address=<%=qcs.getClientAddress() %>&amp;clientTel=<%=qcs.getClientTel() %>&amp;clientEmi=<%=qcs.getClientEmi() %>&amp;clientFax=<%=qcs.getClientFax() %>&amp;beizhu=<%=qcs.getBeizhu() %>">详细信息</a></td>
          </tr>
      <% 
           }
      %>
       </table>
       <erp:pagination map="<%=querymap%>" maxPage="<%=maxpages %>" page="<%=pages%>" path="/queryclient.do"></erp:pagination>
      <%
         }
      %>
      
  </body>
</html>

⌨️ 快捷键说明

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