Package cli_fmw.report

Examples of cli_fmw.report.CombinedReportOptions


*/
public class PrintCreators {
   
    public static CombinedReportCreator createCombinedReportHeader(Class clazz) {
        CombinedReportCreator parCreator = ReporterFactory.createCombinedReporter(clazz, 1);
        CombinedReportOptions ops = new CombinedReportOptions();
        ops.setPageA5();       
        ops.setOrentation(PageOrentation.horizontal);
        ops.leftMargin =0;
        ops.rightMargin = 0;
        parCreator.setUpReport(null, ops, null);

        FormReportCreator creator;
View Full Code Here


    @Override
    public void print() {
        try {
            if (readyForPrint()) {
                CombinedReportCreator parCreator = ReporterFactory.createCombinedReporter(getClass(), 1);
                CombinedReportOptions ops = new CombinedReportOptions();
                ops.topMargin =0;
                ops.bottomMargin = 0;
                ops.leftMargin =0;
                ops.rightMargin = 0;
                ops.setPageA5();
                ops.setOrentation(PageOrentation.horizontal);
                parCreator.setUpReport(null, ops, null);
                followUpLocal.print(parCreator);
                parCreator.finish();
            }
        } catch (ClipsException ex) {
View Full Code Here

    @Override
    public void print() {
        try {
            if (readyForPrint()) {
                CombinedReportCreator parCreator = ReporterFactory.createCombinedReporter(getClass(), 1);
                CombinedReportOptions ops = new CombinedReportOptions();
                ops.topMargin =0;
                ops.bottomMargin = 0;
                ops.leftMargin =0;
                ops.rightMargin = 0;
                ops.setPageA5();
                ops.setOrentation(PageOrentation.vertical);
                parCreator.setUpReport(null, ops, null);
                prescription.print(parCreator);
                parCreator.finish();
            }
        } catch (ClipsException ex) {
View Full Code Here

    reports.add(report);
  }

  @Override
  public CombinedReportOptions getOptions() {
    CombinedReportOptions        opt = super.getOptions();
    if (opt == null) {
      opt = new CombinedReportOptions();
      setOptions(opt);
    }
    return opt;
  }
View Full Code Here

    @Override
    public void print() {
        try {
            if (readyForPrint()) {
                CombinedReportCreator parCreator = ReporterFactory.createCombinedReporter(getClass(), 1);
                CombinedReportOptions ops = new CombinedReportOptions();
                ops.topMargin =0;
                ops.bottomMargin = 0;
                ops.leftMargin =0;
                ops.rightMargin = 0;
                ops.setPageA5();
                ops.setOrentation(PageOrentation.horizontal);
                parCreator.setUpReport(null, ops, null);

                emcLocal.getClient().print(parCreator);
                parCreator.finish();
            }
View Full Code Here

                }
                else {
                    collab = collabs.get(0);
                }
                CombinedReportCreator parCreator = ReporterFactory.createCombinedReporter(getClass(), 1);
                CombinedReportOptions ops = new CombinedReportOptions();
                ops.topMargin =0;
                ops.bottomMargin = 0;
                ops.leftMargin =0;
                ops.rightMargin = 0;
                ops.setPageA5();
                ops.setOrentation(PageOrentation.horizontal);
                parCreator.setUpReport(null, ops, null);

                diseaseLocal.formPrintFields(collab);
                diseaseLocal.print(parCreator);
                parCreator.finish();
View Full Code Here

                if (!serRenLocal.isRendered()) {
                    MessageBox.showInfo("Услуга не оказана");
                    return;
                }
                CombinedReportCreator parCreator = ReporterFactory.createCombinedReporter(getClass(), 1);
                CombinedReportOptions ops = new CombinedReportOptions();
                ops.topMargin =0;
                ops.bottomMargin = 0;
                ops.leftMargin =0;
                ops.rightMargin = 0;
                ops.setPageA5();
                ops.setOrentation(PageOrentation.horizontal);
                parCreator.setUpReport(null, ops, null);

                DiseaseLocal diseaseLocal = serRenLocal.getDiseaseLocal();

                diseaseLocal.formPrintFields(serRenLocal.getCollaboratorFunctions());
View Full Code Here

                }
                else {
                    collab = collabs.get(0);
                }
                CombinedReportCreator parCreator = ReporterFactory.createCombinedReporter(getClass(), 1);
                CombinedReportOptions ops = new CombinedReportOptions();
                ops.topMargin =0;
                ops.bottomMargin = 0;
                ops.leftMargin =0;
                ops.rightMargin = 0;
                ops.setPageA5();
                ops.setOrentation(PageOrentation.horizontal);
                parCreator.setUpReport(null, ops, null);

                diseaseLocal.formPrintFields(collab);
                diseaseLocal.print(parCreator);
                parCreator.finish();
View Full Code Here

    if (list.isEmpty()) {
        return;
    }

    CombinedReportCreator parCreator = ReporterFactory.createCombinedReporter(getClass(), 1);
    CombinedReportOptions options = new CombinedReportOptions();
    options.setPageA5();
    options.setOrentation(PageOrentation.horizontal);
    options.leftMargin = 0;
    options.rightMargin = 0;
    options.subReportNewPageType = CombinedReportOptions.NewPageType.beginNotFirst;
    parCreator.setUpReport(null, options, null);

    try {
        for (int i = 0; i < list.size(); i++) {
            if (list.get(i) instanceof DelegatePrintable) {
                DelegatePrintable del = (DelegatePrintable) list.get(i);
                if (del instanceof SerRenLocal || del instanceof DiseaseLocal || del instanceof EmcLocal || del instanceof FollowupLocal) {
                    del.print(parCreator);
                } else {
                    CombinedReportCreator subCreator = parCreator.createCombinedReporter(getClass(), 2);
                    CombinedReportOptions ops = new CombinedReportOptions();
                    ops.leftMargin = 0;
                    ops.rightMargin = 0;
                    ops.topMargin = 0;
                    ops.bottomMargin = 0;
                    subCreator.setUpReport(null, ops, null);
View Full Code Here

                if (innerPage != null) {
                    ((Printable)innerPage).print();
                }
                else {
                    CombinedReportCreator parCreator = ReporterFactory.createCombinedReporter(getClass(), 1);
                    CombinedReportOptions ops = new CombinedReportOptions();
                    ops.topMargin =0;
                    ops.bottomMargin = 0;
                    ops.leftMargin =0;
                    ops.rightMargin = 0;
                    ops.setPageA5();
                    ops.setOrentation(PageOrentation.horizontal);
                    parCreator.setUpReport(null, ops, null);

                    emcLocal.getClient().print(parCreator);
                    parCreator.finish();
                }
View Full Code Here

TOP

Related Classes of cli_fmw.report.CombinedReportOptions

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.