employeePrivilegeAssign.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:5k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page import="com.vnex.intranet.pub.BusinessSession" %>
- <%@ page import="java.util.*" %>
- <%@ page import="com.vnex.intranet.privilegeassign.process.EmpPrivilegeProcessBean" %>
- <%@ page import="com.vnex.intranet.privilegeassign.value.EmpPrivilegeValueBean" %>
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_organization.tld" prefix="org" %>
- <%@ taglib uri="/vnex_privilegeassign.tld" prefix="privass" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <%
- BusinessSession theSession = new BusinessSession();
- int empId = Integer.parseInt(request.getParameter("empId"));
- String empName = request.getParameter("empName");
- EmpPrivilegeProcessBean processBean = new EmpPrivilegeProcessBean();
- ArrayList array = (ArrayList) processBean.getAssignedPrivileges(empId,theSession.getDeptId());
- if (array.size()>1)
- {
- System.out.println("sss->"+array.size());
- Integer[] privs = new Integer[array.size()];
- for(int i=0;i<array.size();i++)
- {
- EmpPrivilegeValueBean epinfo = (EmpPrivilegeValueBean)array.get(i);
- privs[i] = new Integer(epinfo.getPrivilegeId());
- }
- pageContext.setAttribute("privs",privs);
- }
- %>
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <DIV align=center>
- <form name="form1" method="post" action="/mainctrl/personal/privilegeAssign/addPrivilege">
- <input type=hidden name="empId" value=<%=empId%> >
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <TBODY>
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <TR>
- <TD colSpan=3 align="center" class="iframestyle" valign="top"> <br>
- <!--菜单开始 -->
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr valign="top" bgcolor="#fafafa">
- <td height="30" >
- <table width="100%" border="0" cellspacing="0" cellpadding="2">
- <tr bgcolor="#666666">
- <td><font class="strongw">
- <a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>>>
- <a href="/mainctrl/personal/main"><font color="#FFFFFF">个人办公</font></a>>>
- <a href="/mainctrl/personal/privilegeAssign/employeePrivilegeList"><font color="#FFFFFF">权限分发</font></a>>>
- <font color="#FFFFFF">新增权限</font></font></td>
- </tr>
- </table>
- <table class=title width="100%" cellpadding="2" cellspacing="1" border="0">
- <tr bgcolor="#fafafa">
- <td><font class="strong"> 员工姓名:</font> <font class="strong"><%=empName%></font></td>
- </tr>
- </table>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr bgcolor="#CCCCCC">
- <td>
- <table class=title width="100%" border="0" cellpadding="2" cellspacing="1">
- <tr>
- <td width="32%" height="6" align="center"><font class="strong">权限名称</font></td>
- <td width="68%" height="6" align="center"><font class="strong">组别</font></td>
- </tr>
- <privass:GrantPrivilegeList>
- <vnex:items>
- <tr bgcolor="<vnex:itemsColor/>">
- <td width="32%" height="12" align="left">
- <input type="checkbox" name="privs" value="<org:PrivilegeAttribute attribute="id"/>" <org:PrivilegeAttribute attribute="isChecked"/>>
- <org:PrivilegeAttribute attribute="name"/></td>
- <td width="68%" height="12" align="center"><org:PrivilegeAttribute attribute="groupNoRepeat"/>
- </td>
- </tr>
- </vnex:items>
- </privass:GrantPrivilegeList>
- <% pageContext.removeAttribute("privs");%>
- <tr bgcolor="#fafafa" align="center">
- <td colspan = 4 height="30" bgcolor="#fafafa" >
- <input type="submit" value="分发" name="B1" class="text"> <input type="button" value="返回" name="B2" onClick="location='/mainctrl/personal/privilegeAssign/employeePrivilegeList'" class="text">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <br><br>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TBODY>
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form>
- </DIV>
- </BODY>
- </HTML>