Package no.ugland.utransprod

Examples of no.ugland.utransprod.ProTransException


          new FileInputStream(excelFile));
      HSSFWorkbook workbook = new HSSFWorkbook(fileSystem);
      readSheet = workbook.getSheetAt(0);
    } catch (FileNotFoundException e) {
      e.printStackTrace();
      throw new ProTransException(e);
    } catch (IOException e) {
      e.printStackTrace();
      throw new ProTransException(e);
    }
  }
View Full Code Here


  public final void showDataInExcelTransport(final String directory,
      final String fileName, final JLabel labelInfo,
      final Map<Transport, TransportOrderTableModel> tableModels)
      throws ProTransException {
    if (directory == null || directory.length() == 0) {
      throw new ProTransException("Katalog ikke satt");
    }
    String infoString = "Genererer excel-fil...rad ";
    HSSFWorkbook wb = new HSSFWorkbook();

    HSSFSheet sheet;
View Full Code Here

      final String fileName,
      final JLabel labelInfo,
      final Map<Integer, Map<Transport, TransportOverviewTableModel>> tableModels)
      throws ProTransException {
    if (directory == null || directory.length() == 0) {
      throw new ProTransException("Katalog ikke satt");
    }
    String infoString = "Genererer excel-fil...rad ";
    HSSFWorkbook wb = new HSSFWorkbook();

    HSSFSheet sheet;
View Full Code Here

      final Integer groupColumn, final List<Integer> notVisibleColumns,
      final Integer groupSumValueColumn, final Integer groupSumColumn,
      final Integer groupResultColumn, final boolean wrapText)
      throws ProTransException {
    if (directory == null || directory.length() == 0) {
      throw new ProTransException("Katalog ikke satt");
    }
    int notVisibleColumnsSize = 0;
    // dersom kolonner skal v�re usynlige m� disse trekkes fra ved laging av
    // celler
    if (notVisibleColumns != null) {
View Full Code Here

  }

  private File getFile(final String fileName) throws ProTransException {
    File file = new File(fileName);
    if (!file.exists()) {
      throw new ProTransException("Fil " + fileName + " finnes ikke!");
    }
    return file;
  }
View Full Code Here

      Desktop.open(excelFile);
      // Runtime.getRuntime().exec(cmd);
    } catch (DesktopException de) {
      LOGGER.error("Feil ved visning av exceldata", de);
      de.printStackTrace();
      throw new ProTransException(de);
    }/*
     * catch (IOException e) { LOGGER.error("Feil ved visning av exceldata",
     * e); e.printStackTrace(); throw new ProTransException(e); }
     */
  }
 
View Full Code Here

      fileOut.close();

    } catch (FileNotFoundException e) {
      LOGGER.error("Feil ved visning av exceldata", e);
      e.printStackTrace();
      throw new ProTransException(e);
    } catch (IOException e) {
      LOGGER.error("Feil ved visning av exceldata", e);
      e.printStackTrace();
      throw new ProTransException(e);
    }
  }
View Full Code Here

      final String heading,
      final Map<ExcelReportEnum, ExcelReportData> excelReportData,
      final int headFontSize, final boolean useUniqueFileName)
      throws ProTransException {
    if (directory == null || directory.length() == 0) {
      throw new ProTransException("Katalog ikke satt");
    }

    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet sheet = wb.createSheet("sheet");
View Full Code Here

      throws ProTransException {
    int currentRow = currentRowNumber;
    int startCell = cellStart;
    Integer groupSumColumn = sumGroupColumn;
    if (excelSheet == null) {
      throw new ProTransException("Sheet er ikke laget");
    }
    if (!allwaysShowHeading && table.getRowCount() == 0) {
      return currentRow;
    }
    String infoString = "Genererer excel-fil...rad ";
View Full Code Here

    } else if (colLetter.equalsIgnoreCase("T")) {
      return 19;
    } else if (colLetter.equalsIgnoreCase("U")) {
      return 20;
    } else {
      throw new ProTransException("Kolonne ikke definert");
    }

  }
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.ProTransException

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.