Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mySkill-x
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
angular
mySkill-x
Commits
75e49cdb
Commit
75e49cdb
authored
Jun 13, 2025
by
Nattana Chaiyamat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
แก้คำนวนgap
parent
d5bd6e2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
pms-competency.component.ts
...-form-employee/pms-competency/pms-competency.component.ts
+6
-6
No files found.
src/app/components/performance-evaluation/pms-form-employee/pms-competency/pms-competency.component.ts
View file @
75e49cdb
...
...
@@ -240,16 +240,16 @@ export class PmsCompetencyComponent {
return
"1"
;
}
}
calGap
(
score
:
number
|
string
)
{
if
(
this
.
appraisalCompentencyList
[
this
.
appraisalCompentencyIndex
]?.
masfromEvaluationAssessment1lList
[
0
])
{
calGap
(
score
:
number
|
string
,
index
?:
string
)
{
if
(
this
.
appraisalCompentencyList
[
index
?
+
(
index
)
:
this
.
appraisalCompentencyIndex
]?.
masfromEvaluationAssessment1lList
[
0
])
{
const
roundedScore
=
this
.
showNumber
(
score
)
%
1
<=
0.5
?
Math
.
floor
(
this
.
showNumber
(
score
))
:
Math
.
round
(
this
.
showNumber
(
score
));
if
(
roundedScore
>=
90
&&
roundedScore
<=
100
)
{
if
(
this
.
appraisalCompentencyList
[
this
.
appraisalCompentencyIndex
]?.
masfromEvaluationAssessment1lList
[
0
].
numberCheck1
||
this
.
appraisalCompentencyList
[
this
.
appraisalCompentencyIndex
]?.
masfromEvaluationAssessment1lList
[
0
].
numberCheck2
||
this
.
appraisalCompentencyList
[
this
.
appraisalCompentencyIndex
]?.
masfromEvaluationAssessment1lList
[
0
].
numberCheck3
)
{
if
(
this
.
appraisalCompentencyList
[
index
?
+
(
index
)
:
this
.
appraisalCompentencyIndex
]?.
masfromEvaluationAssessment1lList
[
0
].
numberCheck1
||
this
.
appraisalCompentencyList
[
index
?
+
(
index
)
:
this
.
appraisalCompentencyIndex
]?.
masfromEvaluationAssessment1lList
[
0
].
numberCheck2
||
this
.
appraisalCompentencyList
[
index
?
+
(
index
)
:
this
.
appraisalCompentencyIndex
]?.
masfromEvaluationAssessment1lList
[
0
].
numberCheck3
)
{
return
"-1"
;
}
return
"+1"
;
}
else
if
(
roundedScore
>=
80
&&
roundedScore
<=
89
)
{
if
(
this
.
appraisalCompentencyList
[
this
.
appraisalCompentencyIndex
]?.
masfromEvaluationAssessment1lList
[
0
].
numberCheck1
||
this
.
appraisalCompentencyList
[
this
.
appraisalCompentencyIndex
]?.
masfromEvaluationAssessment1lList
[
0
].
numberCheck2
||
this
.
appraisalCompentencyList
[
this
.
appraisalCompentencyIndex
]?.
masfromEvaluationAssessment1lList
[
0
].
numberCheck3
)
{
if
(
this
.
appraisalCompentencyList
[
index
?
+
(
index
)
:
this
.
appraisalCompentencyIndex
]?.
masfromEvaluationAssessment1lList
[
0
].
numberCheck1
||
this
.
appraisalCompentencyList
[
index
?
+
(
index
)
:
this
.
appraisalCompentencyIndex
]?.
masfromEvaluationAssessment1lList
[
0
].
numberCheck2
||
this
.
appraisalCompentencyList
[
index
?
+
(
index
)
:
this
.
appraisalCompentencyIndex
]?.
masfromEvaluationAssessment1lList
[
0
].
numberCheck3
)
{
return
"-1"
;
}
return
"0"
;
...
...
@@ -311,9 +311,9 @@ export class PmsCompetencyComponent {
this
.
compentencyFormRemain
.
emit
(
remain
)
}
allWeightGap
()
{
this
.
appraisalCompentencyList
.
forEach
(
x
=>
{
this
.
appraisalCompentencyList
.
forEach
(
(
x
,
i
)
=>
{
this
.
inforWeight
.
set
(
x
.
comType
,
x
.
masfromEvaluationAssessment1lList
[
0
].
averageScore
+
''
)
this
.
inforGap
.
set
(
x
.
comType
,
this
.
calGap
(
x
.
masfromEvaluationAssessment1lList
[
0
].
averageScore
)
??
''
)
this
.
inforGap
.
set
(
x
.
comType
,
this
.
calGap
(
x
.
masfromEvaluationAssessment1lList
[
0
].
averageScore
,
(
i
+
''
)
)
??
''
)
})
this
.
sendInforWeight
.
emit
(
this
.
inforWeight
)
this
.
sendInforGap
.
emit
(
this
.
inforGap
)
...
...
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