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

电子政务应用

开发平台:

Java

  1. <%@ page import="com.vnex.intranet.pub.BusinessSession" %>
  2. <%@ page import="java.util.*" %>
  3. <%@ page import="com.vnex.intranet.privilegeassign.process.EmpPrivilegeProcessBean" %>
  4. <%@ page import="com.vnex.intranet.privilegeassign.value.EmpPrivilegeValueBean" %>
  5. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  6. <%@ taglib uri="/vnex_organization.tld" prefix="org" %>
  7. <%@ taglib uri="/vnex_privilegeassign.tld" prefix="privass" %>
  8. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  9. <HTML>
  10. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  11. <%
  12.     BusinessSession theSession = new BusinessSession();
  13. int empId = Integer.parseInt(request.getParameter("empId"));
  14. String empName = request.getParameter("empName");
  15. EmpPrivilegeProcessBean processBean = new EmpPrivilegeProcessBean();
  16. ArrayList array = (ArrayList) processBean.getAssignedPrivileges(empId,theSession.getDeptId());
  17. if (array.size()>1)
  18. {
  19. System.out.println("sss->"+array.size());
  20. Integer[] privs = new Integer[array.size()];
  21. for(int i=0;i<array.size();i++)
  22. {
  23. EmpPrivilegeValueBean epinfo = (EmpPrivilegeValueBean)array.get(i);
  24. privs[i] = new Integer(epinfo.getPrivilegeId());
  25. }
  26. pageContext.setAttribute("privs",privs);
  27. }
  28. %>
  29. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  30. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
  31. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  32. <DIV align=center>
  33. <form name="form1" method="post" action="/mainctrl/personal/privilegeAssign/addPrivilege">
  34. <input type=hidden name="empId" value=<%=empId%> >
  35.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  36.     <TBODY> 
  37.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  38.     <TR> 
  39.         <TD colSpan=3 align="center" class="iframestyle" valign="top"> <br>
  40.           <!--菜单开始 -->
  41.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  42.             <tr valign="top" bgcolor="#fafafa"> 
  43.               <td height="30" > 
  44.                 <table width="100%" border="0" cellspacing="0" cellpadding="2">
  45.                   <tr bgcolor="#666666"> 
  46.                     <td><font class="strongw">
  47. <a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>&gt;&gt;
  48. <a href="/mainctrl/personal/main"><font color="#FFFFFF">个人办公</font></a>&gt;&gt;
  49. <a href="/mainctrl/personal/privilegeAssign/employeePrivilegeList"><font color="#FFFFFF">权限分发</font></a>&gt;&gt;
  50. <font color="#FFFFFF">新增权限</font></font></td>
  51.                   </tr>
  52.                 </table>
  53. <table class=title width="100%" cellpadding="2" cellspacing="1" border="0">
  54.                   <tr bgcolor="#fafafa"> 
  55.                     <td><font class="strong">&nbsp;员工姓名:</font>&nbsp;<font class="strong"><%=empName%></font></td>
  56.                   </tr>
  57.                 </table>
  58.                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  59.                     <tr bgcolor="#CCCCCC"> 
  60.                       <td>                      
  61.                       <table class=title width="100%" border="0" cellpadding="2" cellspacing="1">
  62.                         <tr> 
  63.                           <td width="32%" height="6" align="center"><font class="strong">权限名称</font></td>
  64.                           <td width="68%" height="6" align="center"><font class="strong">组别</font></td>
  65.                         </tr>
  66.                         <privass:GrantPrivilegeList>  
  67.     <vnex:items>
  68.                         <tr bgcolor="<vnex:itemsColor/>"> 
  69.                           <td width="32%" height="12" align="left"> 
  70.                              <input type="checkbox" name="privs" value="<org:PrivilegeAttribute attribute="id"/>" <org:PrivilegeAttribute attribute="isChecked"/>>
  71. <org:PrivilegeAttribute attribute="name"/></td>
  72.                           <td width="68%" height="12" align="center"><org:PrivilegeAttribute attribute="groupNoRepeat"/>
  73.                           </td>
  74.                         </tr>
  75.                         </vnex:items>    
  76. </privass:GrantPrivilegeList>
  77. <% pageContext.removeAttribute("privs");%>
  78.         <tr bgcolor="#fafafa" align="center"> 
  79.                           <td  colspan = 4 height="30" bgcolor="#fafafa" > &nbsp;&nbsp; 
  80.                             <input type="submit" value="分发" name="B1" class="text">&nbsp;&nbsp;<input type="button" value="返回" name="B2" onClick="location='/mainctrl/personal/privilegeAssign/employeePrivilegeList'" class="text"> 
  81.                      </td>
  82.                      </tr>
  83.                       </table>
  84.                       </td>
  85.                     </tr>
  86.                   </table>                                  
  87.               </td>
  88.             </tr>
  89.           </table>
  90.           <br><br>
  91.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  92.        </TD>
  93.      </TR>
  94.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  95.     </TBODY> 
  96.   </TABLE>
  97.     <BR>
  98.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  99. </form>
  100. </DIV>
  101. </BODY>
  102. </HTML>