Commit e2309bd5 by peema_phongam

candidate print border

parent 17c3b6dc
......@@ -679,7 +679,15 @@
detailHeader.addCell(getCellData("NO PIC", font12N, "", "CENTER", "MIDDLE", 1, 5));
}
document.add(imglogo);
// --------------- new line -----------------
Rectangle rect= new Rectangle(575,780,20,20); // you can resize rectangle
rect.enableBorderSide(1);
rect.enableBorderSide(2);
rect.enableBorderSide(4);
rect.enableBorderSide(8);
rect.setBorderColor(BaseColor.BLACK);
rect.setBorderWidth(1);
document.add(rect);
// --------------- new line -----------------
// --------------- new line -----------------
sizeColumn = new float[]{100.0f};
PdfPTable detail = new PdfPTable(1);
......@@ -1000,6 +1008,14 @@
// PAGE 2
document.newPage();
rect= new Rectangle(575,800,20,41); // you can resize rectangle
rect.enableBorderSide(1);
rect.enableBorderSide(2);
rect.enableBorderSide(4);
rect.enableBorderSide(8);
rect.setBorderColor(BaseColor.BLACK);
rect.setBorderWidth(1);
document.add(rect);
// --------------- new line -----------------
sizeColumn = new float[]{100.0f};
detail = new PdfPTable(1);
......@@ -1607,6 +1623,14 @@
document.add(detail);
// PAGE 3
document.newPage();
rect= new Rectangle(575,800,20,41); // you can resize rectangle
rect.enableBorderSide(1);
rect.enableBorderSide(2);
rect.enableBorderSide(4);
rect.enableBorderSide(8);
rect.setBorderColor(BaseColor.BLACK);
rect.setBorderWidth(1);
document.add(rect);
// --------------- new line -----------------
sizeColumn = new float[]{10.0f,12.0f,10.0f,10.0f,10.0f,10.0f,10.0f,10.0f};
detail = new PdfPTable(8);
......@@ -1727,6 +1751,14 @@
// PAGE 4
document.newPage();
rect= new Rectangle(575,800,20,120); // you can resize rectangle
rect.enableBorderSide(1);
rect.enableBorderSide(2);
rect.enableBorderSide(4);
rect.enableBorderSide(8);
rect.setBorderColor(BaseColor.BLACK);
rect.setBorderWidth(1);
document.add(rect);
// --------------- new line -----------------
sizeColumn = new float[]{100.0f};
detail = new PdfPTable(1);
......@@ -1764,9 +1796,9 @@
content.add(new Chunk(" เคย",font12N));
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
detail.addCell(getCellData("ตำแหน่ง", font12N, "NO", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData(applyStatus?applyPosition:"", font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0,true,false)));
detail.addCell(getCellData(applyStatus?applyPosition:"", font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0,true,false));
detail.addCell(getCellData("ระยะเวลา", font12N, "NO", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData(applyStatus?applyYear:"", font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0,true,false)));
detail.addCell(getCellData(applyStatus?applyYear:"", font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0,true,false));
detail.addCell(getCellData(" เดือน / ปี", font12N, "NO", "LEFT", "MIDDLE", 0, 0));
detail.addCell(getCellData("การรู้จักพนักงานของบริษัทฯนี้ท่าน", font12N, "NO", "LEFT", "MIDDLE", 0, 0));
......@@ -1779,9 +1811,9 @@
content.add(new Chunk(" รู้",font12N));
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
detail.addCell(getCellData("ชื่อ-สกุล", font12N, "NO", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData(companyReference.getString("fullname0"), font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0,true,false)));
detail.addCell(getCellData(companyReference.getString("fullname0"), font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0,true,false));
detail.addCell(getCellData("ตำแหน่ง", font12N, "NO", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData(companyReference.getString("position0"), font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 2, 0,true,false)));
detail.addCell(getCellData(companyReference.getString("position0"), font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 2, 0,true,false));
detail.addCell(getCellData("การเป็นสมาชิกของชมรม / สหภาพ / สโมสรท่าน", font12N, "NO", "LEFT", "MIDDLE", 0, 0));
content = new Phrase();
......@@ -1793,9 +1825,9 @@
content.add(new Chunk(" เคย",font12N));
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
detail.addCell(getCellData("ชื่อสถาบัน", font12N, "NO", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData(tradeStatus?tradeName:"", font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0,true,false)));
detail.addCell(getCellData(tradeStatus?tradeName:"", font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0,true,false));
detail.addCell(getCellData("ตำแหน่ง", font12N, "NO", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData(tradeStatus?tradeRole:"", font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 2, 0,true,false)));
detail.addCell(getCellData(tradeStatus?tradeRole:"", font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 2, 0,true,false));
document.add(detail);
// --------------- new line -----------------shiftwork
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment