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

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8"%>
  2. <%@ page import = "java.util.*"%>
  3. <%@ page import = "cn.js.fan.db.*"%>
  4. <%@ page import = "cn.js.fan.web.*"%>
  5. <%@ page import = "cn.js.fan.util.*"%>
  6. <%@ page import = "com.redmoon.oa.archive.*"%>
  7. <%@ page import = "com.redmoon.oa.person.*"%>
  8. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  9. <html>
  10. <head>
  11. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  12. <title>考核列表</title>
  13. <link href="../common.css" rel="stylesheet" type="text/css">
  14. </head>
  15. <body background="" leftmargin="0" topmargin="5" marginwidth="0" marginheight="0">
  16. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  17. <% 
  18.     if (!privilege.isUserPrivValid(request, "archive.his")) {
  19. out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request, "pvg_invalid")));
  20. return;
  21. }
  22. %>
  23. <%@ include file="archive_inc_his_menu_top.jsp"%>
  24. <br>
  25. <table width="494" border="0" align="center" cellpadding="0" cellspacing="0" class="main">
  26.   <tr> 
  27.     <td height="23" valign="middle" class="right-title">任免文号信息管理</td>
  28.   </tr>
  29.   <tr> 
  30.     <td valign="top" background="images/tab-b-back.gif">
  31.  <%
  32. String sql = ArchiveSQLBuilder.getUserDutyHis();
  33. String querystr = "",userRealName = "";
  34. int pagesize = 10;
  35. Paginator paginator = new Paginator(request);
  36. int curpage = paginator.getCurPage();
  37. UserDutyHisDb udhd = new UserDutyHisDb();
  38. ListResult lr = udhd.listResult(sql, curpage, pagesize);
  39. int total = lr.getTotal();
  40. Vector v = lr.getResult();
  41.     Iterator ir = null;
  42. if (v!=null)
  43. ir = v.iterator();
  44. paginator.init(total, pagesize);
  45. // 设置当前页数和总页数
  46. int totalpages = paginator.getTotalPages();
  47. if (totalpages==0)
  48. {
  49. curpage = 1;
  50. totalpages = 1;
  51. }
  52.  %>
  53.       <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
  54.         <tr> 
  55.           <td width="47">&nbsp;</td>
  56.           <td align="right" backgroun="images/title1-back.gif">找到符合条件的记录 <b><%=paginator.getTotal() %></b> 条 每页显示 <b><%=paginator.getPageSize() %></b> 条 页次 <b><%=curpage %>/<%=totalpages %></td>
  57.         </tr>
  58.       </table> 
  59.       <table width="97%" border="0" align="center" cellpadding="2" cellspacing="0">
  60.         <tr align="center" bgcolor="#C4DAFF"> 
  61.           <td width="16%">姓名</td>
  62.           <td width="15%" bgcolor="#C4DAFF">任免情况</td>
  63.           <td width="12%" bgcolor="#C4DAFF">拟任职务</td>
  64.           <td width="12%" bgcolor="#C4DAFF">拟免职务</td>
  65.           <td width="9%">任免时间</td>
  66.   <td width="9%">任免文号</td>
  67.           <td width="13%">备注</td>
  68.           <td width="11%">操作</td>
  69.         </tr>
  70.       </table>
  71.       <%
  72. UserInfoHisDb uihd = new UserInfoHisDb();
  73. while (ir!=null && ir.hasNext()) {
  74. udhd = (UserDutyHisDb)ir.next();
  75. userRealName = uihd.getUserRealName(udhd.getUserName());
  76. String myDate = DateUtil.format(udhd.getMyDate(), "yyyy-MM-dd");
  77.  %>
  78.       <table width="97%" border="0" align="center" cellpadding="2" cellspacing="0">
  79.         <tr align="center" bgcolor="#EEEEEE"> 
  80.           <td width="16%" bgcolor="#EEEEEE"><%=userRealName%></td>
  81.           <td width="15%"><%=udhd.getInfo()%></td>
  82.           <td width="12%"><%=udhd.getDuty()%> </td>
  83.           <td width="12%"><%=udhd.getDeposal()%></td>
  84.           <td width="9%" bgcolor="#EEEEEE"><%=myDate%></td>
  85.   <td width="9%" bgcolor="#EEEEEE"><%=udhd.getFileNumber()%></td>
  86.           <td width="13%" bgcolor="#EEEEEE"><%=udhd.getRemark()%></td>
  87.           <td width="11%" bgcolor="#EEEEEE"><a href="archive_duty_his_show.jsp?id=<%=udhd.getId()%>">查看</a></td>
  88.         </tr>
  89.       </table>
  90.       <%}%>
  91.       <br>
  92.       <table width="98%" border="0" cellspacing="1" cellpadding="3" align="center" class="9black">
  93.         <tr> 
  94.           <td width="1%" height="23">&nbsp;</td>
  95.           <td height="23" valign="baseline"> 
  96.             <div align="right"> 
  97.             <%
  98. out.print(paginator.getCurPageBlock("?"+querystr));
  99. %>
  100.               &nbsp;</div></td>
  101.         </tr>
  102.       </table>
  103.     </td>
  104.   </tr>
  105.   <tr> 
  106.     <td height="30" colspan="2" align="center">
  107.     </td>
  108.   </tr>
  109. </table>
  110. </body>
  111. </html>