Package com.suarte.reports

Examples of com.suarte.reports.InvoiceFormatToPdf


            response.setContentType("application/pdf");

            id = Long.valueOf(request.getParameter("id"));
            Invoice invoice = invoiceManager.get(id);

            InvoiceFormatToPdf pdf = new InvoiceFormatToPdf();
            pdf.write(invoice, response.getOutputStream());

            response.getOutputStream().close();
        }

        if (myType.equals("quotation")) {
            response.setContentType("application/pdf");

            id = Long.valueOf(request.getParameter("id"));
            Quotation quotation = quotationManager.get(id);

            QuotationToPdf pdf = new QuotationToPdf();
            pdf.write(quotation, response.getOutputStream());

            response.getOutputStream().close();
        }

        if (myType.equals("receipt")) {
            response.setContentType("application/pdf");

            id = Long.valueOf(request.getParameter("id"));
            Payment payment = paymentManager.get(id);

            ReceiptFormatToPdf pdf = new ReceiptFormatToPdf();
            pdf.write(payment, response.getOutputStream());

            response.getOutputStream().close();
        }
    }
View Full Code Here

TOP

Related Classes of com.suarte.reports.InvoiceFormatToPdf

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.