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
d95a5d26
Commit
d95a5d26
authored
Apr 21, 2025
by
Mon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ลบ comment การประเมินจัดการประสิทธิภาพ
parent
390a8a3c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
199 deletions
+2
-199
management-evaluation-cycle.component.ts
...evaluation-cycle/management-evaluation-cycle.component.ts
+0
-83
pms-grade-management.component.ts
...on/pms-grade-management/pms-grade-management.component.ts
+0
-55
time-attendance-manage.component.ts
...ime-attendance-manage/time-attendance-manage.component.ts
+2
-61
No files found.
src/app/components/performance-management-evaluation/evaluation-cycle-performance/management-evaluation-cycle/management-evaluation-cycle.component.ts
View file @
d95a5d26
...
...
@@ -141,7 +141,6 @@ export class ManagementCycleComponent {
next
:
response
=>
{
this
.
pl
.
dataList
=
response
.
map
((
x
:
any
)
=>
new
MyPLModel
(
x
))
this
.
pl
.
loading
=
false
// this.searchChange()
this
.
cdr
.
detectChanges
()
},
error
:
error
=>
{
this
.
pl
.
loading
=
false
...
...
@@ -175,11 +174,6 @@ export class ManagementCycleComponent {
this
.
dataLoading
=
true
this
.
selectedItems
.
data
.
clear
()
this
.
pmsMasfromEvaluationCycleService
.
getList
().
subscribe
({
// next: response => {
// this.pmsMasfromEvaluationlist = response.map(x => ({
// check: false,
// data: new MyPmsMasfromEvaluationModel(x)
// }));
next
:
response
=>
{
this
.
pmsMasfromEvaluation
.
dataList
=
response
.
map
(
x
=>
{
this
.
selectedItems
.
data
.
set
(
x
.
pmsEvaluationRoundId
,
false
)
...
...
@@ -189,8 +183,6 @@ export class ManagementCycleComponent {
this
.
selectedItems
.
count
=
0
this
.
dataLoading
=
false
this
.
isDataListCheckedAll
=
false
// this.dataListCheckAll()
// this.searchChange();
this
.
cdr
.
detectChanges
();
},
error
:
err
=>
{
...
...
@@ -208,31 +200,6 @@ export class ManagementCycleComponent {
this
.
pmsMasfromEvaluation
.
select
=
new
MyPmsMasfromEvaluationModel
({
pmsEvaluationRoundId
:
this
.
pmsMasfromEvaluation
.
select
.
pmsEvaluationRoundId
})
}
}
// dataListCheckAll() {
// const selectAll = this.isDataListCheckedAll;
// this.pmsMasfromEvaluationCycleFilter().forEach(x => x.check = selectAll);
// this.dataListCheck();
// }
// dataListCheck() {
// const dataCheck = this.pmsMasfromEvaluationCycleFilter();
// this.isDataListCheckedAll = dataCheck.length ? dataCheck.every(x => x.check) : false;
// this.numDataListChecked = this.pmsMasfromEvaluationlist.filter(x => x.check).length;
// this.isDataListChecked = Boolean(this.numDataListChecked)
// }
// searchChange() {
// this.currentPage = 1
// this.page = Array.from({ length: Math.ceil(this.pmsMasfromEvaluationCycleFilter().length / 10) }, (_, i) => i + 1);
// this.dataListCheck()
// }
// pmsMasfromEvaluationCycleFilter() {
// return this.pmsMasfromEvaluation.loading.filter(x => {
// const data = x.data
// const match = data.pmsEvaluationRoundId.toLowerCase().includes(this.search.toLowerCase()) || data.tdesc.toLowerCase().includes(this.search.toLowerCase()) || data.edesc.toLowerCase().includes(this.search.toLowerCase());
// return match;
// });
// }
setData
(
data
?:
PmsMasfromEvaluationModel
)
{
this
.
pmsMasfromEvaluation
.
select
=
new
MyPmsMasfromEvaluationModel
(
data
)
...
...
@@ -321,56 +288,6 @@ export class ManagementCycleComponent {
}
});
}
// addPmsMasfromEvaluation() {
// if (this.pmsMasfromEvaluation.personalLevel.length == 0) {
// this.plListFilter().forEach(x => this.selectPl(x))
// }
// const body = new MyPmsMasfromEvaluationModel(this.pmsMasfromEvaluation)
// this.dataLoading = true
// this.pmsMasfromEvaluationCycleService.post(body).subscribe({
// next: response => {
// if (response.success) {
// this.showAlert(response.message, 'success')
// this.getPmsMasfromEvaluationCycleList()
// } else {
// this.dataLoading = false
// this.showAlert(response.message, 'error')
// this.cdr.detectChanges()
// }
// }, error: error => {
// this.showAlert(error.message, 'error')
// this.dataLoading = false
// this.cdr.detectChanges()
// }
// })
// }
// deletePmsMasfromEvaluation() {
// let body: PmsMasfromEvaluationModel[] = []
// if (this.pmsMasfromEvaluation.pmsEvaluationRoundId) {
// body = [new MyPmsMasfromEvaluationModel(this.pmsMasfromEvaluation)]
// } else {
// body = this.pmsMasfromEvaluationlist.filter(x => x.check).map(x => new MyPmsMasfromEvaluationModel(x.data))
// }
// this.dataLoading = true
// this.pmsMasfromEvaluationCycleService.delete(body).subscribe({
// next: response => {
// if (response.success) {
// this.showAlert(response.message, 'success')
// this.getPmsMasfromEvaluationCycleList()
// } else {
// this.dataLoading = false
// this.showAlert(response.message, 'error')
// this.dataLoading = false
// this.cdr.detectChanges()
// }
// }, error: error => {
// this.showAlert(error.message, 'error')
// this.dataLoading = false
// this.cdr.detectChanges()
// }
// })
// }
showAlert
(
text
:
string
,
type
:
'success'
|
'error'
)
{
this
.
toastr
[
type
](
text
,
'แจ้งเตือน'
,
{
...
...
src/app/components/performance-management-evaluation/pms-grade-registration/pms-grade-management/pms-grade-management.component.ts
View file @
d95a5d26
...
...
@@ -68,27 +68,6 @@ export class PmsGradeManagementComponent {
ngOnInit
():
void
{
this
.
getPmsGroupGradeList
()
}
// selectData(dataSelect?: DataModel) {
// if (dataSelect) {
// this.dataSelect = { ...dataSelect };
// } else if (this.typeTab === 'add') {
// this.dataSelect = {
// check: false,
// code: '',
// tdesc: '',
// edesc: '',
// pmsGrade: []
// };
// } else if (this.typeTab === 'edit') {
// this.dataSelect = {
// check: false,
// code: this.dataSelect.code,
// tdesc: '',
// edesc: '',
// pmsGrade: []
// };
// }
// }
selectData
(
dataSelect
?:
DataModel
)
{
if
(
dataSelect
)
{
this
.
dataSelect
=
JSON
.
parse
(
JSON
.
stringify
(
dataSelect
));
...
...
@@ -202,40 +181,6 @@ export class PmsGradeManagementComponent {
}
});
}
// deletePmsGroupGradeList() {
// const body = this.dataSelect.code ? new MyPmsGroupGradeModel({ groupGradeId: this.dataSelect.code, tdesc: this.dataSelect.tdesc, edesc: this.dataSelect.edesc }) :
// this.dataList.filter(x => x.check).map(x => new MyPmsGroupGradeModel({ groupGradeId: x.code, tdesc: x.tdesc, edesc: x.edesc }))
// this.dataLoading = true
// this.pmsGroupGradeService.delete(body).subscribe({
// next: response => {
// if (response.success) {
// this.showAlert(response.message, 'success')
// this.getPmsGroupGradeList()
// } else {
// this.showAlert(response.message, 'error')
// this.dataLoading = false
// this.cdr.detectChanges()
// }
// }, error: error => {
// this.showAlert(error.message, 'error')
// this.dataLoading = false
// this.cdr.detectChanges()
// }
// })
// }
// dataListCheckAll() {
// const selectAll = this.isDataListCheckedAll;
// this.dataListFilter().forEach(x => x.check = selectAll);
// this.dataListCheck();
// }
// dataListCheck() {
// const dataCheck = this.dataListFilter();
// this.isDataListCheckedAll = dataCheck.length ? dataCheck.every(x => x.check) : false;
// this.numDataListChecked = this.dataList.filter(x => x.check).length;
// this.isDataListChecked = Boolean(this.numDataListChecked)
// }
openDialog
()
{
this
.
dialogRef
=
this
.
dialog
.
open
(
this
.
pmsGradeModal
,
{
...
...
src/app/components/performance-management-evaluation/time-attendance/time-attendance-manage/time-attendance-manage.component.ts
View file @
d95a5d26
...
...
@@ -92,7 +92,6 @@ export class TimeAttendanceManageComponent {
this
.
selectedItems
.
data
.
clear
()
this
.
pmsWorkingTimeService
.
getList
().
subscribe
({
next
:
response
=>
{
// this.pmsWorkingTime.dataList = response.map(x => ({ check: false, data: new MyPmsWorkingTimeModel(x) }))
this
.
pmsWorkingTime
.
dataList
=
response
.
map
(
x
=>
{
this
.
selectedItems
.
data
.
set
(
x
.
pmsWorkingTimeId
,
false
)
return
new
MyPmsWorkingTimeModel
(
x
)
...
...
@@ -124,9 +123,6 @@ export class TimeAttendanceManageComponent {
const
filteredData
=
this
.
pmsWorkingTimeFilter
();
this
.
page
=
Array
.
from
({
length
:
Math
.
ceil
(
filteredData
.
length
/
10
)
},
(
_
,
i
)
=>
i
+
1
);
}
// selectData(data?: PmsWorkingTimeModel) {
// this.pmsWorkingTime.select = new MyPmsWorkingTimeModel(data)
// }
selectWorkingtime
(
pmsWorkingTime
?:
PmsWorkingTimeModel
)
{
if
(
pmsWorkingTime
)
{
this
.
pmsWorkingTime
.
select
=
new
MyPmsWorkingTimeModel
(
pmsWorkingTime
)
...
...
@@ -202,18 +198,7 @@ export class TimeAttendanceManageComponent {
}
});
}
// dataListCheckAll() {
// const selectAll = this.isDataListCheckedAll;
// this.pmsWorkingTimeFilter().forEach(x => x.check = selectAll);
// this.dataListCheck();
// }
// dataListCheck() {
// const dataCheck = this.pmsWorkingTimeFilter();
// this.isDataListCheckedAll = dataCheck.length ? dataCheck.every(x => x) : false;
// this.numDataListChecked = this.pmsWorkingTime.dataList.filter(x => x).length;
// this.isDataListChecked = Boolean(this.numDataListChecked)
// }
getEventgrpList
()
{
this
.
eventgrp
.
loading
=
true
this
.
eventgrpService
.
getList
().
subscribe
({
...
...
@@ -262,51 +247,7 @@ export class TimeAttendanceManageComponent {
this
.
eventgrpmodal
.
currentPage
=
1
this
.
eventgrpmodal
.
page
=
Array
.
from
({
length
:
Math
.
ceil
(
this
.
eventgrpListFilter
().
length
/
10
)
},
(
_
,
i
)
=>
i
+
1
);
}
// updatePmsWorkingTime() {
// this.pmsWorkingTime.loading = true
// this.pmsWorkingTimeService.post(new MyPmsWorkingTimeModel(this.pmsWorkingTime.select)).subscribe({
// next: response => {
// if (response.success) {
// this.showAlert(response.message, 'success')
// this.getPmsWorkingTimeList()
// this.searchChange()
// } else {
// this.showAlert(response.message, 'error')
// this.pmsWorkingTime.loading = false
// }
// this.cdr.detectChanges()
// }, error: error => {
// this.showAlert(error.message, 'error')
// this.pmsWorkingTime.loading = false
// this.cdr.detectChanges()
// }
// })
// }
// deletePmsWorkingTime() {
// let body: PmsWorkingTimeModel[] = []
// if (this.modalStatus == "deleteGroup") {
// body = this.pmsWorkingTime.dataList.filter(x => x.check).map(x => new MyPmsWorkingTimeModel(x.data))
// } else {
// body = [new MyPmsWorkingTimeModel(this.pmsWorkingTime.select)]
// }
// this.pmsWorkingTime.loading = true
// this.pmsWorkingTimeService.delete(body).subscribe({
// next: response => {
// if (response.success) {
// this.showAlert(response.message, 'success')
// this.getPmsWorkingTimeList()
// } else {
// this.showAlert(response.message, 'error')
// this.pmsWorkingTime.loading = false
// this.cdr.detectChanges()
// }
// }, error: error => {
// this.showAlert(error.message, 'error')
// this.pmsWorkingTime.loading = false
// this.cdr.detectChanges()
// }
// })
// }
showAlert
(
text
:
string
,
type
:
'success'
|
'error'
)
{
this
.
toastr
[
type
](
text
,
'แจ้งเตือน'
,
{
timeOut
:
3000
,
...
...
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