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
24331ea2
Commit
24331ea2
authored
Mar 21, 2025
by
Nattana Chaiyamat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
กำหนดผู้ประเมิน
parent
22415e8c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
110 deletions
+35
-110
assigning-approvers.component.html
...nt/assigning-approvers/assigning-approvers.component.html
+21
-65
assigning-approvers.component.ts
...ment/assigning-approvers/assigning-approvers.component.ts
+10
-7
evaluation-grouping.component.html
...nt/evaluation-grouping/evaluation-grouping.component.html
+3
-38
evaluation-grouping.component.ts
...ment/evaluation-grouping/evaluation-grouping.component.ts
+1
-0
No files found.
src/app/components/performance-management-evaluation/assessment-management/assigning-approvers/assigning-approvers.component.html
View file @
24331ea2
This diff is collapsed.
Click to expand it.
src/app/components/performance-management-evaluation/assessment-management/assigning-approvers/assigning-approvers.component.ts
View file @
24331ea2
...
@@ -4,9 +4,10 @@ import { EmployeeModel, MyEmployeeModel } from 'src/app/shared/model/employee.mo
...
@@ -4,9 +4,10 @@ import { EmployeeModel, MyEmployeeModel } from 'src/app/shared/model/employee.mo
import
{
GroupApproveModel
,
MyGroupApproveModel
}
from
'src/app/shared/model/group-approve.model'
;
import
{
GroupApproveModel
,
MyGroupApproveModel
}
from
'src/app/shared/model/group-approve.model'
;
import
{
EmployeeService
}
from
'src/app/shared/services/employee.service'
;
import
{
EmployeeService
}
from
'src/app/shared/services/employee.service'
;
import
{
FileService
}
from
'src/app/shared/services/file.service'
;
import
{
FileService
}
from
'src/app/shared/services/file.service'
;
import
{
PmsGroupApproveService
}
from
'src/app/shared/services/pms-
group-approve.service'
;
import
{
GroupApproveService
}
from
'src/app/shared/services/
group-approve.service'
;
interface
table
{
interface
table
{
currentPage
:
number
,
currentPage
:
number
,
pageSize
:
number
,
page
:
number
[],
page
:
number
[],
search
:
string
search
:
string
}
}
...
@@ -18,6 +19,7 @@ interface table {
...
@@ -18,6 +19,7 @@ interface table {
export
class
AssigningApproversComponent
{
export
class
AssigningApproversComponent
{
currentPage
=
1
currentPage
=
1
pageSize
=
10
page
=
Array
.
from
({
length
:
1
},
(
_
,
i
)
=>
i
+
1
);
page
=
Array
.
from
({
length
:
1
},
(
_
,
i
)
=>
i
+
1
);
groupapprove_list
:
GroupApproveModel
[]
=
[]
groupapprove_list
:
GroupApproveModel
[]
=
[]
groupapprove_listLoading
=
false
groupapprove_listLoading
=
false
...
@@ -29,6 +31,7 @@ export class AssigningApproversComponent {
...
@@ -29,6 +31,7 @@ export class AssigningApproversComponent {
employee
:
EmployeeModel
=
new
MyEmployeeModel
({})
employee
:
EmployeeModel
=
new
MyEmployeeModel
({})
employeeModal
:
table
=
{
employeeModal
:
table
=
{
currentPage
:
1
,
currentPage
:
1
,
pageSize
:
10
,
page
:
Array
.
from
({
length
:
1
},
(
_
,
i
)
=>
i
+
1
),
page
:
Array
.
from
({
length
:
1
},
(
_
,
i
)
=>
i
+
1
),
search
:
""
search
:
""
}
}
...
@@ -39,7 +42,7 @@ export class AssigningApproversComponent {
...
@@ -39,7 +42,7 @@ export class AssigningApproversComponent {
selectedFile
:
File
|
null
=
null
;
selectedFile
:
File
|
null
=
null
;
selectedFileName
:
string
=
'กรุณาเลือกไฟล์'
;
selectedFileName
:
string
=
'กรุณาเลือกไฟล์'
;
constructor
(
private
pmsGroupapproveService
:
Pms
GroupApproveService
,
constructor
(
private
groupapproveService
:
GroupApproveService
,
private
toastr
:
ToastrService
,
private
toastr
:
ToastrService
,
private
cdr
:
ChangeDetectorRef
,
private
cdr
:
ChangeDetectorRef
,
private
employeeService
:
EmployeeService
,
private
employeeService
:
EmployeeService
,
...
@@ -113,8 +116,8 @@ export class AssigningApproversComponent {
...
@@ -113,8 +116,8 @@ export class AssigningApproversComponent {
})
})
}
}
employee_listFilter
()
{
employee_listFilter
()
{
return
this
.
employee_list
.
filter
(
x
=>
x
.
fname
.
toLowerCase
().
includes
(
this
.
search
.
toLowerCase
())
||
return
this
.
employee_list
.
filter
(
x
=>
x
.
fname
.
toLowerCase
().
includes
(
this
.
employeeModal
.
search
.
toLowerCase
())
||
x
.
lname
.
toLowerCase
().
includes
(
this
.
search
.
toLowerCase
()))
x
.
lname
.
toLowerCase
().
includes
(
this
.
employeeModal
.
search
.
toLowerCase
()))
}
}
searchEMP
()
{
searchEMP
()
{
this
.
employeeModal
.
currentPage
=
1
this
.
employeeModal
.
currentPage
=
1
...
@@ -141,7 +144,7 @@ export class AssigningApproversComponent {
...
@@ -141,7 +144,7 @@ export class AssigningApproversComponent {
}
}
getGroupapprove_list
()
{
getGroupapprove_list
()
{
this
.
groupapprove_listLoading
=
true
this
.
groupapprove_listLoading
=
true
this
.
pmsG
roupapproveService
.
getList
().
subscribe
({
this
.
g
roupapproveService
.
getList
().
subscribe
({
next
:
response
=>
{
next
:
response
=>
{
this
.
groupapprove_list
=
response
.
map
(
x
=>
new
MyGroupApproveModel
(
x
))
this
.
groupapprove_list
=
response
.
map
(
x
=>
new
MyGroupApproveModel
(
x
))
this
.
groupapprove_listLoading
=
false
this
.
groupapprove_listLoading
=
false
...
@@ -187,7 +190,7 @@ export class AssigningApproversComponent {
...
@@ -187,7 +190,7 @@ export class AssigningApproversComponent {
}
}
addgroupapprove
()
{
addgroupapprove
()
{
this
.
groupapprove_listLoading
=
true
this
.
groupapprove_listLoading
=
true
this
.
pmsG
roupapproveService
.
post
(
this
.
groupapprove
).
subscribe
({
this
.
g
roupapproveService
.
post
(
this
.
groupapprove
).
subscribe
({
next
:
response
=>
{
next
:
response
=>
{
if
(
response
.
success
)
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
this
.
showAlert
(
response
.
message
,
'success'
)
...
@@ -206,7 +209,7 @@ export class AssigningApproversComponent {
...
@@ -206,7 +209,7 @@ export class AssigningApproversComponent {
}
}
deletegroupapprove
()
{
deletegroupapprove
()
{
this
.
groupapprove_listLoading
=
true
this
.
groupapprove_listLoading
=
true
this
.
pmsG
roupapproveService
.
delete
(
this
.
groupapprove
).
subscribe
({
this
.
g
roupapproveService
.
delete
(
this
.
groupapprove
).
subscribe
({
next
:
response
=>
{
next
:
response
=>
{
if
(
response
.
success
)
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
this
.
showAlert
(
response
.
message
,
'success'
)
...
...
src/app/components/performance-management-evaluation/assessment-management/evaluation-grouping/evaluation-grouping.component.html
View file @
24331ea2
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
</tbody>
</tbody>
<tbody
*
ngIf=
"!pl.loading&&plListFilter().length"
>
<tbody
*
ngIf=
"!pl.loading&&plListFilter().length"
>
<tr
<tr
*
ngFor=
"let item of plListFilter()| slice:((currentPage-1) *
10) : (((currentPage-1) * 10) + 10
);let i = index"
>
*
ngFor=
"let item of plListFilter()| slice:((currentPage-1) *
pageSize) : (((currentPage-1) * pageSize) + pageSize
);let i = index"
>
<td
style=
"font-size: 12px; padding-left: 4rem;"
>
{{item.data.plId}}
</td>
<td
style=
"font-size: 12px; padding-left: 4rem;"
>
{{item.data.plId}}
</td>
<td
style=
"font-size: 12px; padding-left: 1.5rem; width: 600px;"
>
{{item.data.tdesc}}
<td
style=
"font-size: 12px; padding-left: 1.5rem; width: 600px;"
>
{{item.data.tdesc}}
</td>
</td>
...
@@ -86,43 +86,8 @@
...
@@ -86,43 +86,8 @@
</table>
</table>
</div>
</div>
</div>
</div>
<nav
class=
"pagination-style-3 overflow-auto my-5"
*
ngIf=
"page.length"
>
<app-pagination
[
totalItems
]="
plListFilter
().
length
"
[
pageSize
]="
pageSize
"
(
pageChange
)="
currentPage =
$event"
<ul
class=
"ti-pagination"
>
(
pageSizeChange
)="
pageSize =
$event;currentPage
=
1
"
></app-pagination>
<li>
<a
aria-label=
"anchor"
class=
"page-link !pl-0"
href=
"javascript:void(0);"
(
click
)="
currentPage =
(currentPage-1
||
1
)"
>
<i
class=
"ri-arrow-left-s-line align-middle rtl:rotate-180"
></i>
</a>
</li>
<li
*
ngFor=
"let item of page;let f = first;let l = last"
>
<ng-container
*
ngIf=
"item==3&¤tPage!=1&¤tPage!=2&¤tPage!=3"
>
<a
aria-label=
"anchor"
class=
"page-link"
href=
"javascript:void(0);"
><i
class=
"ri-more-line"
></i>
</a>
</ng-container>
<ng-container
*
ngIf=
"(f||l)||(item==currentPage-1||item==currentPage||item==currentPage+1)"
>
<a
class=
"page-link"
href=
"javascript:void(0);"
[
class
.
active
]="
item=
=currentPage"
(
click
)="
currentPage=
item"
>
{{item}}
</a>
</ng-container>
<ng-container
*
ngIf=
"item==page.length-2&¤tPage!=page.length&¤tPage!=page.length-1&¤tPage!=page.length-2"
>
<a
aria-label=
"anchor"
class=
"page-link"
href=
"javascript:void(0);"
><i
class=
"ri-more-line"
></i>
</a>
</ng-container>
</li>
<li>
<a
aria-label=
"anchor"
class=
"page-link"
href=
"javascript:void(0);"
(
click
)="
currentPage =
(currentPage
>
page.length-1 ? currentPage: currentPage+1 )">
<i
class=
"ri-arrow-right-s-line align-middle rtl:rotate-180"
></i>
</a>
</li>
</ul>
<ul
class=
"nav-tabs mt-3"
>
<span>
Show {{((currentPage-1) * 10)+1}} to {{plListFilter().length
<10
?
plListFilter
().
length:
(
currentPage=
=page.length
?
((
currentPage
*
10
)
-
((
currentPage
*
10
)
-
plListFilter
().
length
)
)
:
(
currentPage
*
10
)
)
}}
of
{{
plListFilter
().
length
}}
items
</
span
>
</ul>
</nav>
</div>
</div>
<div
id=
"evaluation-grouping-upload-modal"
class=
"hs-overlay hidden ti-modal"
>
<div
id=
"evaluation-grouping-upload-modal"
class=
"hs-overlay hidden ti-modal"
>
...
...
src/app/components/performance-management-evaluation/assessment-management/evaluation-grouping/evaluation-grouping.component.ts
View file @
24331ea2
...
@@ -15,6 +15,7 @@ export class EvaluationGroupingComponent {
...
@@ -15,6 +15,7 @@ export class EvaluationGroupingComponent {
currentPage
=
1
currentPage
=
1
page
=
Array
.
from
({
length
:
1
},
(
_
,
i
)
=>
i
+
1
);
page
=
Array
.
from
({
length
:
1
},
(
_
,
i
)
=>
i
+
1
);
pageSize
=
10
search
=
""
search
=
""
currentModal
:
'add'
|
'edit'
|
'delete'
|
'deleteGroup'
=
"add"
currentModal
:
'add'
|
'edit'
|
'delete'
|
'deleteGroup'
=
"add"
...
...
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