dismission_search_result.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:6k
源码类别:
电子政务应用
开发平台:
Java
- <%
- /**
- * $RCSfile: dismission_search_result.jsp,v $
- * $Revision: 1.0 $
- * $Date: 2001/05/17 20:57:46 $
- * /mainctrl/intranet/hr/dismission_search
- */
- %>
- <%@ 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.*" %>
- <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 pageCollDis = new ArrayList();
- if ( request.getParameter("doSearch") != null )
- {
- doSearch = true;
- pageCollDis = hrProxyBean.infoFindDismission( searchBean.getName() );
- session.setAttribute( "pageCollDis", pageCollDis );
- }
- else if ( request.getParameter("start") ==null || request.getParameter("start").length() < 1 )
- {
- pageCollDis = hrProxyBean.infoAllDismission();
- session.setAttribute( "pageCollDis", pageCollDis );
- }
- %>
- <!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/dismission_search">
- <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>>><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="submit" value="查询" name="B38" class=text>
- </td>
- </tr>
- </table>
- <table class=title cellspacing=1 cellpadding=2 width="600" border=0>
- <tr>
- <td width="100" align="middle">
- <div align="center"><font class=strong>职员姓名</font></div>
- </td>
- <td align="middle">
- <div align="center"><font class=strong>员工信息</font></div>
- </td>
- </tr>
- <%
- pageCollDis = (Collection)session.getAttribute("pageCollDis");
- int start = 1; //第一个显示
- if ( request.getParameter("start") !=null && request.getParameter("start").length() >0 )
- {
- start = Integer.parseInt( request.getParameter("start") );
- }
- int rowPerPage = 10; //每页显示几行
- int size = pageCollDis.size(); //总共有几行
- String action = "/mainctrl/intranet/hr/dismission_search?"; //提交到本页jsp
- String nav = NavBar.makeNavbar(start, size, rowPerPage, action);
- MemberSearchBean msb = null;
- int i = 0;
- if( pageCollDis != null && pageCollDis.size() != 0)
- {
- Iterator it = pageCollDis.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="100" align="center"><%= msb.getName() %></td>
- <td align="middle">
- <div align="center">
- <input type="button" value="查看" name="B33" onClick="location='/mainctrl/intranet/dismission/basic_info?emp_id=<%= msb.getId() %>&start=<%= start %>'" class=text>
- </div>
- </td>
- </tr>
- <%
- flag++;
- }
- }
- %>
- <tr bgcolor="#e0e0e0">
- <td colspan="2" 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" />
- <input type=hidden name=doSearch value=1 >
- </form></DIV>
- </BODY></HTML>