|
@@ -1,16 +1,13 @@
|
|
|
package com.dgtly.wxportal.utils.pdf;
|
|
|
|
|
|
-import com.dgtly.system.domain.MetaHanaSalesOrder;
|
|
|
-import com.dgtly.system.service.IMetaHanaSalesOrderService;
|
|
|
+import com.dgtly.wxportal.domain.EMetaHanaSalesOrder;
|
|
|
import com.itextpdf.text.*;
|
|
|
import com.itextpdf.text.pdf.*;
|
|
|
import com.itextpdf.text.pdf.draw.DottedLineSeparator;
|
|
|
import com.itextpdf.text.pdf.draw.LineSeparator;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
|
import java.io.File;
|
|
|
import java.io.FileOutputStream;
|
|
|
-import java.math.BigInteger;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -229,7 +226,7 @@ public class PDFUtil {
|
|
|
|
|
|
|
|
|
|
|
|
- public static void generateEPDF(Document document,String name,String docNumber,List<MetaHanaSalesOrder> metaHanaSalesOrders) throws Exception {
|
|
|
+ public static void generateEPDF(Document document,String name,String docNumber,List<EMetaHanaSalesOrder> metaHanaSalesOrders) throws Exception {
|
|
|
// 段落
|
|
|
Paragraph paragraph = new Paragraph("立 邦 随 身 邦 收 货 单", titlefont);
|
|
|
paragraph.setAlignment(1); //设置文字居中 0靠左 1,居中 2,靠右
|
|
@@ -296,7 +293,7 @@ public class PDFUtil {
|
|
|
// table.addCell(createCell("未交货数量", keyfont, Element.ALIGN_CENTER));
|
|
|
// table.addCell(createCell("发货数量", keyfont, Element.ALIGN_CENTER));
|
|
|
// table.addCell(createCell("已收货数量", keyfont, Element.ALIGN_CENTER));
|
|
|
- for (MetaHanaSalesOrder metaHanaSalesOrder1:metaHanaSalesOrders) {
|
|
|
+ for (EMetaHanaSalesOrder metaHanaSalesOrder1:metaHanaSalesOrders) {
|
|
|
table.addCell(createCell(metaHanaSalesOrder1.getMaterialName(), textfont));
|
|
|
table.addCell(createCell(metaHanaSalesOrder1.getSizeDim(), textfont));
|
|
|
table.addCell(createCell(metaHanaSalesOrder1.getDeliverQty().toString(), textfont));
|