Examples of ArticleType


Examples of no.ugland.utransprod.model.ArticleType

  @Override
  public AbstractProductionPackageViewHandler<Produceable> getViewHandler() {
    VeggProductionVManager veggProductionVManager = (VeggProductionVManager) ModelUtil
        .getBean("veggProductionVManager");
        ArticleTypeManager articleTypeManager=(ArticleTypeManager)ModelUtil.getBean("articleTypeManager");
        ArticleType articleType = articleTypeManager.findByName(ApplicationParamUtil.findParamByName(getParamArticleName()));
    return new VeggProductionViewHandler(
        new ProductionApplyList(
            login,veggProductionVManager, null, "Vegg", null,managerRepository), "Veggproduksjon",
        login,articleType,managerRepository,
        deviationViewHandlerFactory,setProductionUnitActionFactory);
View Full Code Here

Examples of no.ugland.utransprod.model.ArticleType

  @Test
  public void convertGavlKledning(){
    OrdlnManager ordlnManager=(OrdlnManager)ModelUtil.getBean(OrdlnManager.MANAGER_NAME);
    when(managerRepository.getOrdlnManager()).thenReturn(ordlnManager);
   
    ArticleType articleType=new ArticleType();
    articleType.setArticleTypeName("Kledning");
    Ordln ordln=new Ordln();
    ordln.setOrdlnPK(new OrdlnPK(1, 1));
    ordln.setFree4(BigDecimal.valueOf(2));
    Order order=new Order();
    OrderLine gavl=new OrderLine();
View Full Code Here

Examples of no.ugland.utransprod.model.ArticleType

    assertNotNull(kledning.getOrderLineRef());
  }
 
  @Test
  public void convertVeggKledning(){
    ArticleType articleType=new ArticleType();
    articleType.setArticleTypeName("Kledning");
    Ordln ordln=new Ordln();
    ordln.setOrdlnPK(new OrdlnPK(1, 1));
    ordln.setFree4(BigDecimal.ONE);
    Order order=new Order();
    OrderLine vegg=new OrderLine();
View Full Code Here

Examples of no.ugland.utransprod.model.ArticleType

  }
 
  @Test
  public void convertKledning(){
    KledningConverter kledningConverter=new KledningConverter(managerRepository);
    ArticleType articleType=new ArticleType();
    articleType.setArticleTypeName("Kledning");
    Ordln ordln=new Ordln();
    ordln.setOrdlnPK(new OrdlnPK(1, 1));
    ordln.setFree4(BigDecimal.ZERO);
    Order order=new Order();
    OrderLine vegg=new OrderLine();
View Full Code Here

Examples of no.ugland.utransprod.model.ArticleType

    order.setPostalCode("0354");
    order.setPostOffice("Oslo");
    order.setOrderDate(Calendar.getInstance().getTime());
    order.setProductArea(productArea);

    ArticleType articleType = new ArticleType(null, "test", null, null,
        null, null, null, null, null, null, null, null);
    articleTypes.add(articleType);
    articleTypeManager.saveArticleType(articleType);
    OrderLine orderLine = new OrderLine(null, order, null, articleType,
        null, null, null, null, null, null, "test", null, null, null,
View Full Code Here

Examples of no.ugland.utransprod.model.ArticleType

    prod.setPrCatNo2(9);
    ordln.setProd(prod);
    ordlnList.add(ordln);
   
    final Ord ord = new Ord();
    final ArticleType articleTypeTakstein=new ArticleType();
    articleTypeTakstein.setArticleTypeName("Takstein");
   
    final Collection<OrderLine> originalOrderLines =new HashSet<OrderLine>();
    OrderLine orderLineTakstol=new OrderLine();
    orderLineTakstol.setArticleName("Takstein");
    orderLineTakstol.setArticleType(articleTypeTakstein);
View Full Code Here

Examples of no.ugland.utransprod.model.ArticleType

        .getBean("articleTypeManager");
  }

  @Test
  public void testInsert() {
    articleType = new ArticleType();
    articleType.setArticleTypeName("Test");
    articleType.setDescription("Test");
    articleTypeManager.saveArticleType(articleType);

    ArticleType articleTypeTest = articleTypeManager.findByName("Vegg");
    assertNotNull(articleTypeTest);

  }
View Full Code Here

Examples of no.ugland.utransprod.model.ArticleType

  }

  @Test
  public void testFindAll() {
    articleType = new ArticleType();
    articleType.setArticleTypeName("Test");
    articleType.setDescription("Test");
    articleTypeManager.saveArticleType(articleType);

    List<ArticleType> all = articleTypeManager.findAll();
View Full Code Here

Examples of no.ugland.utransprod.model.ArticleType

    assertEquals(true, all.size() > 0);
  }

  @Test
  public void testFindArticle() {
    ArticleType testType = new ArticleType();

    testType = articleTypeManager.findByName("Gavlkledning");
    articleTypeManager.lazyLoad(testType, new LazyLoadArticleTypeEnum[] {
        LazyLoadArticleTypeEnum.ARTICLE_TYPE_ARTICLE_TYPE,
        LazyLoadArticleTypeEnum.ARTICLE_TYPE_ARTICLE_TYPE_REF });
View Full Code Here

Examples of no.ugland.utransprod.model.ArticleType

  private void showArticleAttributeView(List<ArticleType> newArticles,
      Articleable costable, WindowInterface window) {
    if (newArticles == null || newArticles.size() == 0) {
      return;
    }
    ArticleType newArticleType = getNewArticle(newArticles);
    Set<ArticleTypeAttribute> attributes = newArticleType
        .getArticleTypeAttributes();

    OrderLine orderLineMain = getNewOrderLineFromArticle(costable,
        newArticleType);
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.