Package com.jpoweredcart.admin.form.sale

Examples of com.jpoweredcart.admin.form.sale.CustomerGroupForm


  @RequestMapping(value="/edit/{id}")
  public String edit(@PathVariable("id") Integer id, Model model){
   
    checkModifyPermission();
   
    CustomerGroupForm cgForm = customerGroupAdminModel.getForm(id);
    addFormAttributes(cgForm, model);
   
    return "/admin/sale/customerGroupForm";
  }
View Full Code Here


    }
  }
 
  @Override
  public CustomerGroupForm newForm(){
    CustomerGroupForm cgForm = new CustomerGroupForm();
    cgForm.setDescs(languageAdminModel
        .createDescriptionList(CustomerGroupDesc.class));
    return cgForm;
  }
View Full Code Here

 
  @Override
  public CustomerGroupForm getForm(Integer cgId){
//    String sql = "SELECT DISTINCT * FROM " +quoteTable("customer_group")+ " cg LEFT JOIN " +quoteTable("customer_group_description")+
//        " cgd ON (cg.customer_group_id = cgd.customer_group_id) WHERE cg.customer_group_id = ? AND cgd.language_id = ?";
    CustomerGroupForm cgForm = (CustomerGroupForm)get(cgId, CustomerGroupForm.class);
    cgForm.setDescs(getDescriptions(cgId));
    return cgForm;
  }
View Full Code Here

TOP

Related Classes of com.jpoweredcart.admin.form.sale.CustomerGroupForm

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.