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
396dec01
Commit
396dec01
authored
Sep 15, 2025
by
Nattana Chaiyamat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
แก้ไข Individual KPI ตัวเอง
parent
9bae4e07
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
88 additions
and
91 deletions
+88
-91
indicators-and-curriculum.component.html
...s-and-curriculum/indicators-and-curriculum.component.html
+1
-1
indicators-and-curriculum.component.ts
...ors-and-curriculum/indicators-and-curriculum.component.ts
+2
-2
competency-topic.component.html
...stration/competency-topic/competency-topic.component.html
+1
-1
competency-topic.component.ts
...gistration/competency-topic/competency-topic.component.ts
+63
-66
setting-individual-kpi.component.html
...ting-individual-kpi/setting-individual-kpi.component.html
+0
-0
setting-individual-kpi.component.ts
...etting-individual-kpi/setting-individual-kpi.component.ts
+0
-0
file.service.ts
src/app/shared/services/file.service.ts
+1
-1
navservice.ts
src/app/shared/services/navservice.ts
+20
-20
No files found.
src/app/components/competency-assessment/competency-management/indicators-and-curriculum/indicators-and-curriculum.component.html
View file @
396dec01
...
...
@@ -27,7 +27,7 @@
[
dataSource
]="
indicatorsCoursesList
"
[
checkBoxSetting
]="
false
"
[
columns
]="
columns
"
[
childView
]="
true
"
[
canDownload
]="
true
"
(
sendNextPageView
)="
onViewClicked
($
event
)"
(
sendSelectData
)="
selectIndicatorsCourses
($
event
);
onEditClicked
($
event
)"
(
sendFileDownload
)="
dowloadExam
($
event
)"
>
(
sendFileDownload
)="
dow
n
loadExam
($
event
)"
>
</app-datagrid-syncfution>
</div>
</ng-container>
...
...
src/app/components/competency-assessment/competency-management/indicators-and-curriculum/indicators-and-curriculum.component.ts
View file @
396dec01
...
...
@@ -63,8 +63,8 @@ export class IndicatorsAndCurriculumComponent {
this
.
getIndicatorsCoursesList
()
}
dowloadExam
(
data
:
CompetencytopicModel
)
{
this
.
fileService
.
dowloadFiles
(
data
.
competencyFiles
).
subscribe
({
dow
n
loadExam
(
data
:
CompetencytopicModel
)
{
this
.
fileService
.
dow
n
loadFiles
(
data
.
competencyFiles
).
subscribe
({
next
:
response
=>
{
const
url
=
window
.
URL
.
createObjectURL
(
response
);
const
a
=
document
.
createElement
(
"a"
);
...
...
src/app/components/competency-assessment/name-registration/competency-topic/competency-topic.component.html
View file @
396dec01
...
...
@@ -124,7 +124,7 @@
<div
class=
"flex"
*
ngIf=
"examFileName==competencyTopic.select.competencyFiles"
>
<h1
class=
"cursor-pointer justify-center -mb-px inline-flex items-center gap-2 font-weight-500 font-size-12px
text-center text-secondary border-secondary border-b-2 align-items-end"
(
click
)="
dowloadExam
(
examFileName
)"
>
(
click
)="
dow
n
loadExam
(
examFileName
)"
>
ดาวน์โหลดไฟล์ข้อสอบ
</h1>
</div>
</mat-dialog-content>
...
...
src/app/components/competency-assessment/name-registration/competency-topic/competency-topic.component.ts
View file @
396dec01
...
...
@@ -102,12 +102,12 @@ export class CompetencyTopic implements OnInit {
private
cdr
:
ChangeDetectorRef
,
private
fileService
:
FileService
,
private
competencytopicService
:
CompetencytopicService
,
//
private competencytypeService: CompetencytypeService,
private
competencytypeService
:
CompetencytypeService
,
private
tokenService
:
TokenService
)
{
}
ngOnInit
():
void
{
this
.
getCompetencytopicList
()
//
this.getCompetencytypeList()
this
.
getCompetencytypeList
()
}
onExamSelected
(
event
:
any
)
{
...
...
@@ -140,8 +140,8 @@ export class CompetencyTopic implements OnInit {
dowloadExam
(
fileName
:
string
)
{
this
.
fileService
.
dowloadFiles
(
fileName
).
subscribe
({
dow
n
loadExam
(
fileName
:
string
)
{
this
.
fileService
.
dow
n
loadFiles
(
fileName
).
subscribe
({
next
:
response
=>
{
const
url
=
window
.
URL
.
createObjectURL
(
response
);
const
a
=
document
.
createElement
(
"a"
);
...
...
@@ -176,7 +176,7 @@ export class CompetencyTopic implements OnInit {
next
:
response
=>
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
//
this.getCompetencytypeList()
this
.
getCompetencytypeList
()
this
.
getCompetencytopicList
()
}
else
{
this
.
showAlert
(
response
.
message
,
'error'
)
...
...
@@ -211,23 +211,20 @@ export class CompetencyTopic implements OnInit {
}
getCompetencytypeList
()
{
// this.competencytypeListLoading = true
// this.selectedItems.data.clear()
// this.competencytypeService.getList().subscribe({
// next: response => {
// this.typeList = response.map(x => {
// this.selectedItems.data.set(x.competencyTypeId, false)
// return new MyCompetencytypeModel(x)
// })
// this.selectedItems.key = 'competencyTypeId'
// this.selectedItems.count = 0
// this.competencytypeListLoading = false
// this.cdr.detectChanges()
// }, error: error => {
// this.competencytypeListLoading = false
// this.cdr.detectChanges()
// }
// })
this
.
competencytypeListLoading
=
true
this
.
selectedItems
.
data
.
clear
()
this
.
competencytypeService
.
getList
().
subscribe
({
next
:
response
=>
{
this
.
typeList
=
response
.
map
(
x
=>
{
return
new
MyCompetencytypeModel
(
x
)
})
this
.
competencytypeListLoading
=
false
this
.
cdr
.
detectChanges
()
},
error
:
error
=>
{
this
.
competencytypeListLoading
=
false
this
.
cdr
.
detectChanges
()
}
})
}
...
...
@@ -280,7 +277,7 @@ export class CompetencyTopic implements OnInit {
this
.
uploadExam
();
return
;
}
const
user
=
this
.
tokenService
.
getUser
();
const
body
=
new
MyCompetencytopicModel
({
...
this
.
competencyTopic
.
select
,
...
...
@@ -292,7 +289,7 @@ export class CompetencyTopic implements OnInit {
next
:
response
=>
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
);
//
this.getCompetencytypeList();
this
.
getCompetencytypeList
();
this
.
getCompetencytopicList
();
this
.
closeDialog
()
}
else
{
...
...
@@ -326,51 +323,51 @@ export class CompetencyTopic implements OnInit {
}
deleteCompetency_topic
()
{
if
(
!
this
.
numSelectItem
())
{
this
.
showAlert
(
'กรุณาเลือกข้อมูลที่ต้องการลบ'
,
'error'
);
return
;
}
if
(
!
this
.
numSelectItem
())
{
this
.
showAlert
(
'กรุณาเลือกข้อมูลที่ต้องการลบ'
,
'error'
);
return
;
}
Swal
.
fire
({
icon
:
'question'
,
title
:
'แจ้งเตือน'
,
text
:
'ยืนยันการลบข้อมูลหรือไม่'
,
showCancelButton
:
true
,
confirmButtonText
:
'ลบข้อมูล'
,
cancelButtonText
:
'ย้อนกลับ'
,
reverseButtons
:
true
,
}).
then
(
result
=>
{
if
(
result
.
isConfirmed
)
{
let
body
:
MyCompetencytopicModel
[]
=
[];
if
(
this
.
currentModal
===
"delete"
)
{
const
selectedKeys
=
Array
.
from
(
this
.
selectedItems
.
data
.
keys
());
body
=
this
.
competencyTopic
.
dataList
.
filter
(
x
=>
selectedKeys
.
includes
(
x
.
competencyTopicId
)
&&
this
.
selectedItems
.
data
.
get
(
x
.
competencyTopicId
))
.
map
(
x
=>
new
MyCompetencytopicModel
(
x
));
}
this
.
competencyTopic
.
loading
=
true
;
this
.
competencytopicService
.
delete
(
body
).
subscribe
({
next
:
response
=>
{
this
.
competencyTopic
.
loading
=
false
;
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
);
// this.getCompetencytypeList();
this
.
getCompetencytopicList
();
}
else
{
this
.
showAlert
(
response
.
message
,
'error'
);
Swal
.
fire
({
icon
:
'question'
,
title
:
'แจ้งเตือน'
,
text
:
'ยืนยันการลบข้อมูลหรือไม่'
,
showCancelButton
:
true
,
confirmButtonText
:
'ลบข้อมูล'
,
cancelButtonText
:
'ย้อนกลับ'
,
reverseButtons
:
true
,
}).
then
(
result
=>
{
if
(
result
.
isConfirmed
)
{
let
body
:
MyCompetencytopicModel
[]
=
[];
if
(
this
.
currentModal
===
"delete"
)
{
const
selectedKeys
=
Array
.
from
(
this
.
selectedItems
.
data
.
keys
());
body
=
this
.
competencyTopic
.
dataList
.
filter
(
x
=>
selectedKeys
.
includes
(
x
.
competencyTopicId
)
&&
this
.
selectedItems
.
data
.
get
(
x
.
competencyTopicId
))
.
map
(
x
=>
new
MyCompetencytopicModel
(
x
));
}
this
.
competencyTopic
.
loading
=
true
;
this
.
competencytopicService
.
delete
(
body
).
subscribe
({
next
:
response
=>
{
this
.
competencyTopic
.
loading
=
false
;
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
);
this
.
getCompetencytypeList
();
this
.
getCompetencytopicList
();
}
else
{
this
.
showAlert
(
response
.
message
,
'error'
);
this
.
cdr
.
detectChanges
();
}
},
error
:
error
=>
{
this
.
competencyTopic
.
loading
=
false
;
this
.
showAlert
(
error
.
message
,
'error'
);
this
.
cdr
.
detectChanges
();
}
},
error
:
error
=>
{
this
.
competencyTopic
.
loading
=
false
;
this
.
showAlert
(
error
.
message
,
'error'
);
this
.
cdr
.
detectChanges
();
}
});
}
});
}
});
}
});
}
showAlert
(
text
:
string
,
type
:
'success'
|
'error'
)
{
...
...
src/app/components/setting-individual-kpi/setting-individual-kpi.component.html
View file @
396dec01
This diff is collapsed.
Click to expand it.
src/app/components/setting-individual-kpi/setting-individual-kpi.component.ts
View file @
396dec01
This diff is collapsed.
Click to expand it.
src/app/shared/services/file.service.ts
View file @
396dec01
...
...
@@ -12,7 +12,7 @@ export class FileService {
uploadFiles
(
formData
:
any
):
Observable
<
AlertModel
>
{
return
this
.
http
.
post
<
AlertModel
>
(
environment
.
baseUrl
+
'/files/upload'
,
formData
)
}
dowloadFiles
(
filename
:
string
)
{
dow
n
loadFiles
(
filename
:
string
)
{
return
this
.
http
.
get
(
environment
.
baseUrl
+
'/files/download/'
+
filename
,
{
responseType
:
"blob"
})
}
uploadExcel
(
formData
:
any
,
table
:
string
):
Observable
<
AlertModel
>
{
...
...
src/app/shared/services/navservice.ts
View file @
396dec01
...
...
@@ -122,26 +122,26 @@ export class NavService implements OnDestroy {
// { id: 'm12', path: 'ess/supervisor-evaluation', title: 'ประเมินโดยหัวหน้า', type: 'link', show: true },
// ],
},
//
{
//
title: 'แก้ไข Individual KPI ตนเอง',
//
type: 'link',
//
selected: false,
//
active: false,
//
path: 'ess/self-setting-individual-kpi',
//
id: 'm3',
// show: fals
e,
//
icon: ''
//
},
//
{
//
title: 'แก้ไข Individual KPI โดยหัวหน้า',
//
type: 'link',
//
selected: false,
//
active: false,
//
path: 'ess/supervisor-setting-individual-kpi',
//
id: 'm4',
// show: fals
e,
//
icon: ''
//
},
{
title
:
'แก้ไข Individual KPI ตนเอง'
,
type
:
'link'
,
selected
:
false
,
active
:
false
,
path
:
'ess/self-setting-individual-kpi'
,
id
:
'm3'
,
show
:
tru
e
,
icon
:
''
},
{
title
:
'แก้ไข Individual KPI โดยหัวหน้า'
,
type
:
'link'
,
selected
:
false
,
active
:
false
,
path
:
'ess/supervisor-setting-individual-kpi'
,
id
:
'm4'
,
show
:
tru
e
,
icon
:
''
},
];
}
...
...
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