📄 search_dept_person.jsp
字号:
<%@ page contentType="text/html;charset=GB2312" %>
<%@ page import="cn.com.aheadsoft.recordset.PersonInfoRecordSet,cn.com.aheadsoft.business.PersonInfoBusiness,cn.com.aheadsoft.util.StringFormat,cn.com.aheadsoft.recordset.DeptInfoRecordSet,cn.com.aheadsoft.recordset.LevelRecordSet,cn.com.aheadsoft.recordset.OccupDicRecordSet,cn.com.aheadsoft.util.UserInfo,cn.com.aheadsoft.manage.UserPurviewManage,cn.com.aheadsoft.business.PersonImageBusiness,cn.com.aheadsoft.recordset.PersonImageRecordSet" %>
<%
//PersonInfoRecordSet perset = (PersonInfoRecordSet)request.getAttribute("result");
//OccupDicRecordSet occupset = (OccupDicRecordSet)request.getAttribute("oset");
//LevelRecordSet levelset = (LevelRecordSet)request.getAttribute("lset");
//DeptInfoRecordSet deptset = (DeptInfoRecordSet)request.getAttribute("dept");
String deptID=request.getParameter("deptID");
PersonInfoRecordSet set=new PersonInfoRecordSet();
PersonInfoBusiness perBu=new PersonInfoBusiness();
//perBu.setQueryWhereforAll();
perBu.setQueryWhereforDept(deptID);
perBu.execute("query");
set = perBu.getRecordSet();
UserInfo userinfo = (UserInfo)session.getAttribute("userinfo");
String username = "";
String userdept="";
if(userinfo.GetUserID() != null){
username = userinfo.GetUserID();
userdept = userinfo.GetDeptID();
//System.out.println("username"+username);
}
UserPurviewManage priority = new UserPurviewManage();
/*int incumbencyinsert = priority.getUserPopInt(userinfo, "4", "1", "i");
int incumbencyupdate = priority.getUserPopInt(userinfo, "4", "1", "u");
int incumbencydelete = priority.getUserPopInt(userinfo, "4", "1", "d");*/ //replace by zenghongli 2004.9.8
int incumbencyupdate = priority.getUserPopInt(userinfo, "4", "2", "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>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="F1F7F9">
<table width="95%" align="center" border="0" cellpadding="0" cellspacing="0" bgcolor="F1F7F9">
<tr height="8">
<td class="common">
</td>
</tr>
<tr height="8">
<td class="common">您的位置:人员管理 >> 人员列表</td>
</tr>
<tr height="8">
<td class="common">
</td>
</tr>
<tr>
<td align="center" bgcolor="F1F7F9">
<table border="1" width="100%" align="center" height="30%" bordercolor="A1B7DB" class="collapse">
<tr bgcolor="3366CC">
<td class="common" colspan="12" align="center"><font color="ffffff">
人员2列表 </font></td>
</tr>
<!--<tr bgcolor="9BD0F8"><td class="common" colspan="12" >人员列表:</td></tr>-->
<%if(null != set){
int index=0;
String Dept="";
String userID="";
PersonImageBusiness ImageBu = new PersonImageBusiness();
PersonImageRecordSet ImageRs = new PersonImageRecordSet();
while(set.next()){
Dept=set.getDept_ID();
ImageBu = new PersonImageBusiness();
ImageRs = new PersonImageRecordSet();
userID=set.getUser_ID();
ImageBu.setDeleteWhereQueryPE_ImageID(userID);
ImageBu.execute("query");
ImageRs=ImageBu.getRecordSet();
String ImageFile="";
while(ImageRs.next())
ImageFile=ImageRs.getPE_ImageFile();
%>
<% if (index % 6 == 0 && index != 0){%>
<tr align="center">
<%}
index = index + 1;
if(ImageFile.equals("")){
%>
<TD width=17% align=center class="common"><%=set.getI_Name()%><br>
<a href="/krm/servlet/PersonServlet?module=stuff&&status=q&&queryterm=primarykey&&id=<%=set.getUser_ID()%>"><img src="/krm/jsp/personimage/birthday.jpg" width="82" height="111" border="0"></a><br>
<%if((incumbencyupdate > 0) || (username.equals("0"))){%>
<a href="/krm/servlet/PersonServlet?module=stuff&&status=u&&queryterm=obtain&&id=<%=set.getUser_ID()%>">修改</a>
<%}%>
</td>
<%}else{%>
<TD width=17% align=center class="common"><%=set.getI_Name()%><br><a href="/krm/servlet/PersonServlet?module=stuff&&status=q&&queryterm=primarykey&&id=<%=set.getUser_ID()%>"><img src="/krm/jsp/personimage/<%=ImageFile%>" width="91" height="112" border="0"></a><br>
<%if((incumbencyupdate > 0) || (username.equals("0"))){%>
<a href="/krm/servlet/PersonServlet?module=stuff&&status=u&&queryterm=obtain&&id=<%=set.getUser_ID()%>">修改</a>
<%}%></td>
<%}if (index % 6 == 0){%>
</tr>
<%}
}
if (index % 6 == 1) {%>
<TD width=17% height="21" align=center> </td>
<TD width=17% align=center> </td>
<TD width=17% align=center> </td>
<TD width=17% align=center> </td>
<TD width=15% align=center> </td>
</tr>
<% }
else if (index % 6 == 2) {%>
<TD width=12% align=center> </td>
<TD width=13% align=center> </td>
<TD width=22% align=center> </td>
<TD width=29% align=center> </td>
</tr>
<% }
else if (index % 6 == 3) {%>
<TD width=12% align=center> </td>
<TD width=13% align=center> </td>
<TD width=22% align=center> </td>
</tr>
<% }
else if (index % 6 == 4) {%>
<TD width=12% align=center> </td>
<TD width=13% align=center> </td>
</tr>
<% }
else if (index % 6 == 5) {%>
<TD width=12% align=center> </td>
</tr>
<% }
}
%>
<tr>
<td align="center" colspan="6">
<input type="button" value=" 返 回 " class="button" onClick="history.back(-1);">
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -