Commit cefafbc7 by peema_phongam

DHAS print PDF

parent e9fab2c2
......@@ -734,22 +734,22 @@
setPaddingBottom(4.5f);
detail.addCell(getCellData("ผู้ผลิต และผู้แทนจำหน่าย เครื่องเขียน กระดาษ วัสดุอุปกรณ์สำนักงาน และช่างเขียน", font14B, "NO", "LEFT", "TOP", 3, 0));
detail.addCell(getCellData("สำนักงานสุรวงศ์", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("เลขที่ 210", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("ถ.สุรวงศ์ บางรัก กรุงเทพฯ 10500 โทร. 0-2237-0500 โทรสาร 0-2236-9703", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData(" เลขที่ 202", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("ถ.สุรวงศ์ บางรัก กรุงเทพฯ 10500 โทร. 0-2668-0123", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("โรงงานนวนคร", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("เลขที่ 101/27", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("นิคมอุตสาหกรรม นวนคร โครงการ 1 ต.คลองหนึ่ง อ.คลองหลวง จ.ปทุมธานี 12120 โทร. 0-2529-4747", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData(" เลขที่ 101/27", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("นิคมอุตสาหกรรม นวนคร โครงการ 1 ต.คลองหนึ่ง อ.คลองหลวง จ.ปทุมธานี 12120 โทร. 0-2668-0123", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("โรงงานโรจนะ", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("เลขที่ 21/11 หมูที่9", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("สวนอุตสาหกรรมโรจนะ ต.านหาม อ.อุทัย จ.พระนครศรีอยุธยา 13210 โทร. 035-746-500-18", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData(" เลขที่ 21/11 ม.9", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("สวนอุตสาหกรรมโรจนะ ต.านหาม อ.อุทัย จ.พระนครศรีอยุธยา 13210 โทร. 0-2668-0123", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("DC2(โรงงาน 2 เดิม)", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("เลขที่ 60/67", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("นิคมอุตสาหกรรม นวนคร โครงการ 2 ต.คลองหนึ่ง อ.คลองหลวง จ.ปทุมธานี 12120 โทร. 0-2529-1732", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData(" เลขที่ 60/67", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("นิคมอุตสาหกรรม นวนคร โครงการ 2 ต.คลองหนึ่ง อ.คลองหลวง จ.ปทุมธานี 12120 โทร. 0-2668-0123", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("ศูนย์คลังสินค้าและบริการ เลขที่ 94 หมู่ที่ 15 ต.บางพลีใหญ่ อ.บางพลี จ.สมุทรปราการ 10540 โทร. 0-2750-1540", font12N, "NO", "LEFT", "TOP", 3, 0));
detail.addCell(getCellData("ศูนย์คลังสินค้าและบริการ เลขที่ 94 ม.15 ต.บางพลีใหญ่ อ.บางพลี จ.สมุทรปราการ 10540 โทร. 0-2668-0123", font12N, "NO", "LEFT", "TOP", 3, 0));
document.add(detail);
// --------------- new line -----------------
sizeColumn = new float[]{10.0f,90.0f};
......@@ -768,7 +768,7 @@
document.add(detail);
// --------------- new line -----------------
sizeColumn = new float[]{20.0f,15.0f,15.0f,12.0f,12.0f,7.0f,5.0f,26.25f};
sizeColumn = new float[]{20.0f,25.0f,15.0f,15.0f,12.0f,7.0f,5.0f,26.25f};
detail = new PdfPTable(8);
detail.setWidthPercentage(100);
detail.setWidths(sizeColumn);
......@@ -781,23 +781,18 @@
//IMAGE
img = Image.getInstance(getImagePath("RECRUIT_UPLOAD-dir","PICTURE/",simmapplicantwithgson.mapplicantPersonal.imgname,"DEFAULTPERSON.jpg"));
cellDetail = new PdfPCell(img, false);
img.scaleAbsolute(90f, 100f);
img.scaleAbsolute(90f, 90f);
cellDetail.setHorizontalAlignment(Element.ALIGN_CENTER);
cellDetail.setVerticalAlignment (Element.ALIGN_MIDDLE);
cellDetail.setColspan(1);
cellDetail.setRowspan(7);
cellDetail.setRowspan(4);
detail.addCell(cellDetail);
detail.addCell(getCellData("1."+screen.getString("MJOBCODE", "TDESC"), font14N, "", "LEFT", "TOP", 4, 0));
detail.addCell(getCellData(DFO.format(Integer.valueOf(screen.getString("SALARY_EXPECT").replaceAll(",", ""))).toString()+" บาท", font14N, "", "RIGHT", "TOP", 3, 0));
detail.addCell(getCellData(" ", font14N, "", "LEFT", "TOP", 4, 0));
detail.addCell(getCellData(" ", font14N, "", "RIGHT", "TOP", 3, 0));
detail.addCell(getCellData("ประวัติส่วนตัว", font14N, "", "CENTER", "TOP", 7, 0,false,true));
setPaddingTop(2.5f);
setPaddingLeft(3.5f);
setPaddingRight(3.5f);
setPaddingBottom(2.5f);
detail.addCell(getCellData("ประวัติส่วนตัว", font14B, "", "CENTER", "TOP", 7, 0,false,true));
String prefix = simmapplicantwithgson.mapplicantPersonal.prefixid;
Chunk Chu4 = new Chunk("ชื่อ-สกุล (",font12N);
......@@ -822,10 +817,19 @@
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
detail.addCell(getCellData(simmapplicantwithgson.mapplicantPersonal.fname.tha, font14N, "R_BOTTOM_DOT", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("ชื่อกลาง", font14N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("..........", font14N, "R_BOTTOM_DOT", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("-", font14N, "R_BOTTOM_DOT", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("นามสกุล", font14N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData(simmapplicantwithgson.mapplicantPersonal.lname.tha, font14N, "R_BOTTOM_DOT", "LEFT", "TOP", 2, 0));
detail.addCell(getCellData(simmapplicantwithgson.mapplicantPersonal.lname.tha, font14N, "R_BOTTOM_DOT", "LEFT", "TOP", 3, 0));
document.add(detail);
sizeColumn = new float[]{20.0f,25.0f,15.0f,15.0f,12.0f,7.0f,5.0f,26.25f};
detail = new PdfPTable(8);
detail.setWidthPercentage(100);
detail.setWidths(sizeColumn);
setPaddingTop(3.5f);
setPaddingLeft(3.5f);
setPaddingRight(3.5f);
setPaddingBottom(6.5f);
Chu4 = new Chunk("Name (",font12N);
Chu0 = new Chunk("/",font12N);
Chu1 = new Chunk("Mr.",font12N);
......@@ -847,10 +851,10 @@
content.add(Chu3);
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
detail.addCell(getCellData(simmapplicantwithgson.mapplicantPersonal.fname.eng, font14N, "R_BOTTOM_DOT", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("MIDDLENAME", font14N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("..........", font14N, "R_BOTTOM_DOT", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("SURNAME", font14N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData(simmapplicantwithgson.mapplicantPersonal.lname.eng, font14N, "R_BOTTOM_DOT", "LEFT", "TOP", 2, 0));
detail.addCell(getCellData("Middle name", font14N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("-", font14N, "R_BOTTOM_DOT", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("Surname", font14N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData(simmapplicantwithgson.mapplicantPersonal.lname.eng, font14N, "R_BOTTOM_DOT", "LEFT", "TOP", 3, 0));
setPaddingTop(0.0f);
setPaddingLeft(3.5f);
setPaddingRight(3.5f);
......@@ -858,6 +862,18 @@
detail.addCell(getCellData(" ", font14N, "NO", "CENTER", "TOP", 5, 0));
document.add(detail);
// --------------- new line -----------------
sizeColumn = new float[]{100.0f};
detail = new PdfPTable(1);
detail.setWidthPercentage(100);
detail.setWidths(sizeColumn);
setPaddingTop(0.0f);
setPaddingBottom(0.0f);
detail.addCell(getCellData(" ", font, "NO", "CENTER", "MIDDLE", 0, 0));
document.add(detail);
// --------------- new line -----------------
sizeColumn = new float[]{20.0f,20.0f,20.0f,20.0f,20.0f};
detail = new PdfPTable(5);
......@@ -1257,12 +1273,12 @@
detail.addCell(getCellData(educationbackground.get("gpaL015").toString(), font12N, "", "CENTER", "TOP", 0, 0,true,false));
// แสดงเฉพาะ จบที่สูงที่สุดก่อน
detail.addCell(getCellData("ปวช. / ปวส.", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("...", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("...", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("...", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("...", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("...", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("...", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("ม.6", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData(educationbackground.get("nameM6").toString(), font12N, "", "CENTER", "TOP", 0, 0,true,false));
......@@ -1291,13 +1307,13 @@
setPaddingBottom(0.5f);
detail.addCell(getCellData("ปัจจุบัน", font14B, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("กำลังศึกษาระดับวุฒิ", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("...", font12N, "NO", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("", font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("สถาบัน", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("...", font12N, "NO", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("", font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("สาขา", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("...", font12N, "NO", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("", font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("ปีที่เข้า", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("...", font12N, "NO", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("", font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0));
setPaddingTop(0.5f);
detail.addCell(getCellData(" ", font12N, "R_BOTTOM", "CENTER", "TOP", 9, 0));
document.add(detail);
......@@ -1656,7 +1672,7 @@
detail.addCell(getCellData("บริษัท", font12N, "NO", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData(jobexp.get("companyname_job"+num).toString(), font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 2, 0));
detail.addCell(getCellData("ที่อยู่", font12N, "NO", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData("...", font12N, "NO", "LEFT", "MIDDLE", 4, 0));
detail.addCell(getCellData("", font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 4, 0));
detail.addCell(getCellData("โทรศัพท์", font12N, "NO", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData(jobexp.get("phoneJob"+num).toString(), font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData("ลักษณะธุรกิจ", font12N, "NO", "LEFT", "MIDDLE", 1, 0));
......@@ -1664,11 +1680,13 @@
detail.addCell(getCellData("ตำแหน่งเริ่มต้น", font12N, "NO", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData(jobexp.get("description"+num).toString(), font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData("ตำแหน่งสุดท้าย", font12N, "NO", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData("...", font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData("เริ่ม "+jobexp.get("start"+num).toString(), font12N, "NO", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData("ถึง "+jobexp.get("end"+num).toString(), font12N, "NO", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData("", font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData("เริ่ม", font12N, "NO", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData(jobexp.get("start"+num).toString(), font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData("ถึง", font12N, "NO", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData(jobexp.get("end"+num).toString(), font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData("เงินเดือนเริ่มต้น ", font12N, "NO", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData(jobexp.get("salary"+num) + " บาท", font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 2, 0));
detail.addCell(getCellData(jobexp.get("salary"+num) + " บาท", font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData("เงินเดือนสุดท้าย ", font12N, "NO", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData(jobexp.get("endingsalary"+num) + " บาท", font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 2, 0));
......@@ -1692,46 +1710,61 @@
detail.addCell(getCellData("อธิบายลักษณะงานที่เคยทำผ่านมา / ลักษณะงานที่ทำได้", font14B, "", "CENTER", "MIDDLE", 0, 0,false,true));
for(int num=0;num < 9;num++ ){
detail.addCell(getCellData(String.valueOf(num+1) + local, font12N, "NO", "LEFT", "MIDDLE", 0, 0));
detail.addCell(getCellData(String.valueOf(num+1) + local, font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 0, 0));
}
document.add(detail);
// --------------- new line -----------------
sizeColumn = new float[]{40.0f,20.0f,20.0f,20.0f};
detail = new PdfPTable(4);
sizeColumn = new float[]{100.0f};
detail = new PdfPTable(1);
detail.setWidthPercentage(100);
detail.setWidths(sizeColumn);
setPaddingTop(0.0f);
setPaddingBottom(0.0f);
detail.addCell(getCellData(" ", font, "NO", "CENTER", "MIDDLE", 0, 0));
document.add(detail);
// --------------- new line -----------------
sizeColumn = new float[]{39.5f,0.5f,20.0f,20.0f,20.0f};
detail = new PdfPTable(5);
detail.setWidthPercentage(100);
detail.setWidths(sizeColumn);
setPaddingTop(3.5f);
setPaddingLeft(3.5f);
setPaddingRight(3.5f);
setPaddingBottom(3.5f);
detail.addCell(getCellData("ประวัติการฝึกอบรม", font14B, "", "CENTER", "MIDDLE", 0, 0,false,true));
detail.addCell(getCellData("ประวัติการฝึกอบรม", font14B, "R_TLB", "CENTER", "MIDDLE", 0, 0,false,true));
detail.addCell(getCellData("", font14B, "R_TB", "CENTER", "MIDDLE", 0, 0,false,true));
detail.addCell(getCellData("สถาบันที่จัดฝึกอบรม", font14B, "", "CENTER", "MIDDLE", 0, 0,false,true));
detail.addCell(getCellData("ปี พ.ศ.", font14B, "", "CENTER", "MIDDLE", 0, 0,false,true));
detail.addCell(getCellData("ระยะเวลา", font14B, "", "CENTER", "MIDDLE", 0, 0,false,true));
for(int num=0;num < 5;num++ ){
detail.addCell(getCellData(String.valueOf(num+1)+". " + trainingHM.get("name"+num).toString(), font12N, "R_RIGHT", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData(String.valueOf(num+1)+". " + trainingHM.get("name"+num).toString(), font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData("", font12N, "R_RIGHT", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData(trainingHM.get("by"+num).toString(), font12N, "R_RIGHT", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData(trainingHM.get("year"+num).toString(), font12N, "R_RIGHT", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData(trainingHM.get("countday"+num).toString(), font12N, "NO", "LEFT", "MIDDLE", 1, 0));
}
document.add(detail);
// --------------- new line -----------------
sizeColumn = new float[]{40.0f,20.0f,20.0f,20.0f};
detail = new PdfPTable(4);
sizeColumn = new float[]{39.5f,0.5f,20.0f,20.0f,20.0f};
detail = new PdfPTable(5);
detail.setWidthPercentage(100);
detail.setWidths(sizeColumn);
setPaddingTop(3.5f);
setPaddingLeft(3.5f);
setPaddingRight(3.5f);
setPaddingBottom(6.5f);
detail.addCell(getCellData("บุคคลที่อ้างอิง (ให้ระบุบุคคลที่ไม่ใช่ญาติพี่น้อง หรือนายจ้างเดิม ซึ่งสามารถสอบถามและให้คำรับรองได้)", font14B, "", "CENTER", "MIDDLE", 4, 0,false,true));
detail.addCell(getCellData("ชื่อ-สกุล", font14B, "", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData("บุคคลที่อ้างอิง (ให้ระบุบุคคลที่ไม่ใช่ญาติพี่น้อง หรือนายจ้างเดิม ซึ่งสามารถสอบถามและให้คำรับรองได้)", font14B, "", "CENTER", "MIDDLE", 5, 0,false,true));
detail.addCell(getCellData("ชื่อ-สกุล", font14B, "R_TLB", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData("", font14B, "R_TB", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData("ความสัมพันธ์", font14B, "", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData("อาชีพ", font14B, "", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData("ที่ติดต่อ / โทรศัพท์", font14B, "", "CENTER", "MIDDLE", 0, 0));
for(int num=0;num < 4;num++ ){
detail.addCell(getCellData(String.valueOf(num+1) + " " + personreference.get("name"+num).toString(), font12N, "R_RIGHT", "LEFT", "MIDDLE", 0, 0));
detail.addCell(getCellData(String.valueOf(num+1) + " " + personreference.get("name"+num).toString(), font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 0, 0));
detail.addCell(getCellData("", font12N, "R_RIGHT", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData(personreference.get("relations"+num).toString(), font12N, "R_RIGHT", "LEFT", "MIDDLE", 0, 0));
detail.addCell(getCellData(personreference.get("jobtitle"+num).toString(), font12N, "R_RIGHT", "LEFT", "MIDDLE", 0, 0));
detail.addCell(getCellData(personreference.get("address"+num).toString() + " / " + personreference.get("phone"+num).toString(), font12N, "NO", "LEFT", "MIDDLE", 0, 0));
......@@ -1739,7 +1772,7 @@
document.add(detail);
// --------------- new line -----------------
String visiononjob =simmapplicantwithgson.mapplicantOther.visiononjob;
String visiononjob = chk.chkNullString(simmapplicantwithgson.mapplicantOther.visiononjob," ");
sizeColumn = new float[]{100.0f};
detail = new PdfPTable(1);
detail.setWidthPercentage(100);
......@@ -1752,9 +1785,12 @@
content.add(new Chunk("ข้อมูลเพิ่มเติม ",font14B));
content.add(new Chunk("ให้ผู้สมัครงานกรอกเพื่อให้บริษัทฯ รู้จักท่านดียิ่งขึ้น รวมถึงการแสดงความสามารถอื่น ที่จะก่อให้เกิดประโยชน์ต่อการสมัครงานครั้งนี้ อาทิ",font12N));
detail.addCell(getCellData2( content, "R_TOP", "LEFT", "MIDDLE", 1, 1) );
detail.addCell(getCellData("ความสำเร็จที่ผ่านมา หรือลักษณะงานหรือลักษณะงาน ความรู้หรือความสามารถพิเศษที่เกี่ยวข้องกับงาน ซึ่งท่านถนัดและสนใจมากที่สุด", font12N, "NO", "LEFT", "MIDDLE", 0, 0));
detail.addCell(getCellData("ความสำเร็จที่ผ่านมา หรือลักษณะงานหรือลักษณะงาน ความรู้หรือความสามารถพิเศษที่เกี่ยวข้องกับงาน ซึ่งท่านถนัดและสนใจมากที่สุด", font12N, "NO", "LEFT", "MIDDLE", 1, 0));
for(int num=0;num < 1;num++ ){
detail.addCell(getCellData(visiononjob, font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 0, 0));
detail.addCell(getCellData(visiononjob, font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 1, 0));
}
for(int num=0;num < 3;num++ ){
detail.addCell(getCellData(" ", font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 1, 0));
}
document.add(detail);
......@@ -1907,10 +1943,10 @@
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("...", font12N, "NO", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData("", font12N, "R_BOTTOM_DOT", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData("ครั้ง / ปี", font12N, "NO", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData("โดยไปที่ประเทศ", font12N, "NO", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData("...", font12N, "NO", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData("", font12N, "R_BOTTOM_DOT", "CENTER", "MIDDLE", 0, 0));
document.add(detail);
// --------------- new line -----------------
......@@ -1932,7 +1968,7 @@
content.add(new Chunk(" มี",font12N));
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
detail.addCell(getCellData("คดีเพ่ง / อาญา เรื่อง", font12N, "NO", "LEFT", "MIDDLE", 0, 0));
detail.addCell(getCellData("...", font12N, "NO", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData("", font12N, "R_BOTTOM_DOT", "CENTER", "MIDDLE", 0, 0));
document.add(detail);
// --------------- new line -----------------
......@@ -1957,7 +1993,7 @@
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
detail.addCell(getCellData(policecapture, font12N, "R_BOTTOM_DOT", "LEFT", "TOP", 0, 0,true,false));
detail.addCell(getCellData("โทษที่ได้รับ", font12N, "NO", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData("...", font12N, "NO", "CENTER", "TOP", 0, 0,true,false));
detail.addCell(getCellData("", font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0,true,false));
document.add(detail);
// --------------- new line -----------------
......@@ -2099,7 +2135,7 @@
content = new Phrase();
content.add(new Chunk(personal_status.equalsIgnoreCase("S")? AwesomeIcons.ICON_CHECK:AwesomeIcons.ICON_CHECK_EMPTY,fontAwesome));
content.add(new Chunk(" ศูนย์คลังสินค้าและบริการ",font12N));
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
detail.addCell(getCellData("กรณีบริษัทฯ ตกลงรับท่านเข้าทำงาน ท่านพร้อมที่จะเริ่มงานได้ภายใน", font12N, "NO", "LEFT", "MIDDLE", 2, 0));
detail.addCell(getCellData(readytowork, font12N, "R_BOTTOM_DOT", "CENTER", "MIDDLE", 0, 0));
......
......@@ -735,22 +735,22 @@
setPaddingBottom(4.5f);
detail.addCell(getCellData("ผู้ผลิต และผู้แทนจำหน่าย เครื่องเขียน กระดาษ วัสดุอุปกรณ์สำนักงาน และช่างเขียน", font14B, "NO", "LEFT", "TOP", 3, 0));
detail.addCell(getCellData("สำนักงานสุรวงศ์", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("เลขที่ 210", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("ถ.สุรวงศ์ บางรัก กรุงเทพฯ 10500 โทร. 0-2237-0500 โทรสาร 0-2236-9703", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData(" เลขที่ 202", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("ถ.สุรวงศ์ บางรัก กรุงเทพฯ 10500 โทร. 0-2668-0123", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("โรงงานนวนคร", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("เลขที่ 101/27", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("นิคมอุตสาหกรรม นวนคร โครงการ 1 ต.คลองหนึ่ง อ.คลองหลวง จ.ปทุมธานี 12120 โทร. 0-2529-4747", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData(" เลขที่ 101/27", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("นิคมอุตสาหกรรม นวนคร โครงการ 1 ต.คลองหนึ่ง อ.คลองหลวง จ.ปทุมธานี 12120 โทร. 0-2668-0123", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("โรงงานโรจนะ", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("เลขที่ 21/11 หมูที่9", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("สวนอุตสาหกรรมโรจนะ ต.านหาม อ.อุทัย จ.พระนครศรีอยุธยา 13210 โทร. 035-746-500-18", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData(" เลขที่ 21/11 ม.9", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("สวนอุตสาหกรรมโรจนะ ต.านหาม อ.อุทัย จ.พระนครศรีอยุธยา 13210 โทร. 0-2668-0123", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("DC2(โรงงาน 2 เดิม)", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("เลขที่ 60/67", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("นิคมอุตสาหกรรม นวนคร โครงการ 2 ต.คลองหนึ่ง อ.คลองหลวง จ.ปทุมธานี 12120 โทร. 0-2529-1732", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData(" เลขที่ 60/67", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("นิคมอุตสาหกรรม นวนคร โครงการ 2 ต.คลองหนึ่ง อ.คลองหลวง จ.ปทุมธานี 12120 โทร. 0-2668-0123", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("ศูนย์คลังสินค้าและบริการ เลขที่ 94 หมู่ที่ 15 ต.บางพลีใหญ่ อ.บางพลี จ.สมุทรปราการ 10540 โทร. 0-2750-1540", font12N, "NO", "LEFT", "TOP", 3, 0));
detail.addCell(getCellData("ศูนย์คลังสินค้าและบริการ เลขที่ 94 ม.15 ต.บางพลีใหญ่ อ.บางพลี จ.สมุทรปราการ 10540 โทร. 0-2668-0123", font12N, "NO", "LEFT", "TOP", 3, 0));
document.add(detail);
// --------------- new line -----------------
sizeColumn = new float[]{10.0f,90.0f};
......@@ -769,7 +769,7 @@
document.add(detail);
// --------------- new line -----------------
sizeColumn = new float[]{20.0f,15.0f,15.0f,12.0f,12.0f,7.0f,5.0f,26.25f};
sizeColumn = new float[]{20.0f,25.0f,15.0f,15.0f,12.0f,7.0f,5.0f,26.25f};
detail = new PdfPTable(8);
detail.setWidthPercentage(100);
detail.setWidths(sizeColumn);
......@@ -782,23 +782,18 @@
//IMAGE
img = Image.getInstance(getImagePath("RECRUIT_UPLOAD-dir","PICTURE/",simmcandidatewithgson.mcandidatePersonal.imgname,"DEFAULTPERSON.jpg"));
cellDetail = new PdfPCell(img, false);
img.scaleAbsolute(90f, 100f);
img.scaleAbsolute(90f, 90f);
cellDetail.setHorizontalAlignment(Element.ALIGN_CENTER);
cellDetail.setVerticalAlignment (Element.ALIGN_MIDDLE);
cellDetail.setColspan(1);
cellDetail.setRowspan(7);
cellDetail.setRowspan(4);
detail.addCell(cellDetail);
detail.addCell(getCellData("1."+screen.getString("MJOBCODE", "TDESC"), font14N, "", "LEFT", "TOP", 4, 0));
detail.addCell(getCellData(DFO.format(Integer.valueOf(screen.getString("SALARY_EXPECT").replaceAll(",", ""))).toString()+" บาท", font14N, "", "RIGHT", "TOP", 3, 0));
detail.addCell(getCellData(" ", font14N, "", "LEFT", "TOP", 4, 0));
detail.addCell(getCellData(" ", font14N, "", "RIGHT", "TOP", 3, 0));
detail.addCell(getCellData("ประวัติส่วนตัว", font14N, "", "CENTER", "TOP", 7, 0,false,true));
setPaddingTop(2.5f);
setPaddingLeft(3.5f);
setPaddingRight(3.5f);
setPaddingBottom(2.5f);
detail.addCell(getCellData("ประวัติส่วนตัว", font14B, "", "CENTER", "TOP", 7, 0,false,true));
String prefix = simmcandidatewithgson.mcandidatePersonal.prefixid;
Chunk Chu4 = new Chunk("ชื่อ-สกุล (",font12N);
......@@ -823,10 +818,19 @@
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
detail.addCell(getCellData(simmcandidatewithgson.mcandidatePersonal.fname.tha, font14N, "R_BOTTOM_DOT", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("ชื่อกลาง", font14N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("..........", font14N, "R_BOTTOM_DOT", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("-", font14N, "R_BOTTOM_DOT", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("นามสกุล", font14N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData(simmcandidatewithgson.mcandidatePersonal.lname.tha, font14N, "R_BOTTOM_DOT", "LEFT", "TOP", 2, 0));
detail.addCell(getCellData(simmcandidatewithgson.mcandidatePersonal.lname.tha, font14N, "R_BOTTOM_DOT", "LEFT", "TOP", 3, 0));
document.add(detail);
sizeColumn = new float[]{20.0f,25.0f,15.0f,15.0f,12.0f,7.0f,5.0f,26.25f};
detail = new PdfPTable(8);
detail.setWidthPercentage(100);
detail.setWidths(sizeColumn);
setPaddingTop(3.5f);
setPaddingLeft(3.5f);
setPaddingRight(3.5f);
setPaddingBottom(6.5f);
Chu4 = new Chunk("Name (",font12N);
Chu0 = new Chunk("/",font12N);
Chu1 = new Chunk("Mr.",font12N);
......@@ -848,10 +852,10 @@
content.add(Chu3);
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
detail.addCell(getCellData(simmcandidatewithgson.mcandidatePersonal.fname.eng, font14N, "R_BOTTOM_DOT", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("MIDDLENAME", font14N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("..........", font14N, "R_BOTTOM_DOT", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("SURNAME", font14N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData(simmcandidatewithgson.mcandidatePersonal.lname.eng, font14N, "R_BOTTOM_DOT", "LEFT", "TOP", 2, 0));
detail.addCell(getCellData("Middle name", font14N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("-", font14N, "R_BOTTOM_DOT", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("Surname", font14N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData(simmcandidatewithgson.mcandidatePersonal.lname.eng, font14N, "R_BOTTOM_DOT", "LEFT", "TOP", 3, 0));
setPaddingTop(0.0f);
setPaddingLeft(3.5f);
setPaddingRight(3.5f);
......@@ -860,6 +864,17 @@
document.add(detail);
// --------------- new line -----------------
sizeColumn = new float[]{100.0f};
detail = new PdfPTable(1);
detail.setWidthPercentage(100);
detail.setWidths(sizeColumn);
setPaddingTop(0.0f);
setPaddingBottom(0.0f);
detail.addCell(getCellData(" ", font, "NO", "CENTER", "MIDDLE", 0, 0));
document.add(detail);
// --------------- new line -----------------
sizeColumn = new float[]{20.0f,20.0f,20.0f,20.0f,20.0f};
detail = new PdfPTable(5);
detail.setWidthPercentage(100);
......@@ -1258,12 +1273,12 @@
detail.addCell(getCellData(educationbackground.get("gpaL015").toString(), font12N, "", "CENTER", "TOP", 0, 0,true,false));
// แสดงเฉพาะ จบที่สูงที่สุดก่อน
detail.addCell(getCellData("ปวช. / ปวส.", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("...", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("...", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("...", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("...", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("...", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("...", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("ม.6", font12N, "", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData(educationbackground.get("nameM6").toString(), font12N, "", "CENTER", "TOP", 0, 0,true,false));
......@@ -1292,13 +1307,13 @@
setPaddingBottom(0.5f);
detail.addCell(getCellData("ปัจจุบัน", font14B, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("กำลังศึกษาระดับวุฒิ", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("...", font12N, "NO", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("", font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("สถาบัน", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("...", font12N, "NO", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("", font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("สาขา", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("...", font12N, "NO", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("", font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("ปีที่เข้า", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("...", font12N, "NO", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("", font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0));
setPaddingTop(0.5f);
detail.addCell(getCellData(" ", font12N, "R_BOTTOM", "CENTER", "TOP", 9, 0));
document.add(detail);
......@@ -1657,7 +1672,7 @@
detail.addCell(getCellData("บริษัท", font12N, "NO", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData(jobexp.get("companyname_job"+num).toString(), font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 2, 0));
detail.addCell(getCellData("ที่อยู่", font12N, "NO", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData("...", font12N, "NO", "LEFT", "MIDDLE", 4, 0));
detail.addCell(getCellData("", font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 4, 0));
detail.addCell(getCellData("โทรศัพท์", font12N, "NO", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData(jobexp.get("phoneJob"+num).toString(), font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData("ลักษณะธุรกิจ", font12N, "NO", "LEFT", "MIDDLE", 1, 0));
......@@ -1665,11 +1680,13 @@
detail.addCell(getCellData("ตำแหน่งเริ่มต้น", font12N, "NO", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData(jobexp.get("description"+num).toString(), font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData("ตำแหน่งสุดท้าย", font12N, "NO", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData("...", font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData("เริ่ม "+jobexp.get("start"+num).toString(), font12N, "NO", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData("ถึง "+jobexp.get("end"+num).toString(), font12N, "NO", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData("", font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData("เริ่ม", font12N, "NO", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData(jobexp.get("start"+num).toString(), font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData("ถึง", font12N, "NO", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData(jobexp.get("end"+num).toString(), font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData("เงินเดือนเริ่มต้น ", font12N, "NO", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData(jobexp.get("salary"+num) + " บาท", font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 2, 0));
detail.addCell(getCellData(jobexp.get("salary"+num) + " บาท", font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData("เงินเดือนสุดท้าย ", font12N, "NO", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData(jobexp.get("endingsalary"+num) + " บาท", font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 2, 0));
......@@ -1693,46 +1710,61 @@
detail.addCell(getCellData("อธิบายลักษณะงานที่เคยทำผ่านมา / ลักษณะงานที่ทำได้", font14B, "", "CENTER", "MIDDLE", 0, 0,false,true));
for(int num=0;num < 9;num++ ){
detail.addCell(getCellData(String.valueOf(num+1) + local, font12N, "NO", "LEFT", "MIDDLE", 0, 0));
detail.addCell(getCellData(String.valueOf(num+1) + local, font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 0, 0));
}
document.add(detail);
// --------------- new line -----------------
sizeColumn = new float[]{40.0f,20.0f,20.0f,20.0f};
detail = new PdfPTable(4);
sizeColumn = new float[]{100.0f};
detail = new PdfPTable(1);
detail.setWidthPercentage(100);
detail.setWidths(sizeColumn);
setPaddingTop(0.0f);
setPaddingBottom(0.0f);
detail.addCell(getCellData(" ", font, "NO", "CENTER", "MIDDLE", 0, 0));
document.add(detail);
// --------------- new line -----------------
sizeColumn = new float[]{39.5f,0.5f,20.0f,20.0f,20.0f};
detail = new PdfPTable(5);
detail.setWidthPercentage(100);
detail.setWidths(sizeColumn);
setPaddingTop(3.5f);
setPaddingLeft(3.5f);
setPaddingRight(3.5f);
setPaddingBottom(3.5f);
detail.addCell(getCellData("ประวัติการฝึกอบรม", font14B, "", "CENTER", "MIDDLE", 0, 0,false,true));
detail.addCell(getCellData("ประวัติการฝึกอบรม", font14B, "R_TLB", "CENTER", "MIDDLE", 0, 0,false,true));
detail.addCell(getCellData("", font14B, "R_TB", "CENTER", "MIDDLE", 0, 0,false,true));
detail.addCell(getCellData("สถาบันที่จัดฝึกอบรม", font14B, "", "CENTER", "MIDDLE", 0, 0,false,true));
detail.addCell(getCellData("ปี พ.ศ.", font14B, "", "CENTER", "MIDDLE", 0, 0,false,true));
detail.addCell(getCellData("ระยะเวลา", font14B, "", "CENTER", "MIDDLE", 0, 0,false,true));
for(int num=0;num < 5;num++ ){
detail.addCell(getCellData(String.valueOf(num+1)+". " + trainingHM.get("name"+num).toString(), font12N, "R_RIGHT", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData(String.valueOf(num+1)+". " + trainingHM.get("name"+num).toString(), font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData("", font12N, "R_RIGHT", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData(trainingHM.get("by"+num).toString(), font12N, "R_RIGHT", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData(trainingHM.get("year"+num).toString(), font12N, "R_RIGHT", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData(trainingHM.get("countday"+num).toString(), font12N, "NO", "LEFT", "MIDDLE", 1, 0));
}
document.add(detail);
// --------------- new line -----------------
sizeColumn = new float[]{40.0f,20.0f,20.0f,20.0f};
detail = new PdfPTable(4);
sizeColumn = new float[]{39.5f,0.5f,20.0f,20.0f,20.0f};
detail = new PdfPTable(5);
detail.setWidthPercentage(100);
detail.setWidths(sizeColumn);
setPaddingTop(3.5f);
setPaddingLeft(3.5f);
setPaddingRight(3.5f);
setPaddingBottom(6.5f);
detail.addCell(getCellData("บุคคลที่อ้างอิง (ให้ระบุบุคคลที่ไม่ใช่ญาติพี่น้อง หรือนายจ้างเดิม ซึ่งสามารถสอบถามและให้คำรับรองได้)", font14B, "", "CENTER", "MIDDLE", 4, 0,false,true));
detail.addCell(getCellData("ชื่อ-สกุล", font14B, "", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData("บุคคลที่อ้างอิง (ให้ระบุบุคคลที่ไม่ใช่ญาติพี่น้อง หรือนายจ้างเดิม ซึ่งสามารถสอบถามและให้คำรับรองได้)", font14B, "", "CENTER", "MIDDLE", 5, 0,false,true));
detail.addCell(getCellData("ชื่อ-สกุล", font14B, "R_TLB", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData("", font14B, "R_TB", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData("ความสัมพันธ์", font14B, "", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData("อาชีพ", font14B, "", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData("ที่ติดต่อ / โทรศัพท์", font14B, "", "CENTER", "MIDDLE", 0, 0));
for(int num=0;num < 4;num++ ){
detail.addCell(getCellData(String.valueOf(num+1) + " " + personreference.get("name"+num).toString(), font12N, "R_RIGHT", "LEFT", "MIDDLE", 0, 0));
detail.addCell(getCellData(String.valueOf(num+1) + " " + personreference.get("name"+num).toString(), font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 0, 0));
detail.addCell(getCellData("", font12N, "R_RIGHT", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData(personreference.get("relations"+num).toString(), font12N, "R_RIGHT", "LEFT", "MIDDLE", 0, 0));
detail.addCell(getCellData(personreference.get("jobtitle"+num).toString(), font12N, "R_RIGHT", "LEFT", "MIDDLE", 0, 0));
detail.addCell(getCellData(personreference.get("address"+num).toString() + " / " + personreference.get("phone"+num).toString(), font12N, "NO", "LEFT", "MIDDLE", 0, 0));
......@@ -1740,7 +1772,7 @@
document.add(detail);
// --------------- new line -----------------
String visiononjob =simmcandidatewithgson.mcandidateOther.visiononjob;
String visiononjob = chk.chkNullString(simmcandidatewithgson.mcandidateOther.visiononjob," ");
sizeColumn = new float[]{100.0f};
detail = new PdfPTable(1);
detail.setWidthPercentage(100);
......@@ -1752,10 +1784,13 @@
content = new Phrase();
content.add(new Chunk("ข้อมูลเพิ่มเติม ",font14B));
content.add(new Chunk("ให้ผู้สมัครงานกรอกเพื่อให้บริษัทฯ รู้จักท่านดียิ่งขึ้น รวมถึงการแสดงความสามารถอื่น ที่จะก่อให้เกิดประโยชน์ต่อการสมัครงานครั้งนี้ อาทิ",font12N));
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
detail.addCell(getCellData2( content, "R_TOP", "LEFT", "MIDDLE", 1, 1) );
detail.addCell(getCellData("ความสำเร็จที่ผ่านมา หรือลักษณะงานหรือลักษณะงาน ความรู้หรือความสามารถพิเศษที่เกี่ยวข้องกับงาน ซึ่งท่านถนัดและสนใจมากที่สุด", font12N, "NO", "LEFT", "MIDDLE", 0, 0));
for(int num=0;num < 1;num++ ){
detail.addCell(getCellData(visiononjob, font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 0, 0));
detail.addCell(getCellData(visiononjob, font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 1, 0));
}
for(int num=0;num < 3;num++ ){
detail.addCell(getCellData(" ", font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 1, 0));
}
document.add(detail);
......@@ -1907,10 +1942,10 @@
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("...", font12N, "NO", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData("", font12N, "R_BOTTOM_DOT", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData("ครั้ง / ปี", font12N, "NO", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData("โดยไปที่ประเทศ", font12N, "NO", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData("...", font12N, "NO", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData("", font12N, "R_BOTTOM_DOT", "CENTER", "MIDDLE", 0, 0));
document.add(detail);
// --------------- new line -----------------
......@@ -1932,7 +1967,7 @@
content.add(new Chunk(" มี",font12N));
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
detail.addCell(getCellData("คดีเพ่ง / อาญา เรื่อง", font12N, "NO", "LEFT", "MIDDLE", 0, 0));
detail.addCell(getCellData("...", font12N, "NO", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData("", font12N, "R_BOTTOM_DOT", "CENTER", "MIDDLE", 0, 0));
document.add(detail);
// --------------- new line -----------------
......@@ -1957,7 +1992,7 @@
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
detail.addCell(getCellData(policecapture, font12N, "R_BOTTOM_DOT", "LEFT", "MIDDLE", 0, 0));
detail.addCell(getCellData("โทษที่ได้รับ", font12N, "NO", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData("...", font12N, "NO", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData("", font12N, "R_BOTTOM_DOT", "CENTER", "MIDDLE", 0, 0));
document.add(detail);
// --------------- new line -----------------
......@@ -2099,7 +2134,7 @@
content = new Phrase();
content.add(new Chunk(personal_status.equalsIgnoreCase("S")? AwesomeIcons.ICON_CHECK:AwesomeIcons.ICON_CHECK_EMPTY,fontAwesome));
content.add(new Chunk(" ศูนย์คลังสินค้าและบริการ",font12N));
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
detail.addCell(getCellData("กรณีบริษัทฯ ตกลงรับท่านเข้าทำงาน ท่านพร้อมที่จะเริ่มงานได้ภายใน", font12N, "NO", "LEFT", "MIDDLE", 2, 0));
detail.addCell(getCellData(readytowork, font12N, "R_BOTTOM_DOT", "CENTER", "MIDDLE", 0, 0));
......
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