Package no.ugland.utransprod.util.report

Examples of no.ugland.utransprod.util.report.ReportViewer$MailAction


        if (orderLineSet != null) {
            lazyLoadOrderLines(orderLineSet);
            ArrayListModel orderLines = new ArrayListModel(postShipment
                    .getOrderLines());

            ReportViewer reportViewer = new ReportViewer("Pakkliste");
            reportViewer.generateProtransReportAndShow(new PacklistTableModel(
                    orderLines, orderLines.size(),postShipment), "Pakkliste",
                    ReportEnum.PACKLIST, null, window);
        }
    }
View Full Code Here


      Deviation deviation = ((DeviationModel) presentationModel.getBean())
          .getObject();
      if (deviation != null) {
        labelInfo.setText("Genererer utskrift...");

        ReportViewer reportViewer = new ReportViewer("Avvik",
            mailConfig);

        JDialog dialog = Util.getDialog(owner, "Avvik", true);
        WindowInterface window = new JDialogAdapter(dialog);

        window.add(reportViewer.buildPanel(window));

        try {
          List<Deviation> list = new ArrayList<Deviation>();
          list.add(deviation);
          reportViewer.generateProtransReportFromBean(list, "Avvik",
              ReportEnum.DEVIATION, null, "Avvik "
                  + deviation.getDeviationId() + "_"
                  + Util.getCurrentDateAsDateTimeString()
                  + ".pdf");
          window.pack();
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.util.report.ReportViewer$MailAction

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.