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
19523540
Commit
19523540
authored
Feb 19, 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
497e51f6
94a59c94
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
389 additions
and
355 deletions
+389
-355
sub-job-competency.component.html
...ency/sub-job-competency/sub-job-competency.component.html
+3
-3
sub-job-position-indicators.component.html
...ion-indicators/sub-job-position-indicators.component.html
+244
-290
sub-job-position-indicators.component.ts
...ition-indicators/sub-job-position-indicators.component.ts
+139
-62
job-code.model.ts
src/app/shared/model/job-code.model.ts
+3
-0
No files found.
src/app/components/job-detail-components/job-competency/sub-job-competency/sub-job-competency.component.html
View file @
19523540
...
@@ -188,11 +188,11 @@
...
@@ -188,11 +188,11 @@
</div>
</div>
<div
class=
"ti-modal-body"
style=
"padding-top: 0px;"
>
<div
class=
"ti-modal-body"
style=
"padding-top: 0px;"
>
<label
for=
"input-label"
class=
"ti-form-label mt-1rem"
>
รหัสงาน
</label>
<label
for=
"input-label"
class=
"ti-form-label mt-1rem"
>
รหัสงาน
</label>
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input
w-1/2
bg-input-readonly"
readonly
[(
ngModel
)]="
selectJob
.
jobcodeId
"
>
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input bg-input-readonly"
readonly
[(
ngModel
)]="
selectJob
.
jobcodeId
"
>
<label
for=
"detail_th"
class=
"ti-form-label mt-1rem"
>
ชื่อลักษณะงาน (ไทย)
</label>
<label
for=
"detail_th"
class=
"ti-form-label mt-1rem"
>
ชื่อลักษณะงาน (ไทย)
</label>
<input
type=
"text"
id=
"detail_th"
class=
"ti-form-input
w-2/3
bg-input-readonly"
readonly
[(
ngModel
)]="
selectJob
.
tdesc
"
>
<input
type=
"text"
id=
"detail_th"
class=
"ti-form-input bg-input-readonly"
readonly
[(
ngModel
)]="
selectJob
.
tdesc
"
>
<label
for=
"detail_eng"
class=
"ti-form-label mt-1rem"
>
ชื่อลักษณะงาน (อังกฤษ)
</label>
<label
for=
"detail_eng"
class=
"ti-form-label mt-1rem"
>
ชื่อลักษณะงาน (อังกฤษ)
</label>
<input
type=
"text"
id=
"detail_eng"
class=
"ti-form-input
w-2/3
bg-input-readonly"
readonly
[(
ngModel
)]="
selectJob
.
edesc
"
>
<input
type=
"text"
id=
"detail_eng"
class=
"ti-form-input bg-input-readonly"
readonly
[(
ngModel
)]="
selectJob
.
edesc
"
>
<label
for=
"detail_eng"
class=
"ti-form-label mt-2rem"
>
ความรู้ ทักษะ ความสามารถในตำเเหน่งงาน ( Job Competency)
</label>
<label
for=
"detail_eng"
class=
"ti-form-label mt-2rem"
>
ความรู้ ทักษะ ความสามารถในตำเเหน่งงาน ( Job Competency)
</label>
<textarea
type=
"text"
id=
"detail_eng"
class=
"ti-form-input font-bold"
rows=
"5"
cols=
"50"
[(
ngModel
)]="
selectJob
.
competencyWorkText
"
></textarea>
<textarea
type=
"text"
id=
"detail_eng"
class=
"ti-form-input font-bold"
rows=
"5"
cols=
"50"
[(
ngModel
)]="
selectJob
.
competencyWorkText
"
></textarea>
<div
class=
"flex justify-end mt-2rem mb-1rem"
>
<div
class=
"flex justify-end mt-2rem mb-1rem"
>
...
...
src/app/components/job-detail-components/job-position-indicators/sub-job-position-indicators/sub-job-position-indicators.component.html
View file @
19523540
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
<div
class=
"flex pr-2"
>
<div
class=
"flex pr-2"
>
<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=
"#
company-registration-page-upload-modal
"
>
data-hs-overlay=
"#
supjob-upload-modal"
(
click
)="
fileInput
.
value =
''
;
selectedFile=
null;selectedFileName
=
'กรุณาเลือกไฟล์'
"
>
<i
class=
"ri-add-line"
></i>
<i
class=
"ri-add-line"
></i>
นำเข้าข้อมูล
นำเข้าข้อมูล
</button>
</button>
<a
class=
"mx-2 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"
<a
class=
"mx-2 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"
href=
"javascript:void(0);"
>
href=
"javascript:void(0);"
(
click
)="
downloadFile
()"
>
ดาวน์โหลดตัวอย่างไฟล์
ดาวน์โหลดตัวอย่างไฟล์
</a>
</a>
</div>
</div>
...
@@ -18,8 +18,7 @@
...
@@ -18,8 +18,7 @@
<div
class=
"relative shadow-md"
>
<div
class=
"relative shadow-md"
>
<input
type=
"text"
id=
"hs-leading-icon"
name=
"hs-leading-icon"
<input
type=
"text"
id=
"hs-leading-icon"
name=
"hs-leading-icon"
class=
"ti-form-input ltr:pl-11 rtl:pr-11 focus:z-10 "
class=
"ti-form-input ltr:pl-11 rtl:pr-11 focus:z-10 "
placeholder=
"Search by No. or Name"
[(
ngModel
)]="
search
"
placeholder=
"Search by No. or Name"
[(
ngModel
)]="
search
"
(
ngModelChange
)="
searchChange
()"
>
(
ngModelChange
)="
searchChange
()"
>
<div
<div
class=
"absolute inset-y-0 ltr:left-0 rtl:right-0 flex items-center pointer-events-none z-20 ltr:pl-4 rtl:pr-4"
>
class=
"absolute inset-y-0 ltr:left-0 rtl:right-0 flex items-center pointer-events-none z-20 ltr:pl-4 rtl:pr-4"
>
...
@@ -27,13 +26,13 @@
...
@@ -27,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-
job-position-indicators
-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>
...
@@ -47,298 +46,253 @@
...
@@ -47,298 +46,253 @@
<div
class=
"page px-rem"
>
<div
class=
"page px-rem"
>
<div
class=
"overflow-auto shadow-md rounded-t-md"
>
<div
class=
"overflow-auto shadow-md rounded-t-md"
>
<table
class=
"ti-custom-table ti-custom-table-head ti-custom-table-hover table-bordered"
>
<table
class=
"ti-custom-table ti-custom-table-head ti-custom-table-hover table-bordered"
>
<thead>
<thead>
<tr>
<tr>
<ng-container
<ng-container
*
ngFor=
"let item of ['ลำดับ','รหัสงาน','ชื่อลักษณะงาน (ไทย) *','ชื่อลักษณะงาน (อังกฤษ)','การจัดการ']; let f = first; let l = last"
>
*
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 !text-center"
>
<th
scope=
"col"
class=
"relative px-10px py-10px bg-soft-secondary text-primary !text-center"
>
<span
class=
"font-size-12px font-weight-700"
>
{{ item }}
</span>
<span
class=
"font-size-12px font-weight-700"
>
{{ item }}
</span>
<div
class=
"absolute top-1/2 transform -translate-y-1/2 right-0"
*
ngIf=
"!l"
>
<div
class=
"absolute top-1/2 transform -translate-y-1/2 right-0"
*
ngIf=
"!l"
>
<i
class=
"ti ti-dots-vertical fs-l"
></i>
<i
class=
"ti ti-dots-vertical fs-l"
></i>
</div>
</div>
</th>
</th>
</ng-container>
</ng-container>
</tr>
</tr>
</thead>
</thead>
<tbody>
<tbody
*
ngIf=
"loading"
>
<tr
*
ngFor=
"let item of[
<tr>
['01','001', 'Department Manager 1','Department Manager 1'],
<td
class=
"text-center"
colspan=
"100%"
>
['02','002', 'Department Manager 2','Department Manager 2'],
<div
*
ngFor=
"let item of [1,2,3]"
class=
"ti-spinner w-8 h-8 text-secondary mx-1"
role=
"status"
['03','003', 'Department 1-HRD','Department 1-HRD'],
aria-label=
"loading"
>
['04','004', 'Department Manager 3','Department Manager 3'],
<span
class=
"sr-only"
>
Loading...
</span>
['05','005', 'Department Manager 4','Department Manager 4']];let i = index"
>
</div>
<td
class=
"text-center"
>
</td>
{{item[0]}}
</tr>
</td>
</tbody>
<td
class=
"text-center"
>
{{item[1]}}
</td>
<tbody
*
ngIf=
"!loading&&!jobcodeFilter().length"
>
<td>
{{item[2]}}
</td>
<tr>
<td>
{{item[3]}}
</td>
<td
class=
"text-center"
colspan=
"100%"
>
<td
class=
"flex justify-center"
>
ไม่พบข้อมูล
<i
class=
"ti ti-edit cursor-pointer i-gray fs-l px-1"
</td>
data-hs-overlay=
"#sub-job-position-indicators-modal-edit"
></i>
</tr>
<i
class=
"ti ti-trash cursor-pointer i-gray fs-l px-1"
</tbody>
data-hs-overlay=
"#sub-job-position-indicators-alert-delete-modal"
></i>
<tbody
*
ngIf=
"!loading&&jobcodeFilter().length"
>
</td>
<tr
</tr>
*
ngFor=
"let item of jobcodeFilter() |slice:((currentPage-1) * pageSize) : (((currentPage-1) * pageSize) + pageSize);let i = index"
>
</tbody>
<td
class=
"text-center"
>
</table>
{{((currentPage-1) * pageSize)+(i+1)}}
</div>
</td>
<nav
class=
"pagination-style-3 overflow-auto my-5"
*
ngIf=
"page.length"
>
<td
class=
"text-center"
>
{{item.jobcodeId}}
</td>
<ul
class=
"ti-pagination"
>
<td>
{{item.tdesc}}
</td>
<li>
<td>
{{item.edesc}}
</td>
<a
aria-label=
"anchor"
class=
"page-link"
href=
"javascript:void(0);"
<td
class=
"flex justify-center"
>
(
click
)="
currentPage =
(currentPage-1
||
1
)"
>
<i
class=
"ti ti-edit cursor-pointer i-gray fs-l px-1"
(
click
)="
modalStatus=
'edit'
;
edit
(
item
)"
<i
class=
"ri-arrow-left-s-line align-middle rtl:rotate-180"
></i>
data-hs-overlay=
"#sub-job-competency-component-modal-edit"
></i>
</a>
<i
class=
"ti ti-trash cursor-pointer i-gray fs-l px-1"
(
click
)="
modalStatus=
'delete'
;
edit
(
item
)"
</li>
data-hs-overlay=
"#company-registration-page-alert-modal"
></i>
<li
*
ngFor=
"let item of page;let f = first;let l = last"
>
</td>
<ng-container
*
ngIf=
"item==3&¤tPage!=1&¤tPage!=2&¤tPage!=3"
>
</tr>
<a
aria-label=
"anchor"
class=
"page-link"
href=
"javascript:void(0);"
><i
</tbody>
class=
"ri-more-line"
></i>
</table>
</a>
</div>
</ng-container>
<nav
class=
"pagination-style-3 overflow-auto my-5"
*
ngIf=
"page.length"
>
<ng-container
*
ngIf=
"(f||l)||(item==currentPage-1||item==currentPage||item==currentPage+1)"
>
<ul
class=
"ti-pagination"
>
<a
class=
"page-link"
href=
"javascript:void(0);"
[
class
.
active
]="
item=
=currentPage"
<li>
(
click
)="
currentPage=
item"
>
{{item}}
<a
aria-label=
"anchor"
class=
"page-link"
href=
"javascript:void(0);"
</a>
(
click
)="
currentPage =
(currentPage-1
||
1
)"
>
</ng-container>
<i
class=
"ri-arrow-left-s-line align-middle rtl:rotate-180"
></i>
<ng-container
</a>
*
ngIf=
"item==page.length-2&¤tPage!=page.length&¤tPage!=page.length-1&¤tPage!=page.length-2"
>
</li>
<a
aria-label=
"anchor"
class=
"page-link"
href=
"javascript:void(0);"
><i
<li
*
ngFor=
"let item of page;let f = first;let l = last"
>
class=
"ri-more-line"
></i>
<ng-container
*
ngIf=
"item==3&¤tPage!=1&¤tPage!=2&¤tPage!=3"
>
</a>
<a
aria-label=
"anchor"
class=
"page-link"
href=
"javascript:void(0);"
><i
class=
"ri-more-line"
></i>
</ng-container>
</a>
</li>
</ng-container>
<li>
<ng-container
*
ngIf=
"(f||l)||(item==currentPage-1||item==currentPage||item==currentPage+1)"
>
<a
aria-label=
"anchor"
class=
"page-link"
href=
"javascript:void(0);"
<a
class=
"page-link"
href=
"javascript:void(0);"
[
class
.
active
]="
item=
=currentPage"
(
click
)="
currentPage =
(currentPage
>
page.length-1 ? currentPage: currentPage+1 )">
(
click
)="
currentPage=
item"
>
{{item}}
<i
class=
"ri-arrow-right-s-line align-middle rtl:rotate-180"
></i>
</a>
</a>
</ng-container>
</li>
<ng-container
</ul>
*
ngIf=
"item==page.length-2&¤tPage!=page.length&¤tPage!=page.length-1&¤tPage!=page.length-2"
>
</nav>
<a
aria-label=
"anchor"
class=
"page-link"
href=
"javascript:void(0);"
><i
class=
"ri-more-line"
></i>
</div>
</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>
<li>
<select
class=
"ti-form-select"
[(
ngModel
)]="
pageSize
"
(
ngModelChange
)="
searchChange
()"
>
<option
[
value
]="
10
"
>
10
</option>
<option
[
value
]="
20
"
>
20
</option>
<option
[
value
]="
50
"
>
50
</option>
<option
[
value
]="
100
"
>
100
</option>
</select>
</li>
</ul>
<ul
class=
"nav-tabs mt-3"
>
<span>
Show {{((currentPage-1) * pageSize)+1}} to {{(jobcodeFilter().length
<
pageSize
)
?
jobcodeFilter
().
length:
(
currentPage=
=page.length
?
((
currentPage
*
pageSize
)
-
((
currentPage
*
pageSize
)
-
jobcodeFilter
().
length
)
)
:
(
currentPage
*
pageSize
)
)
}}
of
{{
jobcodeFilter
().
length
}}
items
</
span
>
</ul>
</nav>
</div>
<div
id=
"sub-job-position-indicators-modal-add"
class=
"hs-overlay hidden ti-modal"
>
<div
class=
"hs-overlay-open:mt-7 ti-modal-box mt-0 ease-out h-[calc(100%-3.5rem)]"
>
<div
id=
"sub-job-competency-component-modal-edit"
class=
"hs-overlay hidden ti-modal"
>
<div
class=
"max-h-full overflow-hidden ti-modal-content"
>
<div
class=
"hs-overlay-open:mt-7 ti-modal-box mt-0 ease-out h-[calc(100%-3.5rem)]"
>
<div
class=
"ti-modal-header"
>
<div
class=
"max-h-full overflow-hidden ti-modal-content"
>
<h3
class=
"text-xxl font-bold text-primary"
>
<div
class=
"ti-modal-header"
>
เพิ่มข้อมูลรายละเอียดของงาน
<h3
class=
"text-xxl font-bold text-primary"
>
</h3>
เเก้ไขข้อมูลความสามารถในตำเเหน่งงาน
<div
class=
"flex justify-end"
>
</h3>
<button
type=
"button"
class=
"hs-dropdown-toggle ti-modal-clode-btn text-danger"
<div
class=
"flex justify-end"
>
data-hs-overlay=
"#sub-job-position-indicators-modal-add"
>
<button
type=
"button"
class=
"hs-dropdown-toggle ti-modal-clode-btn text-danger"
<span
class=
"sr-only"
>
Close
</span>
data-hs-overlay=
"#sub-job-competency-component-modal-edit"
>
<i
class=
"ti ti-circle-x fs-xxl"
></i>
<span
class=
"sr-only"
>
Close
</span>
</button>
<i
class=
"ti ti-circle-x fs-xxl"
></i>
</div>
</button>
</div>
</div>
<div
class=
"ti-modal-center"
>
</div>
<div
class=
"flex justify-end"
style=
"padding-right: 1rem;"
>
<div
class=
"ti-modal-center"
>
<div
class=
"px-1"
>
<div
class=
"flex justify-end"
style=
"padding-right: 1rem;"
>
<button
type=
"button"
class=
"ti-btn ti-btn-soft-indigo h-45px m-0 shadow-md"
>
<div
class=
"px-1"
>
<svg
class=
"svg-indigo"
width=
"16"
height=
"16"
viewBox=
"0 0 64.00 64.00"
<button
type=
"button"
class=
"ti-btn ti-btn-soft-indigo h-45px m-0 shadow-md"
(
click
)="
clearValue
()"
>
xmlns=
"http://www.w3.org/2000/svg"
fill=
"none"
stroke=
"#595BEA"
<svg
class=
"svg-indigo"
width=
"16"
height=
"16"
viewBox=
"0 0 64.00 64.00"
stroke-width=
"3.84"
transform=
"rotate(45)matrix(-1, 0, 0, 1, 0, 0)"
>
xmlns=
"http://www.w3.org/2000/svg"
fill=
"none"
stroke=
"#595BEA"
stroke-width=
"3.84"
<g
id=
"SVGRepo_bgCarrier"
stroke-width=
"0"
></g>
transform=
"rotate(45)matrix(-1, 0, 0, 1, 0, 0)"
>
<g
id=
"SVGRepo_tracerCarrier"
stroke-linecap=
"round"
stroke-linejoin=
"round"
>
<g
id=
"SVGRepo_bgCarrier"
stroke-width=
"0"
></g>
</g>
<g
id=
"SVGRepo_tracerCarrier"
stroke-linecap=
"round"
stroke-linejoin=
"round"
></g>
<g
id=
"SVGRepo_iconCarrier"
>
<g
id=
"SVGRepo_iconCarrier"
>
<path
d=
"M15 49A24 24 0 0 1 32 8"
></path>
<path
d=
"M15 49A24 24 0 0 1 32 8"
></path>
<path
d=
"M49 15a24 24 0 0 1-17 41"
></path>
<path
d=
"M49 15a24 24 0 0 1-17 41"
></path>
<polyline
points=
"15.03 40 15.03 48.97 8 48.97"
></polyline>
<polyline
points=
"15.03 40 15.03 48.97 8 48.97"
></polyline>
<polyline
points=
"48.97 24 48.97 15.03 56 15.03"
></polyline>
<polyline
points=
"48.97 24 48.97 15.03 56 15.03"
></polyline>
</g>
</g>
</svg>
</svg>
Clear
Clear
</button>
</button>
</div>
</div>
<div
class=
"px-1"
>
<div
class=
"px-1"
>
<button
href=
"javascript:void(0);"
<button
href=
"javascript:void(0);"
class=
"ti-btn ti-btn-soft-warning h-45px m-0 shadow-md"
>
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>
Help
Help
</button>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"ti-modal-body"
style=
"padding-top: 0px;"
>
<div
class=
"ti-modal-body mt-1"
>
<label
for=
"input-label"
class=
"ti-form-label mt-1rem"
>
รหัสงาน
</label>
<label
for=
"input-label"
class=
"ti-form-label"
>
รหัสงาน
</label>
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input bg-input-readonly"
readonly
[(
ngModel
)]="
selectJob
.
jobcodeId
"
>
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input w-1/2 bg-input-readonly"
readonly
value=
"001"
>
<label
for=
"detail_th"
class=
"ti-form-label mt-1rem"
>
ชื่อลักษณะงาน (ไทย)
</label>
<label
for=
"input-label"
class=
"ti-form-label mt-2rem"
>
ชื่อลักษณะงาน (ไทย)
</label>
<input
type=
"text"
id=
"detail_th"
class=
"ti-form-input bg-input-readonly"
readonly
[(
ngModel
)]="
selectJob
.
tdesc
"
>
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input h-10 bg-input-readonly"
readonly
value=
"Department Manager 1"
>
<label
for=
"detail_eng"
class=
"ti-form-label mt-1rem"
>
ชื่อลักษณะงาน (อังกฤษ)
</label>
<label
for=
"input-label"
class=
"ti-form-label mt-2rem"
>
ชื่อลักษณะงาน (อังกฤษ)
</label>
<input
type=
"text"
id=
"detail_eng"
class=
"ti-form-input bg-input-readonly"
readonly
[(
ngModel
)]="
selectJob
.
edesc
"
>
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input h-10 bg-input-readonly"
readonly
value=
"Department Manager 1"
>
<label
for=
"detail_eng"
class=
"ti-form-label mt-2rem"
>
ตัวชี้วัดของตำแหน่งงาน (Key Performance Indicators: KPIs)
</label>
<label
for=
"detail_eng"
class=
"ti-form-label mt-2rem"
>
ตัวชี้วัดของตำแหน่งงาน (Key Performance Indicators: KPIs)
</label>
<textarea
type=
"text"
id=
"detail_eng"
class=
"ti-form-input font-bold"
rows=
"5"
cols=
"50"
[(
ngModel
)]="
selectJob
.
kpiWorkText
"
></textarea>
<textarea
type=
"text"
id=
"detail_eng"
class=
"ti-form-input font-bold"
rows=
"5"
cols=
"50"
>
<div
class=
"flex justify-end mt-2rem mb-1rem"
>
1.
<button
type=
"button"
2.
class=
"hs-dropdown-toggle ti-btn ti-border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:ring-offset-white focus:ring-primary dark:bg-bgdark dark:hover:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-white dark:focus:ring-offset-white/10"
3.
data-hs-overlay=
"#sub-job-competency-component-modal-edit"
>
4.
ย้อนกลับ
5.
</button>
</textarea>
<a
class=
"ti-btn ti-btn-success"
href=
"javascript:void(0);"
<div
class=
"flex justify-end mt-3rem mb-1rem space-x-4"
>
data-hs-overlay=
"#company-registration-page-alert-modal"
>
<button
type=
"button"
บันทึกข้อมูล
class=
"hs-dropdown-toggle ti-btn ti-border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:ring-offset-white focus:ring-primary dark:bg-bgdark dark:hover:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-white dark:focus:ring-offset-white/10"
</a>
data-hs-overlay=
"#sub-job-position-indicators-alert-add-modal"
>
</div>
ย้อนกลับ
</div>
</button>
</div>
<a
class=
"ti-btn ti-btn-success"
href=
"javascript:void(0);"
data-hs-overlay=
"#sub-job-position-indicators-alert-add-modal"
>
</div>
บันทึกข้อมูล
</div>
</a>
</div>
<div
id=
"company-registration-page-alert-modal"
class=
"hs-overlay hidden ti-modal"
>
</div>
<div
class=
"hs-overlay-open:mt-7 ti-modal-box mt-0 ease-out h-[calc(100%-3.5rem)] flex items-center"
>
<div
class=
"max-h-full overflow-hidden ti-modal-content w-full"
>
<div
class=
"ti-modal-header"
>
<h3
class=
"text-xxl font-bold text-primary"
>
แจ้งเตือน
</h3>
<div
class=
"flex justify-end"
>
<button
type=
"button"
class=
"hs-dropdown-toggle ti-modal-clode-btn text-danger"
data-hs-overlay=
"#company-registration-page-alert-modal"
>
<span
class=
"sr-only"
>
Close
</span>
<i
class=
"ti ti-circle-x fs-xxl"
></i>
</button>
</div>
</div>
</div>
</div>
</div>
<div
class=
"ti-modal-body "
>
<p
class=
"mt-1 text-gray-800 dark:text-white/70"
>
<ng-container
*
ngIf=
"modalStatus=='add'||modalStatus=='edit'"
>
ยืนยันการบันทึกข้อมูลหรือไม่
</ng-container>
<ng-container
*
ngIf=
"modalStatus=='delete'||modalStatus=='deleteGroup'"
>
ยืนยันการลบข้อมูลหรือไม่
</ng-container>
</p>
<div
id=
"sub-job-position-indicators-modal-edit"
class=
"hs-overlay hidden ti-modal"
>
<div
class=
"flex justify-end mt-2rem mb-1rem"
>
<div
class=
"hs-overlay-open:mt-7 ti-modal-box mt-0 ease-out h-[calc(100%-3.5rem)]"
>
<ng-container
*
ngIf=
"modalStatus=='add'||modalStatus=='edit'"
>
<div
class=
"max-h-full overflow-hidden ti-modal-content"
>
<button
type=
"button"
<div
class=
"ti-modal-header"
>
class=
"hs-dropdown-toggle ti-btn ti-border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:ring-offset-white focus:ring-primary dark:bg-bgdark dark:hover:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-white dark:focus:ring-offset-white/10"
<h3
class=
"text-xxl font-bold text-primary"
>
data-hs-overlay=
"#company-registration-page-alert-modal"
>
แก้ไขข้อมูลรายละเอียดของงาน
ย้อนกลับ
</h3>
</button>
<div
class=
"flex justify-end"
>
<a
class=
"ti-btn ti-btn-success"
href=
"javascript:void(0);"
<button
type=
"button"
class=
"hs-dropdown-toggle ti-modal-clode-btn text-danger"
data-hs-overlay=
"#company-registration-page-alert-modal"
(
click
)="
save
()"
>
data-hs-overlay=
"#sub-job-position-indicators-modal-edit"
>
บันทึกข้อมูล
<span
class=
"sr-only"
>
Close
</span>
</a>
<i
class=
"ti ti-circle-x fs-xxl"
></i>
</ng-container>
</button>
<ng-container
*
ngIf=
"modalStatus=='delete'||modalStatus=='deleteGroup'"
>
</div>
<button
type=
"button"
</div>
class=
"hs-dropdown-toggle ti-btn ti-border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:ring-offset-white focus:ring-primary dark:bg-bgdark dark:hover:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-white dark:focus:ring-offset-white/10"
<div
class=
"ti-modal-center"
>
data-hs-overlay=
"#company-registration-page-alert-modal"
>
<div
class=
"flex justify-end"
style=
"padding-right: 1rem;"
>
ย้อนกลับ
<div
class=
"px-1"
>
</button>
<button
type=
"button"
class=
"ti-btn ti-btn-soft-indigo h-45px m-0 shadow-md"
>
<a
class=
"ti-btn ti-btn-danger"
href=
"javascript:void(0);"
<svg
class=
"svg-indigo"
width=
"16"
height=
"16"
viewBox=
"0 0 64.00 64.00"
data-hs-overlay=
"#company-registration-page-alert-modal"
(
click
)="
deleteJob
()"
>
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)"
>
</a>
<g
id=
"SVGRepo_bgCarrier"
stroke-width=
"0"
></g>
</ng-container>
<g
id=
"SVGRepo_tracerCarrier"
stroke-linecap=
"round"
stroke-linejoin=
"round"
>
</g>
<g
id=
"SVGRepo_iconCarrier"
>
<path
d=
"M15 49A24 24 0 0 1 32 8"
></path>
<path
d=
"M49 15a24 24 0 0 1-17 41"
></path>
<polyline
points=
"15.03 40 15.03 48.97 8 48.97"
></polyline>
<polyline
points=
"48.97 24 48.97 15.03 56 15.03"
></polyline>
</g>
</svg>
Clear
</button>
</div>
<div
class=
"px-1"
>
<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>
Help
</button>
</div>
</div>
</div>
<div
class=
"ti-modal-body mt-1"
>
<label
for=
"input-label"
class=
"ti-form-label"
>
รหัสงาน
</label>
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input w-1/2 bg-input-readonly"
readonly
value=
"001"
>
<label
for=
"input-label"
class=
"ti-form-label mt-2rem"
>
ชื่อลักษณะงาน (ไทย)
</label>
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input h-10 bg-input-readonly"
readonly
value=
"Department Manager 1"
>
<label
for=
"input-label"
class=
"ti-form-label mt-2rem"
>
ชื่อลักษณะงาน (อังกฤษ)
</label>
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input h-10 bg-input-readonly"
readonly
value=
"Department Manager 1"
>
<label
for=
"detail_eng"
class=
"ti-form-label mt-2rem"
>
ตัวชี้วัดของตำแหน่งงาน (Key Performance Indicators: KPIs)
</label>
<textarea
type=
"text"
id=
"detail_eng"
class=
"ti-form-input font-bold"
rows=
"5"
cols=
"50"
>
1.
2.
3.
4.
5.
</textarea>
<div
class=
"flex justify-end mt-3rem mb-1rem space-x-4"
>
<button
type=
"button"
class=
"hs-dropdown-toggle ti-btn ti-border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:ring-offset-white focus:ring-primary dark:bg-bgdark dark:hover:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-white dark:focus:ring-offset-white/10"
data-hs-overlay=
"#sub-job-position-indicators-modal-edit"
>
ย้อนกลับ
</button>
<a
class=
"ti-btn ti-btn-success"
href=
"javascript:void(0);"
data-hs-overlay=
"#sub-job-position-indicators-alert-add-modal"
>
บันทึกข้อมูล
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
id=
"sub-job-position-indicators-alert-add-modal"
class=
"hs-overlay hidden ti-modal"
>
<div
id=
"supjob-upload-modal"
class=
"hs-overlay hidden ti-modal"
>
<div
class=
"hs-overlay-open:mt-7 ti-modal-box mt-0 ease-out h-[calc(100%-3.5rem)] flex items-center"
>
<div
class=
"hs-overlay-open:mt-7 ti-modal-box mt-0 ease-out rounded-md"
>
<div
class=
"max-h-full overflow-hidden ti-modal-content w-full"
>
<div
class=
"ti-modal-header bg-primary !rounded-none !rounded-t-sm"
>
<div
class=
"ti-modal-header"
>
<h5
class=
"text-xxl font-bold text-white"
>
<h3
class=
"text-xxl font-bold text-primary"
>
นำเข้า Job Competency
แจ้งเตือน
</h5>
</h3>
<div
class=
"flex justify-end"
>
<button
type=
"button"
class=
"hs-dropdown-toggle ti-modal-clode-btn text-danger"
data-hs-overlay=
"#sub-job-position-indicators-alert-add-modal"
>
<span
class=
"sr-only"
>
Close
</span>
<i
class=
"ti ti-circle-x fs-xxl"
></i>
</button>
</div>
</div>
<div
class=
"ti-modal-body "
>
<p
class=
"mt-1 text-gray-800 dark:text-white/70"
>
ยืนยันการบันทึกข้อมูลหรือไม่
</p>
<div
class=
"flex justify-end mt-2rem mb-1rem"
>
<button
type=
"button"
class=
"hs-dropdown-toggle ti-btn ti-border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:ring-offset-white focus:ring-primary dark:bg-bgdark dark:hover:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-white dark:focus:ring-offset-white/10"
data-hs-overlay=
"#sub-job-position-indicators-modal-edit"
>
ย้อนกลับ
</button>
<a
class=
"ti-btn ti-btn-success"
href=
"javascript:void(0);"
data-hs-overlay=
"#sub-job-position-indicators-alert-add-modal"
(
click
)="
addBu1
();
showSuccessAdd
()"
>
บันทึกข้อมูล
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div
id=
"sub-job-position-indicators-alert-delete-modal"
class=
"hs-overlay hidden ti-modal"
>
<div
class=
"ti-modal-body max-h-full overflow-hidden ti-modal-content !rounded-t-none !rounded-b-sm"
>
<div
class=
"hs-overlay-open:mt-7 ti-modal-box mt-0 ease-out h-[calc(100%-3.5rem)] flex items-center"
>
<h1
class=
"mt-2"
style=
"text-align: center;"
>
ไฟล์
</h1>
<div
class=
"max-h-full overflow-hidden ti-modal-content w-full"
>
<div
class=
"mt-2 p-2"
>
<div
class=
"ti-modal-header"
>
<div
class=
"flex rounded-md"
>
<h3
class=
"text-xxl font-bold text-primary"
>
<input
#
fileInput
id=
"fileInput"
type=
"file"
(
change
)="
onFileSelected
($
event
)"
hidden
>
แจ้งเตือน
<input
type=
"text"
[
value
]="
selectedFileName
"
readonly
(
click
)="
fileInput
.
click
()"
</h3>
class=
"ti-form-input rounded-none ltr:rounded-l-md rtl:rounded-r-md focus:z-10 cursor-pointer"
>
<div
class=
"flex justify-end"
>
<button
type=
"button"
(
click
)="
fileInput
.
click
()"
<button
type=
"button"
class=
"hs-dropdown-toggle ti-modal-clode-btn text-danger"
class=
"inline-flex flex-shrink-0 justify-center items-center h-[2.875rem] w-[2.875rem] ltr:rounded-r-md rtl:rounded-l-md border border-transparent font-semibold bg-secondary text-white hover:bg-secondary focus:z-10 focus:outline-none focus:ring-0 focus:ring-secondary transition-all text-sm"
>
data-hs-overlay=
"#sub-job-position-indicators-alert-delete-modal"
>
<i
class=
"ti ti-upload"
></i>
<span
class=
"sr-only"
>
Close
</span>
</button>
<i
class=
"ti ti-circle-x fs-xxl"
></i>
</div>
</button>
<div
class=
"flex justify-center mt-2rem mb-1rem space-x-4"
>
</div>
<button
type=
"submit"
class=
"ti-btn ti-btn-secondary"
</div>
data-hs-overlay=
"#section-registration-upload-modal"
(
click
)="
uploadFile
()"
<div
class=
"ti-modal-body "
>
[
class
.
ti-btn-disabled
]="!
selectedFile
"
[
disabled
]="!
selectedFile
"
>
<p
class=
"mt-1 text-gray-800 dark:text-white/70"
>
อัปโหลด
ยืนยันการลบข้อมูลหรือไม่!
</button>
</p>
<div
class=
"flex justify-end mt-2rem mb-1rem"
>
<button
type=
"button"
class=
"hs-dropdown-toggle ti-btn ti-border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:ring-offset-white focus:ring-primary dark:bg-bgdark dark:hover:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-white dark:focus:ring-offset-white/10"
data-hs-overlay=
"#sub-job-position-indicators-alert-delete-modal"
>
ย้อนกลับ
</button>
<a
class=
"ti-btn ti-btn-success"
href=
"javascript:void(0);"
data-hs-overlay=
"#sub-job-position-indicators-alert-delete-modal"
(
click
)="
addBu1
();
showSuccessDelete
()"
>
ลบข้อมูล
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
src/app/components/job-detail-components/job-position-indicators/sub-job-position-indicators/sub-job-position-indicators.component.ts
View file @
19523540
import
{
C
omponent
,
EventEmitter
,
Input
,
Output
}
from
'@angular/core'
;
import
{
C
hangeDetectorRef
,
Component
}
from
'@angular/core'
;
import
{
ToastrService
}
from
'ngx-toastr'
;
import
{
ToastrService
}
from
'ngx-toastr'
;
import
{
JobModel
,
MyJobModel
}
from
'src/app/shared/model/job.model'
;
import
{
JobCodeModel
,
MyJobCodeModel
}
from
'src/app/shared/model/job-code.model'
;
import
{
FileService
}
from
'src/app/shared/services/file.service'
;
import
{
JobCodeService
}
from
'src/app/shared/services/job-code.service'
;
@
Component
({
@
Component
({
selector
:
'app-sub-job-position-indicators'
,
selector
:
'app-sub-job-position-indicators'
,
...
@@ -9,65 +10,140 @@ import { JobModel, MyJobModel } from 'src/app/shared/model/job.model';
...
@@ -9,65 +10,140 @@ import { JobModel, MyJobModel } from 'src/app/shared/model/job.model';
styleUrls
:
[
'./sub-job-position-indicators.component.scss'
]
styleUrls
:
[
'./sub-job-position-indicators.component.scss'
]
})
})
export
class
SubJobPositionIndicatorsComponent
{
export
class
SubJobPositionIndicatorsComponent
{
currentPage
=
1
currentPage
=
1
page
=
Array
.
from
({
length
:
1
},
(
_
,
i
)
=>
i
+
1
);
page
=
Array
.
from
({
length
:
1
},
(
_
,
i
)
=>
i
+
1
);
jobList
:
JobModel
[]
=
[]
pageSize
=
10
job
:
JobModel
=
new
MyJobModel
({})
search
=
""
search
=
""
jobCodeList
:
JobCodeModel
[]
=
[]
constructor
(
loading
=
false
private
toastr
:
ToastrService
)
{
}
selectedFile
:
File
|
null
=
null
;
ngOnInit
():
void
{
selectedFileName
:
string
=
'กรุณาเลือกไฟล์'
;
}
selectJob
:
JobCodeModel
=
new
MyJobCodeModel
({})
searchChange
()
{
modalStatus
=
''
this
.
currentPage
=
1
constructor
(
this
.
page
=
Array
.
from
({
length
:
Math
.
ceil
(
this
.
jobListFilter
().
length
/
10
)
},
(
_
,
i
)
=>
i
+
1
);
private
toastr
:
ToastrService
,
}
private
fileService
:
FileService
,
jobListFilter
()
{
private
jobcodeService
:
JobCodeService
,
return
this
.
jobList
.
filter
(
x
=>
x
.
jobid
.
includes
(
this
.
search
)
||
private
cdr
:
ChangeDetectorRef
,
x
.
tdesc
.
includes
(
this
.
search
)
||
)
{
}
x
.
edesc
.
includes
(
this
.
search
))
ngOnInit
():
void
{
}
this
.
getListJob
();
selectJob
(
job
:
JobModel
)
{
}
// this.showSuccess()
getListJob
(){
this
.
job
=
new
MyJobModel
(
job
)
this
.
loading
=
false
}
this
.
jobcodeService
.
getList
().
subscribe
({
next
:
response
=>
{
showSuccessAdd
()
{
this
.
jobCodeList
=
response
.
map
((
x
:
any
)
=>
new
MyJobCodeModel
(
x
))
this
.
toastr
.
success
(
'บันทึกข้อมูลสำเร็จ'
,
'เเจ้งเตือน'
,
{
this
.
jobCodeList
=
this
.
jobCodeList
.
sort
((
a
,
b
)
=>
a
.
jobcodeId
.
localeCompare
(
b
.
jobcodeId
))
timeOut
:
3000
,
this
.
loading
=
false
positionClass
:
'toast-top-right'
,
this
.
searchChange
()
});
this
.
cdr
.
detectChanges
()
}
},
error
:
error
=>
{
this
.
loading
=
false
showSuccessEdit
()
{
this
.
cdr
.
detectChanges
()
this
.
toastr
.
success
(
'เเก้ไขข้อมูลสำเร็จ'
,
'เเจ้งเตือน'
,
{
}
timeOut
:
3000
,
})
positionClass
:
'toast-top-right'
,
}
});
}
searchChange
()
{
this
.
currentPage
=
1
showSuccessDelete
()
{
this
.
page
=
Array
.
from
({
length
:
Math
.
ceil
(
this
.
jobcodeFilter
().
length
/
this
.
pageSize
)
},
(
_
,
i
)
=>
i
+
1
);
this
.
toastr
.
success
(
'ลบข้อมูลสำเร็จ'
,
'เเจ้งเตือน'
,
{
}
timeOut
:
3000
,
edit
(
item
:
JobCodeModel
){
positionClass
:
'toast-top-right'
,
this
.
selectJob
=
new
MyJobCodeModel
({})
});
this
.
selectJob
=
new
MyJobCodeModel
(
item
)
}
}
addBu1
()
{
clearValue
(){
// this.bu1Service.post(this.bu1).subscribe((response:any) => {
this
.
selectJob
.
competencyWorkText
=
''
// if (response.success) {
}
// this.getBu1List()
save
(){
// }
this
.
jobcodeService
.
post
(
this
.
selectJob
).
subscribe
((
response
:
any
)
=>
{
// })
if
(
response
.
success
)
{
}
this
.
showAlert
(
response
.
message
,
'success'
)
deleteJob
(
job
:
JobModel
)
{
this
.
selectJob
=
new
MyJobCodeModel
({})
// this.bu1Service.delete(new MyBu1Model(bu1)).subscribe((response:any) => {
this
.
getListJob
();
// if (response.success) {
}
else
{
// this.getBu1List()
this
.
showAlert
(
response
.
message
,
'error'
)
// }
}
// })
this
.
cdr
.
detectChanges
()
}
})
}
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
()
{
return
this
.
jobCodeList
.
filter
(
x
=>
x
.
tdesc
.
toLowerCase
().
includes
(
this
.
search
.
toLowerCase
())
||
x
.
edesc
.
toLowerCase
().
includes
(
this
.
search
.
toLowerCase
())
||
x
.
jobcodeId
.
toLowerCase
().
includes
(
this
.
search
.
toLowerCase
())
)
}
onFileSelected
(
event
:
any
)
{
this
.
selectedFile
=
event
.
target
.
files
.
length
>
0
?
event
.
target
.
files
[
0
]
:
null
;
this
.
selectedFileName
=
this
.
selectedFile
?.
name
||
"กรุณาเลือกไฟล์"
}
uploadFile
()
{
if
(
!
this
.
selectedFile
)
{
alert
(
'กรุณาเลือกไฟล์ก่อนอัปโหลด'
)
return
}
const
formData
=
new
FormData
();
formData
.
append
(
'file'
,
this
.
selectedFile
);
this
.
loading
=
true
this
.
fileService
.
uploadExcel
(
formData
,
'IMPORT_KPI'
).
subscribe
({
next
:
response
=>
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
this
.
getListJob
();
}
else
{
this
.
showAlert
(
response
.
message
,
'error'
)
this
.
loading
=
false
}
},
error
:
error
=>
{
this
.
showAlert
(
error
.
message
,
'error'
)
this
.
loading
=
false
}
})
}
downloadFile
()
{
const
fileName
=
'IMPORT_MJOBCODEV2.xlsx'
this
.
fileService
.
downloadTemplate
(
fileName
).
subscribe
({
next
:
response
=>
{
const
url
=
window
.
URL
.
createObjectURL
(
response
);
const
a
=
document
.
createElement
(
"a"
);
a
.
href
=
url
;
a
.
download
=
fileName
;
document
.
body
.
appendChild
(
a
);
a
.
click
();
document
.
body
.
removeChild
(
a
);
window
.
URL
.
revokeObjectURL
(
url
);
},
error
:
error
=>
{
this
.
showAlert
(
error
.
message
,
'error'
)
}
})
}
showAlert
(
text
:
string
,
type
:
'success'
|
'error'
)
{
this
.
toastr
[
type
](
text
,
'แจ้งเตือน'
,
{
timeOut
:
3000
,
positionClass
:
'toast-top-right'
,
})
}
}
}
\ No newline at end of file
src/app/shared/model/job-code.model.ts
View file @
19523540
...
@@ -44,6 +44,7 @@ export interface JobCodeModel {
...
@@ -44,6 +44,7 @@ export interface JobCodeModel {
allPositionWorkPercent
:
number
allPositionWorkPercent
:
number
otherWorkText
:
string
otherWorkText
:
string
otherWorkPercent
:
number
otherWorkPercent
:
number
kpiWorkText
:
string
}
}
export
class
MyJobCodeModel
implements
JobCodeModel
{
export
class
MyJobCodeModel
implements
JobCodeModel
{
...
@@ -82,6 +83,7 @@ export class MyJobCodeModel implements JobCodeModel {
...
@@ -82,6 +83,7 @@ export class MyJobCodeModel implements JobCodeModel {
allPositionWorkPercent
:
number
allPositionWorkPercent
:
number
otherWorkText
:
string
otherWorkText
:
string
otherWorkPercent
:
number
otherWorkPercent
:
number
kpiWorkText
:
string
constructor
(
data
:
Partial
<
JobCodeModel
>
)
{
constructor
(
data
:
Partial
<
JobCodeModel
>
)
{
this
.
jobcodeId
=
data
.
jobcodeId
||
""
this
.
jobcodeId
=
data
.
jobcodeId
||
""
this
.
tdesc
=
data
.
tdesc
||
""
this
.
tdesc
=
data
.
tdesc
||
""
...
@@ -118,6 +120,7 @@ export class MyJobCodeModel implements JobCodeModel {
...
@@ -118,6 +120,7 @@ export class MyJobCodeModel implements JobCodeModel {
this
.
allPositionWorkPercent
=
data
.
allPositionWorkPercent
??
0
this
.
allPositionWorkPercent
=
data
.
allPositionWorkPercent
??
0
this
.
otherWorkText
=
data
.
otherWorkText
||
""
this
.
otherWorkText
=
data
.
otherWorkText
||
""
this
.
otherWorkPercent
=
data
.
otherWorkPercent
??
0
this
.
otherWorkPercent
=
data
.
otherWorkPercent
??
0
this
.
kpiWorkText
=
data
.
kpiWorkText
||
""
}
}
}
}
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