Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.OrdchgrHeadV


    when(managerRepository.getOrderLineManager()).thenReturn(
        orderLineManager);
    UserType userType = new UserType();
    userType.setIsAdmin(1);
    when(login.getUserType()).thenReturn(userType);
    final OrdchgrHeadV ordchgrHeadV = new OrdchgrHeadV();
    when(ordchgrHeadVManager.getHead(1)).thenReturn(ordchgrHeadV);

    final List<Integer> lnNos = new ArrayList<Integer>();
    lnNos.add(2);
    final List<OrdchgrLineV> ordlns = new ArrayList<OrdchgrLineV>();
View Full Code Here


  public String createVismaFileForTransport(Order order)
      throws ProTransException {
    try {

      Integer ordNo = order.getOrderLines().iterator().next().getOrdNo();
      OrdchgrHeadV head = ordchgrManager.getHead(ordNo);
      return createTransportFile(order, head, ApplicationParamUtil
          .findParamByName(VISMA_OUT_DIR));
    } catch (IOException e) {
      e.printStackTrace();
      throw new ProTransException(e.getMessage());
View Full Code Here

  }

  private String createHeadAndLines(List<OrderLine> orderLines)
      throws ProTransException {
    if (orderLines != null && orderLines.size() != 0) {
      OrdchgrHeadV head = ordchgrManager.getHead(orderLines.get(0)
          .getOrdNo());
      List<OrdchgrLineV> lines = head != null ? ordchgrManager.getLines(
          orderLines.get(0).getOrdNo(), getLnNos(orderLines)) : null;
      return head != null ? createFile(head, lines, orderLines.get(0)
          .getOrderNr(), ApplicationParamUtil
View Full Code Here

  public void skalLageVismaFilForOrdreUtenTransport() throws IOException,
      ParseException {
    VismaFileCreatorImpl vismaFileCreator = new VismaFileCreatorImpl(null,
        false);
    Order ordre = new Order();
    OrdchgrHeadV head = new OrdchgrHeadV();
    head.setOrdNo(1);
    String fileName = vismaFileCreator.createTransportFile(ordre, head,
        "visma");
    assertNotNull(fileName);
    File file = new File("visma/" + fileName);
    assertEquals(true, file.exists());
View Full Code Here

    VismaFileCreatorImpl vismaFileCreator = new VismaFileCreatorImpl(null,
        false);
    Order ordre = new Order();
    Transport transport = new Transport();
    ordre.setTransport(transport);
    OrdchgrHeadV head = new OrdchgrHeadV();
    head.setOrdNo(1);
    String fileName = vismaFileCreator.createTransportFile(ordre, head,
        "visma");
    assertNotNull(fileName);
    File file = new File("visma/" + fileName);
    assertEquals(true, file.exists());
View Full Code Here

        false);
    Order ordre = new Order();
    Transport transport = new Transport();
    transport.setLoadingDate(Util.DATE_FORMAT_YYYYMMDD.parse("20110929"));
    ordre.setTransport(transport);
    OrdchgrHeadV head = new OrdchgrHeadV();
    head.setOrdNo(1);
    String fileName = vismaFileCreator.createTransportFile(ordre, head,
        "visma");
    assertNotNull(fileName);
    File file = new File("visma/" + fileName);
    assertEquals(true, file.exists());
View Full Code Here

        stringLines.get(0));
  }

  @Test
  public void testWriteFile() throws Exception {
    final OrdchgrHeadV ordchgrHead = new OrdchgrHeadV();
    ordchgrHead.setOrdNo(1);
    final OrdchgrLineV ordchgrLine = new OrdchgrLineV();
    ordchgrLine.setOrdchgrLineVPK(new OrdchgrLineVPK(1, 10));
    ordchgrLine.setLineStatus(20);
    final List<OrdchgrLineV> lines = new ArrayList<OrdchgrLineV>();
    lines.add(ordchgrLine);
View Full Code Here

TOP

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

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.