Package com.jpoweredcart.common.entity.localisation

Examples of com.jpoweredcart.common.entity.localisation.ReturnStatuses$ReturnStatus


      returnStatus.setLanguageId(language.getId());
      returnStatus.setLanguageName(language.getName());
      returnStatus.setLanguageImage(language.getImage());
      list.add(returnStatus);
    }
    ReturnStatuses returnStatuses = new ReturnStatuses(list);
    returnStatuses.setNewEntities(true);
    model.addAttribute("returnStatuses", returnStatuses);
   
    return "/admin/localisation/returnStatusForm";
  }
View Full Code Here


  @RequestMapping(value="/admin/localisation/returnStatus/edit/{id}")
  public String edit(@PathVariable("id") Integer id, Model model){
   
    checkModifyPermission();
   
    ReturnStatuses returnStatuses = returnStatusAdminModel.getReturnStatuses(id);
    returnStatuses.setNewEntities(false);
    model.addAttribute("returnStatuses", returnStatuses);
   
    return "/admin/localisation/returnStatusForm";
  }
View Full Code Here

  public ReturnStatuses getReturnStatuses(Integer descId) {
    String sql = "SELECT s.return_status_id, s.name, s.language_id, l.name AS language_name, l.image AS language_image FROM " +
        quoteTable("return_status")+" s INNER JOIN "+quoteTable("language")+" l ON s.language_id=l.language_id WHERE return_status_id=?";
    List<ReturnStatus> list = getJdbcOperations().query(sql, new Object[]{descId},
        new ReturnStatusRowMapper());
    ReturnStatuses returnStatuses = new ReturnStatuses(list);
    return returnStatuses;
  }
View Full Code Here

TOP

Related Classes of com.jpoweredcart.common.entity.localisation.ReturnStatuses$ReturnStatus

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.