📄 employeeprivilegelist.jsp
字号:
<%@ page import="com.vnex.intranet.pub.BusinessSession" %>
<%@ taglib uri="/vnex.tld" prefix="vnex" %>
<%@ taglib uri="/vnex_hr.tld" prefix="hr" %>
<%@ taglib uri="/vnex_privilegeassign.tld" prefix="privass" %>
<%@ page import="com.vnex.intranet.organization.loader.DivisionLoader" %>
<%@ page import="com.vnex.intranet.organization.value.DivisionValueBean" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<jsp:include page="/vnex/page/FORM_HEAD.jsp" />
<script language="Javascript">
function dochange()
{
var eid = form1.employee.value;
if (eid == "")
window.location = "/mainctrl/personal/privilegeAssign/employeePrivilegeList";
else
window.location = "/mainctrl/personal/privilegeAssign/employeePrivilegeList?empId="+eid;
}
function dodelete(id)
{ var index1 = id;
var sname = "form1.privilege"+index;
var privilegeId = sname.value;
var empId = form1.employee.value;
var url1 ="/mainctrl/personal/privilegeAssign/removePrivilege?empId="+empId+"&privilegeId="+privilegeId;
window.location = url1;
}
function addPrivilege(sel,surl)
{
var value = sel.options[sel.selectedIndex].value;
if (value == "")
{
alert("请选择员工!");
return false;
}
var url1 = surl;
var name = sel.options[sel.selectedIndex].text;
url1 = surl + "?empId="+value +"&empName="+name;
window.location = url1;
}
</script>
<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="">
<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="33" >
<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>>>
<font color="#FFFFFF">权限分发</font></font></td>
</tr>
<tr >
<td height="30">
<%
BusinessSession bs = (BusinessSession)session.getAttribute("BusinessName");
String dname = null;
int did = -1;
if (bs != null)
{
dname = bs.getDeptName();
did = bs.getDeptId();
}
String temId =request.getParameter("empId");
int empId;
if (temId != null)
empId = Integer.parseInt(temId);
else
empId = 0;
System.out.println("the department id is a ddddddd"+did);
%>
员工部门:<%=dname%> 选择姓名 <hr:EmployeeList divisionId='<%=did%>'>
<select name="employee" onchange="dochange()" >
<option >请选择:</option>
<vnex:items select ='<%=empId+""%>'>
<option value="<hr:EmployeeAttribute attribute="id" />" <hr:EmployeeAttribute attribute="isSelected"/> >
<hr:EmployeeAttribute attribute='<%=null%>'/>
</option>
</vnex:items>
</select>
</hr:EmployeeList></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 bgcolor="#fafafa">
<td height="30" colspan=4>
<input type="button" value="添加权限" name="B2" style="width:60px" onClick="Javascript:addPrivilege(form1.employee,'/mainctrl/personal/privilegeAssign/toGrantPrivilege')" class="text">
</td>
</tr>
<privass:EmpPrivilegeList empId='<%=empId%>' depId='<%=bs.getDeptId()%>'>
<tr >
<td width="25%" height="6" align="center"><font class="strong">权限名称</font></td>
<td width="25%" height="6" align="center"><font class="strong">授予者</font></td>
<td width="25%" height="6" align="center"><font class="strong">授予日期</font></td>
<td width="25%" height="6" align="center"><font class="strong">操作</font></td>
</tr>
<vnex:items>
<tr bgcolor="<vnex:itemsColor/>">
<td width="25%" height="12" align="center"><privass:EmpPrivilegeAttribute attribute="privilegeName"/></td>
<td width="25%" height="12" align="center"><privass:EmpPrivilegeAttribute attribute="assignerName"/></td>
<td width="25%" height="12" align="center"><privass:EmpPrivilegeAttribute attribute="assignDate"/></td>
<td width="25%" height="12" align="center"> <a onclick="if (!confirm('确定要删除吗?')) return false;" href="/mainctrl/personal/privilegeAssign/removePrivilege?empId=<privass:EmpPrivilegeAttribute attribute="empId"/>&privilegeId=<privass:EmpPrivilegeAttribute attribute="privilegeId"/>&assignerId=<privass:EmpPrivilegeAttribute attribute="assignerId"/>">删除</a>
</td>
</tr>
</vnex:items>
</privass:EmpPrivilegeList>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -