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
90c0dbd4
Commit
90c0dbd4
authored
Dec 07, 2020
by
Thitichaipun Wutthisak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#9569 UPLOAD PICTURE
parent
fa6883f2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
105 additions
and
36 deletions
+105
-36
DHAS_RECRUIT.PNG
UPLOAD/COMPANY/LOGO/DHAS_RECRUIT.PNG
+0
-0
default.png
UPLOAD/COMPANY/LOGO/default.png
+0
-0
urljobboard.js
hrAppWeb.war/JS/urljobboard.js
+1
-1
ApplicantPrint_DHAS.jsp
hrAppWeb.war/RECRUIT/ApplicantPrint_DHAS.jsp
+34
-3
CandidatePrint_DHAS.jsp
hrAppWeb.war/RECRUIT/CandidatePrint_DHAS.jsp
+35
-2
DropResumePrintDHAS.jsp
hrAppWeb.war/RECRUIT/DropResumePrintDHAS.jsp
+35
-30
No files found.
UPLOAD/COMPANY/LOGO/DHAS_RECRUIT.PNG
0 → 100644
View file @
90c0dbd4
43.4 KB
UPLOAD/COMPANY/LOGO/default.png
0 → 100644
View file @
90c0dbd4
2.84 KB
hrAppWeb.war/JS/urljobboard.js
View file @
90c0dbd4
var
urljobboard
=
"http://10.1.1.34:9092"
;
var
urljobboard
=
"http://10.1.1.34:9092
/
"
;
hrAppWeb.war/RECRUIT/ApplicantPrint_DHAS.jsp
View file @
90c0dbd4
...
...
@@ -646,14 +646,42 @@
printby =
screen.getUProfile().get("efullname");
refer_label =
"Ref #"
;
}
//
---------------
new
line
-----------------
sizeColumn =
new
float
[]{
20
.
0f
,
60
.
0f
,
20
.
0f
};
PdfPTable
detailHeader =
new
PdfPTable
(
3
);
detailHeader
.
setWidthPercentage
(
100
);
detailHeader
.
setWidths
(
sizeColumn
);
PdfPCell
cellDetail
;
Image
imglogo =
null;
//
Image
logo=
new
Image
(
ImageDataFactory
.
create
(
IMG
));
setPaddingTop
(
1
.
0f
);
setPaddingLeft
(
3
.
5f
);
setPaddingRight
(
3
.
5f
);
setPaddingBottom
(
4
.
5f
);
DbInquiry
mcom =
new
InitialInquiry
(
screen
.
getUProfile
()).
getDbInquiry
("
mcompany
");
try
{
imglogo =
Image.getInstance(getImagePath("COMPANY_UPLOAD-dir","LOGO/","DHAS_RECRUIT.PNG","DEFAULTPERSON.jpg"));
imglogo
.
scaleToFit
(
450
,
80
);
//
cellDetail =
new
PdfPCell
(
img
,
true
);
//
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_CENTER
);
//
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
//
cellDetail
.
setFixedHeight
(
80
);
//
cellDetail
.
setBorder
(
Rectangle
.
NO_BORDER
);
imglogo
.
setAbsolutePosition
(
50f
,
630f
);
//
detailHeader
.
addCell
(
cellDetail
);
}
catch
(
Exception
e
)
{
detailHeader
.
addCell
(
getCellData
("
NO
PIC
",
font12N
,
"",
"
CENTER
",
"
MIDDLE
",
1
,
5
));
}
document
.
add
(
imglogo
);
//
---------------
new
line
-----------------
//
---------------
new
line
-----------------
//
---------------
new
line
-----------------
sizeColumn =
new
float
[]{
100
.
0f
};
PdfPTable
detail =
new
PdfPTable
(
1
);
detail
.
setWidthPercentage
(
100
);
detail
.
setWidths
(
sizeColumn
);
PdfPCell
cellDetail
;
Image
img =
null;
setPaddingTop
(
0
.
5f
);
setPaddingLeft
(
0
.
0f
);
...
...
@@ -662,7 +690,7 @@
detail
.
addCell
(
getCellData
("
FR-710-007
/
Revision
No
.
:
01
",
font12N
,
"
NO
",
"
RIGHT
",
"
TOP
",
0
,
0
));
detail
.
addCell
(
getCellData
("
Effective
Date
:
12
/
05
/
09
",
font12N
,
"
NO
",
"
RIGHT
",
"
TOP
",
0
,
0
));
setPaddingTop
(
3
0
.
5f
);
setPaddingTop
(
1
0
.
5f
);
detail
.
addCell
(
getCellData
("ใบสมัครงาน",
font20B
,
"
NO
",
"
CENTER
",
"
TOP
",
0
,
0
));
setPaddingTop
(
10
.
5f
);
...
...
@@ -670,6 +698,9 @@
setPaddingTop
(
0
.
5f
);
detail
.
addCell
(
getCellData
("วันที่รับสมัคร"+".....................",
font12N
,
"
NO
",
"
RIGHT
",
"
TOP
",
0
,
0
));
detail
.
addCell
(
getCellData
("แหล่งที่ทราบข่าว"+".....................",
font12N
,
"
NO
",
"
RIGHT
",
"
TOP
",
0
,
0
));
setPaddingTop
(
50
.
5f
);
setPaddingBottom
(
4
.
5f
);
detail
.
addCell
(
getCellData
("
",
font12N
,
"
NO
",
"
RIGHT
",
"
TOP
",
0
,
0
));
document
.
add
(
detail
);
//
---------------
new
line
-----------------
...
...
hrAppWeb.war/RECRUIT/CandidatePrint_DHAS.jsp
View file @
90c0dbd4
...
...
@@ -649,12 +649,42 @@
refer_label =
"Ref #"
;
}
//
---------------
new
line
-----------------
sizeColumn =
new
float
[]{
20
.
0f
,
60
.
0f
,
20
.
0f
};
PdfPTable
detailHeader =
new
PdfPTable
(
3
);
detailHeader
.
setWidthPercentage
(
100
);
detailHeader
.
setWidths
(
sizeColumn
);
PdfPCell
cellDetail
;
Image
imglogo =
null;
//
Image
logo=
new
Image
(
ImageDataFactory
.
create
(
IMG
));
setPaddingTop
(
1
.
0f
);
setPaddingLeft
(
3
.
5f
);
setPaddingRight
(
3
.
5f
);
setPaddingBottom
(
4
.
5f
);
DbInquiry
mcom =
new
InitialInquiry
(
screen
.
getUProfile
()).
getDbInquiry
("
mcompany
");
try
{
imglogo =
Image.getInstance(getImagePath("COMPANY_UPLOAD-dir","LOGO/","DHAS_RECRUIT.PNG","DEFAULTPERSON.jpg"));
imglogo
.
scaleToFit
(
450
,
80
);
//
cellDetail =
new
PdfPCell
(
img
,
true
);
//
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_CENTER
);
//
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
//
cellDetail
.
setFixedHeight
(
80
);
//
cellDetail
.
setBorder
(
Rectangle
.
NO_BORDER
);
imglogo
.
setAbsolutePosition
(
50f
,
630f
);
//
detailHeader
.
addCell
(
cellDetail
);
}
catch
(
Exception
e
)
{
detailHeader
.
addCell
(
getCellData
("
NO
PIC
",
font12N
,
"",
"
CENTER
",
"
MIDDLE
",
1
,
5
));
}
document
.
add
(
imglogo
);
//
---------------
new
line
-----------------
//
---------------
new
line
-----------------
sizeColumn =
new
float
[]{
100
.
0f
};
PdfPTable
detail =
new
PdfPTable
(
1
);
detail
.
setWidthPercentage
(
100
);
detail
.
setWidths
(
sizeColumn
);
PdfPCell
cellDetail
;
Image
img =
null;
setPaddingTop
(
0
.
5f
);
setPaddingLeft
(
0
.
0f
);
...
...
@@ -663,7 +693,7 @@
detail
.
addCell
(
getCellData
("
FR-710-007
/
Revision
No
.
:
01
",
font12N
,
"
NO
",
"
RIGHT
",
"
TOP
",
0
,
0
));
detail
.
addCell
(
getCellData
("
Effective
Date
:
12
/
05
/
09
",
font12N
,
"
NO
",
"
RIGHT
",
"
TOP
",
0
,
0
));
setPaddingTop
(
3
0
.
5f
);
setPaddingTop
(
1
0
.
5f
);
detail
.
addCell
(
getCellData
("ใบสมัครงาน",
font20B
,
"
NO
",
"
CENTER
",
"
TOP
",
0
,
0
));
setPaddingTop
(
10
.
5f
);
...
...
@@ -671,6 +701,9 @@
setPaddingTop
(
0
.
5f
);
detail
.
addCell
(
getCellData
("วันที่รับสมัคร"+".....................",
font12N
,
"
NO
",
"
RIGHT
",
"
TOP
",
0
,
0
));
detail
.
addCell
(
getCellData
("แหล่งที่ทราบข่าว"+".....................",
font12N
,
"
NO
",
"
RIGHT
",
"
TOP
",
0
,
0
));
setPaddingTop
(
50
.
5f
);
setPaddingBottom
(
4
.
5f
);
detail
.
addCell
(
getCellData
("
",
font12N
,
"
NO
",
"
RIGHT
",
"
TOP
",
0
,
0
));
document
.
add
(
detail
);
//
---------------
new
line
-----------------
...
...
hrAppWeb.war/RECRUIT/DropResumePrintDHAS.jsp
View file @
90c0dbd4
...
...
@@ -650,40 +650,42 @@ Not found data
}
//
---------------
Report
Header
Logo-----------------
//
sizeColumn =
new
float
[]
{
50
.
0f
,
50
.
0f
};
//
PdfPTable
detail =
new
PdfPTable
(
2
);
//
detail
.
setWidthPercentage
(
100
);
//
detail
.
setWidths
(
sizeColumn
);
//
PdfPCell
cellDetail
;
//
Image
img =
null;
//
setPaddingTop
(
0
.
5f
);
//
setPaddingLeft
(
0
.
0f
);
//
setPaddingRight
(
0
.
0f
);
//
detail
.
addCell
(
getCellData
("
Lesson
Plan
",
font20B
,
true
,
"
LEFT
",
"
MIDDLE
",
1
,
0
)
);
//
//
String
defaultFile =
"default.png"
;
//
String
filename =
screen.getString("MCOMPANY","logo");
//
InitialEnvironment
inv =
new
InitialEnvironment
("
GLOBAL
");
//
String
path =
inv.getValue("COMPANY_UPLOAD-dir")+"LOGO/";
//
if
(!
new
File
(
path
+
filename
).
exists
()
||
filename
.
equals
("")){
//
filename =
defaultFile;
//
}
//
//
img =
Image.getInstance(path+filename);
//
cellDetail =
new
PdfPCell
(
img
,
true
);
//
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_RIGHT
);
//
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
//
cellDetail
.
setFixedHeight
(
40
);
//
cellDetail
.
setBorder
(
Rectangle
.
NO_BORDER
);
//
detail
.
addCell
(
cellDetail
);
//
---------------
new
line
-----------------
sizeColumn =
new
float
[]{
20
.
0f
,
60
.
0f
,
20
.
0f
};
PdfPTable
detailHeader =
new
PdfPTable
(
3
);
detailHeader
.
setWidthPercentage
(
100
);
detailHeader
.
setWidths
(
sizeColumn
);
PdfPCell
cellDetail
;
Image
imglogo =
null;
//
Image
logo=
new
Image
(
ImageDataFactory
.
create
(
IMG
));
setPaddingTop
(
1
.
0f
);
setPaddingLeft
(
3
.
5f
);
setPaddingRight
(
3
.
5f
);
setPaddingBottom
(
4
.
5f
);
DbInquiry
mcom =
new
InitialInquiry
(
screen
.
getUProfile
()).
getDbInquiry
("
mcompany
");
try
{
imglogo =
Image.getInstance(getImagePath("COMPANY_UPLOAD-dir","LOGO/","DHAS_RECRUIT.PNG","DEFAULTPERSON.jpg"));
imglogo
.
scaleToFit
(
450
,
80
);
//
cellDetail =
new
PdfPCell
(
img
,
true
);
//
cellDetail
.
setHorizontalAlignment
(
Element
.
ALIGN_CENTER
);
//
cellDetail
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
//
cellDetail
.
setFixedHeight
(
80
);
//
cellDetail
.
setBorder
(
Rectangle
.
NO_BORDER
);
imglogo
.
setAbsolutePosition
(
50f
,
630f
);
//
detailHeader
.
addCell
(
cellDetail
);
}
catch
(
Exception
e
)
{
detailHeader
.
addCell
(
getCellData
("
NO
PIC
",
font12N
,
"",
"
CENTER
",
"
MIDDLE
",
1
,
5
));
}
document
.
add
(
imglogo
);
//
---------------
Report
Header
-----------------
//
---------------
new
line
-----------------
sizeColumn =
new
float
[]{
100
.
0f
};
PdfPTable
detail =
new
PdfPTable
(
1
);
detail
.
setWidthPercentage
(
100
);
detail
.
setWidths
(
sizeColumn
);
PdfPCell
cellDetail
;
Image
img =
null;
setPaddingTop
(
0
.
5f
);
setPaddingLeft
(
0
.
0f
);
...
...
@@ -692,7 +694,7 @@ Not found data
detail
.
addCell
(
getCellData
("
FR-710-007
/
Revision
No
.
:
01
",
font12N
,
"
NO
",
"
RIGHT
",
"
TOP
",
0
,
0
));
detail
.
addCell
(
getCellData
("
Effective
Date
:
12
/
05
/
09
",
font12N
,
"
NO
",
"
RIGHT
",
"
TOP
",
0
,
0
));
setPaddingTop
(
3
0
.
5f
);
setPaddingTop
(
1
0
.
5f
);
detail
.
addCell
(
getCellData
("ใบสมัครงาน",
font20B
,
"
NO
",
"
CENTER
",
"
TOP
",
0
,
0
));
setPaddingTop
(
10
.
5f
);
...
...
@@ -700,6 +702,9 @@ Not found data
setPaddingTop
(
0
.
5f
);
detail
.
addCell
(
getCellData
("วันที่รับสมัคร"+".....................",
font12N
,
"
NO
",
"
RIGHT
",
"
TOP
",
0
,
0
));
detail
.
addCell
(
getCellData
("แหล่งที่ทราบข่าว"+".....................",
font12N
,
"
NO
",
"
RIGHT
",
"
TOP
",
0
,
0
));
setPaddingTop
(
50
.
5f
);
setPaddingBottom
(
4
.
5f
);
detail
.
addCell
(
getCellData
("
",
font12N
,
"
NO
",
"
RIGHT
",
"
TOP
",
0
,
0
));
document
.
add
(
detail
);
//
---------------
new
line
-----------------
...
...
@@ -707,7 +712,7 @@ Not found data
detail =
new
PdfPTable
(
3
);
detail
.
setWidthPercentage
(
90
);
detail
.
setWidths
(
sizeColumn
);
setPaddingTop
(
0
.
0
f
);
setPaddingTop
(
0
.
5
f
);
setPaddingLeft
(
3
.
5f
);
setPaddingRight
(
3
.
5f
);
setPaddingBottom
(
4
.
5f
);
...
...
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