@Test public void shouldGetRegimenLineItems() throws Exception { PdfPTable regimenTable = requisitionPdfModel.getRegimenTable(); assertRowValues(regimenTable.getRow(0), "name", "code", "patients on treatment", "initiate treatment", "stopped treatment", "remarks"); assertRowValues(regimenTable.getRow(1), " "); assertRowValues(regimenTable.getRow(2), "Category Name"); assertRowValues(regimenTable.getRow(3), "Regimen", "R01", "3", "3", "3", "remarks"); }
public PdfPTable getRegimenTable() throws DocumentException, NoSuchFieldException, IllegalAccessException, IOException { List<RegimenLineItem> regimenLineItems = requisition.getRegimenLineItems(); if (regimenLineItems.size() == 0) return null; return getTableFor(regimenLineItems, null, regimenColumnList); }
RequisitionPdfModel { public PdfPTable getRegimenTable() throws DocumentException, NoSuchFieldException, IllegalAccessException, IOException { List<RegimenLineItem> regimenLineItems = requisition.getRegimenLineItems(); if (regimenLineItems.size() == 0) return null; return getTableFor(regimenLineItems, null, regimenColumnList); } }
RequisitionPdfModel { public PdfPTable getRegimenTable() throws DocumentException, NoSuchFieldException, IllegalAccessException, IOException { List<RegimenLineItem> regimenLineItems = requisition.getRegimenLineItems(); if (regimenLineItems.size() == 0) return null; return getTableFor(regimenLineItems, null, regimenColumnList); } RequisitionPdfModel(Map<String, Object> model, MessageService messageService, ConfigurationSettingService configService); }
RequisitionPdfModel { public PdfPTable getRegimenTable() throws DocumentException, NoSuchFieldException, IllegalAccessException, IOException { List<RegimenLineItem> regimenLineItems = requisition.getRegimenLineItems(); if (regimenLineItems.size() == 0) return null; return getTableFor(regimenLineItems, null, regimenColumnList); } RequisitionPdfModel(Map<String, Object> model, MessageService messageService, ConfigurationSettingService configService); Paragraph getFullSupplyHeader(); Paragraph getNonFullSupplyHeader(); PdfPTable getFullSupplyTable(); PdfPTable getRegimenTable(); PdfPTable getNonFullSupplyTable(); PdfPTable getRequisitionHeader(); PdfPTable getSummary(); Money getTotalCost(Rnr requisition); Paragraph getRegimenHeader(); }
RequisitionPdfModel { public PdfPTable getRegimenTable() throws DocumentException, NoSuchFieldException, IllegalAccessException, IOException { List<RegimenLineItem> regimenLineItems = requisition.getRegimenLineItems(); if (regimenLineItems.size() == 0) return null; return getTableFor(regimenLineItems, null, regimenColumnList); } RequisitionPdfModel(Map<String, Object> model, MessageService messageService, ConfigurationSettingService configService); Paragraph getFullSupplyHeader(); Paragraph getNonFullSupplyHeader(); PdfPTable getFullSupplyTable(); PdfPTable getRegimenTable(); PdfPTable getNonFullSupplyTable(); PdfPTable getRequisitionHeader(); PdfPTable getSummary(); Money getTotalCost(Rnr requisition); Paragraph getRegimenHeader(); static final String LABEL_CURRENCY_SYMBOL; static final float PARAGRAPH_SPACING; static final BaseColor ROW_GREY_BACKGROUND; static final Font H1_FONT; static final SimpleDateFormat DATE_FORMAT; static final int TABLE_SPACING; }