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
9ab3d847
Commit
9ab3d847
authored
Mar 23, 2021
by
peema_phongam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
previous interview score
parent
1326068f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
208 additions
and
0 deletions
+208
-0
APS_FORM_INTERVIEW_DHAS_DEPT.jsp
hrAppWeb.war/APS_FORM_INTERVIEW_DHAS_DEPT.jsp
+0
-0
APS_FORM_INTERVIEW_DHAS_RESULT.jsp
hrAppWeb.war/APS_FORM_INTERVIEW_DHAS_RESULT.jsp
+0
-0
APS_FORM_INTERVIEW_DHAS_DEPT.Controller.js
.../APS_INTERVIEW/APS_FORM_INTERVIEW_DHAS_DEPT.Controller.js
+104
-0
APS_FORM_INTERVIEW_DHAS_RESULT.Controller.js
...PS_INTERVIEW/APS_FORM_INTERVIEW_DHAS_RESULT.Controller.js
+104
-0
No files found.
hrAppWeb.war/APS_FORM_INTERVIEW_DHAS_DEPT.jsp
View file @
9ab3d847
This diff is collapsed.
Click to expand it.
hrAppWeb.war/APS_FORM_INTERVIEW_DHAS_RESULT.jsp
View file @
9ab3d847
This diff is collapsed.
Click to expand it.
hrAppWeb.war/EMPVIEW/JS/APS_INTERVIEW/APS_FORM_INTERVIEW_DHAS_DEPT.Controller.js
View file @
9ab3d847
...
...
@@ -7,6 +7,7 @@ angular.module('APS_INTERVIEW').controller('APS_FORM_INTERVIEW_DHAS_DEPT', ['$sc
$scope
.
notedit
=
(
$
(
'input[name="notedit"]'
).
val
()
==
'true'
)
$scope
.
lang
=
$
(
'input[name="lang"]'
).
val
()
$scope
.
contextPath
=
''
$scope
.
candidate
=
{}
$scope
.
headdata
=
{
fullname
:
''
,
job
:
''
,
...
...
@@ -83,6 +84,109 @@ angular.module('APS_INTERVIEW').controller('APS_FORM_INTERVIEW_DHAS_DEPT', ['$sc
$scope
.
isReady
=
true
})
RecService
.
RestMcandidate
.
getQuery
({
id
:
$scope
.
candidateid
}).
$promise
.
then
(
function
(
data
){
$scope
.
candidate
=
data
.
result
;
setExamData1
()
setExamScore2
()
setExamScore3
()
setExamScore4
()
setExamScore5
()
})
let
setExamData1
=
()
=>
{
let
data
=
$scope
.
candidate
.
jobrouter
let
router
=
{}
let
isReady
=
false
for
(
let
x
=
0
;
x
<
data
.
length
;
x
++
){
if
(
data
[
x
].
examdata
!=
null
){
if
(
data
[
x
].
examdata
.
topic
.
tha
.
includes
(
"Personality"
)
||
data
[
x
].
examdata
.
topic
.
eng
.
includes
(
"Personality"
)){
router
=
data
[
x
]
isReady
=
true
}
}
}
if
(
isReady
){
$scope
.
examdata
=
question
.
getDHASPIT
(
router
)
}
}
let
setExamScore2
=
()
=>
{
let
data
=
$scope
.
candidate
.
jobrouter
let
router
=
{}
let
isReady
=
false
for
(
let
x
=
0
;
x
<
data
.
length
;
x
++
){
if
(
data
[
x
].
examdata
!=
null
){
if
(
data
[
x
].
examdata
.
topic
.
tha
.
includes
(
"ความพร้อมหัวหน้างาน"
)
||
data
[
x
].
examdata
.
topic
.
eng
.
includes
(
"ความพร้อมหัวหน้างาน"
)){
router
=
data
[
x
]
isReady
=
true
}
}
}
if
(
isReady
){
$scope
.
score2
=
question
.
getRealScore
(
router
.
question
)
}
}
let
setExamScore3
=
()
=>
{
let
data
=
$scope
.
candidate
.
jobrouter
let
router
=
{}
let
isReady
=
false
for
(
let
x
=
0
;
x
<
data
.
length
;
x
++
){
if
(
data
[
x
].
examdata
!=
null
){
if
(
data
[
x
].
examdata
.
topic
.
tha
.
includes
(
"ความถนัดเชิงเหตุผลนามธรรม"
)
||
data
[
x
].
examdata
.
topic
.
eng
.
includes
(
"ความถนัดเชิงเหตุผลนามธรรม"
)){
router
=
data
[
x
]
isReady
=
true
}
}
}
if
(
isReady
){
$scope
.
score3
=
question
.
getRealScore
(
router
.
question
)
}
}
let
setExamScore4
=
()
=>
{
let
data
=
$scope
.
candidate
.
jobrouter
let
router
=
{}
let
isReady
=
false
for
(
let
x
=
0
;
x
<
data
.
length
;
x
++
){
if
(
data
[
x
].
examdata
!=
null
){
if
(
data
[
x
].
examdata
.
topic
.
tha
.
includes
(
"ADVANCE ENGLISH"
)
||
data
[
x
].
examdata
.
topic
.
eng
.
includes
(
"ADVANCE ENGLISH"
)){
router
=
data
[
x
]
isReady
=
true
}
}
}
if
(
isReady
){
$scope
.
score4
=
question
.
getRealScore
(
router
.
question
)
}
}
let
setExamScore5
=
()
=>
{
let
data
=
$scope
.
candidate
.
jobrouter
let
router
=
{}
let
isReady
=
false
for
(
let
x
=
0
;
x
<
data
.
length
;
x
++
){
if
(
data
[
x
].
examdata
!=
null
){
if
(
data
[
x
].
examdata
.
topic
.
tha
.
includes
(
"คณิตศาสตร์"
)
||
data
[
x
].
examdata
.
topic
.
eng
.
includes
(
"คณิตศาสตร์"
)){
router
=
data
[
x
]
isReady
=
true
}
}
}
if
(
isReady
){
$scope
.
score5
=
question
.
getRealScore
(
router
.
question
)
}
}
let
setFormAPS
=
()
=>
{
if
(
$scope
.
formdata
.
form
==
''
){
...
...
hrAppWeb.war/EMPVIEW/JS/APS_INTERVIEW/APS_FORM_INTERVIEW_DHAS_RESULT.Controller.js
View file @
9ab3d847
...
...
@@ -10,6 +10,7 @@ angular.module('APS_INTERVIEW').controller('APS_FORM_INTERVIEW_DHAS_RESULT', ['$
$scope
.
contextPath
=
''
$scope
.
listJudge
=
[]
$scope
.
jobDetail
=
{}
$scope
.
candidate
=
{}
$scope
.
headdata
=
{
fullname
:
''
,
job
:
''
,
...
...
@@ -112,6 +113,7 @@ angular.module('APS_INTERVIEW').controller('APS_FORM_INTERVIEW_DHAS_RESULT', ['$
$scope
.
jobDetail
=
data
.
result
})
InterviewcandidateCtrl
.
manageInterviewForm
.
query
(
$scope
.
myparam
).
$promise
.
then
(
function
(
data
){
$scope
.
headdata
=
data
.
header
...
...
@@ -121,6 +123,15 @@ angular.module('APS_INTERVIEW').controller('APS_FORM_INTERVIEW_DHAS_RESULT', ['$
$scope
.
isReady
=
true
})
RecService
.
RestMcandidate
.
getQuery
({
id
:
$scope
.
candidateid
}).
$promise
.
then
(
function
(
data
){
$scope
.
candidate
=
data
.
result
;
setExamData1
()
setExamScore2
()
setExamScore3
()
setExamScore4
()
setExamScore5
()
})
// $scope.$watch('formdata.form', function (data) {
...
...
@@ -130,6 +141,99 @@ angular.module('APS_INTERVIEW').controller('APS_FORM_INTERVIEW_DHAS_RESULT', ['$
// }
// })
let
setExamData1
=
()
=>
{
let
data
=
$scope
.
candidate
.
jobrouter
let
router
=
{}
let
isReady
=
false
for
(
let
x
=
0
;
x
<
data
.
length
;
x
++
){
if
(
data
[
x
].
examdata
!=
null
){
if
(
data
[
x
].
examdata
.
topic
.
tha
.
includes
(
"Personality"
)
||
data
[
x
].
examdata
.
topic
.
eng
.
includes
(
"Personality"
)){
router
=
data
[
x
]
isReady
=
true
}
}
}
if
(
isReady
){
$scope
.
examdata
=
question
.
getDHASPIT
(
router
)
}
}
let
setExamScore2
=
()
=>
{
let
data
=
$scope
.
candidate
.
jobrouter
let
router
=
{}
let
isReady
=
false
for
(
let
x
=
0
;
x
<
data
.
length
;
x
++
){
if
(
data
[
x
].
examdata
!=
null
){
if
(
data
[
x
].
examdata
.
topic
.
tha
.
includes
(
"ความพร้อมหัวหน้างาน"
)
||
data
[
x
].
examdata
.
topic
.
eng
.
includes
(
"ความพร้อมหัวหน้างาน"
)){
router
=
data
[
x
]
isReady
=
true
}
}
}
if
(
isReady
){
$scope
.
score2
=
question
.
getRealScore
(
router
.
question
)
}
}
let
setExamScore3
=
()
=>
{
let
data
=
$scope
.
candidate
.
jobrouter
let
router
=
{}
let
isReady
=
false
for
(
let
x
=
0
;
x
<
data
.
length
;
x
++
){
if
(
data
[
x
].
examdata
!=
null
){
if
(
data
[
x
].
examdata
.
topic
.
tha
.
includes
(
"ความถนัดเชิงเหตุผลนามธรรม"
)
||
data
[
x
].
examdata
.
topic
.
eng
.
includes
(
"ความถนัดเชิงเหตุผลนามธรรม"
)){
router
=
data
[
x
]
isReady
=
true
}
}
}
if
(
isReady
){
$scope
.
score3
=
question
.
getRealScore
(
router
.
question
)
}
}
let
setExamScore4
=
()
=>
{
let
data
=
$scope
.
candidate
.
jobrouter
let
router
=
{}
let
isReady
=
false
for
(
let
x
=
0
;
x
<
data
.
length
;
x
++
){
if
(
data
[
x
].
examdata
!=
null
){
if
(
data
[
x
].
examdata
.
topic
.
tha
.
includes
(
"ADVANCE ENGLISH"
)
||
data
[
x
].
examdata
.
topic
.
eng
.
includes
(
"ADVANCE ENGLISH"
)){
router
=
data
[
x
]
isReady
=
true
}
}
}
if
(
isReady
){
$scope
.
score4
=
question
.
getRealScore
(
router
.
question
)
}
}
let
setExamScore5
=
()
=>
{
let
data
=
$scope
.
candidate
.
jobrouter
let
router
=
{}
let
isReady
=
false
for
(
let
x
=
0
;
x
<
data
.
length
;
x
++
){
if
(
data
[
x
].
examdata
!=
null
){
if
(
data
[
x
].
examdata
.
topic
.
tha
.
includes
(
"คณิตศาสตร์"
)
||
data
[
x
].
examdata
.
topic
.
eng
.
includes
(
"คณิตศาสตร์"
)){
router
=
data
[
x
]
isReady
=
true
}
}
}
if
(
isReady
){
$scope
.
score5
=
question
.
getRealScore
(
router
.
question
)
}
}
$scope
.
getSumWorkCost
=
()
=>
{
return
parseInt
(
$scope
.
jobDetail
.
workcost1
)
+
parseInt
(
$scope
.
jobDetail
.
workcost2
)
...
...
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