Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
myAppraisal
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
myAppraisal
Commits
a34a2e3d
Commit
a34a2e3d
authored
a month ago
by
Nattana Chaiyamat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
การประเมินสมรรถนะ
การตั้งค่า กำหนดค่าระบบประเมินสมรรถนะ
parent
981c7251
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
22 deletions
+28
-22
competency-configuration.component.html
...ncy-configuration/competency-configuration.component.html
+3
-1
competency-configuration.component.ts
...tency-configuration/competency-configuration.component.ts
+13
-0
self-evaluation.component.html
...evaluation/self-evaluation/self-evaluation.component.html
+0
-0
self-evaluation.component.ts
...e-evaluation/self-evaluation/self-evaluation.component.ts
+12
-21
No files found.
src/app/components/competency-assessment/setting-competency/competency-configuration/competency-configuration.component.html
View file @
a34a2e3d
...
...
@@ -2,7 +2,9 @@
<div
class=
"flex justify-end"
>
<div
class=
"px-1"
>
<button
type=
"button"
class=
"ti-btn ti-btn-soft-success h-10 m-0 shadow-md"
data-hs-overlay=
"#competency-configuration-alert-modal"
>
data-hs-overlay=
"#competency-configuration-alert-modal"
[
class
.
ti-btn-disabled
]="!
setting
.
data
.
apsyear
||
checkEmpty
(
setting
.
data
.
expectationLevel
)||!
setting
.
data
.
settingGroupAssessment
"
[
disabled
]="!
setting
.
data
.
apsyear
||
checkEmpty
(
setting
.
data
.
expectationLevel
)||!
setting
.
data
.
settingGroupAssessment
"
>
<i
class=
"ri-save-3-line"
></i>
Save
</button>
...
...
This diff is collapsed.
Click to expand it.
src/app/components/competency-assessment/setting-competency/competency-configuration/competency-configuration.component.ts
View file @
a34a2e3d
...
...
@@ -57,5 +57,18 @@ export class CompetencyConfigurationComponent {
})
}
checkEmpty
(
data
?:
string
|
number
)
{
switch
(
typeof
data
)
{
case
(
'number'
):
{
return
data
==
null
||
data
==
undefined
}
case
(
'string'
):
{
return
data
==
""
||
data
==
null
||
data
==
undefined
}
default
:
{
return
true
}
}
}
}
This diff is collapsed.
Click to expand it.
src/app/components/performance-evaluation/self-evaluation/self-evaluation.component.html
View file @
a34a2e3d
This diff is collapsed.
Click to expand it.
src/app/components/performance-evaluation/self-evaluation/self-evaluation.component.ts
View file @
a34a2e3d
...
...
@@ -38,8 +38,7 @@ export class SelfEvaluationComponent implements OnInit {
appraisalCompentency
:
{
loading
:
boolean
,
select
?:
AppraisalCompentencyModel
,
dataList
:
AppraisalCompentencyModel
[]
}
=
{
loading
:
false
,
select
:
undefined
,
dataList
:
[]
}
appraisalCompentency2
:
{
loading
:
boolean
,
data
?:
AppraisalCompentencyModel2
}
=
{
loading
:
false
,
data
:
undefined
}
appraisalPms
:
{
loading
:
boolean
,
select
:
undefined
,
dataList
:
{
check
:
boolean
,
data
:
undefined
}[]
}
=
{
loading
:
false
,
select
:
undefined
,
dataList
:
[]
}
employee
:
{
loading
:
boolean
,
data
:
EmployeeModel
}
=
{
loading
:
false
,
data
:
new
MyEmployeeModel
()
}
employeeEvaluate
:
{
loading
:
boolean
,
data
:
EmployeeModel
,
evaluate
:
boolean
}
=
{
loading
:
false
,
data
:
new
MyEmployeeModel
(),
evaluate
:
false
}
employee
:
{
loading
:
boolean
,
data
:
EmployeeModel
,
evaluate
:
boolean
}
=
{
loading
:
false
,
data
:
new
MyEmployeeModel
(),
evaluate
:
false
}
setting
:
{
loading
:
boolean
,
data
:
SettingAssessmentModel
}
=
{
loading
:
false
,
data
:
new
MySettingAssessmentModel
()
}
currentDate
=
new
Date
()
constructor
(
private
appraisalService
:
AppraisalService
,
...
...
@@ -78,19 +77,6 @@ export class SelfEvaluationComponent implements OnInit {
}
})
}
getWorkingLogin
()
{
this
.
employeeEvaluate
.
loading
=
true
this
.
employeeService
.
getWorking
().
subscribe
({
next
:
response
=>
{
this
.
employeeEvaluate
.
data
=
new
MyEmployeeModel
(
response
)
this
.
employeeEvaluate
.
loading
=
false
this
.
cdr
.
detectChanges
()
},
error
:
error
=>
{
this
.
employeeEvaluate
.
loading
=
false
this
.
cdr
.
detectChanges
()
}
})
}
getWorking
()
{
this
.
employee
.
loading
=
true
this
.
employeeService
.
getWorkingById
(
this
.
employeeId
).
subscribe
({
...
...
@@ -136,36 +122,37 @@ export class SelfEvaluationComponent implements OnInit {
switch
(
this
.
appraisalCompentency2
.
data
?.
currentStep
)
{
case
(
"0"
):
{
this
.
appraisalCompentency2
.
data
.
masfromEvaluationAssessment1lList
[
0
].
apsassessyDate
=
this
.
currentDate
.
toISOString
().
split
(
'T'
)[
0
];
this
.
employee
Evaluate
.
evaluate
=
this
.
employeeEvaluat
e
.
data
.
employeeId
==
this
.
appraisalCompentency2
.
data
.
apsassessy
.
employeeId
this
.
employee
.
evaluate
=
this
.
employe
e
.
data
.
employeeId
==
this
.
appraisalCompentency2
.
data
.
apsassessy
.
employeeId
break
}
case
(
"1"
):
{
this
.
appraisalCompentency2
.
data
.
masfromEvaluationAssessment1lList
[
0
].
apsapprove1Date
=
this
.
currentDate
.
toISOString
().
split
(
'T'
)[
0
];
this
.
employee
Evaluate
.
evaluate
=
this
.
employeeEvaluat
e
.
data
.
employeeId
==
this
.
appraisalCompentency2
.
data
.
apsapprove1
.
employeeId
this
.
employee
.
evaluate
=
this
.
employe
e
.
data
.
employeeId
==
this
.
appraisalCompentency2
.
data
.
apsapprove1
.
employeeId
break
}
case
(
"2"
):
{
this
.
appraisalCompentency2
.
data
.
masfromEvaluationAssessment1lList
[
0
].
apsapprove2Date
=
this
.
currentDate
.
toISOString
().
split
(
'T'
)[
0
];
this
.
employee
Evaluate
.
evaluate
=
this
.
employeeEvaluat
e
.
data
.
employeeId
==
this
.
appraisalCompentency2
.
data
.
apsapprove2
.
employeeId
this
.
employee
.
evaluate
=
this
.
employe
e
.
data
.
employeeId
==
this
.
appraisalCompentency2
.
data
.
apsapprove2
.
employeeId
break
}
case
(
"3"
):
{
this
.
appraisalCompentency2
.
data
.
masfromEvaluationAssessment1lList
[
0
].
apsapprove3Date
=
this
.
currentDate
.
toISOString
().
split
(
'T'
)[
0
];
this
.
employee
Evaluate
.
evaluate
=
this
.
employeeEvaluat
e
.
data
.
employeeId
==
this
.
appraisalCompentency2
.
data
.
apsapprove3
.
employeeId
this
.
employee
.
evaluate
=
this
.
employe
e
.
data
.
employeeId
==
this
.
appraisalCompentency2
.
data
.
apsapprove3
.
employeeId
break
}
case
(
"4"
):
{
this
.
appraisalCompentency2
.
data
.
masfromEvaluationAssessment1lList
[
0
].
apsapprove4Date
=
this
.
currentDate
.
toISOString
().
split
(
'T'
)[
0
];
this
.
employee
Evaluate
.
evaluate
=
this
.
employeeEvaluat
e
.
data
.
employeeId
==
this
.
appraisalCompentency2
.
data
.
apsapprove4
.
employeeId
this
.
employee
.
evaluate
=
this
.
employe
e
.
data
.
employeeId
==
this
.
appraisalCompentency2
.
data
.
apsapprove4
.
employeeId
break
}
case
(
"5"
):
{
this
.
appraisalCompentency2
.
data
.
masfromEvaluationAssessment1lList
[
0
].
apsapprove5Date
=
this
.
currentDate
.
toISOString
().
split
(
'T'
)[
0
];
this
.
employee
Evaluate
.
evaluate
=
this
.
employeeEvaluat
e
.
data
.
employeeId
==
this
.
appraisalCompentency2
.
data
.
apsapprove5
.
employeeId
this
.
employee
.
evaluate
=
this
.
employe
e
.
data
.
employeeId
==
this
.
appraisalCompentency2
.
data
.
apsapprove5
.
employeeId
break
}
default
:
{
return
}
}
console
.
log
(
" 🐒 this.employee.evaluate:"
,
this
.
employee
.
evaluate
)
}
this
.
calnumberCheck
()
this
.
appraisalCompentency2
.
loading
=
false
...
...
@@ -417,7 +404,10 @@ export class SelfEvaluationComponent implements OnInit {
}
this
.
appraisalService
.
postCompetency
(
body
).
subscribe
({
next
:
response
=>
{
if
(
this
.
appraisalCompentency2
.
data
)
{
if
(
response
.
success
)
{
this
.
getAppraisalCompentencyForm
(
this
.
appraisalCompentency2
.
data
?.
masfromEvaluationAssessment1lList
[
0
].
competencyType
.
competencyTypeId
)
this
.
getWorking
()
Swal
.
fire
({
title
:
'บันทึกสำเร็จ!'
,
text
:
'การประเมินของคุณถูกบันทึกแล้ว'
,
...
...
@@ -436,6 +426,7 @@ export class SelfEvaluationComponent implements OnInit {
}
});
}
}
},
error
:
error
=>
{
Swal
.
fire
({
title
:
'ยกเลิก!'
,
...
...
This diff is collapsed.
Click to expand it.
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