public ActionForward print( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { SecurityInfo securityInfo = (SecurityInfo) request.getSession().getAttribute("SecurityInfo"); Pagination pagination = (Pagination) request.getSession().getAttribute(EmployeeInfoListShowAC.PAGINATION_KEY); IEmployeeInfoListBS pbs = (IEmployeeInfoListBS) BSUtils.getBusinessService("employeeInfoListBS", this, mapping.getModuleConfig()); List list = pbs.getEmployeeInfoAllList(pagination, securityInfo); request.setAttribute("printlist", list); return mapping.findForward("to_empBaseInfoListprint"); }
public ActionForward printone( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { String id = (String) request.getParameter("id"); String iid = (String) request.getParameter("iid"); IEmployeeInfoListBS pbs = (IEmployeeInfoListBS) BSUtils.getBusinessService("employeeInfoListBS", this, mapping.getModuleConfig()); Integer orgId = new Integer(iid); Integer empId = new Integer(id); Emp emp = pbs.findEmpByOrdIdAndEmpId(orgId, empId); request.setAttribute("emp", emp); return mapping.findForward("to_empBaseInfoprint"); }