Examples of ProductCategory


Examples of com.tll.model.ProductCategory

    product.setProductGeneral(create(ProductGeneral.class, true));
    product.setParent(account);
    product = persist(product);
    pkP = product.getId();

    ProductCategory category = create(ProductCategory.class, true);
    category.setParent(account);
    category = persist(category);
    pkCa = category.getId();
  }
View Full Code Here

Examples of org.blueoxygen.postila.entity.ProductCategory

      }
    }
  }

  protected void btnNewActionPerformed(ActionEvent arg0) {
    category = new ProductCategory();
    loadCategoryToForm();
  }
View Full Code Here

Examples of org.blueoxygen.postila.entity.ProductCategory

        }

        search.addPropertyChangeListener(this);
        setSearchPanel(search);

        category = new CategoryForm(new ProductCategory(), token);
        category.addPropertyChangeListener(this);

        setEntryPanel(category);

        addPropertyChangeListener(new PropertyChangeListener() {
View Full Code Here

Examples of org.blueoxygen.postila.entity.ProductCategory

            model.removeRow(0);
        }

        if(!list.isEmpty()){
            for(Object ob : list){
                ProductCategory c = (ProductCategory) ob;
                model.addRow(new Object[]{c.getName(), c.getDescription()});
            }
        }
  }
View Full Code Here

Examples of org.blueoxygen.postila.materialmanagement.materialmanagementrules.entity.ProductCategory

    }
    if(getProductCategory().getPlannedMargin() == 0){
      addActionError("Planned Margin is required ");
    }
   
    ProductCategory productCategory;
    if(getProductCategory().getId() == null || "".equalsIgnoreCase(getProductCategory().getId())){
      productCategory = new ProductCategory();
      logInfo = new LogInformation();
      logInfo.setCreateBy(sessionCredentials.getCurrentUser().getId());
      logInfo.setCreateDate(new Timestamp(System.currentTimeMillis()));
    } else {
      productCategory = (ProductCategory) manager.getById(ProductCategory.class, getProductCategory().getId());
      logInfo = productCategory.getLogInformation();
    }
   
    logInfo.setActiveFlag(getActive());
    logInfo.setLastUpdateBy(sessionCredentials.getCurrentUser().getId());
    logInfo.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
   
    productCategory.setLogInformation(logInfo);
    productCategory.setSearchKey(getProductCategory().getSearchKey());
    productCategory.setDescription(getProductCategory().getDescription());
    productCategory.setParentId(getParentProductCategory());
    productCategory.setMaterialPolice(getProductCategory().getMaterialPolice());
    productCategory.setPdefault(getProductCategory().getPdefault());
    productCategory.setSelfService(getProductCategory().getSelfService());
    productCategory.setPlannedMargin(getProductCategory().getPlannedMargin());
    productCategory.setAssetGroup(getAssetGroup());

    manager.save(productCategory);
    setProductCategory(getProductCategory());
    return SUCCESS;
  }
View Full Code Here

Examples of org.campware.dream.om.ProductCategory

     * wouldn't be secure.
     */
    public void doInsert(RunData data, Context context)
        throws Exception
    {
        ProductCategory entry = new ProductCategory();
        data.getParameters().setProperties(entry);
        entry.save();
    }
View Full Code Here

Examples of org.campware.dream.om.ProductCategory

     * into the database.
     */
    public void doUpdate(RunData data, Context context)
        throws Exception
    {
        ProductCategory entry = new ProductCategory();
        data.getParameters().setProperties(entry);
        entry.setModified(true);
        entry.setNew(false);
        entry.save();
    }
View Full Code Here

Examples of org.campware.dream.om.ProductCategory

    protected boolean getEntry(Criteria criteria, Context context)
    {
        try
        {
            ProductCategory entry = (ProductCategory) ProductCategoryPeer.doSelect(criteria).get(0);
            context.put("entry", entry);
            return true;
        }
        catch (Exception e)
        {
View Full Code Here

Examples of org.simplecart.shopcart.catalog.ProductCategory

       
        // extract id from the request
        Long id = Long.decode(request.getParameter("categoryId"));
       
        // get Category object
        ProductCategory category = loadCategory(id);
       
        // create a categoryForm from a CatalogItemForm
        categoryForm = (CatalogItemForm) form;
       
        // copy properties to form-bean
        PropertyUtils.copyProperties(categoryForm, category);
        PropertyUtils.copyProperties(categoryForm, category.getSearchDetails());
        categoryForm.setActivity(Constants.EDIT_PAGE_KEY);
        categoryForm.setId(category.getId());
       
        // go to display page
        return mapping.findForward(Constants.EDIT_PAGE_KEY);
       
    }
View Full Code Here

Examples of org.simplecart.shopcart.catalog.ProductCategory

       
        // extract id from the request
        Long id = Long.decode(request.getParameter("categoryId"));
       
        // get Category object
        ProductCategory category = loadCategory(id);
       
        // create a categoryForm from a CatalogItemForm
        categoryForm = (CatalogItemForm) form;
       
        // copy properties to form-bean
        PropertyUtils.copyProperties(categoryForm, category);
        PropertyUtils.copyProperties(categoryForm, category.getSearchDetails());
        categoryForm.setActivity(Constants.DELETE_PAGE_KEY);
        categoryForm.setId(category.getId());
       
        // go to display page
        return mapping.findForward(Constants.DELETE_PAGE_KEY);
       
    }
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.