📄 directory_modify.jsp
字号:
<%@ page errorPage="/vnex/ErrorPage.jsp" %>
<%@ taglib uri="/vnex_directory.tld" prefix="directory" %>
<%@ page import="com.vnex.intranet.directory.proxy.DirectoryProxyBean" %>
<%@ page import="com.vnex.intranet.directory.proxy.DirectoryPermissionProxyBean" %>
<%@ page import="com.vnex.intranet.directory.value.DirectoryValueBean" %>
<%@ page import="com.vnex.intranet.directory.value.FileValueBean" %>
<%@ taglib uri="/vnex_hr.tld" prefix="emp" %>
<%@ taglib uri="/vnex.tld" prefix="vnex" %>
<jsp:useBean id="dPermissionProxy" class="com.vnex.intranet.directory.proxy.DirectoryPermissionProxyBean" scope="application"/>
<jsp:useBean id="dProxy" class="com.vnex.intranet.directory.proxy.DirectoryProxyBean" scope="application"/>
<jsp:useBean id="BusinessName" class="com.vnex.intranet.pub.BusinessSession" scope="session"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><jsp:include page="/vnex/page/FORM_HEAD.jsp" />
<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/util/popSelect.js"></script>
<script language="JavaScript1.2" src="/vnex/menu/dockmenu_leader.js"></script>
<script language="JavaScript1.2" src="/vnex/util/strutil.js"></script>
<script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
<script language="JavaScript1.2" src="/vnex/util/validate.js"></script>
<script language="JavaScript1.2">
function dosubmit()
{
if(isEmpty(form1.directoryName.value) || isEmptyStr(form1.directoryName.value) )
{
alert("目录名称不能为空!");
form1.directoryName.focus();
return;
}
if (isInvalidateLen(form1.directoryName.value,30))
{
alert("目录名称长度不能大于30!");
form1.directoryName.focus();
return;
}
selectAll(document.forms[0].selectedIDList);
selectAll(document.forms[0].selectedIDListWrite);
form1.action="/mainctrl/directory/management/directory_modify_process";
form1.submit();
}
</script>
<%
int i = 0;
int userId = BusinessName.getEmpId();
int id = Integer.parseInt(request.getParameter("id"));
int isLeaf = Integer.parseInt(request.getParameter("isLeaf"));
if (!dPermissionProxy.isCreator(id,userId)){
response.sendRedirect("/mainctrl/directory/directory_deny?id="+id+"&type=modify");
return;
}
DirectoryValueBean tmpBean = dProxy.getDirectoryInfo(id);
int[] readers = dPermissionProxy.getReadRight(id);
int[] writers = dPermissionProxy.getWriteRight(id);
%>
<DIV align=center>
<form name="form1" method="post">
<input type=hidden name="id" value="<%= id%>">
<input type=hidden name="superId" value="<%=request.getParameter("superId")%>">
<input type=hidden name="isLeaf" value="<%=isLeaf%>">
<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 bgcolor="#fafafa" >
<table width="600" border="0" cellpadding="2" cellspacing="0">
<tr>
<td bgcolor="#666666"><font class=strongw>
<directory:DirectoryNaviBar1 isAdmin="true"/>目录修改</font></td>
</tr>
</table>
<table width="600" border="0" cellpadding="2" cellspacing="1" class=title>
<tr bgcolor="#fafafa">
<td width="115"><font class=strong> 目录名称:</font></td>
<td width="474">
<input type="text" class=text name="directoryName" value="<%= tmpBean.getDirectoryName() %>" maxlength="30">
* (注:带*为必填内容)
</td>
</tr>
<tr bgcolor="#e0e0e0">
<td width="115"><font class=strong> 是否叶子结点:</font></td>
<td width="474">
<input type="radio" name="isLeaf" value="0" disabled <%= (tmpBean.getIsLeaf() == 1)? "checked" : "" %>>是
<input type="radio" name="isLeaf" value="1" disabled <%= (tmpBean.getIsLeaf() == 0)? "checked" : "" %>>否</td>
</tr>
<tr bgcolor="#fafafa">
<td width="115"><font class=strong> 限制读权限:</font></td>
<td width="474">
<input type="radio" name="readControl" onclick="form1.selectedIDList.disabled=false;" value="1" <%= (tmpBean.getControlRead() == 1)? "checked" : "" %>>是
<input type="radio" onclick="form1.selectedIDList.disabled=true;" name="readControl" value="0" <%= (tmpBean.getControlRead() == 0)? "checked" : "" %>>否</td>
</tr>
<tr bgcolor="#e0e0e0">
<td width="115"><font class=strong> 分配读权限:</font></td>
<td width="474">
<input type="hidden" name="updated" value="false">
<input type="hidden" name="tempHidden" value="">
<select name="selectedIDList" size="6" multiple style="width:260" <%= (tmpBean.getControlRead() == 0)? "disabled" : "" %>>
<% if (readers != null){ %>
<emp:EmployeeList empIds='<%= readers%>'>
<vnex:items>
<option value="<emp:EmployeeAttribute attribute="id"/>;null">
<emp:EmployeeAttribute attribute="employee_name"/>
</option>
</vnex:items>
</emp:EmployeeList>
<% } %>
</select>
<input type="button" style="width:70px" name="Submit1" value="按部门选择" class="file" onClick="javascript:addList(selectedIDList)">
<input type="button" name="Submit5" value="删除" class="file" onClick="javascript:remove1(selectedIDList)">
</td>
</tr>
<tr bgcolor="#fafafa">
<td width="115"><font class=strong> 限制写权限:</font></td>
<td width="474">
<input type="radio" onclick="form1.selectedIDListWrite.disabled=false;" name="writeControl" value="1" <%= (tmpBean.getControlWrite() == 1)? "checked" : "" %>>是
<input type="radio" onclick="form1.selectedIDListWrite.disabled=true;" name="writeControl" value="0" <%= (tmpBean.getControlWrite() == 0)? "checked" : "" %>>否</td>
</tr>
<tr bgcolor="#e0e0e0">
<td width="115"><font class=strong> 分配写权限:</font></td>
<td width="474">
<input type="hidden" name="updated2" value="false">
<input type="hidden" name="tempHidden2" value="">
<select name="selectedIDListWrite" size="6" multiple style="width:260" <%= (tmpBean.getControlWrite() == 0)? "disabled" : "" %>>
<% if (writers != null){ %>
<emp:EmployeeList empIds='<%= writers%>'>
<vnex:items>
<option value="<emp:EmployeeAttribute attribute="id"/>;null" >
<emp:EmployeeAttribute attribute="employee_name"/>
</option>
</vnex:items>
</emp:EmployeeList>
<% } %>
</select>
<input type="button" style="width:70px" name="Submit2" value="按部门选择" class="file" onClick="javascript:addList2(selectedIDListWrite)">
<input type="button" name="Submit6" value="删除" class="file" onClick="javascript:remove1(selectedIDListWrite)">
</td>
</tr>
<tr align="center" bgcolor="#fafafa">
<td colspan="2" height="30">
<input type="button" name="Submit3" class=text onClick="dosubmit()" value="保存">
<input type="submit" name="Reset" value="重置" class=text >
<% if( request.getParameter("superId") != null && !"".equals(request.getParameter("supberId"))) { %>
<input type="reset" name="Submit4" class=text onClick="location='/mainctrl/directory/management/directory_list_sub?id=<%= request.getParameter("superId")%>&isLeaf=0'" value="放弃">
<% }else{ %>
<input type="button" name="Submit5" class=text onClick="location='/mainctrl/directory/management/directory_list'" value="放弃">
<% } %>
</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 + -