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
Feb 27, 2025
by
Nattana Chaiyamat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
การประเมินสมรรถนะ
การตั้งค่า กำหนดค่าระบบประเมินสมรรถนะ
parent
981c7251
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
40 deletions
+46
-40
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
+30
-39
No files found.
src/app/components/competency-assessment/setting-competency/competency-configuration/competency-configuration.component.html
View file @
a34a2e3d
...
@@ -2,7 +2,9 @@
...
@@ -2,7 +2,9 @@
<div
class=
"flex justify-end"
>
<div
class=
"flex justify-end"
>
<div
class=
"px-1"
>
<div
class=
"px-1"
>
<button
type=
"button"
class=
"ti-btn ti-btn-soft-success h-10 m-0 shadow-md"
<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>
<i
class=
"ri-save-3-line"
></i>
Save
Save
</button>
</button>
...
...
src/app/components/competency-assessment/setting-competency/competency-configuration/competency-configuration.component.ts
View file @
a34a2e3d
...
@@ -57,5 +57,18 @@ export class CompetencyConfigurationComponent {
...
@@ -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
}
}
}
}
}
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 {
...
@@ -38,8 +38,7 @@ export class SelfEvaluationComponent implements OnInit {
appraisalCompentency
:
{
loading
:
boolean
,
select
?:
AppraisalCompentencyModel
,
dataList
:
AppraisalCompentencyModel
[]
}
=
{
loading
:
false
,
select
:
undefined
,
dataList
:
[]
}
appraisalCompentency
:
{
loading
:
boolean
,
select
?:
AppraisalCompentencyModel
,
dataList
:
AppraisalCompentencyModel
[]
}
=
{
loading
:
false
,
select
:
undefined
,
dataList
:
[]
}
appraisalCompentency2
:
{
loading
:
boolean
,
data
?:
AppraisalCompentencyModel2
}
=
{
loading
:
false
,
data
:
undefined
}
appraisalCompentency2
:
{
loading
:
boolean
,
data
?:
AppraisalCompentencyModel2
}
=
{
loading
:
false
,
data
:
undefined
}
appraisalPms
:
{
loading
:
boolean
,
select
:
undefined
,
dataList
:
{
check
:
boolean
,
data
:
undefined
}[]
}
=
{
loading
:
false
,
select
:
undefined
,
dataList
:
[]
}
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
()
}
employee
:
{
loading
:
boolean
,
data
:
EmployeeModel
,
evaluate
:
boolean
}
=
{
loading
:
false
,
data
:
new
MyEmployeeModel
(),
evaluate
:
false
}
employeeEvaluate
:
{
loading
:
boolean
,
data
:
EmployeeModel
,
evaluate
:
boolean
}
=
{
loading
:
false
,
data
:
new
MyEmployeeModel
(),
evaluate
:
false
}
setting
:
{
loading
:
boolean
,
data
:
SettingAssessmentModel
}
=
{
loading
:
false
,
data
:
new
MySettingAssessmentModel
()
}
setting
:
{
loading
:
boolean
,
data
:
SettingAssessmentModel
}
=
{
loading
:
false
,
data
:
new
MySettingAssessmentModel
()
}
currentDate
=
new
Date
()
currentDate
=
new
Date
()
constructor
(
private
appraisalService
:
AppraisalService
,
constructor
(
private
appraisalService
:
AppraisalService
,
...
@@ -78,19 +77,6 @@ export class SelfEvaluationComponent implements OnInit {
...
@@ -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
()
{
getWorking
()
{
this
.
employee
.
loading
=
true
this
.
employee
.
loading
=
true
this
.
employeeService
.
getWorkingById
(
this
.
employeeId
).
subscribe
({
this
.
employeeService
.
getWorkingById
(
this
.
employeeId
).
subscribe
({
...
@@ -136,36 +122,37 @@ export class SelfEvaluationComponent implements OnInit {
...
@@ -136,36 +122,37 @@ export class SelfEvaluationComponent implements OnInit {
switch
(
this
.
appraisalCompentency2
.
data
?.
currentStep
)
{
switch
(
this
.
appraisalCompentency2
.
data
?.
currentStep
)
{
case
(
"0"
):
{
case
(
"0"
):
{
this
.
appraisalCompentency2
.
data
.
masfromEvaluationAssessment1lList
[
0
].
apsassessyDate
=
this
.
currentDate
.
toISOString
().
split
(
'T'
)[
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
break
}
}
case
(
"1"
):
{
case
(
"1"
):
{
this
.
appraisalCompentency2
.
data
.
masfromEvaluationAssessment1lList
[
0
].
apsapprove1Date
=
this
.
currentDate
.
toISOString
().
split
(
'T'
)[
0
];
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
break
}
}
case
(
"2"
):
{
case
(
"2"
):
{
this
.
appraisalCompentency2
.
data
.
masfromEvaluationAssessment1lList
[
0
].
apsapprove2Date
=
this
.
currentDate
.
toISOString
().
split
(
'T'
)[
0
];
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
break
}
}
case
(
"3"
):
{
case
(
"3"
):
{
this
.
appraisalCompentency2
.
data
.
masfromEvaluationAssessment1lList
[
0
].
apsapprove3Date
=
this
.
currentDate
.
toISOString
().
split
(
'T'
)[
0
];
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
break
}
}
case
(
"4"
):
{
case
(
"4"
):
{
this
.
appraisalCompentency2
.
data
.
masfromEvaluationAssessment1lList
[
0
].
apsapprove4Date
=
this
.
currentDate
.
toISOString
().
split
(
'T'
)[
0
];
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
break
}
}
case
(
"5"
):
{
case
(
"5"
):
{
this
.
appraisalCompentency2
.
data
.
masfromEvaluationAssessment1lList
[
0
].
apsapprove5Date
=
this
.
currentDate
.
toISOString
().
split
(
'T'
)[
0
];
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
break
}
}
default
:
{
return
}
default
:
{
return
}
}
}
console
.
log
(
" 🐒 this.employee.evaluate:"
,
this
.
employee
.
evaluate
)
}
}
this
.
calnumberCheck
()
this
.
calnumberCheck
()
this
.
appraisalCompentency2
.
loading
=
false
this
.
appraisalCompentency2
.
loading
=
false
...
@@ -417,24 +404,28 @@ export class SelfEvaluationComponent implements OnInit {
...
@@ -417,24 +404,28 @@ export class SelfEvaluationComponent implements OnInit {
}
}
this
.
appraisalService
.
postCompetency
(
body
).
subscribe
({
this
.
appraisalService
.
postCompetency
(
body
).
subscribe
({
next
:
response
=>
{
next
:
response
=>
{
if
(
response
.
success
)
{
if
(
this
.
appraisalCompentency2
.
data
)
{
Swal
.
fire
({
if
(
response
.
success
)
{
title
:
'บันทึกสำเร็จ!'
,
this
.
getAppraisalCompentencyForm
(
this
.
appraisalCompentency2
.
data
?.
masfromEvaluationAssessment1lList
[
0
].
competencyType
.
competencyTypeId
)
text
:
'การประเมินของคุณถูกบันทึกแล้ว'
,
this
.
getWorking
()
icon
:
'success'
,
Swal
.
fire
({
customClass
:
{
title
:
'บันทึกสำเร็จ!'
,
confirmButton
:
'!swal2-button-bg-green'
,
text
:
'การประเมินของคุณถูกบันทึกแล้ว'
,
}
icon
:
'success'
,
});
customClass
:
{
}
else
{
confirmButton
:
'!swal2-button-bg-green'
,
Swal
.
fire
({
}
title
:
'ยกเลิก!'
,
});
text
:
'การบันทึกถูกยกเลิก'
,
}
else
{
icon
:
'error'
,
Swal
.
fire
({
customClass
:
{
title
:
'ยกเลิก!'
,
confirmButton
:
'!swal2-button-bg-danger'
,
text
:
'การบันทึกถูกยกเลิก'
,
}
icon
:
'error'
,
});
customClass
:
{
confirmButton
:
'!swal2-button-bg-danger'
,
}
});
}
}
}
},
error
:
error
=>
{
},
error
:
error
=>
{
Swal
.
fire
({
Swal
.
fire
({
...
...
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