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
03c803fe
Commit
03c803fe
authored
Feb 24, 2021
by
peema_phongam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
report excel candidate exam
parent
b333dd1a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
230 additions
and
368 deletions
+230
-368
RRC030.jsp
hrAppWeb.war/RECRUIT/RRC030.jsp
+226
-152
RRC030_EXP.jsp
hrAppWeb.war/RECRUIT/RRC030_EXP.jsp
+4
-216
REBean.jar
hrAppWeb.war/WEB-INF/lib/REBean.jar
+0
-0
UTBean.jar
hrAppWeb.war/WEB-INF/lib/UTBean.jar
+0
-0
No files found.
hrAppWeb.war/RECRUIT/RRC030.jsp
View file @
03c803fe
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
<
%@
page
import=
"com.csc.library.databean.Simmappointmentwithgson"
%
>
<
%@
page
import=
"com.csc.library.databean.Simmappointmentwithgson"
%
>
<
%@
page
import=
"com.csc.library.databean.Simmapplicanthisotherwithgson"
%
>
<
%@
page
import=
"com.csc.library.databean.Simmapplicanthisotherwithgson"
%
>
<
%@
page
import=
"com.csc.library.utilities.gsonmapping.*"
%
>
<
%@
page
import=
"com.csc.library.utilities.gsonmapping.*"
%
>
<
%@
page
import=
"org.json.JSONArray"
%
>
<
%
<
%
CheckNull
chk =
new
CheckNull
();
CheckNull
chk =
new
CheckNull
();
CscCalendar
c =
new
CscCalendar
();
CscCalendar
c =
new
CscCalendar
();
...
@@ -84,16 +85,50 @@
...
@@ -84,16 +85,50 @@
<script
src=
"../JS/bootstrap.min.js"
></script>
<script
src=
"../JS/bootstrap.min.js"
></script>
<script
type=
"text/javascript"
src=
"../JS/angular-1.3.15/angular.js"
></script>
<script
type=
"text/javascript"
src=
"../JS/angular-1.3.15/angular.js"
></script>
<script
type=
"text/javascript"
src=
"../JS/ANGULAR/SCREEN_ANGULAR.js"
></script>
<script
type=
"text/javascript"
src=
"../JS/ANGULAR/SCREEN_ANGULAR.js"
></script>
<script
type=
'text/javascript'
src=
'../EXAM/JS/CLASS/Question.Class.js'
></script>
<script
language=
"javascript"
>
setLang
(
'<%=up.get("lang")%>'
);
</script>
<script
language=
"javascript"
>
setLang
(
'<%=up.get("lang")%>'
);
</script>
<script
language=
"JavaScript"
type=
"text/JavaScript"
>
<script
language=
"JavaScript"
type=
"text/JavaScript"
>
let
dataReport
=
""
let
clsQuestion
=
new
Question
()
let
router
=
[]
let
resultPIT
=
{
dominance
:
0
,
assertiveness
:
0
,
needForAchievement
:
0
,
orderliness
:
0
,
autonomy
:
0
,
needForAffiliation
:
0
,
nurturance
:
0
,
endurance
:
0
,
needForRecognition
:
0
,
initiativeness
:
0
,
sociability
:
0
,
responsibility
:
0
,
honesty
:
0
,
positiveAttitude
:
0
,
selfControl
:
0
,
consistency
:
0
}
function
GoExport
(){
function
GoExport
(){
console
.
log
(
$
(
'#tableReport'
).
html
())
// cscForm.action = "FillFormApplicant.jsp"
// cscForm.__candidateid.value = candidateid
// cscForm.target = "_blank"
// cscForm.submit()
with
(
document
.
cscform
){
with
(
document
.
cscform
){
// alert(__filter.value);
action
=
"RRC030_EXP.jsp"
var
param
=
"RRC030_EXP.jsp?__filter="
+
__filter
.
value
;
target
=
"_blank"
window
.
open
(
param
);
__objExport
.
value
=
$
(
'#tableReport'
).
html
()
submit
()
// var param = "RRC030_EXP.jsp?__filter="+__filter.value;
// window.open(param);
}
}
}
}
...
@@ -187,6 +222,7 @@
...
@@ -187,6 +222,7 @@
<input
type=
"hidden"
name=
"__isprocess"
value=
"0"
>
<input
type=
"hidden"
name=
"__isprocess"
value=
"0"
>
<input
type=
"hidden"
name=
"__filter"
value=
"<%=filter%>"
>
<input
type=
"hidden"
name=
"__filter"
value=
"<%=filter%>"
>
<input
type=
"hidden"
name=
"__calendar"
value=
""
>
<input
type=
"hidden"
name=
"__calendar"
value=
""
>
<input
type=
"hidden"
name=
"__objExport"
value=
""
>
<script
language=
"javascript"
>
getInputFormatDate
()
</script>
<script
language=
"javascript"
>
getInputFormatDate
()
</script>
<br>
<br>
...
@@ -271,86 +307,89 @@
...
@@ -271,86 +307,89 @@
<
%
<
%
if
(
isprocess
.
equals
("
1
")){
if
(
isprocess
.
equals
("
1
")){
%
>
%
>
<table
class=
"maxsize table table-bordered "
border=
"1"
cellpadding=
"0"
cellspacing=
"1"
cols=
14
bgcolor=
"#CCCCCC"
>
<div
id=
"tableReport"
>
<tr>
<table
class=
"maxsize table table-bordered "
border=
"1"
cellpadding=
"0"
cellspacing=
"1"
cols=
15
>
<td
class=
"row1 center"
colspan=
'3'
></td>
<tr>
<td
class=
"row1 center"
colspan=
'16'
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Personality
Inventory
Test
"
:
"
Personality
Inventory
Test
"%
></td>
<td
class=
"row1 center"
colspan=
'3'
></td>
<td
class=
"row1 center"
>
Abstract Reasoning
</td>
<td
class=
"row1 center"
colspan=
'16'
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Personality
Inventory
Test
"
:
"
Personality
Inventory
Test
"%
></td>
<td
class=
"row1 center"
>
Advaneed English
</td>
<td
class=
"row1 center"
>
Abstract Reasoning
</td>
</tr>
<td
class=
"row1 center"
>
Advaneed English
</td>
<tr>
<td
class=
"row1 center"
>
ข้อสอบคณิตศาสตร์
</td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"ชื่อ
-
นามสกุล"
:
"
Name-Surname
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"ตำแหน่ง"
:
"
Job
Code
"%
></td>
</tr>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"วันที่ทำข้อสอบ"
:
"
Exam
Date
"%
></td>
<tr>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Dominance
"
:
"
Dominance
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"ชื่อ
-
นามสกุล"
:
"
Name-Surname
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Assertiveness
"
:
"
Assertiveness
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"ตำแหน่ง"
:
"
Job
Code
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Need
for
Achiecement
"
:
"
Need
for
Achiecement
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"วันที่ทำข้อสอบ"
:
"
Exam
Date
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Orderliness
"
:
"
Orderliness
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Dominance
"
:
"
Dominance
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Autonomy
"
:
"
v
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Assertiveness
"
:
"
Assertiveness
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Need
for
Affiliation
"
:
"
Need
for
Affiliation
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Need
for
Achiecement
"
:
"
Need
for
Achiecement
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Nurturance
"
:
"
Nurturance
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Orderliness
"
:
"
Orderliness
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Endurance
"
:
"
Endurance
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Autonomy
"
:
"
v
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Need
for
Recognition
"
:
"
Need
for
Recognition
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Need
for
Affiliation
"
:
"
Need
for
Affiliation
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Initiativeness
"
:
"
Initiativeness
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Nurturance
"
:
"
Nurturance
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Sociability
"
:
"
Sociability
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Endurance
"
:
"
Endurance
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Responsibility
"
:
"
Responsibility
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Need
for
Recognition
"
:
"
Need
for
Recognition
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Honesty
"
:
"
Honesty
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Initiativeness
"
:
"
Initiativeness
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Positive
Attitude
"
:
"
Positive
Attitude
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Sociability
"
:
"
Sociability
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Self-Control
"
:
"
Self-Control
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Responsibility
"
:
"
Responsibility
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Consistency
"
:
"
Consistency
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Honesty
"
:
"
Honesty
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Result
"
:
"
Result
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Positive
Attitude
"
:
"
Positive
Attitude
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Result
"
:
"
Result
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Self-Control
"
:
"
Self-Control
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Consistency
"
:
"
Consistency
"%
></td>
</tr>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Result
"
:
"
Result
"%
></td>
<
%
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Result
"
:
"
Result
"%
></td>
/
/ >
>>>>>>>>>>> Current Zone
<
<<<<<<<<<<<
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Result
"
:
"
Result
"%
></td>
String
committees =
""
;
</tr>
String
isappointmentTH =
""
;
<
%
String
isappointmentEN =
""
;
/
/ >
>>>>>>>>>>> Current Zone
<
<<<<<<<<<<<
String
jobTH =
""
;
String
committees =
""
;
String
jobEN =
""
;
String
isappointmentTH =
""
;
String
dateinterview =
""
;
String
isappointmentEN =
""
;
String
timestart =
""
;
String
jobTH =
""
;
String
timeend =
""
;
String
jobEN =
""
;
String
dateavailable =
""
;
String
dateinterview =
""
;
String
emp_pass_name_list =
""
;
String
timestart =
""
;
String
startDate =
""
;
String
timeend =
""
;
String
ExamData =
"0"
;
String
dateavailable =
""
;
String
Fullname =
""
;
String
emp_pass_name_list =
""
;
String
FullnameHis =
""
;
String
startDate =
""
;
int
Point =
0;
String
ExamData =
"0"
;
DbInquiry
inqcan =
new
InitialInquiry
(
up
).
getDbInquiry
("
Simmcandidatewithgson
");
String
Fullname =
""
;
DbInquiry
inqpre =
new
InitialInquiry
(
up
).
getDbInquiry
("
mprefix
");
String
FullnameHis =
""
;
DbInquiry
inqpoint =
new
InitialInquiry
(
up
).
getDbInquiry
("
Simmappointmentwithgson
");
int
Point =
0;
DbInquiry
inqappointment =
new
InitialInquiry
(
up
).
getDbInquiry
("
mappointment
");//
get
date
and
time
DbInquiry
inqcan =
new
InitialInquiry
(
up
).
getDbInquiry
("
Simmcandidatewithgson
");
DbInquiry
inqrequest =
new
InitialInquiry
(
up
).
getDbInquiry
("
mrequest
");
DbInquiry
inqpre =
new
InitialInquiry
(
up
).
getDbInquiry
("
mprefix
");
DbInquiry
inqjob =
new
InitialInquiry
(
up
).
getDbInquiry
("
mjobcode
");
DbInquiry
inqpoint =
new
InitialInquiry
(
up
).
getDbInquiry
("
Simmappointmentwithgson
");
DbInquiry
inqsourcejob =
new
InitialInquiry
(
up
).
getDbInquiry
("
msourcejob
");
DbInquiry
inqappointment =
new
InitialInquiry
(
up
).
getDbInquiry
("
mappointment
");//
get
date
and
time
DbInquiry
inqcom =
new
InitialInquiry
(
up
).
getDbInquiry
("
mcommittee
");
DbInquiry
inqrequest =
new
InitialInquiry
(
up
).
getDbInquiry
("
mrequest
");
DbInquiry
inqemp =
new
InitialInquiry
(
up
).
getDbInquiry
("
memployee
");
DbInquiry
inqjob =
new
InitialInquiry
(
up
).
getDbInquiry
("
mjobcode
");
DbInquiry
inqstat =
new
InitialInquiry
(
up
).
getDbInquiry
("
mstatus
");
DbInquiry
inqsourcejob =
new
InitialInquiry
(
up
).
getDbInquiry
("
msourcejob
");
DbInquiry
inqapp_his =
new
InitialInquiry
(
up
).
getDbInquiry
("
mapplicant_his
");
DbInquiry
inqcom =
new
InitialInquiry
(
up
).
getDbInquiry
("
mcommittee
");
inqcan
.
setColumn
("*");
DbInquiry
inqemp =
new
InitialInquiry
(
up
).
getDbInquiry
("
memployee
");
DbInquiry
inqstat =
new
InitialInquiry
(
up
).
getDbInquiry
("
mstatus
");
inqcom
.
putChild
(
inqemp
);
DbInquiry
inqapp_his =
new
InitialInquiry
(
up
).
getDbInquiry
("
mapplicant_his
");
inqcan
.
setColumn
("*");
inqcan
.
putChild
(
inqjob
);
inqcan
.
putChild
(
inqappointment
);
inqcom
.
putChild
(
inqemp
);
inqcan
.
putChild
(
inqrequest
);
inqcan
.
putChild
(
inqsourcejob
);
inqcan
.
putChild
(
inqjob
);
inqcan
.
putChild
(
inqpoint
);
inqcan
.
putChild
(
inqappointment
);
inqcan
.
putChild
(
inqstat
);
inqcan
.
putChild
(
inqrequest
);
inqcan
.
putChild
(
inqsourcejob
);
inqcan
.
setFilter
(
filter
);
inqcan
.
putChild
(
inqpoint
);
//
out
.
print
(
filter
);
inqcan
.
putChild
(
inqstat
);
inqcan
.
refresh
();
inqcan
.
setFilter
(
filter
);
while
(
inqcan
.
next
()){
//
out
.
print
(
filter
);
committees =
""
;
inqcan
.
refresh
();
ExamData =
""
;
Simmcandidatewithgson
simmcandidatewithgson =
(Simmcandidatewithgson)
inqcan
.
getCurrentDbRecord
();
while
(
inqcan
.
next
()){
Simmappointmentwithgson
simmappointmentwithgson =
(Simmappointmentwithgson)
inqpoint
.
getCurrentDbRecord
();
committees =
""
;
/*
for
(
McandidateJobrouter
.
JobRouter
jobrouter
:
simmcandidatewithgson
.
mcandidateJobrouter
.
jobrouter
)
{
ExamData =
""
;
Simmcandidatewithgson
simmcandidatewithgson =
(Simmcandidatewithgson)
inqcan
.
getCurrentDbRecord
();
Simmappointmentwithgson
simmappointmentwithgson =
(Simmappointmentwithgson)
inqpoint
.
getCurrentDbRecord
();
/*
for
(
McandidateJobrouter
.
JobRouter
jobrouter
:
simmcandidatewithgson
.
mcandidateJobrouter
.
jobrouter
)
{
if
(
jobrouter
.
question
!=
null
){
if
(
jobrouter
.
question
!=
null
){
for
(
McandidateJobrouter
.
JobRouter
.
Question
question
:
jobrouter
.
question
){
for
(
McandidateJobrouter
.
JobRouter
.
Question
question
:
jobrouter
.
question
){
if
(
question
.
ansgroup
.
value
!=
null
){
if
(
question
.
ansgroup
.
value
!=
null
){
...
@@ -358,89 +397,124 @@
...
@@ -358,89 +397,124 @@
Point =
Integer.valueOf(chk.chkNullString(ExamData,"0"));
Point =
Integer.valueOf(chk.chkNullString(ExamData,"0"));
}
}
if
(
question
.
ansgroup
.
choice
!=
null
){
if
(
question
.
ansgroup
.
choice
!=
null
){
for
(
McandidateJobrouter
.
JobRouter
.
Question
.
AnsGroup
.
Choice
choice
:
question
.
ansgroup
.
choice
){
for
(
McandidateJobrouter
.
JobRouter
.
Question
.
AnsGroup
.
Choice
choice
:
question
.
ansgroup
.
choice
){
}
}
}
}
}
}
}
}
}*/
}*/
inqpre
.
setFilter
("
prefixid =
'"+simmcandidatewithgson.mcandidatePersonal.prefixid+"'
");
inqpre
.
setFilter
("
prefixid =
'"+simmcandidatewithgson.mcandidatePersonal.prefixid+"'
");
inqpre
.
refresh
();
inqpre
.
refresh
();
inqpre
.
next
();
inqpre
.
next
();
inqsourcejob
.
setFilter
("
sourcejobid =
'"+simmcandidatewithgson.mcandidateOther.sourcejob+"'
");
inqsourcejob
.
refresh
();
inqsourcejob
.
next
();
inqsourcejob
.
setFilter
("
sourcejobid =
'"+simmcandidatewithgson.mcandidateOther.sourcejob+"'
");
inqsourcejob
.
refresh
();
inqsourcejob
.
next
();
if
(
simmcandidatewithgson
.
mcandidatePersonal
!=
null
){
dateavailable =
c.setCscCalendar((simmcandidatewithgson.mcandidatePersonal.dateavailable).substring(0,10)).getDDMMYYYY();
}
else
{
dateavailable =
""
;
}
inqcom
.
setFilter
("
requestid =
'"+inqpoint.getString("requestid")+"'
");
if
(
simmcandidatewithgson
.
mcandidatePersonal
!=
null
){
inqcom
.
refresh
();
dateavailable =
c.setCscCalendar((simmcandidatewithgson.mcandidatePersonal.dateavailable).substring(0,10)).getDDMMYYYY();
while
(
inqcom
.
next
()){
if
(
committees
.
equals
("")){
committees =
inqcom.getString("MEMPLOYEE","fullname");
}
else
{
}
else
{
committees
+=
",
"+
inqcom
.
getString
("
MEMPLOYEE
","
fullname
");
dateavailable =
""
;
}
}
}
inqapp_his
.
setFilter
("
requestid =
'"+inqrequest.getString("requestid")+"'
and
employeeid
!=
'
0
'
");
inqcom
.
setFilter
("
requestid =
'"+inqpoint.getString("requestid")+"'
");
inqapp_his
.
refresh
();
inqcom
.
refresh
();
while
(
inqapp_his
.
next
()){
while
(
inqcom
.
next
()){
inqemp
.
setFilter
("
employeeid =
'"+inqapp_his.getString("employeeid")+"'
");
if
(
committees
.
equals
("")){
inqemp
.
refresh
();
committees =
inqcom.getString("MEMPLOYEE","fullname");
while
(
inqemp
.
next
()){
if
(
emp_pass_name_list
.
equals
("")){
emp_pass_name_list =
inqemp.getString("fullname");
startDate =
c.setCscCalendar(inqemp.getString("startdate")).getDDMMYYYY();
}
else
{
}
else
{
emp_pass_name_list
+=
",
"+
inqemp
.
getString
("
fullname
");
committees
+=
",
"+
inqcom
.
getString
("
MEMPLOYEE
","
fullname
");
startDate
+=
",
"+
c
.
setCscCalendar
(
inqemp
.
getString
("
startdate
")).
getDDMMYYYY
();
}
}
inqapp_his
.
setFilter
("
requestid =
'"+inqrequest.getString("requestid")+"'
and
employeeid
!=
'
0
'
");
inqapp_his
.
refresh
();
while
(
inqapp_his
.
next
()){
inqemp
.
setFilter
("
employeeid =
'"+inqapp_his.getString("employeeid")+"'
");
inqemp
.
refresh
();
while
(
inqemp
.
next
()){
if
(
emp_pass_name_list
.
equals
("")){
emp_pass_name_list =
inqemp.getString("fullname");
startDate =
c.setCscCalendar(inqemp.getString("startdate")).getDDMMYYYY();
}
else
{
emp_pass_name_list
+=
",
"+
inqemp
.
getString
("
fullname
");
startDate
+=
",
"+
c
.
setCscCalendar
(
inqemp
.
getString
("
startdate
")).
getDDMMYYYY
();
}
}
}
if
(
up
.
get
("
lang
").
equals
("
tha
")){
Fullname =
inqpre.getString("tdesc")+
simmcandidatewithgson
.
mcandidatePersonal
.
fname
.
tha
+"
"+
simmcandidatewithgson
.
mcandidatePersonal
.
lname
.
tha
;
}
else
{
Fullname =
inqpre.getString("edesc")+
simmcandidatewithgson
.
mcandidatePersonal
.
fname
.
eng
+"
"+
simmcandidatewithgson
.
mcandidatePersonal
.
lname
.
eng
;
}
JSONArray
router =
new
JSONArray
(
simmcandidatewithgson
.
mcandidateJobrouter
.
jobrouter
);
%
>
<tr>
<td><
%=
Fullname
%
></td>
<td><
%=
up
.
get
("
lang
").
equals
("
tha
")?
inqcan
.
getString
("
mjobcode
","
tdesc
")
:inqcan
.
getString
("
mjobcode
","
tdesc
")%
></td>
<td><
%=
inqcan
.
getString
("
applicantdate
")%
></td>
<td
id=
"dominance<%=inqcan.recNo()%>"
></td>
<td
id=
"assertiveness<%=inqcan.recNo()%>"
></td>
<td
id=
"needForAchievement<%=inqcan.recNo()%>"
></td>
<td
id=
"orderliness<%=inqcan.recNo()%>"
></td>
<td
id=
"autonomy<%=inqcan.recNo()%>"
></td>
<td
id=
"needForAffiliation<%=inqcan.recNo()%>"
></td>
<td
id=
"nurturance<%=inqcan.recNo()%>"
></td>
<td
id=
"endurance<%=inqcan.recNo()%>"
></td>
<td
id=
"needForRecognition<%=inqcan.recNo()%>"
></td>
<td
id=
"initiativeness<%=inqcan.recNo()%>"
></td>
<td
id=
"sociability<%=inqcan.recNo()%>"
></td>
<td
id=
"responsibility<%=inqcan.recNo()%>"
></td>
<td
id=
"honesty<%=inqcan.recNo()%>"
></td>
<td
id=
"positiveAttitude<%=inqcan.recNo()%>"
></td>
<td
id=
"selfControl<%=inqcan.recNo()%>"
></td>
<td
id=
"consistency<%=inqcan.recNo()%>"
></td>
<td
id=
"abstract<%=inqcan.recNo()%>"
></td>
<td
id=
"english<%=inqcan.recNo()%>"
></td>
<td
id=
"math<%=inqcan.recNo()%>"
></td>
</tr>
<script>
router
=
<%=
router
%>
router
.
forEach
((
$item
,
$index
)
=>
{
if
(
$item
.
examdata
)
{
let
isDHASPIT
=
$item
.
examdata
.
topic
.
tha
.
includes
(
"แบบสำรวจบุคลิกภาพ"
)
||
$item
.
examdata
.
topic
.
eng
.
includes
(
"แบบสำรวจบุคลิกภาพ"
)
let
isAbstract
=
$item
.
examdata
.
topic
.
tha
.
includes
(
"แบบสำรวจบุคลิกภาพ"
)
||
$item
.
examdata
.
topic
.
eng
.
includes
(
"ความถนัดเชิงเหตุผลนามธรรม"
)
let
isMath
=
$item
.
examdata
.
topic
.
tha
.
includes
(
"คณิตศาสตร์"
)
||
$item
.
examdata
.
topic
.
eng
.
includes
(
"คณิตศาสตร์"
)
let
isEnglish
=
$item
.
examdata
.
topic
.
tha
.
toUpperCase
().
includes
(
"ENGLISH"
)
||
$item
.
examdata
.
topic
.
eng
.
toUpperCase
().
includes
(
"ENGLISH"
)
if
(
isDHASPIT
)
{
resultPIT
=
clsQuestion
.
getDHASPIT
(
$item
)
for
(
let
key
in
resultPIT
)
{
if
(
resultPIT
.
hasOwnProperty
(
key
))
{
$
(
'#'
+
key
+<%=
inqcan
.
recNo
()
%>
).
text
(
resultPIT
[
key
])
}
}
}
else
if
(
isAbstract
)
{
let
abstractScore
=
clsQuestion
.
getRealScore
(
$item
.
question
)
$
(
'#abstract'
+<%=
inqcan
.
recNo
()
%>
).
text
(
abstractScore
)
}
else
if
(
isEnglish
)
{
let
englishScore
=
clsQuestion
.
getRealScore
(
$item
.
question
)
$
(
'#english'
+<%=
inqcan
.
recNo
()
%>
).
text
(
englishScore
)
}
else
if
(
isMath
)
{
let
mathScore
=
clsQuestion
.
getRealScore
(
$item
.
question
)
$
(
'#math'
+<%=
inqcan
.
recNo
()
%>
).
text
(
mathScore
)
}
}
}
}
})
</script>
<
%
}
}
if
(
up
.
get
("
lang
").
equals
("
tha
")){
%
>
Fullname =
inqpre.getString("tdesc")+
simmcandidatewithgson
.
mcandidatePersonal
.
fname
.
tha
+"
"+
simmcandidatewithgson
.
mcandidatePersonal
.
lname
.
tha
;
</table>
}
else
{
</div>
Fullname =
inqpre.getString("edesc")+
simmcandidatewithgson
.
mcandidatePersonal
.
fname
.
eng
+"
"+
simmcandidatewithgson
.
mcandidatePersonal
.
lname
.
eng
;
}
%
>
<tr>
<td><
%=
Fullname
%
></td>
<td><
%=
up
.
get
("
lang
").
equals
("
tha
")?
inqcan
.
getString
("
mjobcode
","
tdesc
")
:inqcan
.
getString
("
mjobcode
","
tdesc
")%
></td>
<td><
%=
inqcan
.
getString
("
applicantdate
")%
></td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
result
</td>
<td>
result
</td>
</tr>
<
%
}
%
>
</table>
<
%
<
%
}
}
%
>
%
>
...
...
hrAppWeb.war/RECRUIT/RRC030_EXP.jsp
View file @
03c803fe
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<
%@
page
contentType=
"text/html; charset=UTF-8"
%
>
<
%@
page
contentType=
"text/html; charset=UTF-8"
%
>
<
%@
page
import=
"com.csc.library.entry.*,com.csc.library.system.*,com.csc.library.session.*,com.csc.library.utilities.*,java.text.DecimalFormat"
%
>
<
%@
page
import=
"java.util.*,java.io.*,java.sql.*"
%
>
<
%@
page
import=
"java.text.SimpleDateFormat"
%
>
<
%@
page
import=
"java.util.Locale"
%
>
<
%@
page
import=
"java.util.Date"
%
>
<
%@
page
import=
"com.csc.library.components.*"
%
>
<
%@
page
import=
"com.csc.library.report.ReportUDF"
%
>
<
%@
page
import=
"com.csc.api.recruit.*"
%
>
<
%@
page
import=
"com.csc.library.databean.Simmcandidatewithgson"
%
>
<
%@
page
import=
"com.csc.library.databean.Simmappointmentwithgson"
%
>
<
%@
page
import=
"com.csc.library.databean.Simmapplicanthisotherwithgson"
%
>
<
%@
page
import=
"com.csc.library.utilities.gsonmapping.*"
%
>
<
%
<
%
response
.
setHeader
("
Cache-Control
","
must-revalidate
");
response
.
setHeader
("
Cache-Control
","
must-revalidate
");
response
.
setContentType
("
application
/
vnd
.
ms-excel
;
UTF-8
");
response
.
setContentType
("
application
/
vnd
.
ms-excel
;
UTF-8
");
response
.
setHeader
("
Content-Disposition
",
"
inline
;
filename=
" + "
export
.
xls
");
response
.
setHeader
("
Content-Disposition
",
"
inline
;
filename=
" + "
export
.
xls
");
CheckNull
chk =
new
CheckNull
();
CscCalendar
c =
new
CscCalendar
();
ReportUDF
udf =
new
ReportUDF
();
UProfile
up =
null;
if
(
session
!=
null
){
up =
(UProfile)session.getAttribute("userprofile");
}
String
lang =
up.get("lang");
String
filter =
chk.chkNullString(request.getParameter("__filter"));
String
cmd =
chk.chkNullString(request.getParameter("__cmd"));
DbRecord
dbrec =
new
InitialRecord
(
up
).
getDbRecord
("
memployee
");
dbrec
.
setColumn
("*");
%
>
%
>
<html>
<html>
<head>
<title></title>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<!-- <link href="../CSS/TISCO.css" rel="stylesheet" type="text/css"> -->
<script
language=
"JavaScript"
src=
"../JS/SCREEN.js"
></script>
<script
language=
"javascript"
>
setLang
(
'<%=up.get("lang")%>'
);
</script>
<style>
img
[
height
=
"20"
]
{
padding
:
0px
;
}
.center
{
text-align
:
center
;
}
.wd-40
{
width
:
40%
;
}
</style>
</head>
<
%
String
helpReturn=
""
;
if
(
request
.
getParameter
("
__helpReturn
")!=
null
){
helpReturn=
request.getParameter("__helpReturn");
}
String
fieldSearch=
""
;
if
(
request
.
getParameter
("
__fieldSearch
")!=
null
){
fieldSearch=
request.getParameter("__fieldSearch");
}
%
>
<body
leftmargin=
"0"
topmargin=
"0"
>
<body
leftmargin=
"0"
topmargin=
"0"
>
<form
name=
"cscform"
method=
"post"
action=
"RRC030.jsp"
>
<form
name=
"cscform"
method=
"post"
action=
"RRC030_EXP.jsp"
>
<!----------BEGIN CSC INITIAL ZONE ------------------------>
<
%
<
%/*=
screen
.
InitialVariable
()*/%
>
out
.
println
(
request
.
getParameter
("
__objExport
"));
<!----------END CSC INITIAL ZONE -------------------------->
%
>
<input
type=
"hidden"
name=
"__cmd"
value=
""
>
<input
type=
"hidden"
name=
"__screen"
value=
"RRC030"
>
<input
type=
"hidden"
name=
"__help"
value=
""
>
<input
type=
"hidden"
name=
"__goPage"
value=
""
>
<input
type=
"hidden"
name=
"__language"
value=
"<%=up.get("
lang
")%
>
">
<input
type=
"hidden"
name=
"__orderBy"
value=
"<%=request.getParameter("
__orderBy
")%
>
">
<input
type=
"hidden"
name=
"__helpReturn"
value=
"<%=helpReturn%>"
>
<input
type=
"hidden"
name=
"__fieldSearch"
value=
"<%=fieldSearch%>"
>
<input
type=
"hidden"
name=
"__helpName"
value=
"<%=request.getParameter("
__helpName
")%
>
">
<input
type=
"hidden"
name=
"__pageCall"
value=
"<%=request.getParameter("
__screen
")%
>
">
<input
type=
"hidden"
name=
"__fixCon"
value=
"<%=request.getParameter("
__fixCon
")%
>
">
<input
type=
"hidden"
name=
"__export"
value=
""
>
<input
type=
"hidden"
name=
"__filter"
value=
"<%=filter%>"
>
<input
type=
"hidden"
name=
"__calendar"
value=
""
>
<script
language=
"javascript"
>
getInputFormatDate
()
</script>
<br>
<table
class=
"maxsize table table-bordered "
border=
"1"
cellpadding=
"0"
cellspacing=
"1"
cols=
10
>
<tr>
<td
class=
"row1 center"
colspan=
'3'
></td>
<td
class=
"row1 center"
colspan=
'16'
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Personality
Inventory
Test
"
:
"
Personality
Inventory
Test
"%
></td>
<td
class=
"row1 center"
>
Abstract Reasoning
</td>
<td
class=
"row1 center"
>
Advaneed English
</td>
</tr>
<tr>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"ชื่อ
-
นามสกุล"
:
"
Name-Surname
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"ตำแหน่ง"
:
"
Job
Code
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"วันที่ทำข้อสอบ"
:
"
Exam
Date
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Dominance
"
:
"
Dominance
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Assertiveness
"
:
"
Assertiveness
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Need
for
Achiecement
"
:
"
Need
for
Achiecement
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Orderliness
"
:
"
Orderliness
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Autonomy
"
:
"
v
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Need
for
Affiliation
"
:
"
Need
for
Affiliation
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Nurturance
"
:
"
Nurturance
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Endurance
"
:
"
Endurance
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Need
for
Recognition
"
:
"
Need
for
Recognition
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Initiativeness
"
:
"
Initiativeness
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Sociability
"
:
"
Sociability
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Responsibility
"
:
"
Responsibility
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Honesty
"
:
"
Honesty
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Positive
Attitude
"
:
"
Positive
Attitude
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Self-Control
"
:
"
Self-Control
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Consistency
"
:
"
Consistency
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Result
"
:
"
Result
"%
></td>
<td
class=
"row1 center"
><
%=
up
.
get
("
lang
").
equals
("
tha
")?"
Result
"
:
"
Result
"%
></td>
</tr>
<
%
String
committees =
""
;
String
isappointmentTH =
""
;
String
isappointmentEN =
""
;
String
jobTH =
""
;
String
jobEN =
""
;
String
dateinterview =
""
;
String
timestart =
""
;
String
timeend =
""
;
String
dateavailable =
""
;
String
emp_pass_name_list =
""
;
String
startDate =
""
;
String
ExamData =
"0"
;
String
Fullname =
""
;
String
FullnameHis =
""
;
int
Point =
0;
DbInquiry
inqcan =
new
InitialInquiry
(
up
).
getDbInquiry
("
Simmcandidatewithgson
");
DbInquiry
inqpre =
new
InitialInquiry
(
up
).
getDbInquiry
("
mprefix
");
DbInquiry
inqpoint =
new
InitialInquiry
(
up
).
getDbInquiry
("
Simmappointmentwithgson
");
DbInquiry
inqappointment =
new
InitialInquiry
(
up
).
getDbInquiry
("
mappointment
");//
get
date
and
time
DbInquiry
inqrequest =
new
InitialInquiry
(
up
).
getDbInquiry
("
mrequest
");
DbInquiry
inqjob =
new
InitialInquiry
(
up
).
getDbInquiry
("
mjobcode
");
DbInquiry
inqsourcejob =
new
InitialInquiry
(
up
).
getDbInquiry
("
msourcejob
");
DbInquiry
inqcom =
new
InitialInquiry
(
up
).
getDbInquiry
("
mcommittee
");
DbInquiry
inqemp =
new
InitialInquiry
(
up
).
getDbInquiry
("
memployee
");
DbInquiry
inqstat =
new
InitialInquiry
(
up
).
getDbInquiry
("
mstatus
");
DbInquiry
inqapp_his =
new
InitialInquiry
(
up
).
getDbInquiry
("
mapplicant_his
");
inqcan
.
setColumn
("*");
inqcom
.
putChild
(
inqemp
);
inqcan
.
putChild
(
inqjob
);
inqcan
.
putChild
(
inqappointment
);
inqcan
.
putChild
(
inqrequest
);
inqcan
.
putChild
(
inqsourcejob
);
inqcan
.
putChild
(
inqpoint
);
inqcan
.
putChild
(
inqstat
);
inqcan
.
setFilter
(
filter
);
inqcan
.
refresh
();
while
(
inqcan
.
next
()){
committees =
""
;
ExamData =
""
;
Simmcandidatewithgson
simmcandidatewithgson =
(Simmcandidatewithgson)
inqcan
.
getCurrentDbRecord
();
Simmappointmentwithgson
simmappointmentwithgson =
(Simmappointmentwithgson)
inqpoint
.
getCurrentDbRecord
();
inqpre
.
setFilter
("
prefixid =
'"+simmcandidatewithgson.mcandidatePersonal.prefixid+"'
");
inqpre
.
refresh
();
inqpre
.
next
();
inqsourcejob
.
setFilter
("
sourcejobid =
'"+simmcandidatewithgson.mcandidateOther.sourcejob+"'
");
inqsourcejob
.
refresh
();
inqsourcejob
.
next
();
/*
for
(
McandidateJobrouter
.
JobRouter
jobrouter
:
simmcandidatewithgson
.
mcandidateJobrouter
.
jobrouter
)
{
if
(
jobrouter
.
question
!=
null
){
for
(
McandidateJobrouter
.
JobRouter
.
Question
question
:
jobrouter
.
question
){
if
(
question
.
ansgroup
.
value
!=
null
){
ExamData
+=
question
.
ansgroup
.
value
;
Point =
Integer.valueOf(chk.chkNullString(ExamData,"0"));
}
if
(
question
.
ansgroup
.
choice
!=
null
){
for
(
McandidateJobrouter
.
JobRouter
.
Question
.
AnsGroup
.
Choice
choice
:
question
.
ansgroup
.
choice
){
}
}
}
}
}*/
if
(
up
.
get
("
lang
").
equals
("
tha
")){
Fullname =
inqpre.getString("tdesc")+
simmcandidatewithgson
.
mcandidatePersonal
.
fname
.
tha
+"
"+
simmcandidatewithgson
.
mcandidatePersonal
.
lname
.
tha
;
}
else
{
Fullname =
inqpre.getString("edesc")+
simmcandidatewithgson
.
mcandidatePersonal
.
fname
.
eng
+"
"+
simmcandidatewithgson
.
mcandidatePersonal
.
lname
.
eng
;
}
%
>
<tr>
<td><
%=
Fullname
%
></td>
<td><
%=
up
.
get
("
lang
").
equals
("
tha
")?
inqcan
.
getString
("
mjobcode
","
tdesc
")
:inqcan
.
getString
("
mjobcode
","
tdesc
")%
></td>
<td><
%=
inqcan
.
getString
("
applicantdate
")%
></td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
1
</td>
<td>
result
</td>
<td>
result
</td>
</tr>
<
%
}
%
>
</table>
</td>
</tr>
</table>
</form>
</form>
</body>
</body>
</html>
</html>
hrAppWeb.war/WEB-INF/lib/REBean.jar
View file @
03c803fe
No preview for this file type
hrAppWeb.war/WEB-INF/lib/UTBean.jar
View file @
03c803fe
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