employee_search_result.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:8k
源码类别:
电子政务应用
开发平台:
Java
- <%
- /**
- * $RCSfile: employee_search_result.jsp,v $
- * $Revision: 1.0 $
- * $Date: 2001/05/17 20:57:46 $
- * /mainctrl/intranet/hr/search_result
- */
- %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.hr.employer_info.value.*"%>
- <%@ page import="com.vnex.intranet.hr.employer_info.process.*"%>
- <%@ page import="com.vnex.intranet.hr.util.*"%>
- <%@ page import="com.vnex.intranet.util.*"%>
- <%@ page import="java.util.*" %>
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_organization.tld" prefix="org" %>
- <jsp:useBean id="hrProxyBean" class="com.vnex.intranet.hr.employer_info.proxy.MemberInfoProxyBean" scope="application" />
- <jsp:useBean id="searchBean" class="com.vnex.intranet.hr.employer_info.value.MemberSearchBean" scope="page" />
- <jsp:setProperty name="searchBean" property="*" />
- <%
- boolean doSearch = false;
- Collection pageCollForAll = new ArrayList();
- if ( request.getParameter("doSearch") != null )
- {
- doSearch = true;
- pageCollForAll = hrProxyBean.infoFind( searchBean.getId(), searchBean.getName() );
- session.setAttribute( "pageCollForAll", pageCollForAll );
- }
- else if ( request.getParameter("start") == null || request.getParameter("start").length() < 1 )
- {
- pageCollForAll = hrProxyBean.infoFindAll();
- session.setAttribute( "pageCollForAll", pageCollForAll );
- }
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <script language="JavaScript" src="/vnex/menu/dockmenu_hr.js"></script>
- <script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
- <DIV align=center>
- <form name="form1" method="post" action="/mainctrl/intranet/hr/search_result">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <TBODY>
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <TR>
- <TD colSpan=3 align="center">
- <br>
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr>
- <td bgcolor="#fafafa">
- <table class=title cellspacing=0 cellpadding=2 width="600" border=0>
- <tr bgcolor="#666666">
- <td colspan="5"><font class="strongw"><a href="/mainctrl/home/index
- "><font color="#FFFFFF">首页</font></a>>><font class="strongw"><a href="/mainctrl/hr/main"><font color="#FFFFFF">人力资源</font></a>>>
- 员工信息列表</font></td>
- </tr>
- <tr bgcolor="#fafafa">
- <td height="30" colspan="5"><font class=strong> 姓名:</font>
- <input type="text" name="name" class=text size="24">
- <input type=hidden name=doSearch value=1 >
- <input type="submit" value="查询" name="B38" class=text>
- <input type="button" name="advsearch" style="width:60px" value="高级查询" class="file" onClick="location='/mainctrl/intranet/hr/advance_search'">
- </td>
- </tr>
- </table>
- <table class=title cellspacing=1 cellpadding=2 width="600" border=0>
- <tr bgcolor="#fafafa">
- <td colspan="7" height="30">
- <input type="button" style="width:60px" onClick="location='/mainctrl/intranet/hr/add_basic_info?doNew=1'" value="新增员工" name="B37" class=text>
- </td>
- </tr>
- <tr>
- <td width="84" align="middle"><font class=strong>职员姓名</font></td>
- <td width="80" align="middle"><font class=strong>员工信息</font></td>
- <td width="89" align="middle"><font class=strong>薪酬设置</font></td>
- <td width="91" align="middle"><font class=strong>职位设定</font></td>
- <td width="80" align="middle"><font class=strong>考勤统计</font></td>
- <td width="91" align="middle"><font class=strong>培训记录</font></td>
- </tr>
- <%
- pageCollForAll = (Collection)session.getAttribute("pageCollForAll");
- int start = 1; //第一个显示
- if ( request.getParameter("start") != null && request.getParameter("start").length() >0 )
- {
- start = Integer.parseInt( request.getParameter("start") );
- }
- int rowPerPage = 10; //每页显示几行
- int size = pageCollForAll.size(); //总共有几行
- String action = "/mainctrl/intranet/hr/search_result?"; //提交到本页jsp
- String nav = NavBar.makeNavbar(start, size, rowPerPage, action);
- MemberSearchBean msb = null;
- int i = 0;
- if( pageCollForAll != null && pageCollForAll.size() != 0)
- {
- Iterator it = pageCollForAll.iterator();
- int flag = 0;
- String bgcolor = null;
- while( it.hasNext() && i < size && i < ( start+rowPerPage-1) )
- {
- i++;
- msb = (MemberSearchBean)it.next();
- if ( i < start ) continue; //前面的不显示
- if( flag%2==0 )
- {
- bgcolor = "#e0e0e0";
- }
- else
- {
- bgcolor = "#fafafa";
- }
- %>
- <tr bgcolor="<%= bgcolor %>">
- <!-- td width="42" align="center">
- <input type="checkbox" name="checkbox3" value="checkbox">
- </td -->
- <td width="84" align="center"><%= msb.getName() %></td>
- <td width="80" align="middle">
- <input type="button" value="查看" name="B33" onClick="location='/mainctrl/intranet/hr/edit_basic_info?emp_id=<%= msb.getId() %>&start=<%= start %>'" class=text>
- </td>
- <td width="89" align="middle">
- <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>
- <br>
- </td>
- <td width="91" align="middle">
- <input type="button" value="查看" name="B36" onClick="location='/mainctrl/intranet/hr/role_set?emp_id=<%= msb.getId() %>&name=<%= msb.getName() %>&start=<%= start %>'" class=text>
- </td>
- <td width="80" align="middle">
- <input type="button" value="查看" name="B34" onClick="location='/mainctrl/attendance/statistic/statisticAttendance?empId=<%= msb.getId() %>&start=<%= start %>'" class=text>
- </td>
- <td width="91" align="middle">
- <input type="button" value="查看" name="B32" onClick="location='/mainctrl/training/statistic?emp_id=<%= msb.getId()%>&fromEmployeePage'" class=text>
- <br>
- </td>
- </tr>
- <%
- flag++;
- }
- }
- %>
- <tr bgcolor="#e0e0e0">
- <td colspan="7" align="left"> <%= nav %></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <br>
- <br>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TBODY>
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form></DIV>
- </BODY></HTML>