|
@@ -20,6 +20,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.itextpdf.text.Document;
|
|
|
+import com.itextpdf.text.Element;
|
|
|
import com.itextpdf.text.PageSize;
|
|
|
import com.itextpdf.text.Rectangle;
|
|
|
import com.itextpdf.text.pdf.PdfPCell;
|
|
@@ -190,7 +191,8 @@ public class QySecondlineWarehouseServiceImpl extends ServiceImpl<QySecondlineWa
|
|
|
pdfPTable.addCell(firstHead);
|
|
|
|
|
|
//设置账册编号
|
|
|
- PdfPCell accountCodeCell = CommonPdfUtil.createCenterPdfPCell(qySecondlineWarehouse.getAccountCode(), 1, 7, CommonPdfUtil.NORMALFONT);
|
|
|
+ PdfPCell accountCodeCell = CommonPdfUtil.createCenterPdfPCell("NO:"+ qySecondlineWarehouse.getAccountCode(), 1, 7, CommonPdfUtil.NORMALFONT);
|
|
|
+ accountCodeCell.setHorizontalAlignment(Element.ALIGN_RIGHT);
|
|
|
pdfPTable.addCell(accountCodeCell);
|
|
|
|
|
|
//设置二级表头
|
|
@@ -230,8 +232,11 @@ public class QySecondlineWarehouseServiceImpl extends ServiceImpl<QySecondlineWa
|
|
|
pdfPTable.addCell(remarkCell);
|
|
|
}
|
|
|
PdfPCell amountCell = CommonPdfUtil.createCenterPdfPCell("合计",1, 2, CommonPdfUtil.NORMALFONT);
|
|
|
+ amountCell.setHorizontalAlignment(Element.ALIGN_LEFT);
|
|
|
PdfPCell companyNameCell = CommonPdfUtil.createCenterPdfPCell("单位: " + qySecondlineWarehouse.getCompanyName() ,1, 3, CommonPdfUtil.NORMALFONT);
|
|
|
+ companyNameCell.setHorizontalAlignment(Element.ALIGN_LEFT);
|
|
|
PdfPCell creatorCell = CommonPdfUtil.createCenterPdfPCell("制单人: "+qySecondlineWarehouse.getCreator(),1, 2, CommonPdfUtil.NORMALFONT);
|
|
|
+ creatorCell.setHorizontalAlignment(Element.ALIGN_LEFT);
|
|
|
|
|
|
pdfPTable.addCell(amountCell);
|
|
|
pdfPTable.addCell(companyNameCell);
|