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

电子政务应用

开发平台:

Java

  1. <%@ page language="java" %>
  2.             
  3. <%@ page import="java.util.*"%>
  4. <%@ page import="java.lang.*"%>
  5. <%@ page import="com.vnex.intranet.organization.proxy.*"%>
  6. <%@ page import="com.vnex.intranet.privilegeassign.proxy.*"%>
  7. <%@ page import="com.vnex.intranet.organization.value.*"%>
  8. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  9. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  10. <HTML>
  11. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  12. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  13. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
  14. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  15. <DIV align=center>
  16. <form name="form1" method="post" action="">
  17.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  18.     <TBODY> 
  19.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  20.     <TR> 
  21.         <TD colSpan=3 align="center" class="iframestyle" valign="top"><br> <!--菜单开始 --> 
  22.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  23.             <tr valign="top" bgcolor="#fafafa"> 
  24.               <td height="33" > 
  25.                 <table width="100%" border="0" cellspacing="0" cellpadding="2">
  26.                   <tr bgcolor="#666666"> 
  27.                     <td><font class="strongw">
  28. <a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>&gt;&gt;
  29. <a href="/mainctrl/personal/main"><font color="#FFFFFF">个人办公</font></a>&gt;&gt;
  30. <font color="#FFFFFF">权限分发</font></font></td>
  31.                   </tr>
  32.   <tr >
  33.                     <td height="30">
  34. <table border="0" cellpadding="2" cellspacing="0" width="600">
  35.                   <tr bgcolor="#e0e0e0"> 
  36.                     <td colspan="4"> <font class="strong">&nbsp;&nbsp;您有权限对以下部门进行权限分发操作,请选择部门:</font> 
  37.                     </td>
  38.                   </tr>
  39.                       <%
  40.   int rowColor = 1;
  41.   EmpPrivilegeProxyBean empProxy = new EmpPrivilegeProxyBean();
  42. PositionProxyBean proxy = new PositionProxyBean();
  43.      Collection coll = proxy.findEmpDivision(BusinessName.getEmpId(), 4001);
  44.      Collection empColl = empProxy.getAssignedDivisions(BusinessName.getEmpId(), 4001);
  45. coll.removeAll(empColl);
  46. coll.addAll(empColl);
  47. Iterator iter = coll.iterator();
  48. while(iter.hasNext())
  49. {
  50. String rColor = (rowColor%2==1)?"#fafafa":"#e0e0e0";
  51. out.println("<tr bgcolor="+rColor+">");
  52.                         out.println("<td colspan=4> <div align=center>");
  53.     DivisionValueBean pinfo = (DivisionValueBean)iter.next();
  54. if (coll.size() == 1)
  55. {
  56.                         BusinessName.setDeptId(pinfo.getDivisionId());
  57.                          BusinessName.setDeptName(pinfo.getDivisionName());
  58.                             response.sendRedirect("/mainctrl/personal/privilegeAssign/employeePrivilegeList");
  59. }
  60. out.println("<a href="/mainctrl/personal/privilegeAssign/employeePrivilegeListMiddle?depId="+pinfo.getDivisionId()+"&depName="+pinfo.getDivisionName()+"">");
  61. //out.println(pinfo.getDivisionId());
  62. out.println(pinfo.getDivisionName());
  63. out.println("</a><br></div></td></tr>");
  64. rowColor++;
  65. }
  66. %>
  67.                 </table>
  68.   </td>
  69. </tr>
  70.  </table>
  71.               </td>
  72.             </tr>
  73.           </table>
  74.           <br>
  75.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  76.        </TD>
  77.      </TR>
  78.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  79.     </TBODY> 
  80.   </TABLE>
  81.     <BR>
  82.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  83. </form>
  84. </DIV>
  85. </BODY>
  86. </HTML>