Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.County


  private void importArea(final int row, final ExcelUtil excelUtil)
      throws ProTransException {
    Area area = new Area();
    String areaCode = excelUtil.readCell(row, COLUMN_AREA_AREA_CODE,
        "%1$04.0f");
    County county;
    if (areaCode != null && areaCode.length() > 2) {
      String countyNr = areaCode.substring(0, 2);
      county = countyManager.load(countyNr);
      if (county == null) {
        throw new ProTransException("Fylkesnr " + countyNr
View Full Code Here


          "%1$04.0f");
    }
  }

  private void importCounty(final int row, final ExcelUtil excelUtil) {
    County county = new County();

    county.setCountyNr(excelUtil.readCell(row, COLUMN_COUNTY_COUNTY_NR,
        "%1$04.0f"));
    county.setCountyName(excelUtil.readCell(row, COLUMN_COUNTY_COUNTY_NAME,
        null));
    countyManager.saveCounty(county);
  }
View Full Code Here

  private void importSnowLoad(int row, ExcelUtil excelUtil)
      throws ProTransException {
    Area area = null;
    String areaCode = excelUtil.readCell(row, COLUMN_AREA_AREA_CODE,
        "%1$04.0f");
    County county;
    if (areaCode != null && areaCode.length() > 2) {
      area = areaManager.findByAreaCode(areaCode);
      if (area == null) {
        area = new Area();
        String countyNr = areaCode.substring(0, 2);
View Full Code Here

TOP

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

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.