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

📄 viewuserinfo.jsp

📁 java阿里巴巴代码
💻 JSP
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
 "http://www.w3.org/TR/html4/strict.dtd">
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="java.util.*"%>
<%@ page import="com.saas.biz.custMgr.Custinfo"%>
<%@ page import="com.saas.biz.serverMgr.ServerInfo"%>
<%@ page import="com.saas.biz.commen.ParamethodMgr"%>
<%@ page import="com.saas.biz.AreaInfoMgr.AreaInfo"%>
<%@ page import="com.saas.biz.userMgr.UserDetailInfo"%>
<jsp:useBean id="bean" class="com.saas.biz.commen.commMethodMgr" scope="page" />
<jsp:useBean id="interf" class="com.saas.biz.rightMgr.TradeInterface" scope="page" />
<html>
<head>
<title>农业企业信息化综合服务平台</title>
<link href="/crm/style/css.css" rel="stylesheet" type="text/css">
<link href="/style/css.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="/ext/ext-all.js"></script>
<link rel="stylesheet" type="text/css" href="/ext/resources/css/ext-all.css"/>
<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/interface/AreaInfo.js'></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/engine.js'></script>  
<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/util.js'></script>  
<style type="text/css">
.line6 {width:72spx; width:70spx!important;border:#ffcb99 1px solid;  background-color:#fff8ee; text-align:left; padding-left: 20px;padding-top: 10px;padding-bottom: 10px; color:#000000; margin-top:13px; margin-bottom:13px;}   /*横栏样式6---- 头部提醒1*/
.line6 .img{width:53px; height:53px; float:left; margin-right:20px;}
.line6 .title {font-size:14px; font-weight:bold; color:#ff5400;}
.line1 {border-left:#ff7300 3px solid; background-color:#e2e2e2; color:#333333;text-align:left; font-size:18px;}  /*横栏样式1*/
h1 {float:left;padding-left:8px; font-size:15px; font-weight:bold; padding-top:5px;}
#td{
width:100px;
text-align:right;
margin-left:5px;
height:30px;
line-height:30px;
}
</style>
 
</head>
<%   
  HttpSession  logsession = request.getSession();     
  String s_cust_id="";
  if (logsession.getAttribute("SESSION_CUST_ID") != null)
  {
        s_cust_id = logsession.getAttribute("SESSION_CUST_ID").toString();
  }
  ArrayList custList=new ArrayList();
  String cust_id="",cust_name="",cust_aim="",fax_nbr="",group_contact_phone="",company_address="",juristic="",
  post_addr="",job="",qq="",home_addr="",blog="",post_code="",local_native_code="",work_name="",eparchy="",province="",
  group_memo="",scope="",website="",user_count="",user_id="";
   boolean modify=false;
   if (request.getParameter("user_id") != null){
        user_id=request.getParameter("user_id");
   }
  if (request.getParameter("cust_id") != null)
  {
        cust_id = request.getParameter("cust_id").toString();
        ArrayList servList=new ServerInfo().getCustSerevicByCustId(cust_id);
       if(cust_id ==s_cust_id || cust_id.equals(s_cust_id))
       {
          modify=true;
       }
       else if(servList !=null && servList.size()>0)
       {
          modify=false;
       }
       else
       {
         modify=true;
       }
  }
  String folk_code = "";
  ParamethodMgr paramCom = new ParamethodMgr();
 
  ArrayList degreeList = paramCom.getCompareInfo("CRM", "degree");
  AreaInfo arae=new AreaInfo();
  ArrayList userList=new ArrayList();
  Map country_Map=new HashMap();
  country_Map=arae.getCountryAllByCode("cn");
  try{
  custList=new Custinfo().genSpecCustInfo(cust_id);
  userList=new UserDetailInfo().getUserDetailByUserId(user_id,cust_id);
  }catch(Exception ex){
    out.print(ex.getMessage());
  }
  if(userList !=null && userList.size()>0){
     HashMap u_Map=(HashMap)userList.get(0);
      if(u_Map.get("home_addr")!=null){home_addr=u_Map.get("home_addr").toString();}
      if(u_Map.get("qq")!=null){qq=u_Map.get("qq").toString();}
      if(u_Map.get("blog")!=null){blog=u_Map.get("blog").toString();}
      if(u_Map.get("cust_name")!=null){cust_name=u_Map.get("cust_name").toString();}
      if(u_Map.get("folk_code")!=null){folk_code=u_Map.get("folk_code").toString();}
      if(u_Map.get("post_addr")!=null){post_addr=u_Map.get("post_addr").toString();}
      if(u_Map.get("post_code")!=null){post_code=u_Map.get("post_code").toString();}
      if(u_Map.get("job")!=null){job=u_Map.get("job").toString();}
      //if(map.get("work_name")!=null){work_name=map.get("work_name").toString();}
  }
  if(custList !=null && custList.size()>0)
  {
        HashMap map=(HashMap)custList.get(0);
        if(map.get("cust_name")!=null){cust_name=map.get("cust_name").toString();}
		if(map.get("cust_aim")!=null){cust_aim=map.get("cust_aim").toString();}
		if(map.get("fax_nbr")!=null){fax_nbr=map.get("fax_nbr").toString();}
		if(map.get("group_contact_phone")!=null){group_contact_phone=map.get("group_contact_phone").toString();}
		if(map.get("company_address")!=null){company_address=map.get("company_address").toString();}
		if(map.get("juristic")!=null){juristic=map.get("juristic").toString();}
		if(map.get("group_memo")!=null){group_memo=map.get("group_memo").toString();}
		if(map.get("scope")!=null){scope=map.get("scope").toString();}
		if(map.get("website")!=null){website=map.get("website").toString();}
		if(map.get("user_count")!=null){user_count=map.get("user_count").toString();}
		if(map.get("eparchy_code")!=null){eparchy=map.get("eparchy_code").toString();}
		if(map.get("province")!=null){province=map.get("province").toString();}
		eparchy = interf.comCodetoName("AREA_NAME",eparchy);
		province = interf.comCodetoName("AREA_NAME",province);
		
  }
  %>
<font color="#000000"></font>
<body>
 
<table width=500 border=0 cellpadding=2 cellspacing=1 align=center bgcolor="#e7e7e7">
	<br><br>
  <tr>
    <td class="line1"  colspan="10" style="background-color:#e2e2e2; color:#000000;  font-weight:bold; font-size:20px;"  width="150" align="center">
     查看公司详细资料!
    </td>
  </tr>
  <!---生成说明   createType为生成类型: 0:首页 1:企业库 2:供应信息 3:求购信息 4:人才库 5:资讯 6:学院---->
  <!---0:首页---->
    <tr style="background-color:#f9f9f9; ">
      <td width="25%" align="right" style=" color:#000000; font-weight:bolder;">客户名称:</td>
      <td style=" color:#000000;background-color:#FFFFFF" colspan="2" align="left" width="75%"><div class="ping1"><%=cust_name%></div></td>
	</tr>	
	<%
	     if (userList !=null && userList.size()>0)
	     {	     
	 %>
	 <tr style="background-color:#f9f9f9; ">
      <td align="right" style=" color:#000000; font-weight:bolder;">家庭地址:</td>
      <td style=" color:#000000;background-color:#FFFFFF" colspan="2" align="left"><div class="ping1"><%=home_addr%></div></td>
	 </tr>
	 <tr style="background-color:#f9f9f9; ">
      <td style=" color:#000000; font-weight:bolder;" align="right">工作单位性质:</td>
       <td style=" color:#000000;background-color:#FFFFFF" colspan="2" align="left">
          <div class="ping1"><%=interf.codeToName("work_name",work_name)%></div>
      </td>
  </tr>
      <tr style="background-color:#f9f9f9; ">
      <td style=" color:#000000; font-weight:bolder;" align="right">民族:</td>
      <td style=" color:#000000;background-color:#FFFFFF" colspan="2" align="left">
        
		  <div class="ping1"> <%=interf.codeToName("folk_code",folk_code)%></div>
	
      </td>
	 </tr>	
	 <tr style="background-color:#f9f9f9; ">
      <td style=" color:#000000; font-weight:bolder;" align="right">教育程度:</td>
      <td style=" color:#000000;background-color:#FFFFFF" colspan="2" align="left">
         <div class="ping1"></div>
      </td>
	 </tr>
	 <tr style="background-color:#f9f9f9; ">
      <td style=" color:#000000; font-weight:bolder;" align="right">QQ:</td>
      <td style=" color:#000000;background-color:#FFFFFF" colspan="2" align="left"><div class="ping1"><%=qq%></div></td>
	 </tr>
	 <tr style="background-color:#f9f9f9;display: none">
      <td style=" color:#000000; font-weight:bolder;" align="right">Blog:</td>
      <td style=" color:#000000;background-color:#FFFFFF" colspan="2" align="left"><div class="ping1"><%=blog%></div></td>
	 </tr>
	 <tr style="background-color:#f9f9f9; ">
      <td style=" color:#000000; font-weight:bolder;" align="right">职位:</td>
      <td style=" color:#000000;background-color:#FFFFFF" colspan="2" align="left"><div class="ping1"><%=job%></div></td>
	 </tr>
	 <tr style="background-color:#f9f9f9; ">
      <td style=" color:#000000; font-weight:bolder;" align="right">通信地址:</td>
      <td style=" color:#000000;background-color:#FFFFFF" colspan="2" align="left"><div class="ping1"><%=post_addr%></div></td>
	 </tr>
	 <%
	    }
	 %>
	 <%
	     if (custList !=null && custList.size()>0)
	     {	     
	 %>
	<tr style="background-color:#f9f9f9; ">
      <td align="right" style=" color:#000000; font-weight:bolder;">联系电话:</td>
      <td style=" color:#000000;background-color:#FFFFFF" colspan="2" align="left"><div class="ping1"><%=group_contact_phone%></div></td>
  </tr>
	 <tr style="background-color:#f9f9f9; ">
      <td align="right" style=" color:#000000; font-weight:bolder;">传  真:</td>
      <td style=" color:#000000; background-color:#FFFFFF" colspan="2" align="left"><div class="ping1"><%=fax_nbr%></div></td>
	 </tr>
	 <tr style="background-color:#f9f9f9; ">
      <td align="right" style=" color:#000000; font-weight:bolder;">公司地址:</td>
      <td style=" color:#000000;background-color:#FFFFFF" colspan="2" align="left"><div class="ping1"><%=company_address%></div></td>
	 </tr>
	 
	 <tr style="background-color:#f9f9f9; ">
      <td align="right" style=" color:#000000; font-weight:bolder;">公司网站:</td>
      <td style=" color:#000000;background-color:#FFFFFF" colspan="2" align="left"><div class="ping1"><%=website%></div></td>
	 </tr>
	 
	 <tr style="background-color:#f9f9f9; ">
      <td style=" color:#000000; font-weight:bolder;" align="right">注册地址:</td>
       <td style=" color:#000000;background-color:#FFFFFF" colspan="2" align="left">
          <div class="ping1"><a href="http://maps.google.com/?q=<%=province%>" target="_blank"><%=province%></a>
		<a href="http://maps.google.com/?q=<%=eparchy%>"  target="_blank"><%=eparchy%></a></div>
      </td>
	 </tr> 	 
	 
	 <tr style="background-color:#f9f9f9; ">
      <td style=" color:#000000; font-weight:bolder;" align="right">邮编:</td>
      <td style=" color:#000000;background-color:#FFFFFF" colspan="2" align="left"><div class="ping1"><%=post_code%></div></td>
	 </tr>
	 
	 <tr style="background-color:#f9f9f9; ">
      <td style=" color:#000000; font-weight:bolder;" align="right">法人代表/联系人:</td>
      <td style=" color:#000000;background-color:#FFFFFF" colspan="2" align="left"><div class="ping1"><%=juristic%></div></td>
	 </tr>
	 <tr style="background-color:#f9f9f9; ">
      <td align="right" style=" color:#000000; font-weight:bolder;">公司简介:</td>
      <td style=" color:#000000;background-color:#FFFFFF" colspan="2" align="left"><div class="ping1"><%=scope%></div></td>
	 </tr>
	 <tr style="background-color:#f9f9f9; ">
      <td align="right" style=" color:#000000; font-weight:bolder;">经营范围:</td>
      <td style=" color:#000000;background-color:#FFFFFF" colspan="2" align="left" ><div class="ping1"><%=group_memo%></div></td>
	 </tr>
	  <%
	    }
	 %>  
	 <!--tr style="background-color:#f9f9f9; ">
      <td height="40"  colspan="3" style="color:#000000;text-align: center;">
      	<input class="gban" type="button" value="" onclick="javascript:window.close();">
      </td>
	 </tr-->
</table>
 
</body>
</html>

⌨️ 快捷键说明

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