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

电子政务应用

开发平台:

Java

  1. <%
  2. /**
  3.  * $RCSfile: employee_search_result.jsp,v $
  4.  * $Revision: 1.0 $
  5.  * $Date: 2001/05/17 20:57:46 $
  6.  * /mainctrl/intranet/hr/search_result
  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. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  16. <%@ taglib uri="/vnex_organization.tld" prefix="org" %>
  17. <jsp:useBean id="hrProxyBean" class="com.vnex.intranet.hr.employer_info.proxy.MemberInfoProxyBean" scope="application" />
  18. <jsp:useBean id="searchBean" class="com.vnex.intranet.hr.employer_info.value.MemberSearchBean" scope="page" />
  19. <jsp:setProperty name="searchBean" property="*" />
  20. <%
  21.     boolean doSearch = false;
  22.     Collection pageCollForAll = new ArrayList();
  23.     if ( request.getParameter("doSearch") != null )
  24.     {
  25.         doSearch = true;
  26.         pageCollForAll = hrProxyBean.infoFind( searchBean.getId(), searchBean.getName() );
  27.         session.setAttribute( "pageCollForAll", pageCollForAll );
  28.     }
  29.     else if ( request.getParameter("start") == null || request.getParameter("start").length() < 1 )
  30.     {
  31.         pageCollForAll = hrProxyBean.infoFindAll();
  32.         session.setAttribute( "pageCollForAll", pageCollForAll );
  33.     }
  34. %>
  35. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  36. <HTML>
  37. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  38. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  39. <script language="JavaScript" src="/vnex/menu/dockmenu_hr.js"></script>
  40. <script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
  41. <DIV align=center>
  42. <form name="form1" method="post" action="/mainctrl/intranet/hr/search_result">
  43.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  44.     <TBODY>
  45.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  46.     <TR> 
  47.         <TD colSpan=3 align="center"> 
  48.           <br>
  49.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  50.             <tr>
  51.               <td bgcolor="#fafafa"> 
  52.                 <table class=title cellspacing=0 cellpadding=2 width="600" border=0>
  53.                   <tr bgcolor="#666666"> 
  54.                     <td colspan="5"><font class="strongw"><a href="/mainctrl/home/index
  55.                     "><font color="#FFFFFF">首页</font></a>&gt;&gt;<font class="strongw"><a href="/mainctrl/hr/main"><font color="#FFFFFF">人力资源</font></a>&gt;&gt; 
  56.                       员工信息列表</font></td>
  57.                   </tr>
  58.                   <tr bgcolor="#fafafa"> 
  59.                     <td height="30" colspan="5"><font class=strong> 姓名:</font>&nbsp; 
  60.                       <input type="text" name="name" class=text size="24">&nbsp;
  61.                     <input type=hidden name=doSearch value=1 >
  62.                       <input type="submit" value="查询" name="B38" class=text>&nbsp;&nbsp;
  63.                       <input type="button" name="advsearch" style="width:60px" value="高级查询" class="file" onClick="location='/mainctrl/intranet/hr/advance_search'">
  64.                     </td>
  65.                   </tr>
  66.                 </table>
  67.                 <table class=title cellspacing=1 cellpadding=2 width="600" border=0>
  68.                   <tr bgcolor="#fafafa"> 
  69.                     <td colspan="7" height="30">&nbsp;&nbsp;
  70.                       <input type="button" style="width:60px" onClick="location='/mainctrl/intranet/hr/add_basic_info?doNew=1'" value="新增员工" name="B37" class=text>&nbsp;&nbsp;
  71.                     </td>
  72.                   </tr>
  73.                   <tr>
  74.                     <td width="84" align="middle"><font class=strong>职员姓名</font></td>
  75.                     <td width="80" align="middle"><font class=strong>员工信息</font></td>
  76.                     <td width="89" align="middle"><font class=strong>薪酬设置</font></td>
  77.                     <td width="91" align="middle"><font class=strong>职位设定</font></td>
  78.                     <td width="80" align="middle"><font class=strong>考勤统计</font></td>
  79.                     <td width="91" align="middle"><font class=strong>培训记录</font></td>
  80.                   </tr>
  81. <%
  82.     pageCollForAll = (Collection)session.getAttribute("pageCollForAll");
  83.     int start = 1; //第一个显示
  84.     if ( request.getParameter("start") != null && request.getParameter("start").length() >0  )
  85.     {
  86.         start = Integer.parseInt( request.getParameter("start") );
  87.     }
  88.     int rowPerPage = 10; //每页显示几行
  89.     int size = pageCollForAll.size(); //总共有几行
  90.     String action = "/mainctrl/intranet/hr/search_result?"; //提交到本页jsp
  91.     String nav = NavBar.makeNavbar(start, size, rowPerPage, action);
  92.     MemberSearchBean msb = null;
  93.     int i = 0;
  94.     if( pageCollForAll != null && pageCollForAll.size() != 0)
  95.     {
  96.         Iterator it = pageCollForAll.iterator();
  97.         int flag = 0;
  98.         String bgcolor = null;
  99.         while( it.hasNext() && i < size && i < ( start+rowPerPage-1) )
  100.         {
  101.             i++;
  102.             msb = (MemberSearchBean)it.next();
  103.             if ( i < start ) continue; //前面的不显示
  104.             if( flag%2==0 )
  105.             {
  106.                 bgcolor = "#e0e0e0";
  107.             }
  108.             else
  109.             {
  110.                 bgcolor = "#fafafa";
  111.             }
  112. %>
  113.                   <tr bgcolor="<%= bgcolor %>">
  114.                     <!-- td width="42" align="center"> 
  115.                       <input type="checkbox" name="checkbox3" value="checkbox">
  116.                     </td -->
  117.                     <td width="84" align="center"><%= msb.getName() %></td>
  118.                     <td width="80" align="middle"> 
  119.                       <input type="button" value="查看" name="B33" onClick="location='/mainctrl/intranet/hr/edit_basic_info?emp_id=<%= msb.getId() %>&start=<%= start %>'" class=text>
  120.                     </td>
  121.                     <td width="89" align="middle"> 
  122.                       <input type="button" value="查看" name="B35" onClick="location='/mainctrl/intranet/hr/employee_salary_count_manage?emp_id=<%= msb.getId() %>&emp_name=<%= msb.getName() %>&start=<%= start %>'" class=text>
  123.                       <br>
  124.                     </td>
  125.                     <td width="91" align="middle"> 
  126.                       <input type="button" value="查看" name="B36" onClick="location='/mainctrl/intranet/hr/role_set?emp_id=<%= msb.getId() %>&name=<%= msb.getName() %>&start=<%= start %>'" class=text>
  127.                     </td>
  128.                     <td width="80" align="middle"> 
  129.                       <input type="button" value="查看" name="B34" onClick="location='/mainctrl/attendance/statistic/statisticAttendance?empId=<%= msb.getId() %>&start=<%= start %>'" class=text>
  130.                     </td>
  131.                      <td width="91" align="middle"> 
  132.                       <input type="button" value="查看" name="B32" onClick="location='/mainctrl/training/statistic?emp_id=<%= msb.getId()%>&fromEmployeePage'" class=text>
  133.                       <br>
  134.                     </td>
  135.                  </tr>
  136. <%
  137.             flag++;
  138.         }
  139.     }
  140. %>
  141.                   <tr bgcolor="#e0e0e0"> 
  142.                     <td colspan="7" align="left">&nbsp;&nbsp;<%= nav %></td>
  143.                   </tr>
  144.                 </table>
  145.           </td>
  146.             </tr>
  147.           </table>
  148.           <br>
  149.           <br>
  150.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  151.         </TD>
  152.     </TR>
  153.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  154.     </TBODY> 
  155.     </TABLE>
  156.   <BR>
  157.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  158.   </form></DIV>
  159. </BODY></HTML>