Package com.jpoweredcart.common.entity.localisation

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


  @RequestMapping(value="/admin/localisation/taxClass/create")
  public String create(Model model, HttpServletRequest request){
   
    checkModifyPermission();
   
    model.addAttribute("taxClass", new TaxClass());
    addFormAttributes(model);
   
    return "/admin/localisation/taxClassForm";
  }
View Full Code Here


  @RequestMapping(value="/admin/localisation/taxClass/edit/{id}")
  public String edit(@PathVariable("id") Integer id, Model model, HttpServletRequest request){
   
    checkModifyPermission();
   
    TaxClass taxClass = taxClassAdminModel.get(id);
    model.addAttribute("taxClass", taxClass);
    addFormAttributes(model);
   
    return "/admin/localisation/taxClassForm";
  }
View Full Code Here

  }

  @Override
  public TaxClass get(Integer taxClassId) {
    String sql = "SELECT * FROM " +quoteTable("tax_class")+ " WHERE tax_class_id = ?";
    TaxClass taxClass = getJdbcOperations().queryForObject(sql,
        new Object[]{taxClassId}, new TaxClassRowMapper());
    sql = "SELECT * FROM "+quoteTable("tax_rule")+ " WHERE tax_class_id =?";
    List<TaxRule> taxRules = getJdbcOperations()
        .query(sql, new Object[]{taxClassId}, new TaxRuleRowMapper());
    taxClass.setTaxRules(taxRules);
    return taxClass;
  }
View Full Code Here

TOP

Related Classes of com.jpoweredcart.common.entity.localisation.TaxClass

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.