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
0f4d97e1
Commit
0f4d97e1
authored
Feb 18, 2025
by
Nattana Chaiyamat
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'DEV' of
https://mygit.myhr.co.th/angular/myAppraisal
into DEV
parents
5172e66d
fe3d7fa2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
17 deletions
+29
-17
sub-job-competency.component.html
...ency/sub-job-competency/sub-job-competency.component.html
+6
-6
sub-job-competency.component.ts
...etency/sub-job-competency/sub-job-competency.component.ts
+14
-2
job-code.service.ts
src/app/shared/services/job-code.service.ts
+9
-9
No files found.
src/app/components/job-detail-components/job-competency/sub-job-competency/sub-job-competency.component.html
View file @
0f4d97e1
...
@@ -26,13 +26,13 @@
...
@@ -26,13 +26,13 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"px-1"
>
<
!-- <
div class="px-1">
<button href="javascript:void(0);" class="ti-btn ti-btn-soft-danger h-45px m-0 shadow-md"
<button href="javascript:void(0);" class="ti-btn ti-btn-soft-danger h-45px m-0 shadow-md"
data-hs-overlay="#sub-command-structure-alert-delete-modal">
data-hs-overlay="#sub-command-structure-alert-delete-modal">
<i class="ri-delete-bin-6-line"></i>
<i class="ri-delete-bin-6-line"></i>
Delete
Delete
</button>
</button>
</div>
</div>
-->
<div
class=
"px-1"
>
<div
class=
"px-1"
>
<button
href=
"javascript:void(0);"
class=
"ti-btn ti-btn-soft-warning h-45px m-0 shadow-md"
>
<button
href=
"javascript:void(0);"
class=
"ti-btn ti-btn-soft-warning h-45px m-0 shadow-md"
>
<i
class=
"ti ti-book fs-l"
></i>
<i
class=
"ti ti-book fs-l"
></i>
...
@@ -88,8 +88,8 @@
...
@@ -88,8 +88,8 @@
<td
class=
"flex justify-center"
>
<td
class=
"flex justify-center"
>
<i
class=
"ti ti-edit cursor-pointer i-gray fs-l px-1"
(
click
)="
modalStatus=
'edit'
;
edit
(
item
)"
<i
class=
"ti ti-edit cursor-pointer i-gray fs-l px-1"
(
click
)="
modalStatus=
'edit'
;
edit
(
item
)"
data-hs-overlay=
"#sub-job-competency-component-modal-edit"
></i>
data-hs-overlay=
"#sub-job-competency-component-modal-edit"
></i>
<i
class=
"ti ti-trash cursor-pointer i-gray fs-l px-1"
currentModal=
'delete'
<i
class=
"ti ti-trash cursor-pointer i-gray fs-l px-1"
(
click
)="
modalStatus=
'delete'
;
edit
(
item
)"
data-hs-overlay=
"#
section-registration-alert-delete
-modal"
></i>
data-hs-overlay=
"#
company-registration-page-alert
-modal"
></i>
</td>
</td>
</tr>
</tr>
</tbody>
</tbody>
...
@@ -162,7 +162,7 @@
...
@@ -162,7 +162,7 @@
<div
class=
"ti-modal-center"
>
<div
class=
"ti-modal-center"
>
<div
class=
"flex justify-end"
style=
"padding-right: 1rem;"
>
<div
class=
"flex justify-end"
style=
"padding-right: 1rem;"
>
<div
class=
"px-1"
>
<div
class=
"px-1"
>
<button
type=
"button"
class=
"ti-btn ti-btn-soft-indigo h-45px m-0 shadow-md"
>
<button
type=
"button"
class=
"ti-btn ti-btn-soft-indigo h-45px m-0 shadow-md"
(
click
)="
clearValue
()"
>
<svg
class=
"svg-indigo"
width=
"16"
height=
"16"
viewBox=
"0 0 64.00 64.00"
<svg
class=
"svg-indigo"
width=
"16"
height=
"16"
viewBox=
"0 0 64.00 64.00"
xmlns=
"http://www.w3.org/2000/svg"
fill=
"none"
stroke=
"#595BEA"
stroke-width=
"3.84"
xmlns=
"http://www.w3.org/2000/svg"
fill=
"none"
stroke=
"#595BEA"
stroke-width=
"3.84"
transform=
"rotate(45)matrix(-1, 0, 0, 1, 0, 0)"
>
transform=
"rotate(45)matrix(-1, 0, 0, 1, 0, 0)"
>
...
@@ -256,7 +256,7 @@
...
@@ -256,7 +256,7 @@
ย้อนกลับ
ย้อนกลับ
</button>
</button>
<a
class=
"ti-btn ti-btn-danger"
href=
"javascript:void(0);"
<a
class=
"ti-btn ti-btn-danger"
href=
"javascript:void(0);"
data-hs-overlay=
"#company-registration-page-alert-modal"
(
click
)="
delete
Company
()"
>
data-hs-overlay=
"#company-registration-page-alert-modal"
(
click
)="
delete
Job
()"
>
ลบข้อมูล
ลบข้อมูล
</a>
</a>
</ng-container>
</ng-container>
...
...
src/app/components/job-detail-components/job-competency/sub-job-competency/sub-job-competency.component.ts
View file @
0f4d97e1
...
@@ -57,6 +57,9 @@ export class SubJobCompetencyComponent {
...
@@ -57,6 +57,9 @@ export class SubJobCompetencyComponent {
this
.
selectJob
=
new
MyJobCodeModel
({})
this
.
selectJob
=
new
MyJobCodeModel
({})
this
.
selectJob
=
new
MyJobCodeModel
(
item
)
this
.
selectJob
=
new
MyJobCodeModel
(
item
)
}
}
clearValue
(){
this
.
selectJob
.
competencyWorkText
=
''
}
save
(){
save
(){
this
.
jobcodeService
.
post
(
this
.
selectJob
).
subscribe
((
response
:
any
)
=>
{
this
.
jobcodeService
.
post
(
this
.
selectJob
).
subscribe
((
response
:
any
)
=>
{
if
(
response
.
success
)
{
if
(
response
.
success
)
{
...
@@ -69,8 +72,17 @@ export class SubJobCompetencyComponent {
...
@@ -69,8 +72,17 @@ export class SubJobCompetencyComponent {
this
.
cdr
.
detectChanges
()
this
.
cdr
.
detectChanges
()
})
})
}
}
deleteCompany
(){
deleteJob
(){
this
.
jobcodeService
.
delete
(
this
.
selectJob
).
subscribe
((
response
:
any
)
=>
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
this
.
selectJob
=
new
MyJobCodeModel
({})
this
.
getListJob
();
}
else
{
this
.
showAlert
(
response
.
message
,
'error'
)
}
this
.
cdr
.
detectChanges
()
})
}
}
jobcodeFilter
()
{
jobcodeFilter
()
{
return
this
.
jobCodeList
.
filter
(
x
=>
return
this
.
jobCodeList
.
filter
(
x
=>
...
...
src/app/shared/services/job-code.service.ts
View file @
0f4d97e1
...
@@ -22,13 +22,13 @@ export class JobCodeService {
...
@@ -22,13 +22,13 @@ export class JobCodeService {
post
(
body
:
JobCodeModel
):
Observable
<
AlertModel
>
{
post
(
body
:
JobCodeModel
):
Observable
<
AlertModel
>
{
return
this
.
http
.
post
<
AlertModel
>
(
this
.
urlApi
,
body
)
return
this
.
http
.
post
<
AlertModel
>
(
this
.
urlApi
,
body
)
}
}
//
delete(body: JobCodeModel | JobCodeModel[]): Observable<AlertModel> {
delete
(
body
:
JobCodeModel
|
JobCodeModel
[]):
Observable
<
AlertModel
>
{
//
const options = {
const
options
=
{
//
headers: new HttpHeaders({
headers
:
new
HttpHeaders
({
//
"Content-Type": "application/json",
"Content-Type"
:
"application/json"
,
//
}),
}),
//
body: body
body
:
body
//
};
};
//
return this.http.delete<AlertModel>(this.urlApi, options)
return
this
.
http
.
delete
<
AlertModel
>
(
this
.
urlApi
,
options
)
//
}
}
}
}
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