Package com.jpoweredcart.common.entity.localisation

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


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


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

 
 
  @Override
  public TaxRate get(Integer taxRateId) {
    String sql = "SELECT * FROM " +quoteTable("tax_rate")+ " WHERE tax_rate_id = ?";
    TaxRate taxRate = getJdbcOperations().queryForObject(sql,
        new Object[]{taxRateId}, new TaxRateRowMapper());
   
    sql = "SELECT customer_group_id FROM "+quoteTable("tax_rate_to_customer_group")+ " WHERE tax_rate_id =?";
    List<Integer> customerGroupIds = getJdbcOperations()
        .queryForList(sql, Integer.class, taxRateId);
    taxRate.setCustomerGroupIds(customerGroupIds);
   
    return taxRate;
  }
View Full Code Here

    List<TaxRate> taxRateList = getJdbcOperations()
        .query(query.getSql(), query.getParameters(), new TaxRateRowMapper(){
          @Override
          public TaxRate mapRow(ResultSet rs, int rowNum)
              throws SQLException {
            TaxRate taxRate = super.mapRow(rs, rowNum);
            taxRate.setGeoZone(rs.getString("geo_zone"));
            return taxRate;
          }
        });
    return taxRateList;
  }
View Full Code Here

TOP

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

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.