|
|
@@ -234,7 +234,7 @@ public class PDFSelfUtil {
|
|
|
public static int generateEPDF(Document document, OrderSelfNote receivingNote, boolean flag) throws Exception {
|
|
|
// 段落
|
|
|
Paragraph paragraph;
|
|
|
- paragraph = new Paragraph("客 户 自 提 委 托 书", titlefont);
|
|
|
+ paragraph = new Paragraph(/*"客 户 自 提 委 托 书", titlefont*/);
|
|
|
paragraph.setAlignment(1); //设置文字居中 0靠左 1,居中 2,靠右
|
|
|
paragraph.setIndentationLeft(12); //设置左缩进
|
|
|
paragraph.setIndentationRight(12); //设置右缩进
|
|
|
@@ -295,16 +295,27 @@ public class PDFSelfUtil {
|
|
|
Calendar calendar = Calendar.getInstance();
|
|
|
calendar.setTime(date);
|
|
|
// 表格
|
|
|
- PdfPTable table = createTable(new float[] { 160, 60, 60,60});
|
|
|
+ PdfPTable table = createTable(new float[] { 80, 80, 80, 80, 80, 80 ,80,80});
|
|
|
+ table.addCell(createCell("客 户 自 提 委 托 书", headfont, Element.ALIGN_CENTER, 8, false));
|
|
|
+
|
|
|
+
|
|
|
+ /* PdfPTable table = createTable(new float[] { 160, 60, 60,60});
|
|
|
table.addCell(createCell("委托人(名称): " +receivingNote.getEntrustName()+"\n\n"+
|
|
|
"受托(提货)人:姓名: " +receivingNote.getBeentrustName()+" 身份证号码: " +receivingNote.getbId()+" 车牌: " +receivingNote.getCarNumber()+"\n\n"+
|
|
|
" 委托人委托受托人于 "+calendar.get(Calendar.YEAR)+" 年 "+(calendar.get(Calendar.MONTH)+1)+"月"+calendar.get(Calendar.DATE)+" 日 "+" 来贵司提取交货单号为 "+receivingNote.getDeliveryNumber()+" 上所载明的货物。"+"\n\n"+
|
|
|
" 特此委托!。"+"\n\n\n\n"+
|
|
|
- " 委托人: "+receivingNote.getEntrustName()+"\n\n"+
|
|
|
- "受托(提货)人:"+receivingNote.getBeentrustName()+"\n\n", keyfont, Element.ALIGN_LEFT, 2, false));
|
|
|
-
|
|
|
- // table.addCell(createCell(" 委托人:"+receivingNote.getEntrustName(), keyfont, Element.ALIGN_LEFT, 8, false));
|
|
|
- // table.addCell(createCell(" 受托(提货)人:"+receivingNote.getBeentrustName(), keyfont, Element.ALIGN_LEFT, 9, false));
|
|
|
+ " 委托人: "+receivingNote.getEntrustName()+"\n\n", keyfont, Element.ALIGN_LEFT, 2, false));
|
|
|
+
|
|
|
+
|
|
|
+*/ table.addCell(createCell(" 委托人(名称):姓名: "+receivingNote.getEntrustName(), keyfont, Element.ALIGN_LEFT, 7, false));
|
|
|
+ table.addCell(createCell(" 受托(提货)人:姓名: "+receivingNote.getBeentrustName(), keyfont, Element.ALIGN_LEFT, 7, false));
|
|
|
+ table.addCell(createCell(" 身份证号码: "+receivingNote.getbId(), keyfont, Element.ALIGN_LEFT, 7, false));
|
|
|
+ table.addCell(createCell(" 车牌: "+receivingNote.getCarNumber(), keyfont, Element.ALIGN_LEFT, 7, false));
|
|
|
+ table.addCell(createCell(" 委托人委托受托人于 "+calendar.get(Calendar.YEAR)+" 年 "+(calendar.get(Calendar.MONTH)+1)+"月"+calendar.get(Calendar.DATE)+" 日 ", keyfont, Element.ALIGN_LEFT, 8, false));
|
|
|
+ table.addCell(createCell(" 来贵司提取交货单号为 "+receivingNote.getDeliveryNumber()+" 上所载明的货物。", textfont, Element.ALIGN_CENTER, 11, false));
|
|
|
+ table.addCell(createCell(" 特此委托! ", keyfont, Element.ALIGN_LEFT, 7, false));
|
|
|
+ table.addCell(createCell(" 委托人:"+receivingNote.getEntrustName(), keyfont, Element.ALIGN_LEFT, 8, false));
|
|
|
+ table.addCell(createCell(" 受托(提货)人:"+receivingNote.getBeentrustName(), keyfont, Element.ALIGN_LEFT, 9, false));
|
|
|
table.addCell(createCell(calendar.get(Calendar.YEAR)+"年"+(calendar.get(Calendar.MONTH)+1)+"月"+calendar.get(Calendar.DATE)+"日", keyfont, Element.ALIGN_RIGHT, 10, false));
|
|
|
table.addCell(createCell("委托人盖章:", keyfont, Element.ALIGN_RIGHT, 11, false));
|
|
|
document.add(paragraph1);
|
|
|
@@ -313,7 +324,7 @@ public class PDFSelfUtil {
|
|
|
"2、本委托书必须注明立邦公司交货单号。\n" +
|
|
|
"3、本委托书必须盖有与销售合同中预留相一致的印章。\n" +
|
|
|
"4、仓库不接受传真的公章印鉴(外埠客户因特殊原因自提时,携带的传真件必须得到当地办事处相关人员确认后方为有效)。\n" +
|
|
|
- "5、本委托书自委托人确定的提货日期后的十日内有效。", keyfont, Element.ALIGN_LEFT, 12, false));
|
|
|
+ "5、本委托书自委托人确定的提货日期后的十日内有效。", textfont, Element.ALIGN_LEFT, 12, false));
|
|
|
|
|
|
|
|
|
document.add(table);
|
|
|
@@ -706,7 +717,7 @@ public class PDFSelfUtil {
|
|
|
* 创建空白的表格
|
|
|
* @return
|
|
|
*/
|
|
|
- public PdfPTable createBlankTable() {
|
|
|
+ public static PdfPTable createBlankTable() {
|
|
|
PdfPTable table = new PdfPTable(1);
|
|
|
table.getDefaultCell().setBorder(0);
|
|
|
table.addCell(createCell("", keyfont));
|