user_archive_main.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:2k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
  2. <%@ page import="com.redmoon.oa.dept.*" %>
  3. <%@ page import="com.redmoon.oa.person.*" %>
  4. <%@ page import="cn.js.fan.util.*" %>
  5. <%@ page import="cn.js.fan.web.*" %>
  6. <%@ page import="java.util.*" %>
  7. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  8. <html>
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  11. <title>职位</title>
  12. <LINK href="../admin/default.css" type=text/css rel=stylesheet>
  13. </head>
  14. <body>
  15. <%
  16. String deptCode = ParamUtil.get(request, "deptCode");
  17. if (deptCode.equals(DeptDb.ROOTCODE)) {
  18. out.print(SkinUtil.makeErrMsg(request, "请选择某个部门!"));
  19. return;
  20. }
  21. if (deptCode.equals("")) {
  22. return;
  23. }
  24. DeptDb dd = new DeptDb();
  25. dd = dd.getDeptDb(deptCode);
  26. if (dd==null || !dd.isLoaded()) {
  27. out.print(StrUtil.Alert("部门" + deptCode + "不存在!"));
  28. return;
  29. }
  30. %>
  31. <table width="356" border="0" align="center" cellpadding="0" cellspacing="1" class="frame_gray" style="height:100%">
  32.   <tr>
  33.     <td width="352" align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  34.       <tr>
  35.         <td height="24" align="center" bgcolor="#88B5FF"><%=dd.getName()%>用户档案维护</td>
  36.       </tr>
  37.     </table>
  38.       <table width="99%"  border="0" align="center" cellpadding="0" cellspacing="0">
  39.       <tr>
  40.         <td height="24" align="center" bgcolor="#C4DAFF">职级</td>
  41.         <td align="center" bgcolor="#C4DAFF">姓名</td>
  42.         <td height="24" align="center" bgcolor="#C4DAFF">操作</td>
  43.         </tr>
  44.       <%
  45. DeptUserDb du = new DeptUserDb();
  46. Vector v = du.list(deptCode);
  47. Iterator ir = v.iterator();
  48. UserDb user;
  49. UserMgr um = new UserMgr();
  50. while (ir.hasNext()) {
  51. du = (DeptUserDb)ir.next();
  52. user = um.getUserDb(du.getUserName());
  53. %>
  54.       <tr>
  55.         <td width="31%" height="22"><%=com.redmoon.oa.basic.RankDb.getRankName(user.getRankCode())%></td>
  56.         <td width="34%" height="22"><%=StrUtil.getNullString(user.getRealName())%></td>
  57.         <td height="22" align="center"><a href="user_archive_modify.jsp?op=create&name=<%=StrUtil.UrlEncode(du.getUserName())%>">维护</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="user_archive_show.jsp?name=<%=StrUtil.UrlEncode(du.getUserName())%>">查看</a></td>
  58.         </tr>
  59.       <%}%>
  60.     </table>
  61.       <br></td>
  62.   </tr>
  63. </table>
  64. </body>
  65. </html>