|
|
@@ -314,67 +314,18 @@ public class LocalSysFileServiceImpl implements ISysFileService {
|
|
|
final PdfPTable table = pdfTableVo.getTable();
|
|
|
final BaseFont fs = pdfTableVo.getFs();
|
|
|
final Font tableFont = pdfTableVo.getTableFont();
|
|
|
- Font font = new Font(fs, 9, Font.NORMAL);
|
|
|
- PdfUtil.dealHeader(document, fs, "监控点阅情况登记簿", 14);
|
|
|
+
|
|
|
+ PdfUtil.dealHeader(document, fs, "监控调阅情况登记簿", 14);
|
|
|
String checkTime = data.getTaskStartTime();
|
|
|
String checkUser = data.getCheckUser();
|
|
|
|
|
|
- PdfPCell orgCell = new PdfPCell(new Phrase("调阅单位", font));
|
|
|
- orgCell.setColspan(8);
|
|
|
- orgCell.setRowspan(1);
|
|
|
- orgCell.setBorder(Rectangle.NO_BORDER);
|
|
|
- orgCell.setHorizontalAlignment(Element.ALIGN_CENTER);
|
|
|
-
|
|
|
- PdfPCell orgNameCell = new PdfPCell(new Phrase(data.getOrgName(), font));
|
|
|
- orgNameCell.setColspan(15);
|
|
|
- orgNameCell.setRowspan(1);
|
|
|
- orgNameCell.setBorder(Rectangle.NO_BORDER);
|
|
|
- orgNameCell.setHorizontalAlignment(Element.ALIGN_CENTER);
|
|
|
-
|
|
|
- PdfPCell userCell = new PdfPCell(new Phrase("调阅人", font));
|
|
|
- userCell.setColspan(8);
|
|
|
- userCell.setRowspan(1);
|
|
|
- userCell.setBorder(Rectangle.NO_BORDER);
|
|
|
- userCell.setHorizontalAlignment(Element.ALIGN_RIGHT);
|
|
|
-
|
|
|
- PdfPCell userNameCell = new PdfPCell(new Phrase(checkUser, font));
|
|
|
- userNameCell.setColspan(15);
|
|
|
- userNameCell.setRowspan(1);
|
|
|
- userNameCell.setBorder(Rectangle.NO_BORDER);
|
|
|
- userNameCell.setHorizontalAlignment(Element.ALIGN_RIGHT);
|
|
|
-
|
|
|
- PdfPCell timeNameCell = new PdfPCell(new Phrase("调阅时间", font));
|
|
|
- timeNameCell.setColspan(9);
|
|
|
- timeNameCell.setRowspan(1);
|
|
|
- timeNameCell.setBorder(Rectangle.NO_BORDER);
|
|
|
- timeNameCell.setHorizontalAlignment(Element.ALIGN_RIGHT);
|
|
|
-
|
|
|
- PdfPCell timeCell = new PdfPCell(new Phrase(checkTime, font));
|
|
|
- timeCell.setColspan(37);
|
|
|
- timeCell.setRowspan(1);
|
|
|
- timeCell.setBorder(Rectangle.NO_BORDER);
|
|
|
- timeCell.setHorizontalAlignment(Element.ALIGN_RIGHT);
|
|
|
-
|
|
|
- /* PdfPCell findCell = new PdfPCell(new Phrase("发现问题情况", font));
|
|
|
- findCell.setColspan(46);
|
|
|
- findCell.setRowspan(1);
|
|
|
- findCell.setBorder(Rectangle.NO_BORDER);
|
|
|
- findCell.setHorizontalAlignment(Element.ALIGN_RIGHT);*/
|
|
|
-
|
|
|
-/* table.addCell(orgCell);
|
|
|
- table.addCell(orgNameCell);
|
|
|
- table.addCell(userCell);
|
|
|
- table.addCell(userNameCell);
|
|
|
- table.addCell(timeNameCell);
|
|
|
- table.addCell(timeCell);*/
|
|
|
- // table.addCell(findCell);
|
|
|
Font titleFont = new Font(fs, 8, Font.NORMAL);
|
|
|
- PdfUtil.createPDFCell(titleFont, table, "调阅单位", Element.ALIGN_MIDDLE, 8, 0);
|
|
|
- PdfUtil.createPDFCell(titleFont, table, data.getOrgName(), Element.ALIGN_MIDDLE, 15, 0);
|
|
|
+ PdfUtil.createPDFCell(titleFont, table, "调阅单位", Element.ALIGN_MIDDLE, 10, 0);
|
|
|
+ PdfUtil.createPDFCell(titleFont, table, data.getOrgName(), Element.ALIGN_MIDDLE, 13, 0);
|
|
|
PdfUtil.createPDFCell(titleFont, table, "调阅人", Element.ALIGN_MIDDLE, 8, 0);
|
|
|
PdfUtil.createPDFCell(titleFont, table, checkUser, Element.ALIGN_MIDDLE, 15, 0);
|
|
|
- PdfUtil.createPDFCell(titleFont, table, "调阅时间", Element.ALIGN_MIDDLE, 9, 0);
|
|
|
- PdfUtil.createPDFCell(titleFont, table, checkTime, Element.ALIGN_MIDDLE, 37, 0);
|
|
|
+ PdfUtil.createPDFCell(titleFont, table, "调阅时间", Element.ALIGN_MIDDLE, 10, 0);
|
|
|
+ PdfUtil.createPDFCell(titleFont, table, checkTime, Element.ALIGN_MIDDLE, 36, 0);
|
|
|
PdfUtil.createPDFCell(titleFont, table, "发现问题情况", Element.ALIGN_MIDDLE, 46, 0);
|
|
|
PdfUtil.dealAccessPBody(document, table, tableFont, titleFont, data.getDataVos());
|
|
|
document.close();
|