Package org.hoteia.qalingo.core.domain

Examples of org.hoteia.qalingo.core.domain.Warehouse


       
        if (result.hasErrors()) {
            return warehouseEdit(request, model, warehouseForm);
        }
       
        Warehouse warehouse = null;
        if(StringUtils.isNotEmpty(warehouseForm.getId())){
            warehouse = warehouseService.getWarehouseById(warehouseForm.getId());
        }

        try {
            // CREATE OR UPDATE WAREHOUSE
            Warehouse savedWarehouse = webBackofficeService.createOrUpdateWarehouse(requestData, warehouse, warehouseForm);
           
            if (warehouse == null) {
                addSuccessMessage(request, getSpecificMessage(ScopeWebMessage.WAREHOUSE, "create_success_message", locale));
            } else {
                addSuccessMessage(request, getSpecificMessage(ScopeWebMessage.WAREHOUSE, "update_success_message", locale));
View Full Code Here


    protected WarehouseForm initWarehouseForm(final HttpServletRequest request, final Model model) throws Exception {
        final RequestData requestData = requestUtil.getRequestData(request);
       
        final String warehouseCode = request.getParameter(RequestConstants.REQUEST_PARAMETER_WAREHOUSE_CODE);
        if(StringUtils.isNotEmpty(warehouseCode)){
            final Warehouse warehouseEdit = warehouseService.getWarehouseByCode(warehouseCode);
            return backofficeFormFactory.buildWarehouseForm(requestData, warehouseEdit);
        }
       
        return backofficeFormFactory.buildWarehouseForm(requestData, null);
    }
View Full Code Here

        PagedListHolder<WarehouseViewBean> warehouseViewBeanPagedListHolder = new PagedListHolder<WarehouseViewBean>();
       
        final List<WarehouseViewBean> warehouseViewBeans = new ArrayList<WarehouseViewBean>();
        for (Iterator<Warehouse> iterator = warehouses.iterator(); iterator.hasNext();) {
            Warehouse warehouseIt = (Warehouse) iterator.next();
            warehouseViewBeans.add(backofficeViewBeanFactory.buildViewBeanWarehouse(requestData, warehouseIt));
        }
        warehouseViewBeanPagedListHolder = new PagedListHolder<WarehouseViewBean>(warehouseViewBeans);
        warehouseViewBeanPagedListHolder.setPageSize(Constants.PAGE_SIZE);
        request.getSession().setAttribute(sessionKey, warehouseViewBeanPagedListHolder);
View Full Code Here

TOP

Related Classes of org.hoteia.qalingo.core.domain.Warehouse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.