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
5121a8ba
Commit
5121a8ba
authored
Apr 19, 2021
by
peema_phongam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Supervisory Readiness test
parent
cefafbc7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
8 deletions
+63
-8
PreviewExam.Controller.js
...b.war/JS/AngularTools/JobRouter/PreviewExam.Controller.js
+20
-7
preview.exam.html
hrAppWeb.war/JS/AngularTools/JobRouter/preview.exam.html
+43
-1
No files found.
hrAppWeb.war/JS/AngularTools/JobRouter/PreviewExam.Controller.js
View file @
5121a8ba
...
...
@@ -176,16 +176,29 @@ angular.module('myHR').controller('PreviewExam', ['$scope', '$http', '$mdDialog'
$scope
.
scoreDHASPIT
=
$scope
.
question
.
getDHASPIT
(
router
)
}
//</editor-fold>
//<editor-fold desc="ข้อสอบที่ 2 ความพร้อมหัวหน้างาน Supervisory Readiness test">
$scope
.
isDHASSupReadTest
=
$scope
.
examdata
.
topic
.
tha
===
"ข้อสอบที่ 2 ความพร้อมหัวหน้างาน Supervisory Readiness test"
||
$scope
.
examdata
.
topic
.
eng
===
"ข้อสอบที่ 2 ความพร้อมหัวหน้างาน Supervisory Readiness test"
$scope
.
isDHASSupReadTest
=
$scope
.
examdata
.
topic
.
tha
.
includes
(
"ความพร้อมหัวหน้างาน"
)
||
$scope
.
examdata
.
topic
.
eng
.
includes
(
"ความพร้อมหัวหน้างาน"
)
if
(
$scope
.
isDHASSupReadTest
)
{
//Set 3
let
setThreeScore
=
0
$scope
.
question
.
question
[
2
].
ansgroup
.
forEach
((
$item
)
=>
{
let
sumSentence
=
12
$item
.
ansgroup
.
sentence
.
forEach
((
$sentence
)
=>
{
let
choiceScore
=
Math
.
abs
(
$sentence
.
value
-
$sentence
.
answer
)
*
-
1
sumSentence
+=
choiceScore
})
setThreeScore
+=
sumSentence
})
//Set 1 + 2
$scope
.
question
.
question
.
splice
(
2
,
1
)
let
setOneTwoScore
=
$scope
.
question
.
getRealScore
(
$scope
.
question
.
getQuestion
())
$scope
.
DHASSupReadTestGrade
=
'Unknown'
let
score
=
$scope
.
question
.
getRealScore
(
$scope
.
question
.
getQuestion
())
let
totalScore
=
(
score
)
?
s
core
:
0
$scope
.
DHASSupReadTestScore
=
setThreeScore
+
setOneTwoScore
let
totalScore
=
(
$scope
.
DHASSupReadTestScore
)
?
$scope
.
DHASSupReadTestS
core
:
0
switch
(
true
)
{
case
(
totalScore
>=
0
&&
totalScore
<=
129
):
$scope
.
DHASSupReadTestGrade
=
'F'
...
...
@@ -378,6 +391,7 @@ angular.module('myHR').controller('PreviewExam', ['$scope', '$http', '$mdDialog'
return
listbtn
}
$scope
.
checkSummaryPassing
=
function
(){
let
classname
=
''
if
(
$scope
.
examdata
.
evaluate
.
isevaluate
){
...
...
@@ -387,7 +401,6 @@ angular.module('myHR').controller('PreviewExam', ['$scope', '$http', '$mdDialog'
classname
=
'summary-fail'
}
}
return
classname
}
...
...
hrAppWeb.war/JS/AngularTools/JobRouter/preview.exam.html
View file @
5121a8ba
...
...
@@ -29,7 +29,7 @@
<div
class=
'md-dialog-content'
>
<div
class=
'row'
>
<div
class=
'col-xs-12 col-sm-12 col-md-12'
>
<md-card
ng-hide=
"isDHASPIT"
>
<md-card
ng-hide=
"isDHASPIT
|| isDHASSupReadTest
"
>
<md-card-title>
<md-card-title-text>
<center><h2
class=
'header'
>
Summary of Result
</h2></center>
...
...
@@ -78,6 +78,48 @@
</md-card-content>
</md-card>
<md-card
ng-if=
"isDHASSupReadTest"
>
<md-card-title>
<md-card-title-text>
<center><h2
class=
'header'
>
Summary of Result
</h2></center>
</md-card-title-text>
</md-card-title>
<md-card-content>
<div
class=
'row'
>
<div
class=
'col-xs-0 col-sm-3 col-md-3'
></div>
<div
class=
'col-xs-12 col-sm-6 col-md-6'
>
<h4
class=
'control-label summary-total'
>
Max score: 200
</h4>
</div>
</div>
<div
class=
'row'
>
<div
class=
'col-xs-0 col-sm-3 col-md-3'
></div>
<div
class=
'col-xs-12 col-sm-6 col-md-6'
>
<h4
class=
'control-label summary-passing'
>
Applicant's score: {{ DHASSupReadTestScore }}
</h4>
</div>
</div>
<div
class=
'row'
ng-if=
"isDHASSupReadTest"
>
<div
class=
'col-xs-0 col-sm-3 col-md-3'
></div>
<div
class=
'col-xs-12 col-sm-6 col-md-6'
>
<h4
class=
'control-label'
>
Grade: {{DHASSupReadTestGrade}}
</h4>
</div>
</div>
</md-card-content>
</md-card>
<md-card
ng-if=
"isDHASPIT"
>
<md-card-title>
<md-card-title-text>
...
...
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