Changeset 5854


Ignore:
Timestamp:
Mar 6, 2020, 3:38:13 PM (21 months ago)
Author:
olle
Message:

Refs #1029. FFPE section order form generation updated have bar code and text at upper left show PAD number + "_" + material number:

  1. Java servlet class/file ReferralGeneratorServlet.java in src/net/sf/basedb/meludi/servlet/ updated in private method PdfUtil createFfpeSectionOrderForm(DbControl dc, PdfUtil pdfUtil, File pdfFile, List<String> itemIdList, List<String> formTemplateFileList) to have bar code and text at upper left show PAD number + "_" + material number.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.meludi/trunk/src/net/sf/basedb/meludi/servlet/ReferralGeneratorServlet.java

    r5744 r5854  
    20432043          materialNumber = "";
    20442044        }
     2045        String combinedPadMaterialNumber = pad + "_" + materialNumber;
    20452046        System.out.println("ReferralGeneratorServlet::createFfpeSectionOrderForm(): i = " + i + " materialNumber = " + materialNumber + " pad = " + pad);
    20462047        String yellowLabel = (String) Annotationtype.YELLOW_LABEL.getAnnotationValue(dc, manager, ffpeBlock.getSample());
     
    20582059        float height = 16.0f;
    20592060
     2061/*
    20602062        // Barcode with PAD number at upper left
    20612063        text = pad;
     
    20662068       
    20672069        // PAD number below bar code at upper left
     2070        float xTextUpperLeft = xBarcodeUpperLeft;
     2071        float yTextUpperLeft = yBarcodeUpperLeft - 10.0f;
     2072        pdfUtil.addBoldText(text, textFontSize, align, xTextUpperLeft, yTextUpperLeft);
     2073*/
     2074
     2075        // Barcode with combined PAD/Material number at upper left
     2076        text = combinedPadMaterialNumber;
     2077        float xBarcodeUpperLeft = 120.0f;
     2078        float yBarcodeUpperLeft = yBarcodeUpperRight;
     2079        align = Element.ALIGN_LEFT;
     2080        pdfUtil.addBarcode(text, xBarcodeUpperLeft, yBarcodeUpperLeft, width, height, align);
     2081       
     2082        // Combined PAD/Material number below bar code at upper left
    20682083        float xTextUpperLeft = xBarcodeUpperLeft;
    20692084        float yTextUpperLeft = yBarcodeUpperLeft - 10.0f;
Note: See TracChangeset for help on using the changeset viewer.