dismission_search_result.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:6k
源码类别:

电子政务应用

开发平台:

Java

  1. <%
  2. /**
  3.  * $RCSfile: dismission_search_result.jsp,v $
  4.  * $Revision: 1.0 $
  5.  * $Date: 2001/05/17 20:57:46 $
  6.  * /mainctrl/intranet/hr/dismission_search
  7.  */
  8. %>
  9. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  10. <%@ page import="com.vnex.intranet.hr.employer_info.value.*"%>
  11. <%@ page import="com.vnex.intranet.hr.employer_info.process.*"%>
  12. <%@ page import="com.vnex.intranet.hr.util.*"%>
  13. <%@ page import="com.vnex.intranet.util.*"%>
  14. <%@ page import="java.util.*" %>
  15. <jsp:useBean id="hrProxyBean" class="com.vnex.intranet.hr.employer_info.proxy.MemberInfoProxyBean" scope="application" />
  16. <jsp:useBean id="searchBean" class="com.vnex.intranet.hr.employer_info.value.MemberSearchBean" scope="page" />
  17. <jsp:setProperty name="searchBean" property="*" />
  18. <%
  19.     boolean doSearch = false;
  20.     Collection pageCollDis = new ArrayList();
  21.     if ( request.getParameter("doSearch") != null )
  22.     {
  23.         doSearch = true;
  24.         pageCollDis = hrProxyBean.infoFindDismission( searchBean.getName() );
  25.         session.setAttribute( "pageCollDis", pageCollDis );
  26.     }
  27.     else if ( request.getParameter("start") ==null || request.getParameter("start").length() < 1 )
  28.     {
  29.         pageCollDis = hrProxyBean.infoAllDismission();
  30.         session.setAttribute( "pageCollDis", pageCollDis );
  31.     }
  32. %>
  33. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  34. <HTML>
  35. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  36. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  37. <script language="JavaScript" src="/vnex/menu/dockmenu_hr.js"></script>
  38. <script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
  39. <DIV align=center>
  40. <form name="form1" method="post" action="/mainctrl/intranet/hr/dismission_search">
  41.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  42.     <TBODY>
  43.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  44.     <TR> 
  45.         <TD colSpan=3 align="center"> 
  46.           <br>
  47.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  48.             <tr>
  49.               <td bgcolor="#fafafa"> 
  50.                 <table class=title cellspacing=0 cellpadding=2 width="600" border=0>
  51.                   <tr bgcolor="#666666"> 
  52.                     <td colspan="5"><font class="strongw"><a href="/mainctrl/home/index
  53.                     "><font color="#FFFFFF">首页</font></a>&gt;&gt;<a href="/mainctrl/hr/main"><font color="#FFFFFF">人力资源</font></a>&gt;&gt; 
  54.                       离职员工信息</font></td>
  55.                   </tr>
  56.                   <tr bgcolor="#fafafa"> 
  57.                     <td height="30" colspan="5"><font class=strong> 姓名:</font>&nbsp; 
  58.                       <input type="text" name="name" class=text size="24">&nbsp;
  59.                       <input type="submit" value="查询" name="B38" class=text>
  60.                       &nbsp;&nbsp; </td>
  61.                   </tr>
  62.                 </table>
  63.                 <table class=title cellspacing=1 cellpadding=2 width="600" border=0>
  64.                   <tr> 
  65.                     <td width="100" align="middle"> 
  66.                       <div align="center"><font class=strong>职员姓名</font></div>
  67.                     </td>
  68.                     <td align="middle"> 
  69.                       <div align="center"><font class=strong>员工信息</font></div>
  70.                     </td>
  71.                   </tr>
  72. <%
  73.     pageCollDis = (Collection)session.getAttribute("pageCollDis");
  74.     int start = 1; //第一个显示
  75.     if ( request.getParameter("start") !=null && request.getParameter("start").length() >0 )
  76.     {
  77.         start = Integer.parseInt( request.getParameter("start") );
  78.     }
  79.     int rowPerPage = 10; //每页显示几行
  80.     int size = pageCollDis.size(); //总共有几行
  81.     String action = "/mainctrl/intranet/hr/dismission_search?"; //提交到本页jsp
  82.     String nav = NavBar.makeNavbar(start, size, rowPerPage, action);
  83.     MemberSearchBean msb = null;
  84.     int i = 0;
  85.     if( pageCollDis != null && pageCollDis.size() != 0)
  86.     {
  87.         Iterator it = pageCollDis.iterator();
  88.         int flag = 0;
  89.         String bgcolor = null;
  90.         while( it.hasNext() && i < size && i < ( start+rowPerPage-1) )
  91.         {
  92.             i++;
  93.             msb = (MemberSearchBean)it.next();
  94.             if ( i < start ) continue; //前面的不显示
  95.             if( flag%2==0 )
  96.             {
  97.                 bgcolor = "#e0e0e0";
  98.             }
  99.             else
  100.             {
  101.                 bgcolor = "#fafafa";
  102.             }
  103. %>
  104.                   <tr bgcolor="<%= bgcolor %>"> 
  105.                     <td width="100" align="center"><%= msb.getName() %></td>
  106.                     <td  align="middle"> 
  107.                       <div align="center"> 
  108.                         <input type="button" value="查看" name="B33" onClick="location='/mainctrl/intranet/dismission/basic_info?emp_id=<%= msb.getId() %>&start=<%= start %>'" class=text>
  109.                       </div>
  110.                     </td>
  111.                   </tr>
  112. <%
  113.             flag++;
  114.         }
  115.     }
  116. %>
  117.                   <tr bgcolor="#e0e0e0"> 
  118.                     <td colspan="2" align="left">&nbsp;&nbsp;<%= nav %></td>
  119.                   </tr>
  120.                 </table>
  121.           </td>
  122.             </tr>
  123.           </table>
  124.           <br>
  125.           <br>
  126.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  127.         </TD>
  128.     </TR>
  129.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  130.     </TBODY> 
  131.     </TABLE>
  132.   <BR>
  133.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  134.     <input type=hidden name=doSearch value=1 >
  135.   </form></DIV>
  136. </BODY></HTML>