search_leaveword.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:2k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import = "com.vnex.intranet.pub.BaseJdbcDAO"%>
- <jsp:useBean id="leaveWordProxy" scope="application" class="com.vnex.intranet.communication.leaveword.proxy.LeaveWordProxyBean" />
- <%
- String addConTime = leaveWordProxy.getYesterday();
- session.removeAttribute("condition");
- String condition = " (end_date>'"+addConTime+"' or end_date is null) ";
- String pageTo = "/mainctrl/leaveword/nameResult";
- BaseJdbcDAO jdbcDAO =new BaseJdbcDAO();
- if(request.getParameter("s") != null)
- {
- if(!request.getParameter("deptId").equals("0"))
- {
- if(!request.getParameter("empId").equals("0"))
- {
- condition += " and emp_id in ("+request.getParameter("empId")+")";
- pageTo = "/mainctrl/leaveword/searchResult?empId="+request.getParameter("empId");
- }
- else
- {
- condition += " and emp_id in (select emp_id from t_emp where division_id="+request.getParameter("deptId")+") group by emp_id ";
- }
- }
- else
- {
- if(!request.getParameter("empId").equals("0"))
- {
- condition += " and emp_id in ("+request.getParameter("empId")+")";
- pageTo = "/mainctrl/leaveword/searchResult?empId="+request.getParameter("empId");
- }
- else
- {
- condition += " group by emp_id ";
- }
- }
- }
- else
- {
- condition += " and emp_id in ((select emp_id from t_emp where name like '%"+jdbcDAO.changeCode(request.getParameter("search_name"))+"%')) group by emp_id";
- }
- session.setAttribute("condition", condition);
- %>
- <jsp:forward page="<%=pageTo%>" />