customer_myshare_list.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:4k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8"%>
  2. <%@ page import = "java.util.*"%>
  3. <%@ page import = "cn.js.fan.db.*"%>
  4. <%@ page import = "cn.js.fan.util.*"%>
  5. <%@ page import = "com.redmoon.oa.visual.module.sales.*"%>
  6. <%@ page import = "com.redmoon.oa.visual.*"%>
  7. <%@ page import = "com.redmoon.oa.flow.*"%>
  8. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  9. <html>
  10. <head>
  11. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  12. <title>共享人员列表</title>
  13. <link href="../common.css" rel="stylesheet" type="text/css">
  14. <%@ include file="../inc/nocache.jsp"%>
  15. <script language="JavaScript" type="text/JavaScript">
  16. <!--
  17. function openWin(url,width,height)
  18. {
  19.   var newwin=window.open(url,"_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=150,left=220,width="+width+",height="+height);
  20. }
  21. //-->
  22. </script>
  23. <style type="text/css">
  24. <!--
  25. .style2 {font-size: 14px}
  26. .STYLE3 {color: #FFFFFF}
  27. .STYLE4 {
  28. color: #000000;
  29. font-weight: bold;
  30. }
  31. .STYLE5 {color: #FF0000}
  32. .STYLE6 {color: #000000}
  33. -->
  34. </style>
  35. </head>
  36. <body background="" leftmargin="0" topmargin="5" marginwidth="0" marginheight="0">
  37. <jsp:useBean id="fchar" scope="page" class="cn.js.fan.util.StrUtil"/>
  38. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  39. <%@ include file="customer_inc_menu_top.jsp"%>
  40. <br>
  41. <table width="98%" height="89" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="tableframe">
  42. <tr>
  43.   <td height="23" background="../images/top-right.gif" class="right-title"><span> &nbsp;我的共享客户</span></td>
  44. </tr>
  45.  
  46.       <tr>
  47.         <td align="center"><%
  48. CustomerShareDb csd = new CustomerShareDb();
  49. FormMgr fm = new FormMgr();
  50. String formCode = "sales_customer";
  51. FormDb fd = fm.getFormDb(formCode);
  52. %>
  53.             <table width="98%" border="0" align="center" cellpadding="2" cellspacing="1">
  54.               <tr align="center" bgcolor="#C4DAFF">
  55.                 <td width="23%" bgcolor="#C4DAFF">客户名称</td>
  56.                 <td width="21%" bgcolor="#C4DAFF">销售人员</td>
  57.                 <td width="20%" bgcolor="#C4DAFF">电话</td>
  58.                 <td width="18%" bgcolor="#C4DAFF">传真</td>
  59.                 <td width="18%" bgcolor="#C4DAFF">网址</td>
  60.               </tr>
  61.               <%
  62.   com.redmoon.oa.visual.FormDAOMgr fdm = new com.redmoon.oa.visual.FormDAOMgr(fd);
  63.   String sql = "select id from customer_share where sharePerson=" + StrUtil.sqlstr(privilege.getUser(request));
  64.   Iterator ir = csd.list(sql).iterator();
  65.   while (ir.hasNext()) {
  66.    csd = (CustomerShareDb)ir.next();
  67. int id = csd.getCustomerId();
  68. com.redmoon.oa.visual.FormDAO fdao = fdm.getFormDAO(id);
  69. id = fdao.getId();
  70. %>
  71.               <tr align="center" bgcolor="#EEEEEE">
  72.                 <td width="23%" bgcolor="#EEEEEE"><a href="customer_show.jsp?id=<%=id%>&formCode=<%=formCode%>"><%=fdao.getFieldValue("customer")%></a></td>
  73.                 <td width="21%" bgcolor="#EEEEEE"><%=fdao.getFieldValue("sales_person")%></td>
  74.                 <td width="20%" bgcolor="#EEEEEE"><a href=../visual_show.jsp?id=<%=id%>&formCode=<%=formCode%>><%=fdao.getFieldValue("tel")%></a></td>
  75.                 <td width="18%" bgcolor="#EEEEEE"><a href=../visual_show.jsp?id=<%=id%>&formCode=<%=formCode%>><%=fdao.getFieldValue("fax")%></a></td>
  76.                 <td width="18%" bgcolor="#EEEEEE"><a href=../visual_show.jsp?id=<%=id%>&formCode=<%=formCode%>><%=fdao.getFieldValue("web")%></a></td>
  77.               </tr>
  78.               <%}%>
  79.             </table>
  80.         </td>
  81.       </tr> 
  82.   <tr> 
  83.   <tr>
  84.     <td></td>
  85.   </tr>
  86. </table>
  87. </td>
  88.   </tr>
  89.   <tr> 
  90.     <td height="9">&nbsp;</td>
  91.   </tr>
  92. <br>
  93. <br>
  94. </body>
  95. </html>