organization_index.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:3k
源码类别:

电子政务应用

开发平台:

Java

  1. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  2. <%@ page import="com.vnex.intranet.organization.value.*"%>
  3. <%@ page import="com.vnex.intranet.organization.proxy.*"%>
  4. <%@ page import="java.util.*"%>
  5. <jsp:useBean id="organizationProxy" scope="Application" class="com.vnex.intranet.organization.proxy.OrganizationProxyBean" />
  6. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  7. <HTML><jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  8. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  9. <script language="JavaScript" src="/vnex/menu/dockmenu_hr.js"></script>
  10. <script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
  11. <DIV align=center>
  12. <form name="form1" method="post" action="">
  13.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  14.    <TBODY>
  15.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  16.     <TR> 
  17.         <TD colSpan=3 align="center"><br>
  18.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  19.             <tr>
  20.               <td bgcolor="#fafafa"> 
  21.                 <table class=title cellspacing=1 width="600" border=0 cellpadding="2">
  22.                   <tr> 
  23.                     <td colspan="2" bgcolor="#666666"><font class="strongw">
  24. <a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>&gt;&gt;
  25. <a href="/mainctrl/hr/main"><font color="#FFFFFF">人力资源</font></a>&gt;&gt;
  26. <font color="#FFFFFF">组织结构与职位管理</font></font></td>
  27.                   </tr>
  28.             <tr align="center"> 
  29.               <td width="254"><font class=strong>部门名称</font></td>
  30.               <td width="375"><font class=strong>操作</font></td>
  31.             </tr>
  32. <% 
  33. ArrayList array =(ArrayList) organizationProxy.getAllDivision();
  34. System.out.println("----"+array.size());
  35. for(int i=0;i<array.size();i++)
  36. {
  37. DivisionValueBean dinfo = (DivisionValueBean)array.get(i);
  38. System.out.println(dinfo.getDivisionId());
  39. String bgcolor="#e0e0e0";
  40. if(i%2 == 0)
  41.            bgcolor = "#fafafa";
  42. %>
  43.             <tr align=middle bgcolor="<%=bgcolor%>"> 
  44.               <td width="254" align="left">
  45. <% for (int j=0;j<dinfo.getLevel();j++){%>
  46.  &nbsp;|<%}%>-<%=dinfo.getDivisionName()%></td>
  47.               <td width="375"> 
  48.                 <input onClick="location='/mainctrl/organization/divisionDetail?id=<%=dinfo.getDivisionId()%>&name=<%=dinfo.getDivisionName()%>'" type="button" value="属性" name="B33" class=text>
  49.                 <input onClick="location='/mainctrl/organization/addDivision?id=<%=dinfo.getDivisionId()%>&name=<%=dinfo.getDivisionName()%>'" type="button" value="增加分部" name="B33" class=text>
  50.                 <input onClick="location='/mainctrl/organization/getAllPosition?id=<%=dinfo.getDivisionId()%>&name=<%=dinfo.getDivisionName()%>'" type="button" value="职位管理" name="B3310" class=text>
  51.               </td>
  52.             </tr>
  53. <%}%>
  54.           </table>
  55.           </td>
  56.           </tr>
  57.           </table>
  58.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  59.        </TD>
  60.      </TR>
  61.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  62.     </TBODY> 
  63.   </TABLE>
  64.     <BR>
  65.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  66. </form>
  67. </DIV>
  68. </BODY>
  69. </HTML>