protected void putApproveListToRequest(TravelApplication ta, HttpServletRequest request) { TravelApplicationApproveRequestManager tm = ServiceLocator.getTravelApplicationApproveRequestManager(request); List approveList = tm.getTravelApplicationApproveRequestListByApproveRequestId(ta.getApproveRequestId()); request.setAttribute("X_APPROVELIST", approveList); }
protected void putTravelApplicationDetailsToRequest( TravelApplication ta, HttpServletRequest request) { TravelApplicationManager pm = ServiceLocator.getTravelApplicationManager(request); if (!isBack(request)) { this.putAirTicketListToSession(pm.getAirTicketListWithDetails(ta), request); } request.setAttribute("x_airTicketList", this.getAirTicketListFromSession(request)); putApproveListToRequest(ta, request); }
protected TravelApplication getTravelApplicationFromRequest(HttpServletRequest request) throws Exception { String id = getTravelApplicationId(request); TravelApplicationManager travelApplicationManager = ServiceLocator.getTravelApplicationManager(request); TravelApplication travelApplication = travelApplicationManager.getTravelApplication(id); if (travelApplication == null) throw new ActionException("travelApplication.notFound", id); return travelApplication; }
protected void putCurrencyListToRequest(HttpServletRequest request) { CurrencyManager cm = ServiceLocator.getCurrencyManager(request); List currencyList = cm.getAllEnabledCurrencyList(); request.setAttribute("x_currencyList", currencyList); }