Beispiel #1
0
    /** @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent) */
    public void actionPerformed(ActionEvent arg0) {
      Batchable batch = (Batchable) batchSelectionList.getSelection();
      ExcelUtil excelUtil =
          new ExcelUtil(
              tableModel, "Avstemmingsrapport - " + batch.getFileName(), "Avstemmingsrapport");
      try {
        excelUtil.showDataInExcel(
            directory + "/" + applUser.getUserName() + "/",
            "Avstemming.xls",
            (List<Integer>) null,
            (List<Integer>) null,
            (JLabel) null);

        GuiUtil.showMsgFrame(
            window.getComponent(),
            "Excefil",
            "Dersom ikke excel starter automatisk, ligger excelfil med navn Avstemming.xls"
                + " under katalog "
                + directory
                + "/"
                + applUser.getUserName()
                + "/");
      } catch (FrafException e) {
        e.printStackTrace();
        GuiUtil.showErrorMsgDialog(window.getComponent(), "Feil", e.getMessage());
      }
    }
Beispiel #2
0
  /**
   * Viser rapport
   *
   * @param window
   */
  void showReport(WindowInterface window) {
    GuiUtil.setWaitCursor(window);
    Batchable batch = (Batchable) batchSelectionList.getSelection();
    if (batch != null) {
      List<ReconcilVInterface> lines = reconcilVManager.findByBatchId(batch.getBatchId());

      if (lines != null) {
        reportList.clear();
        reportList.addAll(lines);
      }
    }
    table.packAll();
    GuiUtil.setDefaultCursor(window);
  }