Examples of InformationForm


Examples of com.jpoweredcart.admin.form.catalog.InformationForm

  }
 
  @Override
  public InformationForm newForm(){
   
    InformationForm infoForm = new InformationForm();
    List<InformationDesc> descList = languageAdminModel
        .createDescriptionList(InformationDesc.class);
    infoForm.setDescs(descList);
    List<InformationToLayout> itlList = new ArrayList<InformationToLayout>();
    for(Store store: storeAdminModel.getAll()){
      InformationToLayout itl = new InformationToLayout();
      itl.setStoreId(store.getId());
      itl.setStoreName(store.getName());
      itlList.add(itl);
    }
    infoForm.setLayouts(itlList);
   
    return infoForm;
  }
View Full Code Here

Examples of com.jpoweredcart.admin.form.catalog.InformationForm

  public InformationForm getForm(Integer infoId) {
   
    String sql = "SELECT DISTINCT *, (SELECT keyword FROM " +quoteTable("url_alias")
        + " WHERE query = ?) AS keyword FROM "
        + quoteTable("information")+" WHERE information_id = ?";
    InformationForm infoForm = (InformationForm)getJdbcOperations().queryForObject(
        sql, new Object[]{"information_id="+infoId, infoId},
        new InformationRowMapper(){
          @Override
          public Information mapRow(ResultSet rs, int rowNum)
              throws SQLException {
            InformationForm form = (InformationForm)super.mapRow(rs, rowNum);
            form.setKeyword(rs.getString("keyword"));
            return form;
          }
        }.setTargetClass(InformationForm.class));
    infoForm.setDescs(getDescriptions(infoId));
    infoForm.setStores(getInfoStores(infoId));
View Full Code Here

Examples of com.jpoweredcart.admin.form.catalog.InformationForm

 
  @RequestMapping(value="/edit/{id}")
  public String edit(@PathVariable("id") Integer id, Model model){
   
    checkModifyPermission();
    InformationForm infoForm = informationAdminModel.getForm(id);
    addFormAttributes(infoForm, model);
   
    return "/admin/catalog/informationForm";
  }
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.