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
b8ce9050
Commit
b8ce9050
authored
Mar 26, 2025
by
Nakarin Luankla
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'DEV' of
https://mygit.myhr.co.th/angular/myAppraisal
into DEV
parents
9833c247
8eac606d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
idp-evalution.component.html
...ce-evaluation/idp-evaluation/idp-evalution.component.html
+2
-2
idp-evalution.component.ts
...ance-evaluation/idp-evaluation/idp-evalution.component.ts
+8
-8
No files found.
src/app/components/performance-evaluation/idp-evaluation/idp-evalution.component.html
View file @
b8ce9050
...
@@ -427,8 +427,8 @@
...
@@ -427,8 +427,8 @@
<button
type=
"submit"
class=
"ti-btn ti-btn-success mx-2rem"
(
click
)="
save
('
draft
')"
>
<button
type=
"submit"
class=
"ti-btn ti-btn-success mx-2rem"
(
click
)="
save
('
draft
')"
>
บันทึกร่าง
บันทึกร่าง
</button>
</button>
<button
type=
"submit"
class=
"ti-btn ti-btn-s
uccess
mx-2rem"
(
click
)="
save
()"
>
<button
type=
"submit"
class=
"ti-btn ti-btn-s
econdary
mx-2rem"
(
click
)="
save
()"
>
บันทึกข้อมูล
อนุมัติ
</button>
</button>
</div>
</div>
</ng-container>
</ng-container>
...
...
src/app/components/performance-evaluation/idp-evaluation/idp-evalution.component.ts
View file @
b8ce9050
...
@@ -35,7 +35,7 @@ export class IdpEvalutionComponent {
...
@@ -35,7 +35,7 @@ export class IdpEvalutionComponent {
this
.
formIdp
.
data
=
JSON
.
parse
(
JSON
.
stringify
(
response
))
this
.
formIdp
.
data
=
JSON
.
parse
(
JSON
.
stringify
(
response
))
if
(
this
.
formIdp
.
data
)
{
if
(
this
.
formIdp
.
data
)
{
this
.
canSave
=
(
this
.
formIdp
.
data
.
currentStep
==
this
.
formIdp
.
data
.
checkStep
)
&&
(
this
.
masfromStatusType
!=
'Boss_finish'
&&
this
.
masfromStatusType
!=
'Not_evaluating_yet'
)
this
.
canSave
=
(
this
.
formIdp
.
data
.
currentStep
==
this
.
formIdp
.
data
.
checkStep
)
&&
(
this
.
masfromStatusType
!=
'Boss_finish'
&&
this
.
masfromStatusType
!=
'Not_evaluating_yet'
)
this
.
canEdit
=
(
this
.
formIdp
.
data
.
currentStep
==
this
.
formIdp
.
data
.
checkStep
&&
(
+
(
this
.
formIdp
.
data
.
checkStep
)
<=
1
))
&&
(
this
.
masfromStatusType
!=
'Boss_finish'
&&
this
.
masfromStatusType
!=
'Not_evaluating_yet'
)
this
.
canEdit
=
(
this
.
formIdp
.
data
.
currentStep
==
this
.
formIdp
.
data
.
checkStep
&&
(
+
(
this
.
formIdp
.
data
.
checkStep
)
<=
1
))
&&
(
this
.
masfromStatusType
!=
'Boss_finish'
&&
this
.
masfromStatusType
!=
'Not_evaluating_yet'
)
}
}
switch
(
this
.
formIdp
.
data
?.
currentStep
)
{
switch
(
this
.
formIdp
.
data
?.
currentStep
)
{
case
(
"0"
):
{
case
(
"0"
):
{
...
@@ -122,10 +122,10 @@ export class IdpEvalutionComponent {
...
@@ -122,10 +122,10 @@ export class IdpEvalutionComponent {
</svg>
</svg>
</div>
</div>
`
,
`
,
title
:
status
==
'draft'
?
'บันทึกแบบร่าง'
:
'
บันทึก
ข้อมูล'
,
title
:
status
==
'draft'
?
'บันทึกแบบร่าง'
:
'
อนุมัติ
ข้อมูล'
,
text
:
status
==
'draft'
?
'คุณต้องการบันทึกแบบร่างของการประเมินนี้ใช่หรือไม่'
:
'คุณต้องการ
บันทึก
ข้อมูลการประเมินนี้ใช่หรือไม่'
,
text
:
status
==
'draft'
?
'คุณต้องการบันทึกแบบร่างของการประเมินนี้ใช่หรือไม่'
:
'คุณต้องการ
อนุมัติ
ข้อมูลการประเมินนี้ใช่หรือไม่'
,
showCancelButton
:
true
,
showCancelButton
:
true
,
confirmButtonText
:
'ยืนยันการบันทึก
'
,
confirmButtonText
:
status
==
'draft'
?
'ยืนยันการบันทึก'
:
'ยืนยันการอนุมัติข้อมูล
'
,
cancelButtonText
:
'ย้อนกลับ'
,
cancelButtonText
:
'ย้อนกลับ'
,
customClass
:
{
customClass
:
{
title
:
'!swal2-title-mt-20px'
,
title
:
'!swal2-title-mt-20px'
,
...
@@ -140,7 +140,7 @@ export class IdpEvalutionComponent {
...
@@ -140,7 +140,7 @@ export class IdpEvalutionComponent {
}
else
if
(
result
.
dismiss
===
Swal
.
DismissReason
.
cancel
)
{
}
else
if
(
result
.
dismiss
===
Swal
.
DismissReason
.
cancel
)
{
Swal
.
fire
({
Swal
.
fire
({
title
:
'ยกเลิก!'
,
title
:
'ยกเลิก!'
,
text
:
'การบันทึก
ถูกยกเลิก'
,
text
:
status
==
'draft'
?
'การบันทึกถูกยกเลิก'
:
'การอนุมัติ
ถูกยกเลิก'
,
icon
:
'error'
,
icon
:
'error'
,
customClass
:
{
customClass
:
{
confirmButton
:
'!swal2-button-bg-danger'
,
confirmButton
:
'!swal2-button-bg-danger'
,
...
@@ -213,7 +213,7 @@ export class IdpEvalutionComponent {
...
@@ -213,7 +213,7 @@ export class IdpEvalutionComponent {
if
(
response
.
success
)
{
if
(
response
.
success
)
{
Swal
.
fire
({
Swal
.
fire
({
title
:
'บันทึกสำเร็จ!'
,
title
:
'บันทึกสำเร็จ!'
,
text
:
'การประเมินของคุณถูกบันทึก
แล้ว'
,
text
:
status
==
'draft'
?
'การประเมินถูกบันทึกแล้ว'
:
'การประเมินถูกอนุมัติ
แล้ว'
,
icon
:
'success'
,
icon
:
'success'
,
customClass
:
{
customClass
:
{
confirmButton
:
'!swal2-button-bg-green'
,
confirmButton
:
'!swal2-button-bg-green'
,
...
@@ -223,7 +223,7 @@ export class IdpEvalutionComponent {
...
@@ -223,7 +223,7 @@ export class IdpEvalutionComponent {
}
else
{
}
else
{
Swal
.
fire
({
Swal
.
fire
({
title
:
'ยกเลิก!'
,
title
:
'ยกเลิก!'
,
text
:
'การบันทึกถูกยกเลิก
'
,
text
:
status
==
'draft'
?
'การบันทึกนถูกยกเลิก'
:
'การประเมินไม่ถูกอนุมัติ
'
,
icon
:
'error'
,
icon
:
'error'
,
customClass
:
{
customClass
:
{
confirmButton
:
'!swal2-button-bg-danger'
,
confirmButton
:
'!swal2-button-bg-danger'
,
...
@@ -233,7 +233,7 @@ export class IdpEvalutionComponent {
...
@@ -233,7 +233,7 @@ export class IdpEvalutionComponent {
},
error
:
error
=>
{
},
error
:
error
=>
{
Swal
.
fire
({
Swal
.
fire
({
title
:
'ยกเลิก!'
,
title
:
'ยกเลิก!'
,
text
:
'การบันทึกถูกยกเลิก
'
,
text
:
status
==
'draft'
?
'การบันทึกถูกยกเลิก'
:
'การประเมินไม่ถูกอนุมัติ
'
,
icon
:
'error'
,
icon
:
'error'
,
customClass
:
{
customClass
:
{
confirmButton
:
'!swal2-button-bg-danger'
,
confirmButton
:
'!swal2-button-bg-danger'
,
...
...
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