Examples of Ordln


Examples of no.ugland.utransprod.model.Ordln

    final Colli colli = new Colli();
    colli.setColliName("Port");
    orderLine = new OrderLine();
    orderLine.setOrdNo(1);
    Ordln ordln = new Ordln();
    ordln.setOrdlnPK(new OrdlnPK(2, 1));
    orderLine.setOrdln(ordln);
    orderLine.setLnNo(2);
    ConstructionTypeArticle constructionTypeArticle = new ConstructionTypeArticle();
    ArticleType articleType = new ArticleType();
    articleType.setArticleTypeName("Port");
View Full Code Here

Examples of no.ugland.utransprod.model.Ordln

   
    constructionTypeArticleAttribute.setArticleTypeAttribute(articleTypeAttribute);
   
    order.addOrderLine(orderLine);
   
    final Ordln ordln=new Ordln();
    ordln.setWdtu(BigDecimal.valueOf(400));
    ordln.setLgtU(BigDecimal.valueOf(800));
   
    when(ordlnManager.findByOrdnoAndPrCatNo2(111, 1)).thenReturn(ordln);
   
   
   
View Full Code Here

Examples of no.ugland.utransprod.model.Ordln

    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();
    gavl.setArticlePath("Gavl");
    OrderLine kledning = new OrderLine();
    kledning.setArticlePath("Gavl$Kledning");
View Full Code Here

Examples of no.ugland.utransprod.model.Ordln

 
  @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();
    vegg.setArticlePath("Vegg");
    OrderLine kledning = new OrderLine();
    kledning.setArticlePath("Vegg$Kledning");
View Full Code Here

Examples of no.ugland.utransprod.model.Ordln

  @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();
    vegg.setArticlePath("Vegg");
    order.addOrderLine(vegg);
    Ord ord=null;
View Full Code Here

Examples of no.ugland.utransprod.model.Ordln

    Integer userdefId=1;
    importOrderV.setUserdefId(userdefId);
    when(importOrderVDAO.findByNumber1(orderNr)).thenReturn(importOrderV);
    Order incomingOrder=new Order();
    incomingOrder.setOrderNr("1");
    Ordln ordln=new Ordln();
    Prod prod=new Prod();
    prod.setProdNo("MONTERING VILLA");
    ordln.setProd(prod);
    List<Ordln> ordlnList=Lists.newArrayList(ordln);
    when(ordlnManager.findCostLines(incomingOrder.getOrderNr())).thenReturn(ordlnList);
   
    Udsalesmall udsalessmall=new Udsalesmall();
    when(udsalesmallDao.getObject(userdefId)).thenReturn(udsalessmall);
View Full Code Here

Examples of no.ugland.utransprod.model.Ordln

    productAreaGroup.setProductAreaGroupName("Garasje");
    productArea.setProductAreaGroup(productAreaGroup);
    incomingOrder.setProductArea(productArea);
   
    final List<Ordln> ordlnList=new ArrayList<Ordln>();
    Ordln ordln = new Ordln();
    ordln.setOrdlnPK(new OrdlnPK(1,1));
    Prod prod = new Prod();
    prod.setProdNo("TAKSTEIN");
    prod.setPrCatNo(1020410);
    prod.setPrCatNo2(9);
    ordln.setProd(prod);
    ordlnList.add(ordln);
   
    final Ord ord = new Ord();
    final ArticleType articleTypeTakstein=new ArticleType();
    articleTypeTakstein.setArticleTypeName("Takstein");
View Full Code Here

Examples of no.ugland.utransprod.model.Ordln

    setBrickWallHeigth(garageOrderLine,ord);
    setWidthAndLength(garageOrderLine,ord);
  }

  private void setWidthAndLength(OrderLine garageOrderLine, Ord ord) {
    Ordln ordln = getVismaOrderLineForGarageType(ord);
    setWidth(ordln,garageOrderLine);
    setLength(ordln,garageOrderLine);
  }
View Full Code Here

Examples of no.ugland.utransprod.model.Ordln

  private boolean vismaWidthHasValue(BigDecimal width) {
    return width!=null&&width!=BigDecimal.ZERO;
  }

  private Ordln getVismaOrderLineForGarageType(Ord ord) {
    Ordln ordln = ordlnManager.findByOrdnoAndPrCatNo2(ord.getOrdno(),GARAGE_TYPE_LINE);
    return ordln;
  }
View Full Code Here

Examples of no.ugland.utransprod.model.Ordln

  }

  private static void setAttributeBoolValue(final OrderLine orderLine,
      OrdlnManager ordlnManager, OrderLineAttribute orderLineAttribute,
      Attribute attribute) {
    Ordln ordln = attribute.hasProdCatNo() ? ordlnManager
        .findByOrderNrProdCatNo(orderLine.getOrderNr(),
            attribute.getProdCatNo(), attribute
                .getProdCatNo2()) : Ordln.UNKNOWN;
    if (ordln != Ordln.UNKNOWN) {
      orderLineAttribute.setAttributeValueBool(true);
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.