Examples of StockStatuses


Examples of com.jpoweredcart.common.entity.localisation.StockStatuses

      stockStatus.setLanguageId(language.getId());
      stockStatus.setLanguageName(language.getName());
      stockStatus.setLanguageImage(language.getImage());
      list.add(stockStatus);
    }
    StockStatuses stockStatuses = new StockStatuses(list);
    stockStatuses.setNewEntities(true);
    model.addAttribute("stockStatuses", stockStatuses);
   
    return "/admin/localisation/stockStatusForm";
  }
View Full Code Here

Examples of com.jpoweredcart.common.entity.localisation.StockStatuses

  @RequestMapping(value="/admin/localisation/stockStatus/edit/{id}")
  public String edit(@PathVariable("id") Integer id, Model model){
   
    checkModifyPermission();
   
    StockStatuses stockStatuses = stockStatusAdminModel.getStockStatuses(id);
    stockStatuses.setNewEntities(false);
    model.addAttribute("stockStatuses", stockStatuses);
   
    return "/admin/localisation/stockStatusForm";
  }
View Full Code Here

Examples of com.jpoweredcart.common.entity.localisation.StockStatuses

  public StockStatuses getStockStatuses(Integer descId) {
    String sql = "SELECT s.stock_status_id, s.name, s.language_id, l.name AS language_name, l.image AS language_image FROM " +
        quoteTable("stock_status")+" s INNER JOIN "+quoteTable("language")+" l ON s.language_id=l.language_id WHERE stock_status_id=?";
    List<StockStatus> list = getJdbcOperations().query(sql, new Object[]{descId},
        new StockStatusRowMapper());
    StockStatuses stockStatuses = new StockStatuses(list);
    return stockStatuses;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.