Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.TransportCostAddition


          null);
    }
  }

  private void importAddition(final int row, final ExcelUtil excelUtil) {
    TransportCostAddition transportCostAddition = new TransportCostAddition();
    transportCostAddition.setDescription(excelUtil.readCell(row,
        COLUMN_UPDATE_ADDITION_DESCRIPTION, null));
    transportCostAddition.setBasis(excelUtil.readCell(row,
        COLUMN_UPDATE_BASIS, null));
    transportCostAddition.setAddition(excelUtil.readCellAsBigDecimal(row,
        COLUMN_UPDATE_ADDITION_ADDITION));
    transportCostAddition.setMetric(excelUtil.readCell(row,
        COLUMN_UPDATE_METRIC, null));
    transportCostAddition.setTransportBasis(excelUtil.readCellAsInteger(
        row, COLUMN_UPDATE_TRANSPORT_BASIS));
    transportCostAddition.setMemberOfMaxAdditions(excelUtil
        .readCellAsInteger(row, COLUMN_UPDATE_MEMBER_OF_MAX_ADDITIONS));
    transportCostAdditionManager
        .saveTransportCostAddition(transportCostAddition);
  }
View Full Code Here


    URL url = getClass().getClassLoader().getResource(
        "transportpriser_test.xls");
    transportCostManager.updatePricesFromFile(url.getFile());
    TransportCostAdditionManager transportCostAdditionManager = (TransportCostAdditionManager) ModelUtil
        .getBean("transportCostAdditionManager");
    TransportCostAddition transportCostAddition = transportCostAdditionManager
        .findByDescription("BreddeX2+h�ydeX2");
    assertNotNull(transportCostAddition);
  }
View Full Code Here

TOP

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

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.