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
8fb28e71
Commit
8fb28e71
authored
Feb 27, 2025
by
Nattana Chaiyamat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
การประเมินสมรรถนะ
การจัดการสมรรถนะ จัดกลุ่มสมรรถนะ
parent
61a21b06
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
55 additions
and
10 deletions
+55
-10
edit-group-competencies.component.html
...group-competencies/edit-group-competencies.component.html
+2
-2
round-one.component.ts
...on/supervisor-evaluation/round-one/round-one.component.ts
+18
-6
appraisal-subordinate .model.ts
src/app/shared/model/appraisal-subordinate .model.ts
+31
-0
appraisal.service.ts
src/app/shared/services/appraisal.service.ts
+4
-2
No files found.
src/app/components/competency-assessment/competency-management/group-competencies/edit-group-competencies/edit-group-competencies.component.html
View file @
8fb28e71
...
@@ -90,7 +90,7 @@
...
@@ -90,7 +90,7 @@
</div>
</div>
<div
class=
"px-1"
>
<div
class=
"px-1"
>
<button
type=
"button"
class=
"ti-btn ti-btn-soft-secondary h-20px m-0 shadow-md"
<button
type=
"button"
class=
"ti-btn ti-btn-soft-secondary h-20px m-0 shadow-md"
data-hs-overlay=
"#edit-group-competencies-table-modal-select"
>
(
click
)="
searchModalChange
()"
data-hs-overlay=
"#edit-group-competencies-table-modal-select"
>
<i
class=
"ri-add-line"
></i>
<i
class=
"ri-add-line"
></i>
Add
Add
</button>
</button>
...
@@ -260,7 +260,7 @@
...
@@ -260,7 +260,7 @@
<thead>
<thead>
<tr>
<tr>
<ng-container
<ng-container
*
ngFor=
"let item of ['รหัส','ชื่อ
ประเภท
','ระดับความคาดหวัง','การจัดการ']; let f = first; let l = last; let i = index"
>
*
ngFor=
"let item of ['รหัส','ชื่อ
สมรรถนะ
','ระดับความคาดหวัง','การจัดการ']; let f = first; let l = last; let i = index"
>
<th
scope=
"col"
class=
"relative px-10px py-10px bg-soft-secondary text-primary"
<th
scope=
"col"
class=
"relative px-10px py-10px bg-soft-secondary text-primary"
[
class
.!
text-center
]="
f
||
l
"
>
[
class
.!
text-center
]="
f
||
l
"
>
<span
class=
"text-sm"
>
{{ item }}
</span>
<span
class=
"text-sm"
>
{{ item }}
</span>
...
...
src/app/components/performance-evaluation/supervisor-evaluation/round-one/round-one.component.ts
View file @
8fb28e71
import
{
Component
,
EventEmitter
,
Input
,
Output
}
from
'@angular/core'
;
import
{
C
hangeDetectorRef
,
C
omponent
,
EventEmitter
,
Input
,
Output
}
from
'@angular/core'
;
import
{
ToastrService
}
from
'ngx-toastr'
;
import
{
ToastrService
}
from
'ngx-toastr'
;
import
{
AppraisalService
}
from
'src/app/shared/services/appraisal.service'
;
import
{
AppraisalService
}
from
'src/app/shared/services/appraisal.service'
;
...
@@ -7,15 +7,27 @@ import { AppraisalService } from 'src/app/shared/services/appraisal.service';
...
@@ -7,15 +7,27 @@ import { AppraisalService } from 'src/app/shared/services/appraisal.service';
templateUrl
:
'./round-one.component.html'
,
templateUrl
:
'./round-one.component.html'
,
styleUrls
:
[
'./round-one.component.scss'
]
styleUrls
:
[
'./round-one.component.scss'
]
})
})
export
class
RoundOneComponent
{
@
Input
()
pathTitle
=
[
'การประเมินสมรรถนะ'
,
'ทะเบียนเครื่องมือ'
,
'เครื่องมือประเมิน'
];
export
class
RoundOneComponent
{
@
Input
()
pathTitle
=
[
'การประเมินสมรรถนะ'
,
'ทะเบียนเครื่องมือ'
,
'เครื่องมือประเมิน'
];
@
Output
()
sendPathTitle
:
EventEmitter
<
string
[]
>
=
new
EventEmitter
<
string
[]
>
();
@
Output
()
sendPathTitle
:
EventEmitter
<
string
[]
>
=
new
EventEmitter
<
string
[]
>
();
@
Output
()
sendPageEvalution
:
EventEmitter
<
string
>
=
new
EventEmitter
<
string
>
();
@
Output
()
sendPageEvalution
:
EventEmitter
<
string
>
=
new
EventEmitter
<
string
>
();
@
Output
()
sendEmployeeId
:
EventEmitter
<
string
>
=
new
EventEmitter
<
string
>
();
@
Output
()
sendEmployeeId
:
EventEmitter
<
string
>
=
new
EventEmitter
<
string
>
();
constructor
(
private
appraisalService
:
AppraisalService
constructor
(
private
appraisalService
:
AppraisalService
,
)
{
private
cdr
:
ChangeDetectorRef
)
{
}
}
getBossList
(){
ngOnInit
():
void
{
this
.
getBossList
()
}
getBossList
()
{
this
.
appraisalService
.
getBossList
().
subscribe
({
next
:
response
=>
{
console
.
log
(
" 🐒 response:"
,
response
)
this
.
cdr
.
detectChanges
()
},
error
:
error
=>
{
this
.
cdr
.
detectChanges
()
}
})
}
}
returnPage
(
text
:
string
)
{
returnPage
(
text
:
string
)
{
this
.
sendEmployeeId
.
emit
()
this
.
sendEmployeeId
.
emit
()
...
...
src/app/shared/model/appraisal-subordinate .model.ts
0 → 100644
View file @
8fb28e71
import
{
EmployeeModel
,
MyEmployeeModel
}
from
"./employee.model"
import
{
MyStatusCodeModel
,
StatusCodeModel
}
from
"./status-code.model"
export
interface
AppraisalSubordinateModel
{
companyId
:
string
active
:
boolean
masfromStatusType
:
StatusCodeModel
apsapproveType
:
StatusCodeModel
apsassessy
:
EmployeeModel
gread
:
string
sumScore
:
number
}
export
class
MyAppraisalSubordinateModel
implements
AppraisalSubordinateModel
{
companyId
:
string
active
:
boolean
masfromStatusType
:
StatusCodeModel
apsapproveType
:
StatusCodeModel
apsassessy
:
EmployeeModel
gread
:
string
sumScore
:
number
constructor
(
data
:
Partial
<
AppraisalSubordinateModel
>
)
{
this
.
companyId
=
data
.
companyId
||
""
this
.
active
=
data
.
active
??
false
this
.
masfromStatusType
=
new
MyStatusCodeModel
(
data
.
masfromStatusType
)
this
.
apsapproveType
=
new
MyStatusCodeModel
(
data
.
apsapproveType
)
this
.
apsassessy
=
new
MyEmployeeModel
(
data
.
apsassessy
)
this
.
gread
=
data
.
gread
||
""
this
.
sumScore
=
data
.
sumScore
??
0
}
}
src/app/shared/services/appraisal.service.ts
View file @
8fb28e71
...
@@ -5,6 +5,7 @@ import { environment } from 'src/environments/environment';
...
@@ -5,6 +5,7 @@ import { environment } from 'src/environments/environment';
import
{
AlertModel
}
from
'../model/alert.model'
;
import
{
AlertModel
}
from
'../model/alert.model'
;
import
{
AppraisalFormModel
}
from
'../model/appraisal-form.model'
;
import
{
AppraisalFormModel
}
from
'../model/appraisal-form.model'
;
import
{
AppraisalCompentencyModel
,
AppraisalCompentencyModel2
}
from
'../model/appraisal-competency.model'
;
import
{
AppraisalCompentencyModel
,
AppraisalCompentencyModel2
}
from
'../model/appraisal-competency.model'
;
import
{
AppraisalSubordinateModel
}
from
'../model/appraisal-subordinate .model'
;
@
Injectable
({
@
Injectable
({
providedIn
:
'root'
providedIn
:
'root'
})
})
...
@@ -22,7 +23,7 @@ export class AppraisalService {
...
@@ -22,7 +23,7 @@ export class AppraisalService {
postCompetency
(
body
:
AppraisalCompentencyModel2
):
Observable
<
AlertModel
>
{
postCompetency
(
body
:
AppraisalCompentencyModel2
):
Observable
<
AlertModel
>
{
return
this
.
http
.
post
<
AlertModel
>
(
this
.
urlApi
+
"/competency"
,
body
)
return
this
.
http
.
post
<
AlertModel
>
(
this
.
urlApi
+
"/competency"
,
body
)
}
}
getBossList
():
Observable
<
Appraisal
CompentencyModel2
>
{
getBossList
():
Observable
<
Appraisal
SubordinateModel
[]
>
{
return
this
.
http
.
get
<
Appraisal
CompentencyModel2
>
(
this
.
urlApi
+
"/appraisal
/boss/emp"
)
return
this
.
http
.
get
<
Appraisal
SubordinateModel
[]
>
(
this
.
urlApi
+
"
/boss/emp"
)
}
}
}
}
\ No newline at end of file
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