Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.Colli


    when(ordchgrHeadVManager.getLines(1, lnNos)).thenReturn(ordlns);
    when(applicationParamManager.findByName("visma_out_dir")).thenReturn(
        "visma");
    when(applicationParamManager.findByName("not_package")).thenReturn("");

    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);
View Full Code Here


    private int addColliToReadyCount(
            final List<ReadyCount> readyCountList, final Order order, final int rows,
            final List<Colli> collies, final OrderLine orderLine) {
        int rowCounter = rows;
        rowCounter++;
        Colli colli = null;
        if (collies.size() >= rowCounter) {
            colli = collies.get(rowCounter - 1);
        }
        readyCountList.add(new ReadyCount(order, colli, orderLine, rowCounter));
        return rowCounter;
View Full Code Here

    when(managerRepository.getColliManager()).thenReturn(colliManager);
    UserType userType = new UserType();
    userType.setIsAdmin(1);
    when(login.getUserType()).thenReturn(userType);

    viewHandler = new ColliViewHandler("Kolli", new Colli(), null, login,
        managerRepository, null);

  }
View Full Code Here

    assertEquals(1, viewHandler.getObjectSelectionListSize());
  }

  @Test
  public void testSaveObject() throws Exception {
    colli = new Colli();
    colli.setColliName("test");
    viewHandler.saveObject(new ColliModel(colli), null);
    assertEquals(2, viewHandler.getObjectSelectionListSize());
  }
View Full Code Here

    final Order transportable = new Order();
    ConstructionType constructionType = new ConstructionType();
    transportable.setConstructionType(constructionType);
    OrderLine orderLine = new OrderLine();
    transportable.addOrderLine(orderLine);
    final Colli colli = new Colli();
    colli.setColliName("test");
    colli.addOrderLine(orderLine);
    transportable.addColli(colli);
    Customer customer = new Customer();
    transportable.setCustomer(customer);
    ProductArea productArea = new ProductArea();
    ProductAreaGroup productAreaGroup = new ProductAreaGroup();
View Full Code Here

            final Periode period, final boolean ignoreSent,
            final OrderLine orderLine) {
        BigDecimal addValue = BigDecimal.valueOf(0);
        if (sendingFromGGAndNotShingel(orderLine)) {

            Colli colli = orderLine.getColli();
            if (colli != null) {
                addValue = getAddValue(period, ignoreSent, addValue, colli,
                        transportable);
            }
View Full Code Here

  @Before
  public void setup() {
    FailOnThreadViolationRepaintManager.install();
    MockitoAnnotations.initMocks(this);
    final Colli colli = new Colli();
    final ColliModel colliModel = new ColliModel(colli);

    final Packable packable = null;
    final UserType userType = new UserType();
    Set<UserTypeAccess> userTypeAccesses = new HashSet<UserTypeAccess>();
View Full Code Here

  }

  private OrderLine setColliPackedAndSent(String colliName,
      String orderLineArticlePath, PostShipment postShipment)
      throws ProTransException {
    Colli colli = new Colli();
    colli.setColliName(colliName);

    OrderLine orderLine = order.getOrderLine(orderLineArticlePath);
    colli.addOrderLine(orderLine);

    if (postShipment != null) {
      postShipment.addOrderLine(orderLine);
      postShipment.addColli(colli);
      colli.setSent(postShipment.getSent());
      colliManager.saveColli(colli);
      postShipmentManager.savePostShipment(postShipment);
    } else {
      order.addColli(colli);
      colli.setSent(order.getSent());
      orderManager.saveOrder(order);
    }
    return orderLine;

  }
View Full Code Here

    articleType.setArticleTypeName("test");
    orderLine.setArticleType(articleType);
    final Order order = new Order();
    order.setOrderNr("1");
    orderLine.setOrder(order);
    final Colli colli = new Colli();
    colli.setColliName("test");
    orderLine.setColli(colli);
    when(orderLineManager.findByOrderLineId(anyInt()))
        .thenReturn(orderLine);
    final List<Applyable> packlist = new ArrayList<Applyable>();
View Full Code Here

            final Transportable transportable, final Periode period,
            final boolean ignoreSent) {
        OrderLine orderLine = transportable.getOrderLine(articlePath);
        BigDecimal addValue = BigDecimal.valueOf(0);
        if (orderLine != null) {
            Colli colli = orderLine.getColli();
            if (colli != null) {
                addValue = getAddValue(period, ignoreSent, orderLine, addValue,
                        colli, transportable);
            }
        }
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.model.Colli

Copyright © 2018 www.massapicom. 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.