📄 add_department_config.jsp
字号:
<%@ page contentType="text/html;charset=GB2312" %>
<%@ page import="java.util.*,cn.com.aheadsoft.recordset.AuthorizationRecordSet,cn.com.aheadsoft.recordset.authRecordSet,cn.com.aheadsoft.recordset.DeptInfoRecordSet,cn.com.aheadsoft.util.UserInfo,cn.com.aheadsoft.manage.UserPurviewManage" %>
<%
AuthorizationRecordSet set = (AuthorizationRecordSet)request.getAttribute("result");
authRecordSet authset = (authRecordSet)request.getAttribute("authset");
//DeptInfoRecordSet deptset = (DeptInfoRecordSet)request.getAttribute("dept");
List deptid = (List)request.getAttribute("deptid");
List deptname = (List)request.getAttribute("deptname");
List deptseq = (List)request.getAttribute("deptseq");
UserInfo userinfo = (UserInfo)session.getAttribute("userinfo");
UserPurviewManage priority = new UserPurviewManage();
/*int authinsert = priority.getUserPopInt(userinfo, "4", "6", "i");
int authupdate = priority.getUserPopInt(userinfo, "4", "6", "u");*/ //replace by zenghongi 2004.9.8
int authinsert = priority.getUserPopInt(userinfo, "4", "1", "i");
int authupdate = priority.getUserPopInt(userinfo, "4", "1", "u");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link rel="stylesheet" type="text/css" href="/krm/jsp/css/css.css">
</head>
<script language="JavaScript" src="/krm/jsp/jscript/ls.js"></script>
<script language="JavaScript" src="/krm/jsp/jscript/Calendar.js"></script>
<script language="JavaScript">
function isSubmit(){
if(document.add.A_Admin.value == null || document.add.A_Admin.value == ""){
alert("请填写编制数!");
}else{
document.add.submit();
}
}
</script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr height="8" >
<td class="trA">
<%if(null != set){%> 您的位置:人事管理 >> 部门管理 >> <font class="fontcolor">部门编制修改</font>
<%}else{%> 您的位置:人事管理 >> 部门管理 >> <font class="fontcolor">部门编制添加</font>
<%}%>
</td>
</tr>
</table>
<%if(set != null){
set.next();%>
<form name="add" method="POST" action="/krm/servlet/DeptServlet?module=auth&&status=u&&queryterm=ordinal&&id=<%=set.getA_ID()%>">
<%}else{%>
<form name="add" method="POST" action="/krm/servlet/DeptServlet?module=auth&&status=i">
<%}%>
<table border="0" width="98%" align="center" class="collapse">
<tr>
<td class="tdA" colspan="9" align="center"><div align="left"><%if(null != set){%>部门编制修改<%}else{%>部门编制添加<%}%></div></td>
</tr>
<%if(null != set){%>
<tr>
<td width="100" align="left" class="common bgcolor" >部门</td>
<td class="common">
<select name="Dept_ID">
<option value="<%=set.getDept_ID()+"-"+set.getA_Sequency()%>"><%=set.getD_Name()%></option>
</select>
</td>
</tr>
<tr>
<td width="100" align="left" class="common bgcolor">编制名</td>
<td class="common">
<select name="A_Career">
<option value="<%=set.getA_Career()%>"><%=set.getA_Name()%></option>
<%if(authset != null && authset.size()>0){
while(authset.next()){
%>
<option value="<%=authset.getA_ID()%>"><%=authset.getA_Name()%></option>
<%}}%>
<tr>
<td width="100" align="left" class="common bgcolor">编制数目
<td class="common"><input name="A_Admin" type="text" class="middle" value="<%=set.getA_Admin()%>" onKeyUp="atInput(this)">
<%}else{%>
<tr>
<td width="100" align="left" class="common bgcolor" >选择部门
<td class="common">
<%if((null != deptid) && (deptid.size() != 0)){%>
<select name="Dept_ID">
<%for(int j = 0; j < deptid.size(); j++){%>
<option value="<%=(String)deptid.get(j)+"-"+(String)deptseq.get(j)%>"><%=(String)deptname.get(j)%></option>
<%}%>
</select>
<%}else{%>
<font color="red">所有部门均已填写完毕!</font>
<%}%>
</td>
</tr>
<tr>
<td width="100" align="left" class="bgcolor common">编制名</td>
<td class="common">
<select name="A_Career" >
<%if(authset != null && authset.size()>0){
while(authset.next()){
%>
<option value="<%=authset.getA_ID()%>"><%=authset.getA_Name()%></option>
<%}}%>
</select>
</td>
</tr>
<tr>
<td width="100" align="left" class="common bgcolor">编制数</td>
<td class="common"><input name="A_Admin" type="text" class="middle" ></td>
</tr>
<%}%>
<tr>
<td align="center" colspan="2" class="tdC">
<%if(set != null){
if(authupdate > 0){
%>
<input type="button" value="提 交" onmouseover="this.className='button2'" onmouseout="this.className='button1'" class="button1" onClick="isSubmit();">
<%}
}else{
if((authinsert > 0) && (null != deptid) && (deptid.size() != 0)){
%>
<input type="button" value="提 交" onmouseover="this.className='button2'" onmouseout="this.className='button1'" class="button1" onClick="isSubmit();">
<%}
}%>
<input type="button" value="返 回" onmouseover="this.className='button2'" onmouseout="this.className='button1'" class="button1" onClick="history.back(-1);">
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -