Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DHAS
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thitichaipun Wutthisak
DHAS
Commits
05601bb7
Commit
05601bb7
authored
Dec 02, 2020
by
Thitichaipun Wutthisak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#9569 สร้าง เอกสารสมัครงาน ของเมนู รายชื่อผู้ฝากประวัติ (คืบหน้า 90%)
parent
e47c8724
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
170 additions
and
839 deletions
+170
-839
DropResumePrintDHAS.jsp
hrAppWeb.war/RECRUIT/DropResumePrintDHAS.jsp
+170
-839
UTBean.jar
hrAppWeb.war/WEB-INF/lib/UTBean.jar
+0
-0
No files found.
hrAppWeb.war/RECRUIT/DropResumePrintDHAS.jsp
View file @
05601bb7
...
@@ -235,21 +235,65 @@ Not found data
...
@@ -235,21 +235,65 @@ Not found data
familybackground.putToSum("statusallchild", line + statusallchild);
familybackground.putToSum("statusallchild", line + statusallchild);
familybackground.putToSum("workplaceandphoneallchild", workplaceandphoneallchild);
familybackground.putToSum("workplaceandphoneallchild", workplaceandphoneallchild);
//----------------------------END Family------------------------------------
//----------------------------END Family------------------------------------
//----------------------------SETDATA REFERENCE ------------------------------------
MyHashMap personreference = new MyHashMap();
int roundreference = 0;
for (int referencekey = 0; referencekey
<
=
5
;
referencekey
++){
personreference
.
put
("
name
"
+
referencekey
,
"");
personreference
.
put
("
jobtitle
"
+
referencekey
,
"");
personreference
.
put
("
companyname
"
+
referencekey
,
"");
personreference
.
put
("
phone
"
+
referencekey
,
"");
personreference
.
put
("
relations
"
+
referencekey
,
"");
personreference
.
put
("
address
"
+
referencekey
,
"");
}
for
(
Mdrop_resumeFamily
.
Reference
reference
:
simmapplicantwithgson
.
mdrop_resumeFamily
.
reference
)
{
personreference
.
put
("
name
"
+
roundreference
,
chk
.
chkNullString
(
reference
.
name
,"
"));
personreference
.
put
("
jobtitle
"
+
roundreference
,
chk
.
chkNullString
(
reference
.
jobtitle
,"
"));
personreference
.
put
("
companyname
"
+
roundreference
,
chk
.
chkNullString
(
reference
.
companyname
,"
"));
personreference
.
put
("
phone
"
+
roundreference
,
chk
.
chkNullString
(
reference
.
phone
,"
"));
personreference
.
put
("
relations
"
+
roundreference
,
chk
.
chkNullString
(
reference
.
relations
,"
"));
personreference
.
put
("
address
"
+
roundreference
,
chk
.
chkNullString
(
reference
.
address
,"
"));
roundreference
++;
}
//
----------------------------END
REFERENCE-----------------------------------------
//
----------------------------SET
Children------------------------------------
//
----------------------------SET
Children------------------------------------
String sons = !simmapplicantwithgson.mdrop_resumePersonal.children.sons.equals(null)?simmapplicantwithgson.mdrop_resumePersonal.children.sons:"0";
String
sons =
simmapplicantwithgson.mdrop_resumePersonal.children.sons.equals(null)
||
simmapplicantwithgson
.
mdrop_resumePersonal
.
children
.
sons
.
equals
("")?
String daughters = !simmapplicantwithgson.mdrop_resumePersonal.children.daughters.equals(null)?simmapplicantwithgson.mdrop_resumePersonal.children.daughters:"0";
"
0
"
:simmapplicantwithgson
.
mdrop_resumePersonal
.
children
.
sons
;
String
daughters =
simmapplicantwithgson.mdrop_resumePersonal.children.daughters.equals(null)
||
simmapplicantwithgson
.
mdrop_resumePersonal
.
children
.
daughters
.
equals
("")?
"
0
"
:
simmapplicantwithgson
.
mdrop_resumePersonal
.
children
.
daughters
;
int
children =
Integer.valueOf(sons)+Integer.valueOf(daughters);
int
children =
Integer.valueOf(sons)+Integer.valueOf(daughters);
//
----------------------------END
Children------------------------------------
//
----------------------------END
Children------------------------------------
//
----------------------------SETDATA
OTHER
------------------------------------
//
----------------------------SETDATA
OTHER
------------------------------------
String nameregroup = "";
MyHashMap
companyReference =
new
MyHashMap
();
String lnameregroup = "";
String
mprefixdesc =
""
;
String positionregroup = "";
int
roundComReference =
0;
for (Mdrop_resumeOther.RefereeGroup refereeGroup : simmapplicantwithgson.mdrop_resumeOther.refereeGroup) {
for
(
int
referencekey =
0;
referencekey
<=
5
;
referencekey
++){
nameregroup = refereeGroup.name;
//
companyReference
.
put
("
prefix
"
+
referencekey
,
"");
lnameregroup = refereeGroup.lname;
companyReference
.
put
("
fullname
"
+
referencekey
,
"");
positionregroup = refereeGroup.position;
//
companyReference
.
put
("
lname
"
+
referencekey
,
"");
companyReference
.
put
("
position
"
+
referencekey
,
"");
//
companyReference
.
put
("
relation
"
+
referencekey
,
"");
//
companyReference
.
put
("
dept
"
+
referencekey
,
"");
//
companyReference
.
put
("
major
"
+
referencekey
,
"");
}
}
for
(
Mdrop_resumeOther
.
RefereeGroup
refereeGroup
:
simmapplicantwithgson
.
mdrop_resumeOther
.
refereeGroup
)
{
DbInquiry
inqmprefixcom =
new
InitialInquiry
(
screen
.
getUProfile
()).
getDbInquiry
("
mprefix
");
inqmprefixcom
.
setFilter
("
prefixid =
'" + refereeGroup.prefix + "'
");
inqmprefixcom
.
refresh
();
while
(
inqmprefixcom
.
next
())
{
mprefixdesc =
inqmprefixcom.getString("tdesc");
}
companyReference
.
put
("
fullname
"
+
roundComReference
,
mprefixdesc
+
chk
.
chkNullString
(
refereeGroup
.
name
,"
")+"
"+
chk
.
chkNullString
(
refereeGroup
.
lname
,"
"));
companyReference
.
put
("
position
"
+
roundComReference
,
chk
.
chkNullString
(
refereeGroup
.
position
,"
"));
roundComReference
++;
}
//
----------------------------END
OTHER-----------------------------------------
//
----------------------------END
OTHER-----------------------------------------
//
----------------------------END
OTHER-----------------------------------------
//
----------------------------SETDATA
EDUCATION------------------------------------
//
----------------------------SETDATA
EDUCATION------------------------------------
MyHashMap
educationbackground =
new
MyHashMap
();
MyHashMap
educationbackground =
new
MyHashMap
();
...
@@ -370,7 +414,29 @@ Not found data
...
@@ -370,7 +414,29 @@ Not found data
roundjobexp
++;
roundjobexp
++;
}
}
//
----------------------------END
JOPEXP------------------------------------
//
----------------------------END
JOPEXP------------------------------------
//
----------------------------SETDATA
Training------------------------------------
MyHashMap
trainingHM =
new
MyHashMap
();
int
roundtraining =
0;
String
startDay =
""
;
String
endDay =
""
;
for
(
int
round =
0;
round
<
6
;
round
++){
trainingHM
.
put
("
name
"
+
round
,
"");
trainingHM
.
put
("
by
"
+
round
,
"");
trainingHM
.
put
("
year
"
+
round
,
"");
trainingHM
.
put
("
countday
"
+
round
,
"");
}
for
(
Mdrop_resumeJobexp
.
Training
training
:
simmapplicantwithgson
.
mdrop_resumeJobexp
.
training
)
{
startDay =
new
CscCalendar
(
training
.
start
.
toString
().
substring
(
0
,
10
)).
getYYYYMMDD
();
endDay =
new
CscCalendar
(
training
.
end
.
toString
().
substring
(
0
,
10
)).
getYYYYMMDD
();
int
Countday =
new
CscCalendar
(
startDay
).
countDay
(
endDay
);
trainingHM
.
putToSum
("
name
"
+
roundtraining
,
training
.
name
);
trainingHM
.
putToSum
("
by
"
+
roundtraining
,
training
.
by
);
trainingHM
.
putToSum
("
year
"
+
roundtraining
,
new
CscCalendar
(
training
.
start
.
toString
().
substring
(
0
,
4
)).
getThaiYYYY
());
trainingHM
.
putToSum
("
countday
"
+
roundtraining
,
String
.
valueOf
(
Countday
)
+
"
วัน");
roundtraining
++;
}
//
----------------------------END
Training------------------------------------
//
----------------------------nationality------------------------------------
//
----------------------------nationality------------------------------------
String
nationalityDesc =
""
;
String
nationalityDesc =
""
;
...
@@ -428,7 +494,7 @@ Not found data
...
@@ -428,7 +494,7 @@ Not found data
int
langskillloop =
0;
int
langskillloop =
0;
for
(
String
initlangskill
:
id
)
{
for
(
String
initlangskill
:
id
)
{
hmlangskill
.
put
("
skillname
"+
initlangskill
,"");
hmlangskill
.
put
("
skillname
"+
initlangskill
,"");
hmlangskill
.
put
("
id
"+
initlangskill
,"");
hmlangskill
.
put
("
id
"+
initlangskill
,"
XX
");
hmlangskill
.
put
("
reading
"+
initlangskill
,"");
hmlangskill
.
put
("
reading
"+
initlangskill
,"");
hmlangskill
.
put
("
write
"+
initlangskill
,"");
hmlangskill
.
put
("
write
"+
initlangskill
,"");
hmlangskill
.
put
("
speak
"+
initlangskill
,"");
hmlangskill
.
put
("
speak
"+
initlangskill
,"");
...
@@ -498,6 +564,42 @@ Not found data
...
@@ -498,6 +564,42 @@ Not found data
activityloop
++;
activityloop
++;
}
}
//
----------------------------Set
Hobbies
----------------------------------------
String
hobbies =
""
;
String
[]
array =
new
String
[
simmapplicantwithgson
.
mdrop_resumeSkill
.
hobbies
.
size
()];
int
index =
0;
for
(
Object
value
:
simmapplicantwithgson
.
mdrop_resumeSkill
.
hobbies
)
{
if
(
index
!=
0
){
hobbies
+=
",";
}
hobbies
+=
(
String
)
value
;
index
++;
}
//
----------------------------End
Hobbies
----------------------------------------
//
----------------------------Set
Sport
----------------------------------------
String
sport =
""
;
array =
new
String
[
simmapplicantwithgson
.
mdrop_resumeSkill
.
sport
.
size
()];
index =
0;
for
(
Object
value
:
simmapplicantwithgson
.
mdrop_resumeSkill
.
sport
)
{
if
(
index
!=
0
){
sport
+=
",";
}
sport
+=
(
String
)
value
;
index
++;
}
//
----------------------------End
Sport
----------------------------------------
//
----------------------------Set
Expertise
----------------------------------------
String
expertise =
""
;
array =
new
String
[
simmapplicantwithgson
.
mdrop_resumeSkill
.
expertise
.
size
()];
index =
0;
for
(
Object
value
:
simmapplicantwithgson
.
mdrop_resumeSkill
.
expertise
)
{
if
(
index
!=
0
){
expertise
+=
",";
}
expertise
+=
(
String
)
value
;
index
++;
}
//
----------------------------End
Expertise
----------------------------------------
//
----------------------------End
Activity
----------------------------------------
//
----------------------------End
Activity
----------------------------------------
try
{
try
{
CscCalendar
calendar =
new
CscCalendar
();
CscCalendar
calendar =
new
CscCalendar
();
...
@@ -887,17 +989,17 @@ Not found data
...
@@ -887,17 +989,17 @@ Not found data
setPaddingRight
(
3
.
5f
);
setPaddingRight
(
3
.
5f
);
setPaddingBottom
(
6
.
5f
);
setPaddingBottom
(
6
.
5f
);
detail
.
addCell
(
getCellData
("พี่น้องรวมทั้งหมด",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
("พี่น้องรวมทั้งหมด",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
(
String
.
valueOf
(
relativetotal
+
1
),
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
(
String
.
valueOf
(
relativetotal
+
1
),
font12N
,
"
R_BOTTOM_DOT
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
("คน
ท่านเป็นคนที่",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
("คน
ท่านเป็นคนที่",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
(
birthorder
,
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
(
birthorder
,
font12N
,
"
R_BOTTOM_DOT
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
("พี่ชาย",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
("พี่ชาย",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
relation05
").
toString
(),
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
relation05
").
toString
(),
font12N
,
"
R_BOTTOM_DOT
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
("คน
พี่สาว",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
("คน
พี่สาว",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
relation07
").
toString
(),
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
relation07
").
toString
(),
font12N
,
"
R_BOTTOM_DOT
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
("คน
น้องชาย",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
("คน
น้องชาย",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
relation06
").
toString
(),
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
relation06
").
toString
(),
font12N
,
"
R_BOTTOM_DOT
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
("คน
น้องสาว",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
("คน
น้องสาว",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
relation08
").
toString
(),
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
relation08
").
toString
(),
font12N
,
"
R_BOTTOM_DOT
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
("คน",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
("คน",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
...
@@ -1135,6 +1237,7 @@ Not found data
...
@@ -1135,6 +1237,7 @@ Not found data
detail.addCell(getCellData(hmactivity.get("role0").toString(), font12N, "NO", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData(hmactivity.get("role0").toString(), font12N, "NO", "CENTER", "TOP", 0, 0));
document.add(detail);
document.add(detail);
// --------------- new line -----------------
// --------------- new line -----------------
sizeColumn = new float[]{10.0f,15.0f,10.0f,10.0f};
sizeColumn = new float[]{10.0f,15.0f,10.0f,10.0f};
detail = new PdfPTable(4);
detail = new PdfPTable(4);
detail.setWidthPercentage(100);
detail.setWidthPercentage(100);
...
@@ -1148,9 +1251,9 @@ Not found data
...
@@ -1148,9 +1251,9 @@ Not found data
detail.addCell(getCellData("ช่วงเวลาที่ทำกิจกรรม", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("ช่วงเวลาที่ทำกิจกรรม", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData(hmactivity.get("start0").toString().toString().substring(0,10) + "ถึง" + hmactivity.get("end0").toString().substring(0,10), font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData(hmactivity.get("start0").toString().toString().substring(0,10) + "ถึง" + hmactivity.get("end0").toString().substring(0,10), font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("งานอดิเรก", font14B, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("งานอดิเรก", font14B, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData(
simmapplicantwithgson.mdrop_resumeSkill.hobbies.toString()
, font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData(
hobbies
, font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("กีฬาที่ถนัด", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("กีฬาที่ถนัด", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData(s
immapplicantwithgson.mdrop_resumeSkill.sport.toString()
, font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData(s
port
, font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0));
document.add(detail);
document.add(detail);
// --------------- new line -----------------
// --------------- new line -----------------
sizeColumn = new float[]{15.0f,15.0f,10.0f,5.0f,15.0f,5.0f,10.0f};
sizeColumn = new float[]{15.0f,15.0f,10.0f,5.0f,15.0f,5.0f,10.0f};
...
@@ -1162,7 +1265,7 @@ Not found data
...
@@ -1162,7 +1265,7 @@ Not found data
setPaddingRight(3.5f);
setPaddingRight(3.5f);
setPaddingBottom(6.5f);
setPaddingBottom(6.5f);
detail.addCell(getCellData("ความสามารถพิเศษ", font14B, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("ความสามารถพิเศษ", font14B, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData(
simmapplicantwithgson.mdrop_resumeSkill.expertise.toString()
, font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData(
expertise
, font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("พิมพ์ดีดไทย", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("พิมพ์ดีดไทย", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData(simmapplicantwithgson.mdrop_resumeSkill.typing.tha, font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData(simmapplicantwithgson.mdrop_resumeSkill.typing.tha, font12N, "R_BOTTOM_DOT", "CENTER", "TOP", 0, 0));
detail.addCell(getCellData("คำ/นาที พิมพ์ดีดอังกฤษ", font12N, "NO", "LEFT", "TOP", 0, 0));
detail.addCell(getCellData("คำ/นาที พิมพ์ดีดอังกฤษ", font12N, "NO", "LEFT", "TOP", 0, 0));
...
@@ -1479,9 +1582,12 @@ Not found data
...
@@ -1479,9 +1582,12 @@ Not found data
detail
.
addCell
(
getCellData
("สาเหตุที่ลาออก",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
1
,
0
));
detail
.
addCell
(
getCellData
("สาเหตุที่ลาออก",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
1
,
0
));
detail
.
addCell
(
getCellData
(
jobexp
.
get
("
reason
"+
num
).
toString
(),
font12N
,
"
R_BOTTOM_DOT
",
"
LEFT
",
"
MIDDLE
",
7
,
0
));
detail
.
addCell
(
getCellData
(
jobexp
.
get
("
reason
"+
num
).
toString
(),
font12N
,
"
R_BOTTOM_DOT
",
"
LEFT
",
"
MIDDLE
",
7
,
0
));
}
}
detail
.
addCell
(
getCellData
("
",
font12N
,
"
NO
",
"
CENTER
",
"
MIDDLE
",
8
,
0
));
document
.
add
(
detail
);
document
.
add
(
detail
);
//
---------------
new
line
-----------------
//
---------------
new
line
-----------------
String
local =
simmapplicantwithgson.mdrop_resumeOther.distinguished.local;
String
inter =
simmapplicantwithgson.mdrop_resumeOther.distinguished.inter;
sizeColumn =
new
float
[]{
100
.
0f
};
sizeColumn =
new
float
[]{
100
.
0f
};
detail =
new
PdfPTable
(
1
);
detail =
new
PdfPTable
(
1
);
detail
.
setWidthPercentage
(
100
);
detail
.
setWidthPercentage
(
100
);
...
@@ -1489,11 +1595,11 @@ Not found data
...
@@ -1489,11 +1595,11 @@ Not found data
setPaddingTop
(
3
.
5f
);
setPaddingTop
(
3
.
5f
);
setPaddingLeft
(
3
.
5f
);
setPaddingLeft
(
3
.
5f
);
setPaddingRight
(
3
.
5f
);
setPaddingRight
(
3
.
5f
);
setPaddingBottom
(
6
.
5f
);
setPaddingBottom
(
3
.
5f
);
detail
.
addCell
(
getCellData
("อธิบายลักษณะงานที่เคยทำผ่านมา
/
ลักษณะงานที่ทำได้",
font14B
,
"",
"
CENTER
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
("อธิบายลักษณะงานที่เคยทำผ่านมา
/
ลักษณะงานที่ทำได้",
font14B
,
"",
"
CENTER
",
"
MIDDLE
",
0
,
0
));
for
(
int
num=
0;num
<
9
;
num
++
){
for
(
int
num=
0;num
<
9
;
num
++
){
detail
.
addCell
(
getCellData
(
String
.
valueOf
(
num
+
1
)
+
"..........."
,
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
(
String
.
valueOf
(
num
+
1
)
+
local
,
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
}
}
document
.
add
(
detail
);
document
.
add
(
detail
);
...
@@ -1505,16 +1611,16 @@ Not found data
...
@@ -1505,16 +1611,16 @@ Not found data
setPaddingTop
(
3
.
5f
);
setPaddingTop
(
3
.
5f
);
setPaddingLeft
(
3
.
5f
);
setPaddingLeft
(
3
.
5f
);
setPaddingRight
(
3
.
5f
);
setPaddingRight
(
3
.
5f
);
setPaddingBottom
(
6
.
5f
);
setPaddingBottom
(
3
.
5f
);
detail
.
addCell
(
getCellData
("ประวัติการฝึกอบรม",
font14B
,
"",
"
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
));
detail
.
addCell
(
getCellData
("ปี
พ.ศ.",
font14B
,
"",
"
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
<
5
;
num
++
){
for
(
int
num=
0;num
<
5
;
num
++
){
detail
.
addCell
(
getCellData
(
String
.
valueOf
(
num
+
1
)
+
"...........",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
(
String
.
valueOf
(
num
+
1
)
+".
"
+
trainingHM
.
get
("
name
"+
num
).
toString
(),
font12N
,
"
R_RIGHT
",
"
LEFT
",
"
MIDDLE
",
1
,
0
));
detail
.
addCell
(
getCellData
(
"...........",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
(
trainingHM
.
get
("
by
"+
num
).
toString
(),
font12N
,
"
R_RIGHT
",
"
LEFT
",
"
MIDDLE
",
1
,
0
));
detail
.
addCell
(
getCellData
(
"...........",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
(
trainingHM
.
get
("
year
"+
num
).
toString
(),
font12N
,
"
R_RIGHT
",
"
LEFT
",
"
MIDDLE
",
1
,
0
));
detail
.
addCell
(
getCellData
(
"...........",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
(
trainingHM
.
get
("
countday
"+
num
).
toString
(),
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
1
,
0
));
}
}
document
.
add
(
detail
);
document
.
add
(
detail
);
//
---------------
new
line
-----------------
//
---------------
new
line
-----------------
...
@@ -1532,14 +1638,15 @@ Not found data
...
@@ -1532,14 +1638,15 @@ Not found data
detail
.
addCell
(
getCellData
("อาชีพ",
font14B
,
"",
"
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
++
){
for
(
int
num=
0;num
<
4
;
num
++
){
detail
.
addCell
(
getCellData
(
String
.
valueOf
(
num
+
1
)
+
"
...........",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
(
String
.
valueOf
(
num
+
1
)
+
"
"
+
personreference
.
get
("
name
"+
num
).
toString
(),
font12N
,
"
R_RIGHT
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
(
"...........",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
(
personreference
.
get
("
relations
"+
num
).
toString
(),
font12N
,
"
R_RIGHT
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
(
"...........",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
(
personreference
.
get
("
jobtitle
"+
num
).
toString
(),
font12N
,
"
R_RIGHT
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
(
"..........."
,
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
(
personreference
.
get
("
address
"+
num
).
toString
()
+
"
/
"
+
personreference
.
get
("
phone
"+
num
).
toString
()
,
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
}
}
document
.
add
(
detail
);
document
.
add
(
detail
);
//
---------------
new
line
-----------------
//
---------------
new
line
-----------------
String
visiononjob =
simmapplicantwithgson.mdrop_resumeOther.visiononjob;
sizeColumn =
new
float
[]{
100
.
0f
};
sizeColumn =
new
float
[]{
100
.
0f
};
detail =
new
PdfPTable
(
1
);
detail =
new
PdfPTable
(
1
);
detail
.
setWidthPercentage
(
100
);
detail
.
setWidthPercentage
(
100
);
...
@@ -1554,7 +1661,7 @@ Not found data
...
@@ -1554,7 +1661,7 @@ Not found data
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
",
0
,
0
));
detail
.
addCell
(
getCellData
("ความสำเร็จที่ผ่านมา
หรือลักษณะงานหรือลักษณะงาน
ความรู้หรือความสามารถพิเศษที่เกี่ยวข้องกับงาน
ซึ่งท่านถนัดและสนใจมากที่สุด",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
for
(
int
num=
0;num
<
6
;
num
++
){
for
(
int
num=
0;num
<
6
;
num
++
){
detail
.
addCell
(
getCellData
(
"..........."
,
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
(
visiononjob
,
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
}
}
document
.
add
(
detail
);
document
.
add
(
detail
);
...
@@ -1573,7 +1680,13 @@ Not found data
...
@@ -1573,7 +1680,13 @@ Not found data
document
.
add
(
detail
);
document
.
add
(
detail
);
//
---------------
new
line
-----------------
//
---------------
new
line
-----------------
sizeColumn =
new
float
[]{
20
.
0f
,
5
.
0f
,
5
.
0f
,
7
.
0f
,
5
.
0f
,
10
.
0f
,
15
.
0f
};
Boolean
applyStatus =
simmapplicantwithgson.mdrop_resumeOther.apply;
String
applyPosition =
simmapplicantwithgson.mdrop_resumeOther.applyDesc.position;
String
applyYear =
simmapplicantwithgson.mdrop_resumeOther.applyDesc.year;
Boolean
tradeStatus =
simmapplicantwithgson.mdrop_resumeOther.tradeUnion.status;
String
tradeName =
simmapplicantwithgson.mdrop_resumeOther.tradeUnion.name;
String
tradeRole =
simmapplicantwithgson.mdrop_resumeOther.tradeUnion.role;
sizeColumn =
new
float
[]{
20
.
0f
,
5
.
0f
,
5
.
0f
,
6
.
0f
,
12
.
0f
,
7
.
0f
,
12
.
0f
};
detail =
new
PdfPTable
(
7
);
detail =
new
PdfPTable
(
7
);
detail
.
setWidthPercentage
(
100
);
detail
.
setWidthPercentage
(
100
);
detail
.
setWidths
(
sizeColumn
);
detail
.
setWidths
(
sizeColumn
);
...
@@ -1583,55 +1696,55 @@ Not found data
...
@@ -1583,55 +1696,55 @@ Not found data
setPaddingBottom
(
6
.
5f
);
setPaddingBottom
(
6
.
5f
);
detail
.
addCell
(
getCellData
("การเป็นพนักงานของบริษัทฯนี้ท่าน",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
detail
.
addCell
(
getCellData
("การเป็นพนักงานของบริษัทฯนี้ท่าน",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
content =
new
Phrase
();
content =
new
Phrase
();
content
.
add
(
new
Chunk
(
personal_status
.
equalsIgnoreCase
("
S
")
?
AwesomeIcons
.
ICON_CHECK:AwesomeIcons
.
ICON_CHECK_EMPTY
,
fontAwesome
));
content
.
add
(
new
Chunk
(
!
applyStatus
?
AwesomeIcons
.
ICON_CHECK:AwesomeIcons
.
ICON_CHECK_EMPTY
,
fontAwesome
));
content
.
add
(
new
Chunk
("
ไม่เคย",
font12N
));
content
.
add
(
new
Chunk
("
ไม่เคย",
font12N
));
detail
.
addCell
(
getCellData2
(
content
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
1
,
1
)
);
detail
.
addCell
(
getCellData2
(
content
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
1
,
1
)
);
content =
new
Phrase
();
content =
new
Phrase
();
content
.
add
(
new
Chunk
(
personal_status
.
equalsIgnoreCase
("
S
")
?
AwesomeIcons
.
ICON_CHECK:AwesomeIcons
.
ICON_CHECK_EMPTY
,
fontAwesome
));
content
.
add
(
new
Chunk
(
applyStatus
?
AwesomeIcons
.
ICON_CHECK:AwesomeIcons
.
ICON_CHECK_EMPTY
,
fontAwesome
));
content
.
add
(
new
Chunk
("
เคย",
font12N
));
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
",
"
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
(
applyStatus
?
applyPosition:
"",
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
));
content =
new
Phrase
();
content =
new
Phrase
();
content
.
add
(
new
Chunk
(
"...
",
font12N
));
content
.
add
(
new
Chunk
(
applyStatus
?
applyYear:
"
",
font12N
));
content
.
add
(
new
Chunk
("
เดือน
ปี",
font12N
));
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
",
0
,
0
));
detail
.
addCell
(
getCellData
("การรู้จักพนักงานของบริษัทฯนี้ท่าน",
font12N
,
"
NO
",
"
LEFT
",
"
MIDDLE
",
0
,
0
));
content =
new
Phrase
();
content =
new
Phrase
();
content
.
add
(
new
Chunk
(
personal_status
.
equalsIgnoreCase
("
S
"
)?
AwesomeIcons
.
ICON_CHECK:AwesomeIcons
.
ICON_CHECK_EMPTY
,
fontAwesome
));
content
.
add
(
new
Chunk
(
!(
roundComReference
>
0
)? AwesomeIcons.ICON_CHECK:AwesomeIcons.ICON_CHECK_EMPTY,fontAwesome));
content.add(new Chunk(" ไม่รู้",font12N));
content.add(new Chunk(" ไม่รู้",font12N));
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
content = new Phrase();
content = new Phrase();
content
.
add
(
new
Chunk
(
personal_status
.
equalsIgnoreCase
("
S
"
)?
AwesomeIcons
.
ICON_CHECK:AwesomeIcons
.
ICON_CHECK_EMPTY
,
fontAwesome
));
content.add(new Chunk(
(roundComReference > 0
)? AwesomeIcons.ICON_CHECK:AwesomeIcons.ICON_CHECK_EMPTY,fontAwesome));
content.add(new Chunk(" รู้",font12N));
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", "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(
companyReference.getString("fullname0"), 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(
companyReference.getString("position0"), font12N, "R_BOTTOM_DOT
", "CENTER", "MIDDLE", 0, 0));
detail.addCell(getCellData("การเป็นสมาชิกของชมรม / สหภาพ / สโมสรท่าน", font12N, "NO", "LEFT", "MIDDLE", 0, 0));
detail.addCell(getCellData("การเป็นสมาชิกของชมรม / สหภาพ / สโมสรท่าน", font12N, "NO", "LEFT", "MIDDLE", 0, 0));
content = new Phrase();
content = new Phrase();
content
.
add
(
new
Chunk
(
personal_status
.
equalsIgnoreCase
("
S
")
?
AwesomeIcons
.
ICON_CHECK:AwesomeIcons
.
ICON_CHECK_EMPTY
,
fontAwesome
));
content.add(new Chunk(
!tradeStatus
? AwesomeIcons.ICON_CHECK:AwesomeIcons.ICON_CHECK_EMPTY,fontAwesome));
content.add(new Chunk(" ไม่เคย",font12N));
content.add(new Chunk(" ไม่เคย",font12N));
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
content = new Phrase();
content = new Phrase();
content
.
add
(
new
Chunk
(
personal_status
.
equalsIgnoreCase
("
S
")
?
AwesomeIcons
.
ICON_CHECK:AwesomeIcons
.
ICON_CHECK_EMPTY
,
fontAwesome
));
content.add(new Chunk(
tradeStatus
? AwesomeIcons.ICON_CHECK:AwesomeIcons.ICON_CHECK_EMPTY,fontAwesome));
content.add(new Chunk(" เคย",font12N));
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", "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(
tradeStatus?tradeName:"", 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(
tradeStatus?tradeRole:"", font12N, "R_BOTTOM_DOT
", "CENTER", "MIDDLE", 0, 0));
document.add(detail);
document.add(detail);
// --------------- new line -----------------shiftwork
// --------------- new line -----------------shiftwork
Boolean shiftwork = simmapplicantwithgson.mdrop_resumeOther.shiftwork;
Boolean shiftwork = simmapplicantwithgson.mdrop_resumeOther.shiftwork;
Boolean overtime_status = simmapplicantwithgson.mdrop_resumeOther.overtime.status;
Boolean overtime_status = simmapplicantwithgson.mdrop_resumeOther.overtime.status;
String overtime = simmapplicantwithgson.mdrop_resumeOther.overtime.explain;
String overtime = simmapplicantwithgson.mdrop_resumeOther.overtime.explain;
//
Boolean
ordination =
simmapplicantwithgson.mdrop_resumeOther.overtime
.ordination;
Boolean ordination = simmapplicantwithgson.mdrop_resumeOther
.ordination;
sizeColumn = new float[]{10.0f,5.0f,5.0f,15.0f,5.0f,5.0f,5.0f,10.0f};
sizeColumn = new float[]{10.0f,5.0f,5.0f,15.0f,5.0f,5.0f,5.0f,10.0f};
detail = new PdfPTable(8);
detail = new PdfPTable(8);
detail.setWidthPercentage(100);
detail.setWidthPercentage(100);
...
@@ -1663,11 +1776,11 @@ Not found data
...
@@ -1663,11 +1776,11 @@ Not found data
detail.addCell(getCellData("การอุปสมบท ท่าน", font12N, "NO", "LEFT", "MIDDLE", 0, 0));
detail.addCell(getCellData("การอุปสมบท ท่าน", font12N, "NO", "LEFT", "MIDDLE", 0, 0));
content = new Phrase();
content = new Phrase();
content
.
add
(
new
Chunk
(!
shiftwork
?
AwesomeIcons
.
ICON_CHECK:AwesomeIcons
.
ICON_CHECK_EMPTY
,
fontAwesome
));
content.add(new Chunk(!
ordination
? AwesomeIcons.ICON_CHECK:AwesomeIcons.ICON_CHECK_EMPTY,fontAwesome));
content.add(new Chunk(" ยัง",font12N));
content.add(new Chunk(" ยัง",font12N));
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
content = new Phrase();
content = new Phrase();
content
.
add
(
new
Chunk
(
shiftwork
?
AwesomeIcons
.
ICON_CHECK:AwesomeIcons
.
ICON_CHECK_EMPTY
,
fontAwesome
));
content.add(new Chunk(
ordination
? AwesomeIcons.ICON_CHECK:AwesomeIcons.ICON_CHECK_EMPTY,fontAwesome));
content.add(new Chunk(" อุปสมบทแล้ว",font12N));
content.add(new Chunk(" อุปสมบทแล้ว",font12N));
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 6, 1) );
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 6, 1) );
document.add(detail);
document.add(detail);
...
@@ -1798,6 +1911,8 @@ Not found data
...
@@ -1798,6 +1911,8 @@ Not found data
document.add(detail);
document.add(detail);
// --------------- new line -----------------
// --------------- new line -----------------
Boolean pregnant_status =simmapplicantwithgson.mdrop_resumeOther.pregnant.status;
String pregnant =simmapplicantwithgson.mdrop_resumeOther.pregnant.months;
Boolean surgical_status =simmapplicantwithgson.mdrop_resumeOther.surgical.status;
Boolean surgical_status =simmapplicantwithgson.mdrop_resumeOther.surgical.status;
String surgical =simmapplicantwithgson.mdrop_resumeOther.surgical.explain;
String surgical =simmapplicantwithgson.mdrop_resumeOther.surgical.explain;
sizeColumn = new float[]{20.0f,8.0f,14.0f,14.0f,20.0f,10.0f,10.0f};
sizeColumn = new float[]{20.0f,8.0f,14.0f,14.0f,20.0f,10.0f,10.0f};
...
@@ -1810,14 +1925,14 @@ Not found data
...
@@ -1810,14 +1925,14 @@ Not found data
setPaddingBottom(6.5f);
setPaddingBottom(6.5f);
detail.addCell(getCellData("ขณะนี้ท่านตั้งครรภ์อยู่หรือไม่", font12N, "NO", "LEFT", "MIDDLE", 0, 0));
detail.addCell(getCellData("ขณะนี้ท่านตั้งครรภ์อยู่หรือไม่", font12N, "NO", "LEFT", "MIDDLE", 0, 0));
content = new Phrase();
content = new Phrase();
content
.
add
(
new
Chunk
(
personal_status
.
equalsIgnoreCase
("
S
")
?
AwesomeIcons
.
ICON_CHECK:AwesomeIcons
.
ICON_CHECK_EMPTY
,
fontAwesome
));
content.add(new Chunk(
!pregnant_status
? AwesomeIcons.ICON_CHECK:AwesomeIcons.ICON_CHECK_EMPTY,fontAwesome));
content.add(new Chunk(" ไม่ใช่",font12N));
content.add(new Chunk(" ไม่ใช่",font12N));
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
content = new Phrase();
content = new Phrase();
content
.
add
(
new
Chunk
(
p
ersonal_status
.
equalsIgnoreCase
("
S
")
?
AwesomeIcons
.
ICON_CHECK:AwesomeIcons
.
ICON_CHECK_EMPTY
,
fontAwesome
));
content.add(new Chunk(p
regnant_status
? AwesomeIcons.ICON_CHECK:AwesomeIcons.ICON_CHECK_EMPTY,fontAwesome));
content.add(new Chunk(" ใช่ อายุครรภ์",font12N));
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
",
1
,
0
));
detail.addCell(getCellData(
pregnant_status?pregnant :"", font12N, "R_BOTTOM_DOT
", "LEFT", "MIDDLE", 1, 0));
detail.addCell(getCellData("เดือน", font12N, "NO", "LEFT", "MIDDLE", 3, 0));
detail.addCell(getCellData("เดือน", font12N, "NO", "LEFT", "MIDDLE", 3, 0));
detail.addCell(getCellData("การเจ็บป่วยหนัก / อุบัติเหตุ ท่าน", font12N, "NO", "LEFT", "MIDDLE", 0, 0));
detail.addCell(getCellData("การเจ็บป่วยหนัก / อุบัติเหตุ ท่าน", font12N, "NO", "LEFT", "MIDDLE", 0, 0));
...
@@ -1835,6 +1950,7 @@ Not found data
...
@@ -1835,6 +1950,7 @@ Not found data
document.add(detail);
document.add(detail);
// --------------- new line -----------------
// --------------- new line -----------------
Boolean guarantees = simmapplicantwithgson.mdrop_resumeOther.guarantees;
sizeColumn = new float[]{35.0f,10.0f,60.0f};
sizeColumn = new float[]{35.0f,10.0f,60.0f};
detail = new PdfPTable(3);
detail = new PdfPTable(3);
detail.setWidthPercentage(100);
detail.setWidthPercentage(100);
...
@@ -1845,11 +1961,11 @@ Not found data
...
@@ -1845,11 +1961,11 @@ Not found data
setPaddingBottom(6.5f);
setPaddingBottom(6.5f);
detail.addCell(getCellData("การค้ำประกันการทำงาน (บุคคล และ/หรือเงินสด)", font12N, "NO", "LEFT", "MIDDLE", 0, 0));
detail.addCell(getCellData("การค้ำประกันการทำงาน (บุคคล และ/หรือเงินสด)", font12N, "NO", "LEFT", "MIDDLE", 0, 0));
content = new Phrase();
content = new Phrase();
content
.
add
(
new
Chunk
(
personal_status
.
equalsIgnoreCase
("
S
")
?
AwesomeIcons
.
ICON_CHECK:AwesomeIcons
.
ICON_CHECK_EMPTY
,
fontAwesome
));
content.add(new Chunk(
!guarantees
? AwesomeIcons.ICON_CHECK:AwesomeIcons.ICON_CHECK_EMPTY,fontAwesome));
content.add(new Chunk(" ไม่ได้",font12N));
content.add(new Chunk(" ไม่ได้",font12N));
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
content = new Phrase();
content = new Phrase();
content
.
add
(
new
Chunk
(
personal_status
.
equalsIgnoreCase
("
S
")
?
AwesomeIcons
.
ICON_CHECK:AwesomeIcons
.
ICON_CHECK_EMPTY
,
fontAwesome
));
content.add(new Chunk(
guarantees
? AwesomeIcons.ICON_CHECK:AwesomeIcons.ICON_CHECK_EMPTY,fontAwesome));
content.add(new Chunk(" ได้",font12N));
content.add(new Chunk(" ได้",font12N));
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
detail.addCell(getCellData2( content, "NO", "LEFT", "MIDDLE", 1, 1) );
document.add(detail);
document.add(detail);
...
@@ -2349,191 +2465,6 @@ Not found data
...
@@ -2349,191 +2465,6 @@ Not found data
document.add(detail);
document.add(detail);
// --------------- new line -----------------
// --------------- new line -----------------
String
military_status =
simmapplicantwithgson.mdrop_resumePersonal.military.status;
sizeColumn =
new
float
[]{
15
.
0f
,
2
.
5f
,
15
.
0f
,
2
.
5f
,
15
.
0f
,
2
.
5f
,
15
.
0f
};
detail =
new
PdfPTable
(
7
);
detail
.
setWidthPercentage
(
100
);
detail
.
setWidths
(
sizeColumn
);
setPaddingTop
(
1
.
0f
);
setPaddingLeft
(
3
.
5f
);
setPaddingRight
(
3
.
5f
);
setPaddingBottom
(
4
.
5f
);
cellDetail =
new
PdfPCell
(
new
Phrase
("สถานภาพทางทหาร\
nMilitry
Status
",
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setPaddingLeft
(
paddingleft
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
35
);
cellDetail
.
setBorder
(
Rectangle
.
LEFT
|
Rectangle
.
TOP
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
(
military_status
.
equalsIgnoreCase
("
1
")?
AwesomeIcons
.
ICON_CHECK:AwesomeIcons
.
ICON_CHECK_EMPTY
,
fontAwesome
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setPaddingLeft
(
paddingleft
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
35
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("ผ่านการเกณฑ์ทหาร\
nMilitry
Studied
",
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
(
military_status
.
equalsIgnoreCase
("
2
")?
AwesomeIcons
.
ICON_CHECK:AwesomeIcons
.
ICON_CHECK_EMPTY
,
fontAwesome
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setPaddingLeft
(
paddingleft
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
35
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("ยังไม่ได้ผ่านการเกณฑ์ทหาร\
nDischarged
",
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
35
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
(
military_status
.
equalsIgnoreCase
("
3
")?
AwesomeIcons
.
ICON_CHECK:AwesomeIcons
.
ICON_CHECK_EMPTY
,
fontAwesome
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setPaddingLeft
(
paddingleft
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
35
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("ได้รับการยกเว้น
เรื่องจาก\
nExempted
Reason
",
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
|
Rectangle
.
RIGHT
);
detail
.
addCell
(
cellDetail
);
document
.
add
(
detail
);
//
---------------
new
line
-----------------
sizeColumn =
new
float
[]{
100
.
0f
};
detail =
new
PdfPTable
(
1
);
detail
.
setWidthPercentage
(
100
);
detail
.
setWidths
(
sizeColumn
);
setPaddingTop
(
1
.
0f
);
setPaddingLeft
(
3
.
5f
);
setPaddingRight
(
3
.
5f
);
setPaddingBottom
(
4
.
5f
);
setBaseBackgroundColor
(
60
,
175
,
74
);
detail
.
addCell
(
getCellData
("ประวัติครอบครัว
(
Family
Background
)",
fontHead
,
false
,
"
CENTER
",
"
BOTTOM
",
1
,
0
,
true
));
document
.
add
(
detail
);
//
---------------
new
line
-----------------
sizeColumn =
new
float
[]{
15
.
0f
,
30
.
0f
,
5
.
0f
,
15
.
0f
,
10
.
0f
,
25
.
0f
};
detail =
new
PdfPTable
(
6
);
detail
.
setWidthPercentage
(
100
);
detail
.
setWidths
(
sizeColumn
);
setPaddingTop
(
1
.
0f
);
setPaddingLeft
(
3
.
5f
);
setPaddingRight
(
3
.
5f
);
setPaddingBottom
(
4
.
5f
);
setBaseBackgroundColor
(
188
,
249
,
183
);
detail
.
addCell
(
getCellData
("สมาชิก\
nMember
",
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
true
));
detail
.
addCell
(
getCellData
("ชื่อ
-
นามสกุล\
nName-Surname
",
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
true
));
detail
.
addCell
(
getCellData
("อายุ\
nAge
",
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
true
));
detail
.
addCell
(
getCellData
("อาชีพ\
nOccupation
",
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
true
));
detail
.
addCell
(
getCellData
("ตำแหน่ง\
nPosition
",
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
true
));
detail
.
addCell
(
getCellData
("สถานที่ทำงาน
/
เบอร์ติดต่อ\
nPlace
of
work
/
Telephone
",
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
true
));
detail
.
addCell
(
getCellData
("ชื่อบิดา\
nFather
'
name
",
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
true
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
prefix01
").
toString
()+"
"+
familybackground
.
get
("
fname01
").
toString
()
+
"
"
+
familybackground
.
get
("
lname01
").
toString
(),
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
false
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
age01
").
toString
(),
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
false
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
occupation01
").
toString
(),
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
false
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
position01
").
toString
(),
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
false
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
workplace01
").
toString
()
+
"
"
+
familybackground
.
get
("
phone01
").
toString
(),
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
false
));
detail
.
addCell
(
getCellData
("ชื่อมารดา\
nMother
'
name
",
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
true
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
prefix02
").
toString
()+"
"+
familybackground
.
get
("
fname02
").
toString
()
+
"
"
+
familybackground
.
get
("
lname02
").
toString
(),
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
false
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
age02
").
toString
(),
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
false
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
occupation02
").
toString
(),
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
false
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
position02
").
toString
(),
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
false
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
workplace02
").
toString
()
+
"
"
+
familybackground
.
get
("
phone02
").
toString
(),
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
false
));
detail
.
addCell
(
getCellData
("ชื่อคู่สมรส\
nSpouse
'
s
name
",
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
true
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
prefix03
").
toString
()+"
"+
familybackground
.
get
("
fname03
").
toString
()
+
"
"
+
familybackground
.
get
("
lname03
").
toString
(),
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
false
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
age03
").
toString
(),
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
false
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
occupation03
").
toString
(),
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
false
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
position03
").
toString
(),
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
false
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
workplace03
").
toString
()
+
"
"
+
familybackground
.
get
("
phone03
").
toString
(),
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
false
));
detail
.
addCell
(
getCellData
("จำนวนบุตร
"
+
childtotal
+
"
คน\
nNo
.
of
children
",
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
true
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
prefixallchild
")+"
"+
familybackground
.
get
("
nameallchild
").
toString
(),
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
false
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
ageallchild
").
toString
(),
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
false
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
occupationallchild
").
toString
(),
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
false
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
positionallchild
").
toString
(),
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
false
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
workplaceandphoneallchild
").
toString
(),
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
false
));
detail
.
addCell
(
getCellData
("จำนวนพี่น้อง
"
+
relativetotal
+
"
คน\
nNo
.
of
relative
",
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
true
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
nameSiblings
").
toString
(),
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
false
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
ageSiblings
").
toString
(),
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
false
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
occupationSiblings
").
toString
(),
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
false
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
positionSiblings
").
toString
(),
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
false
));
detail
.
addCell
(
getCellData
(
familybackground
.
get
("
workplaceandphoneSiblings
").
toString
(),
fontHead
,
false
,
"
CENTER
",
"
MIDDLE
",
1
,
0
,
false
));
document
.
add
(
detail
);
//
---------------
new
line
-----------------
sizeColumn =
new
float
[]{
50
.
0f
,
20
.
0f
,
30
.
0f
};
detail =
new
PdfPTable
(
3
);
detail
.
setWidthPercentage
(
100
);
detail
.
setWidths
(
sizeColumn
);
setPaddingTop
(
1
.
0f
);
setPaddingLeft
(
3
.
5f
);
setPaddingRight
(
3
.
5f
);
setPaddingBottom
(
4
.
5f
);
cellDetail =
new
PdfPCell
(
new
Phrase
("ชื่อบุคคลที่ติดต่อฉุกเฉิน\
nPerson
to
contact
in
emergency
:
"
+
familybackground
.
get
("
prefix99
")+"
"+
familybackground
.
get
("
fname99
").
toString
()
+
"
"
+
familybackground
.
get
("
lname99
").
toString
(),
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setPaddingLeft
(
paddingleft
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
35
);
cellDetail
.
setBorder
(
Rectangle
.
LEFT
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("ความสัมพันธ์\
nRelationship
",
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
NO_BORDER
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("โทรศัพท์\
nTelephone
:
"
+
familybackground
.
get
("
phone99
").
toString
(),
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
35
);
cellDetail
.
setBorder
(
Rectangle
.
RIGHT
);
detail
.
addCell
(
cellDetail
);
document
.
add
(
detail
);
//
---------------
new
line
-----------------
sizeColumn = new float[]{100.0f};
sizeColumn = new float[]{100.0f};
detail = new PdfPTable(1);
detail = new PdfPTable(1);
detail.setWidthPercentage(100);
detail.setWidthPercentage(100);
...
@@ -2773,609 +2704,9 @@ Not found data
...
@@ -2773,609 +2704,9 @@ Not found data
detail.addCell(getCellData(jobexp.get("salary2").toString(), fontHead, false, "CENTER", "MIDDLE", 1, 0, false));
detail.addCell(getCellData(jobexp.get("salary2").toString(), fontHead, false, "CENTER", "MIDDLE", 1, 0, false));
detail.addCell(getCellData(jobexp.get("reason2").toString(), fontHead, false, "CENTER", "MIDDLE", 1, 0, false));
detail.addCell(getCellData(jobexp.get("reason2").toString(), fontHead, false, "CENTER", "MIDDLE", 1, 0, false));
document
.
add
(
detail
);
//
---------------
new
line
-----------------
sizeColumn =
new
float
[]{
100
.
0f
};
detail =
new
PdfPTable
(
1
);
detail
.
setWidthPercentage
(
100
);
detail
.
setWidths
(
sizeColumn
);
setPaddingTop
(
1
.
0f
);
setPaddingLeft
(
3
.
5f
);
setPaddingRight
(
3
.
5f
);
setPaddingBottom
(
4
.
5f
);
setBaseBackgroundColor
(
60
,
175
,
74
);
detail
.
addCell
(
getCellData
("ความสามารถพิเศษ
Special
Skill
",
fontHead
,
false
,
"
CENTER
",
"
BOTTOM
",
1
,
0
,
true
));
document.add(detail);
document.add(detail);
// --------------- new line -----------------
// --------------- new line -----------------
sizeColumn =
new
float
[]{
20
.
0f
,
10
.
0f
,
10
.
0f
,
10
.
0f
,
10
.
0f
,
40
.
0f
};
detail =
new
PdfPTable
(
6
);
detail
.
setWidthPercentage
(
100
);
detail
.
setWidths
(
sizeColumn
);
setPaddingTop
(
1
.
0f
);
setPaddingLeft
(
3
.
5f
);
setPaddingRight
(
3
.
5f
);
setPaddingBottom
(
4
.
5f
);
setBaseBackgroundColor
(
188
,
249
,
183
);
cellDetail =
new
PdfPCell
(
new
Phrase
("ภาษา\
nLanguages
",
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_CENTER
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
|
Rectangle
.
LEFT
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBackgroundColor
(
basecolor
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("พูด\
nSpeak
",
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_CENTER
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
|
Rectangle
.
LEFT
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBackgroundColor
(
basecolor
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("ฟัง\
nListen
",
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_CENTER
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
|
Rectangle
.
LEFT
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBackgroundColor
(
basecolor
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("อ่าน\
nRead
",
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_CENTER
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
|
Rectangle
.
LEFT
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBackgroundColor
(
basecolor
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("เขียน\
nWrite
",
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_CENTER
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
|
Rectangle
.
LEFT
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBackgroundColor
(
basecolor
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("ความสามารถพิเศษอื่นๆ\
nOther
Abilities
:
"+
simmapplicantwithgson
.
mdrop_resumeSkill
.
expertise
,
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setPaddingLeft
(
paddingleft
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
LEFT
|
Rectangle
.
RIGHT
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setColspan
(
2
);
detail
.
addCell
(
cellDetail
);
document
.
add
(
detail
);
//
---------------
new
line
-----------------
sizeColumn =
new
float
[]{
20
.
0f
,
10
.
0f
,
10
.
0f
,
10
.
0f
,
10
.
0f
,
40
.
0f
};
detail =
new
PdfPTable
(
6
);
detail
.
setWidthPercentage
(
100
);
detail
.
setWidths
(
sizeColumn
);
setPaddingTop
(
1
.
0f
);
setPaddingLeft
(
3
.
5f
);
setPaddingRight
(
3
.
5f
);
setPaddingBottom
(
4
.
5f
);
setBaseBackgroundColor
(
188
,
249
,
183
);
cellDetail =
new
PdfPCell
(
new
Phrase
(
hmlangskill
.
get
("
skillname0
").
toString
(),
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_CENTER
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
|
Rectangle
.
LEFT
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBackgroundColor
(
basecolor
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
(
hmlangskill
.
get
("
speak0
").
toString
()
,
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_CENTER
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
|
Rectangle
.
LEFT
);
cellDetail
.
setFixedHeight
(
25
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
(
hmlangskill
.
get
("
listen0
").
toString
(),
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_CENTER
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
|
Rectangle
.
LEFT
);
cellDetail
.
setFixedHeight
(
25
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
(
hmlangskill
.
get
("
reading0
").
toString
(),
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_CENTER
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
|
Rectangle
.
LEFT
);
cellDetail
.
setFixedHeight
(
25
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
(
hmlangskill
.
get
("
write0
").
toString
(),
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_CENTER
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
|
Rectangle
.
LEFT
);
cellDetail
.
setFixedHeight
(
25
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("พิมพ์ดีด
Typing
",
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setPaddingLeft
(
paddingleft
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
LEFT
|
Rectangle
.
RIGHT
|
Rectangle
.
TOP
);
cellDetail
.
setFixedHeight
(
25
);
detail
.
addCell
(
cellDetail
);
document
.
add
(
detail
);
//
---------------
new
line
-----------------
sizeColumn =
new
float
[]{
20
.
0f
,
10
.
0f
,
10
.
0f
,
10
.
0f
,
10
.
0f
,
40
.
0f
};
detail =
new
PdfPTable
(
6
);
detail
.
setWidthPercentage
(
100
);
detail
.
setWidths
(
sizeColumn
);
setPaddingTop
(
1
.
0f
);
setPaddingLeft
(
3
.
5f
);
setPaddingRight
(
3
.
5f
);
setPaddingBottom
(
4
.
5f
);
setBaseBackgroundColor
(
188
,
249
,
183
);
cellDetail =
new
PdfPCell
(
new
Phrase
(
hmlangskill
.
get
("
skillname1
").
toString
(),
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_CENTER
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
|
Rectangle
.
LEFT
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBackgroundColor
(
basecolor
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
(
hmlangskill
.
get
("
speak1
").
toString
()
,
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_CENTER
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
|
Rectangle
.
LEFT
);
cellDetail
.
setFixedHeight
(
25
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
(
hmlangskill
.
get
("
listen1
").
toString
(),
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_CENTER
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
|
Rectangle
.
LEFT
);
cellDetail
.
setFixedHeight
(
25
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
(
hmlangskill
.
get
("
reading1
").
toString
(),
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_CENTER
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
|
Rectangle
.
LEFT
);
cellDetail
.
setFixedHeight
(
25
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
(
hmlangskill
.
get
("
write1
").
toString
(),
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_CENTER
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
|
Rectangle
.
LEFT
);
cellDetail
.
setFixedHeight
(
25
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("
-
ไทย
(
Thai
)
"+
simmapplicantwithgson
.
mdrop_resumeSkill
.
typing
.
tha
+"
คำ/นาที
(
wpm
.)",
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setPaddingLeft
(
paddingleft
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
LEFT
|
Rectangle
.
RIGHT
);
cellDetail
.
setFixedHeight
(
25
);
detail
.
addCell
(
cellDetail
);
document
.
add
(
detail
);
//
---------------
new
line
-----------------
sizeColumn =
new
float
[]{
20
.
0f
,
10
.
0f
,
10
.
0f
,
10
.
0f
,
10
.
0f
,
40
.
0f
};
detail =
new
PdfPTable
(
6
);
detail
.
setWidthPercentage
(
100
);
detail
.
setWidths
(
sizeColumn
);
setPaddingTop
(
1
.
0f
);
setPaddingLeft
(
3
.
5f
);
setPaddingRight
(
3
.
5f
);
setPaddingBottom
(
4
.
5f
);
setBaseBackgroundColor
(
188
,
249
,
183
);
cellDetail =
new
PdfPCell
(
new
Phrase
(
hmlangskill
.
get
("
skillname2
").
toString
(),
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_CENTER
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
|
Rectangle
.
LEFT
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBackgroundColor
(
basecolor
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
(
hmlangskill
.
get
("
speak2
").
toString
(),
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_CENTER
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
|
Rectangle
.
LEFT
);
cellDetail
.
setFixedHeight
(
25
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
(
hmlangskill
.
get
("
listen2
").
toString
(),
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_CENTER
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
|
Rectangle
.
LEFT
);
cellDetail
.
setFixedHeight
(
25
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
(
hmlangskill
.
get
("
reading2
").
toString
(),
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_CENTER
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
|
Rectangle
.
LEFT
);
cellDetail
.
setFixedHeight
(
25
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
(
hmlangskill
.
get
("
write2
").
toString
(),
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_CENTER
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
|
Rectangle
.
LEFT
);
cellDetail
.
setFixedHeight
(
25
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("
-
อังกฤษ
(
English
)
"+
simmapplicantwithgson
.
mdrop_resumeSkill
.
typing
.
eng
+"
คำ/นาที
(
wpm
.)",
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setPaddingLeft
(
paddingleft
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
LEFT
|
Rectangle
.
RIGHT
);
cellDetail
.
setFixedHeight
(
25
);
detail
.
addCell
(
cellDetail
);
document
.
add
(
detail
);
//
---------------
new
line
-----------------
sizeColumn =
new
float
[]{
60
.
0f
,
40
.
0f
};
detail =
new
PdfPTable
(
2
);
detail
.
setWidthPercentage
(
100
);
detail
.
setWidths
(
sizeColumn
);
setPaddingTop
(
1
.
0f
);
setPaddingLeft
(
3
.
5f
);
setPaddingRight
(
3
.
5f
);
setPaddingBottom
(
4
.
5f
);
cellDetail =
new
PdfPCell
(
new
Phrase
("โปรแกรมคอมพิมเตอร์ที่สามารถใช้ได้\
nComputer
Program
",
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setPaddingLeft
(
paddingleft
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
|
Rectangle
.
LEFT
|
Rectangle
.
BOTTOM
);
cellDetail
.
setFixedHeight
(
35
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("งานอดิเรก
/
กีฬา\
nHobbies
/
Sport
:
"
+
simmapplicantwithgson
.
mdrop_resumeSkill
.
hobbies
,
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setPaddingLeft
(
paddingleft
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
|
Rectangle
.
LEFT
|
Rectangle
.
RIGHT
|
Rectangle
.
BOTTOM
);
cellDetail
.
setFixedHeight
(
35
);
detail
.
addCell
(
cellDetail
);
document
.
add
(
detail
);
//
---------------
new
line
-----------------
Boolean
car_status =
simmapplicantwithgson.mdrop_resumeSkill.vehicle.car.license;
Boolean
motorcycle_status =
simmapplicantwithgson.mdrop_resumeSkill.vehicle.motorcycle.license;
sizeColumn =
new
float
[]{
8
.
0f
,
3
.
0f
,
5
.
0f
,
3
.
0f
,
4
.
0f
,
20
.
0f
,
12
.
0f
,
3
.
0f
,
5
.
0f
,
3
.
0f
,
4
.
0f
,
16
.
0f
};
detail =
new
PdfPTable
(
12
);
detail
.
setWidthPercentage
(
100
);
detail
.
setWidths
(
sizeColumn
);
setPaddingTop
(
1
.
0f
);
setPaddingLeft
(
3
.
5f
);
setPaddingRight
(
3
.
5f
);
setPaddingBottom
(
4
.
5f
);
cellDetail =
new
PdfPCell
(
new
Phrase
("ขับรถยนต์",
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setPaddingLeft
(
paddingleft
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBorder
(
Rectangle
.
LEFT
|
Rectangle
.
TOP
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
(!
car_status
?
AwesomeIcons
.
ICON_CHECK:AwesomeIcons
.
ICON_CHECK_EMPTY
,
fontAwesome
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setPaddingLeft
(
paddingleft
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("ไม่ได้",
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
(
car_status
?
AwesomeIcons
.
ICON_CHECK:AwesomeIcons
.
ICON_CHECK_EMPTY
,
fontAwesome
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setPaddingLeft
(
paddingleft
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("ได้",
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("ใบอนุญาติเลขที่
:
"+
simmapplicantwithgson
.
mdrop_resumeSkill
.
vehicle
.
car
.
number
,
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("ขับรถจักรยานยนต์",
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
(!
motorcycle_status
?
AwesomeIcons
.
ICON_CHECK:AwesomeIcons
.
ICON_CHECK_EMPTY
,
fontAwesome
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setPaddingLeft
(
paddingleft
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("ไม่ได้",
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
(
motorcycle_status
?
AwesomeIcons
.
ICON_CHECK:AwesomeIcons
.
ICON_CHECK_EMPTY
,
fontAwesome
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setPaddingLeft
(
paddingleft
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("ได้",
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("ใบอนุญาติเลขที่
:
"+
simmapplicantwithgson
.
mdrop_resumeSkill
.
vehicle
.
motorcycle
.
number
,
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBorder
(
Rectangle
.
TOP
|
Rectangle
.
RIGHT
);
detail
.
addCell
(
cellDetail
);
document
.
add
(
detail
);
//
---------------
new
line
-----------------
Boolean
car_own =
simmapplicantwithgson.mdrop_resumeSkill.vehicle.car.own;
Boolean
motorcycle_own =
simmapplicantwithgson.mdrop_resumeSkill.vehicle.motorcycle.own;
sizeColumn =
new
float
[]{
13
.
0f
,
3
.
0f
,
3
.
0f
,
3
.
5f
,
4
.
0f
,
20
.
0f
,
16
.
0f
,
3
.
0f
,
5
.
0f
,
3
.
0f
,
5
.
0f
,
20
.
0f
};
detail =
new
PdfPTable
(
12
);
detail
.
setWidthPercentage
(
100
);
detail
.
setWidths
(
sizeColumn
);
setPaddingTop
(
1
.
0f
);
setPaddingLeft
(
3
.
5f
);
setPaddingRight
(
3
.
5f
);
setPaddingBottom
(
4
.
5f
);
cellDetail =
new
PdfPCell
(
new
Phrase
("รถยนต์ส่วนตัว",
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setPaddingLeft
(
paddingleft
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBorder
(
Rectangle
.
LEFT
|
Rectangle
.
BOTTOM
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
(
car_own
?
AwesomeIcons
.
ICON_CHECK:AwesomeIcons
.
ICON_CHECK_EMPTY
,
fontAwesome
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setPaddingLeft
(
paddingleft
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBorder
(
Rectangle
.
BOTTOM
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("มี",
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBorder
(
Rectangle
.
BOTTOM
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
(!
car_own
?
AwesomeIcons
.
ICON_CHECK:AwesomeIcons
.
ICON_CHECK_EMPTY
,
fontAwesome
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setPaddingLeft
(
paddingleft
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBorder
(
Rectangle
.
BOTTOM
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("ไม่มี",
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBorder
(
Rectangle
.
BOTTOM
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("ทะเบียน
:
"
,
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBorder
(
Rectangle
.
BOTTOM
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("รถจักรยานยนต์ส่วนตัว",
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBorder
(
Rectangle
.
BOTTOM
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
(
motorcycle_own
?
AwesomeIcons
.
ICON_CHECK:AwesomeIcons
.
ICON_CHECK_EMPTY
,
fontAwesome
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setPaddingLeft
(
paddingleft
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBorder
(
Rectangle
.
BOTTOM
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("มี",
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBorder
(
Rectangle
.
BOTTOM
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
(!
motorcycle_own
?
AwesomeIcons
.
ICON_CHECK:AwesomeIcons
.
ICON_CHECK_EMPTY
,
fontAwesome
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setPaddingLeft
(
paddingleft
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBorder
(
Rectangle
.
BOTTOM
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("ไม่มี",
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBorder
(
Rectangle
.
BOTTOM
);
detail
.
addCell
(
cellDetail
);
cellDetail =
new
PdfPCell
(
new
Phrase
("ทะเบียน
:
"
,
fontHead
));
cellDetail
.
setPadding
(
padding
);
cellDetail
.
setPaddingTop
(
paddingtop
);
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
cellDetail
.
setFixedHeight
(
25
);
cellDetail
.
setBorder
(
Rectangle
.
BOTTOM
|
Rectangle
.
RIGHT
);
detail
.
addCell
(
cellDetail
);
document
.
add
(
detail
);
//
---------------
new
line
-----------------
sizeColumn = new float[]{80.0f, 30.0f};
sizeColumn = new float[]{80.0f, 30.0f};
detail = new PdfPTable(2);
detail = new PdfPTable(2);
detail.setWidthPercentage(100);
detail.setWidthPercentage(100);
...
...
hrAppWeb.war/WEB-INF/lib/UTBean.jar
View file @
05601bb7
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment