Examples of ProductGroupUI


Examples of org.sab.invsys.web.model.product.ProductGroupUI

import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;

public class ProductGroupMapper {
  public ProductGroupUI toUIBean(ProductGroup group) {
    ProductGroupUI ui = null;

    if (group != null) {
      ui = new ProductGroupUI();
      ui.setCreateadBy(group.getCreateadBy());
      ui.setCreatedDate(group.getCreatedDate());
      ui.setDescription(group.getDescription());
      ui.setId(group.getId());
      ui.setModifiedBy(group.getModifiedBy());
      ui.setModifiedDate(group.getModifiedDate());
      ui.setGroupName(group.getGroupName());
    }

    return ui;
  }
View Full Code Here

Examples of org.sab.invsys.web.model.product.ProductGroupUI

  }

  @RequestMapping(value = "/view/{groupName}")
  public String view(@PathVariable String groupName, Model model)
      throws Exception {
    ProductGroupUI group = service.findByGroupName(groupName);

    model.addAttribute("productGroupBean", group);
    model.addAttribute("operationName", "update");

    return "productgroup/view";
View Full Code Here

Examples of org.sab.invsys.web.model.product.ProductGroupUI

  @RequestMapping(value = "/update")
  public @ResponseBody
  Map<String, ? extends Object> update(ProductGroupUI data)
      throws Exception {
    try {
      ProductGroupUI group = service.update(data);

      if (group != null) {
        return extJS.mapOK(group, "Product Group Updated Succesfully");
      } else {
        return extJS.mapError("Error trying to update product Group.");
View Full Code Here

Examples of org.sab.invsys.web.model.product.ProductGroupUI

    try {
      if (service.findByGroupName(data.getGroupName()) != null) {
        return extJS.mapError("Product Group Name already exists");
      }

      ProductGroupUI saved = service.create(data);
      if (saved != null) {
        return extJS.mapOK(saved, "Product Group Created Succesfully");
      } else {
        return extJS.mapError("Error trying to create product Group.");
      }
View Full Code Here

Examples of org.sab.invsys.web.model.product.ProductGroupUI

      List<ProductGroupUI> deletedGroups = new ArrayList<ProductGroupUI>();

      for (String groupName : name.substring(1, name.length() - 1)
          .replaceAll("\"", "").split(",")) {
        ProductGroupUI product = service.findByGroupName(groupName);

        if (product != null) {
          service.delete(product);
          deletedGroups.add(product);
        }
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.