Examples of ProductAreaGroup


Examples of no.ugland.utransprod.model.ProductAreaGroup

        .getBean(JobFunctionManager.MANAGER_NAME);
    when(managerRepository.getJobFunctionManager()).thenReturn(
        jobFunctionManager);
    ApplicationUser applicationUser = new ApplicationUser();
    ProductArea productArea = new ProductArea();
    ProductAreaGroup productAreaGroup = new ProductAreaGroup();
    productArea.setProductAreaGroup(productAreaGroup);
    applicationUser.setProductArea(productArea);
    applicationUser.setGroupUser("Nei");
    when(login.getApplicationUser()).thenReturn(applicationUser);
    ProductAreaManager productAreaManager = (ProductAreaManager) ModelUtil
View Full Code Here

Examples of no.ugland.utransprod.model.ProductAreaGroup

        frontArticleName, attributeName, attributeValue));
    final ApplicationUser applicationUser = new ApplicationUser();
    ProductArea productArea = new ProductArea();
    ProductAreaGroupManager productAreaGroupManager = (ProductAreaGroupManager) ModelUtil
        .getBean(ProductAreaGroupManager.MANAGER_NAME);
    ProductAreaGroup productAreaGroup = productAreaGroupManager
        .findByName("Garasje");
    productArea.setProductAreaGroup(productAreaGroup);
    applicationUser.setProductArea(productArea);
    applicationUser.setUserName("username");
    applicationUser.setGroupUser("Nei");
View Full Code Here

Examples of no.ugland.utransprod.model.ProductAreaGroup

  protected void handleFilter() {
    table.clearSelection();
    objectSelectionList.clearSelection();

    ProductAreaGroup group = (ProductAreaGroup) productAreaGroupModel
        .getValue(ProductAreaGroupModel.PROPERTY_PRODUCT_AREA_GROUP);
    PrefsUtil.setInvisibleColumns(group.getProductAreaGroupName(),
        table.getName(), table);
    if (group.getProductAreaGroupName().equalsIgnoreCase("Alle")) {
      group = null;
    }
    List<Filter> filterList = new ArrayList<Filter>();

    if (!checkBoxFilter.isSelected()) {
      Filter filterApplied = new PatternFilter("---",
          Pattern.CASE_INSENSITIVE, getApplyColumn());
      filterList.add(filterApplied);
    }
    if (!checkBoxFilterStandard.isSelected()) {
      Filter filterStandard = new PatternFilter("nei",
          Pattern.CASE_INSENSITIVE, 11);
      filterList.add(filterStandard);
    }
    if (!checkBoxFilterOwn.isSelected()) {
      Filter filterStandard = new PatternFilter("ja",
          Pattern.CASE_INSENSITIVE, 11);
      filterList.add(filterStandard);
    }
    if (group != null) {
      PatternFilter filterProductAreaGroup = new PatternFilter(
          group.getProductAreaGroupName(), Pattern.CASE_INSENSITIVE,
          getProductAreaColumn());
      filterList.add(filterProductAreaGroup);
    }
    setAdditionFilters(filterList);
    if (filterList.size() != 0) {
View Full Code Here

Examples of no.ugland.utransprod.model.ProductAreaGroup

  private class ProductAreaGroupChangeListener implements
      PropertyChangeListener {

    public void propertyChange(PropertyChangeEvent evt) {
      ProductAreaGroup group = (ProductAreaGroup) presentationModelProductAreaGroup
          .getValue(ProductAreaGroupModel.PROPERTY_PRODUCT_AREA_GROUP);
      if (group != null
          && !group.getProductAreaGroupName()
              .equalsIgnoreCase("Alle")) {

        Filter filter = new PatternFilter(group
            .getProductAreaGroupName(), Pattern.CASE_INSENSITIVE,
            table.getColumnExt("Produktomr�de").getModelIndex());
        FilterPipeline filterPipeline = new FilterPipeline(
            new Filter[] { filter });
        table.setFilters(filterPipeline);
View Full Code Here

Examples of no.ugland.utransprod.model.ProductAreaGroup

  /**
   * @param productArea
   */
  public void setProductAreaGroup(ProductAreaGroup productAreaGroup) {
    ProductAreaGroup oldArea = getProductAreaGroup();
    this.productAreaGroup = productAreaGroup;
    firePropertyChange(PROPERTY_PRODUCT_AREA_GROUP, oldArea,
        productAreaGroup);
  }
View Full Code Here

Examples of no.ugland.utransprod.model.ProductAreaGroup

      Supplier supplier = ((SupplierModel) presentationModel.getBean())
          .getObject();

      List<ProductAreaGroup> groups = Util.getProductAreaGroupList();

      ProductAreaGroup selectedGroup = (ProductAreaGroup) JOptionPane
          .showInputDialog(window.getComponent(),
              "Velg produktomr�de", "Legg til produktomr�de",
              JOptionPane.INFORMATION_MESSAGE, null, groups
                  .toArray(), null);

      if (selectedGroup != null) {
        if (selectedGroup.getProductAreaGroupName().equalsIgnoreCase(
            "Alle")) {
          Util.showErrorDialog(window, "Ugyldig valg",
              "Kan ikke velge alle");
          return;
        }
View Full Code Here

Examples of no.ugland.utransprod.model.ProductAreaGroup

  /**
   * @param group
   */
  public void setProductAreaGroup(ProductAreaGroup group) {
    ProductAreaGroup oldGroup = getProductAreaGroup();
    object = group;
    firePropertyChange(PROPERTY_PRODUCT_AREA_GROUP, oldGroup, group);
  }
View Full Code Here

Examples of no.ugland.utransprod.model.ProductAreaGroup

  }

  @SuppressWarnings("unchecked")
  private void addProductAreaGroup(WindowInterface window,
      PresentationModel presentationModel) {
    ProductAreaGroup productAreaGroup = (ProductAreaGroup) Util
        .showOptionsDialogCombo(window, Util.getProductAreaGroupList(),
            "Velg produktomr�de", true, null);
    if (productAreaGroup != null) {
      ProductionUnitProductAreaGroup group = new ProductionUnitProductAreaGroup();
      group.setProductAreaGroup(productAreaGroup);
View Full Code Here

Examples of no.ugland.utransprod.model.ProductAreaGroup

    ColliManager colliManager=(ColliManager)ModelUtil.getBean(ColliManager.MANAGER_NAME);
    when(managerRepository.getColliManager()).thenReturn(colliManager);

    final ApplicationUser applicationUser = new ApplicationUser();
    ProductArea productArea = new ProductArea();
    ProductAreaGroup productAreaGroup = new ProductAreaGroup();
    productArea.setProductAreaGroup(productAreaGroup);
    applicationUser.setProductArea(productArea);
    applicationUser.setUserName("username");
    when(login.getApplicationUser()).thenReturn(applicationUser);
View Full Code Here

Examples of no.ugland.utransprod.model.ProductAreaGroup

        public ProductAreaGroup getProductAreaGroup() {
            return productAreaGroup;
        }

        public void setProductAreaGroup(ProductAreaGroup aProductAreaGroup) {
            ProductAreaGroup oldGroup = getProductAreaGroup();
            productAreaGroup = aProductAreaGroup;
            setColumns();
            firePropertyChange(PROPERTY_PRODUCT_AREA_GROUP, oldGroup,
                    aProductAreaGroup);
        }
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.