Examples of GeoZoneForm


Examples of com.jpoweredcart.admin.form.localisation.GeoZoneForm

  @RequestMapping(value="/edit/{id}")
  public String edit(@PathVariable("id") Integer id, Model model){
   
    checkModifyPermission();
   
    GeoZoneForm geoZoneForm = geoZoneAdminModel.getForm(id);
    model.addAttribute("geoZoneForm", geoZoneForm);
    model.addAttribute("countries", countryAdminModel.getAll());
   
    return "/admin/localisation/geoZoneForm";
  }
View Full Code Here

Examples of com.jpoweredcart.admin.form.localisation.GeoZoneForm

   
  }
 
  @Override
  public GeoZoneForm newForm(){
    return new GeoZoneForm();
  }
View Full Code Here

Examples of com.jpoweredcart.admin.form.localisation.GeoZoneForm

    return new GeoZoneForm();
  }
 
  @Override
  public GeoZoneForm getForm(Integer geoZoneId){
    GeoZoneForm geoZoneForm = (GeoZoneForm)get(geoZoneId, GeoZoneForm.class);
   
    String sql = "SELECT * FROM "+quoteTable("zone_to_geo_zone")+ " WHERE geo_zone_id =?";
    List<ZoneToGeoZone> zoneToGeoZones = getJdbcOperations()
        .query(sql, new Object[]{geoZoneId}, new ZoneToGeoZoneRowMapper());
    geoZoneForm.setZoneToGeoZones(zoneToGeoZones);
    return geoZoneForm;
  }
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.