| | |
| | | paragraph.setLeading(5f); |
| | | document1.add(ppp); |
| | | } |
| | | } else { |
| | | } |
| | | // 碳14 |
| | | // else if (value.get(0).getPid().equals("1870371396991955967")){ |
| | | // Font remarkFonts = PdfUtils.setFont(DEFAULT_FONT_SIZE); |
| | | // Paragraph ppp = new Paragraph("阳性参考值(Delta Over Baseline(DPM)):", remarkFonts); |
| | | // paragraph.setAlignment(Element.ALIGN_LEFT); |
| | | // paragraph.setLeading(5f); |
| | | // document1.add(ppp); |
| | | // |
| | | // LineSeparator objectName = new LineSeparator(); |
| | | // objectName.setOffset(-5); |
| | | // document1.add(objectName); |
| | | // |
| | | // ppp = new Paragraph("DPM值: > 149 阳性", remarkFonts); |
| | | // paragraph.setAlignment(Element.ALIGN_LEFT); |
| | | // paragraph.setLeading(5f); |
| | | // document1.add(ppp); |
| | | // |
| | | // ppp = new Paragraph(" ⩽ 99 阴性", remarkFonts); |
| | | // paragraph.setAlignment(Element.ALIGN_LEFT); |
| | | // paragraph.setLeading(5f); |
| | | // document1.add(ppp); |
| | | // |
| | | // objectName.setOffset(-5); |
| | | // document1.add(objectName); |
| | | // |
| | | // |
| | | // int result = Integer.parseInt(value.get(0).getProResult()); |
| | | // String after = ""; |
| | | // if (result > 149){ |
| | | // after = "阳性"; |
| | | // }else { |
| | | // after = "阴性"; |
| | | // } |
| | | // ppp = new Paragraph("检测结果: DPM=" + result, remarkFonts); |
| | | // paragraph.setAlignment(Element.ALIGN_LEFT); |
| | | // paragraph.setLeading(5f); |
| | | // document1.add(ppp); |
| | | // |
| | | // ppp = new Paragraph("", remarkFonts); |
| | | // paragraph.setAlignment(Element.ALIGN_LEFT); |
| | | // paragraph.setLeading(5f); |
| | | // document1.add(ppp); |
| | | // ppp = new Paragraph("", remarkFonts); |
| | | // paragraph.setAlignment(Element.ALIGN_LEFT); |
| | | // paragraph.setLeading(5f); |
| | | // document1.add(ppp); |
| | | // if (StrUtil.isNotBlank(entry.getKey().getRemark())) { |
| | | // ppp = new Paragraph("结论:" + entry.getKey().getRemark(), remarkFonts); |
| | | // paragraph.setAlignment(Element.ALIGN_LEFT); |
| | | // paragraph.setLeading(5f); |
| | | // document1.add(ppp); |
| | | // } |
| | | // } |
| | | else { |
| | | String[] titles = {"体检项目", "体检结果", "单位"}; |
| | | Font headFont = PdfUtils.setFont(DEFAULT_FONT_SIZE); |
| | | Font textFont = PdfUtils.setFont(DEFAULT_FONT_SIZE); |