Package com.jpoweredcart.common.entity.localisation.OrderStatuses

Examples of com.jpoweredcart.common.entity.localisation.OrderStatuses.OrderStatus


    checkModifyPermission();
   
    List<Language> languages = languageAdminModel.getList(new PageParam());
    List<OrderStatus> list = new ArrayList<OrderStatus>();
    for(Language language: languages){
      OrderStatus orderStatus = new OrderStatus();
      orderStatus.setLanguageId(language.getId());
      orderStatus.setLanguageName(language.getName());
      orderStatus.setLanguageImage(language.getImage());
      list.add(orderStatus);
    }
    OrderStatuses orderStatuses = new OrderStatuses(list);
    orderStatuses.setNewEntities(true);
    model.addAttribute("orderStatuses", orderStatuses);
View Full Code Here


    if(orderStatuses.hasErrors()){
      model.addAttribute("orderStatuses", orderStatuses);
      return "/admin/localisation/orderStatusForm";
    }
   
    OrderStatus orderStatusList[] = orderStatuses.getList().toArray(new OrderStatus[0]);
    if(orderStatuses.isNewEntities()){
      orderStatusAdminModel.create(orderStatusList);
    }else{
      orderStatusAdminModel.update(orderStatusList);
    }
View Full Code Here

TOP

Related Classes of com.jpoweredcart.common.entity.localisation.OrderStatuses.OrderStatus

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.