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
45ca933f
Commit
45ca933f
authored
Mar 19, 2025
by
Nattana Chaiyamat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ปีการประเมิน แก้ปีการประเมินให้เป็น +- 5
parent
1cc60d4b
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
89 additions
and
22 deletions
+89
-22
evaluation-cycle.component.html
...-manager/evaluation-cycle/evaluation-cycle.component.html
+10
-6
evaluation-cycle.component.ts
...le-manager/evaluation-cycle/evaluation-cycle.component.ts
+15
-4
competency-configuration.component.html
...ncy-configuration/competency-configuration.component.html
+5
-2
competency-configuration.component.ts
...tency-configuration/competency-configuration.component.ts
+14
-0
evaluation.component.html
...rformance-evaluation/evaluation/evaluation.component.html
+1
-1
management-evaluation-cycle.component.html
...aluation-cycle/management-evaluation-cycle.component.html
+10
-5
management-evaluation-cycle.component.ts
...evaluation-cycle/management-evaluation-cycle.component.ts
+15
-2
assessment-system-configuration.component.html
...figuration/assessment-system-configuration.component.html
+5
-2
assessment-system-configuration.component.ts
...onfiguration/assessment-system-configuration.component.ts
+14
-0
No files found.
src/app/components/competency-assessment/evaluation-cycle-manager/evaluation-cycle/evaluation-cycle.component.html
View file @
45ca933f
...
@@ -137,14 +137,16 @@
...
@@ -137,14 +137,16 @@
<td
class=
"flex justify-center items-center"
>
<td
class=
"flex justify-center items-center"
>
<i
class=
"ti ti-edit cursor-pointer i-gray fs-l px-1"
(
click
)="
modalStatus=
'edit'
;
setData
(
item
.
data
)"
<i
class=
"ti ti-edit cursor-pointer i-gray fs-l px-1"
(
click
)="
modalStatus=
'edit'
;
setData
(
item
.
data
)"
data-hs-overlay=
"#evaluation-cycle-page-modal"
></i>
data-hs-overlay=
"#evaluation-cycle-page-modal"
></i>
<i
class=
"ti ti-user cursor-pointer i-gray fs-l px-1"
*
ngIf=
"item.data.statusFrom.code =='1'"
data-hs-overlay=
"#evaluation-cycle-person-modal"
<i
class=
"ti ti-user cursor-pointer i-gray fs-l px-1"
*
ngIf=
"item.data.statusFrom.code =='1'"
data-hs-overlay=
"#evaluation-cycle-person-modal"
(
click
)="
openModal
('
evaluation-cycle-person-modal
',
item
.
data
.
evaluationRoundId
)"
></i>
(
click
)="
openModal
('
evaluation-cycle-person-modal
',
item
.
data
.
evaluationRoundId
)"
></i>
<!-- <i class="ti ti-trash cursor-pointer i-gray fs-l px-1" (click)="modalStatus='delete';setData(item.data)"
<!-- <i class="ti ti-trash cursor-pointer i-gray fs-l px-1" (click)="modalStatus='delete';setData(item.data)"
data-hs-overlay="#evaluation-cycle-page-alert-modal"></i> -->
data-hs-overlay="#evaluation-cycle-page-alert-modal"></i> -->
<!-- <span class="badge text-white m-1" *ngIf="item.data.statusCode.code!='1'"
<!-- <span class="badge text-white m-1" *ngIf="item.data.statusCode.code!='1'"
[ngClass]="{'bg-primary':item.data.statusCode.code=='1','bg-gray-400':item.data.statusCode.code!='3'}">ปิดรอบประเมิน</span>
[ngClass]="{'bg-primary':item.data.statusCode.code=='1','bg-gray-400':item.data.statusCode.code!='3'}">ปิดรอบประเมิน</span>
<span class="badge text-white m-1 bg-secondary" *ngIf="item.data.statusCode.code=='0'">สร้างแบบฟอร์ม</span> -->
<span class="badge text-white m-1 bg-secondary" *ngIf="item.data.statusCode.code=='0'">สร้างแบบฟอร์ม</span> -->
<span
class=
"badge text-white m-1 cursor-pointer"
data-hs-overlay=
"#evaluation-cycle-page-alert-modal"
(
click
)="
modalStatus=
'createForm'
;
setData
(
item
.
data
)"
*
ngIf=
"item.data.statusFrom.code == '0'"
[
ngClass
]="{
<span
class=
"badge text-white m-1 cursor-pointer"
data-hs-overlay=
"#evaluation-cycle-page-alert-modal"
(
click
)="
modalStatus=
'createForm'
;
setData
(
item
.
data
)"
*
ngIf=
"item.data.statusFrom.code == '0'"
[
ngClass
]="{
'
bg-secondary
'
:
item
.
data
.
statusFrom
.
code =
=
'
0
',
'
bg-secondary
'
:
item
.
data
.
statusFrom
.
code =
=
'
0
',
'
text-white
'
:
item
.
data
.
statusFrom
.
code =
=
'
0
'
'
text-white
'
:
item
.
data
.
statusFrom
.
code =
=
'
0
'
}"
>
}"
>
...
@@ -257,16 +259,18 @@
...
@@ -257,16 +259,18 @@
[
ngClass
]="{'
bg-input-readonly
'
:modalStatus=
='edit'}"
[
readonly
]="
modalStatus=
='edit'"
[
ngClass
]="{'
bg-input-readonly
'
:modalStatus=
='edit'}"
[
readonly
]="
modalStatus=
='edit'"
[(
ngModel
)]="
evaluation_cycle
.
evaluationRoundId
"
>
[(
ngModel
)]="
evaluation_cycle
.
evaluationRoundId
"
>
<label
for=
"detail_th"
class=
"ti-form-label mt-2rem"
>
รายละเอียด (ไทย)
<span
<label
for=
"detail_th"
class=
"ti-form-label mt-2rem"
>
รายละเอียด (ไทย)
<span
class=
"text-danger"
>
*
</span></label>
class=
"text-danger"
>
*
</span></label>
<input
type=
"text"
id=
"detail_th"
class=
"ti-form-input h-16"
[(
ngModel
)]="
evaluation_cycle
.
tdesc
"
>
<input
type=
"text"
id=
"detail_th"
class=
"ti-form-input h-16"
[(
ngModel
)]="
evaluation_cycle
.
tdesc
"
>
<label
for=
"detail_eng"
class=
"ti-form-label mt-2rem"
>
รายละเอียด (อังกฤษ)
</label>
<label
for=
"detail_eng"
class=
"ti-form-label mt-2rem"
>
รายละเอียด (อังกฤษ)
</label>
<input
type=
"text"
id=
"detail_eng"
class=
"ti-form-input h-16"
[(
ngModel
)]="
evaluation_cycle
.
edesc
"
>
<input
type=
"text"
id=
"detail_eng"
class=
"ti-form-input h-16"
[(
ngModel
)]="
evaluation_cycle
.
edesc
"
>
<label
for=
"input-label"
class=
"ti-form-label mt-2rem"
>
ปีการประเมิน
<span
class=
"text-danger"
>
*
</span></label>
<label
for=
"input-label"
class=
"ti-form-label mt-2rem"
>
ปีการประเมิน
<span
class=
"text-danger"
>
*
</span></label>
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input w-1/2"
<!-- <input type="text" id="input-label" class="ti-form-input w-1/2"
oninput=
"this.value = this.value.replace(/\D/g, '')"
[(
ngModel
)]="
evaluation_cycle
.
apsyear
"
>
oninput="this.value = this.value.replace(/\D/g, '')" [(ngModel)]="evaluation_cycle.apsyear"> -->
<select
class=
"ti-form-select"
[(
ngModel
)]="
evaluation_cycle
.
apsyear
"
>
<option
*
ngFor=
"let item of yearList"
[
ngValue
]="
item
"
>
{{ item }}
</option>
</select>
<label
for=
"input-label"
class=
"ti-form-label mt-2rem"
>
เริ่มวันที่
<span
class=
"text-danger"
>
*
</span></label>
<label
for=
"input-label"
class=
"ti-form-label mt-2rem"
>
เริ่มวันที่
<span
class=
"text-danger"
>
*
</span></label>
<input
type=
"date"
id=
"input-label"
class=
"ti-form-input w-1/2"
[(
ngModel
)]="
evaluation_cycle
.
apsPeriodStart
"
>
<input
type=
"date"
id=
"input-label"
class=
"ti-form-input w-1/2"
[(
ngModel
)]="
evaluation_cycle
.
apsPeriodStart
"
>
...
...
src/app/components/competency-assessment/evaluation-cycle-manager/evaluation-cycle/evaluation-cycle.component.ts
View file @
45ca933f
...
@@ -41,8 +41,20 @@ export class EvaluationCycleComponent {
...
@@ -41,8 +41,20 @@ export class EvaluationCycleComponent {
page
:
Array
.
from
({
length
:
1
},
(
_
,
i
)
=>
i
+
1
)
page
:
Array
.
from
({
length
:
1
},
(
_
,
i
)
=>
i
+
1
)
}
}
pl
:
{
loading
:
boolean
,
selectIndex
:
number
,
dataList
:
PLModel
[]
}
=
{
loading
:
false
,
selectIndex
:
-
1
,
dataList
:
[]
}
pl
:
{
loading
:
boolean
,
selectIndex
:
number
,
dataList
:
PLModel
[]
}
=
{
loading
:
false
,
selectIndex
:
-
1
,
dataList
:
[]
}
currentDate
=
new
Date
()
yearList
=
[
(
this
.
currentDate
.
getFullYear
()
-
5
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
-
4
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
-
3
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
-
2
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
-
1
)
+
""
,
(
this
.
currentDate
.
getFullYear
())
+
""
,
(
this
.
currentDate
.
getFullYear
()
+
1
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
+
2
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
+
3
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
+
4
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
+
5
)
+
""
,
]
constructor
(
private
evaluationCycleService
:
EvaluationCycleService
,
constructor
(
private
evaluationCycleService
:
EvaluationCycleService
,
private
toastr
:
ToastrService
,
private
toastr
:
ToastrService
,
private
cdr
:
ChangeDetectorRef
,
private
cdr
:
ChangeDetectorRef
,
...
@@ -104,7 +116,6 @@ export class EvaluationCycleComponent {
...
@@ -104,7 +116,6 @@ export class EvaluationCycleComponent {
check
:
false
,
check
:
false
,
data
:
new
MyEvaluationCycleModel
(
x
)
data
:
new
MyEvaluationCycleModel
(
x
)
}));
}));
console
.
log
(
"🚀 ~ EvaluationCycleComponent ~ this.evaluationCycleService.getList ~ this.evaluation_cyclelist:"
,
this
.
evaluation_cyclelist
)
this
.
dataLoading
=
false
this
.
dataLoading
=
false
this
.
isDataListCheckedAll
=
false
this
.
isDataListCheckedAll
=
false
this
.
dataListCheckAll
()
this
.
dataListCheckAll
()
...
@@ -145,7 +156,7 @@ export class EvaluationCycleComponent {
...
@@ -145,7 +156,7 @@ export class EvaluationCycleComponent {
this
.
evaluation_cycle
=
new
MyEvaluationCycleModel
(
data
)
this
.
evaluation_cycle
=
new
MyEvaluationCycleModel
(
data
)
}
}
addevaluation_cycle
()
{
addevaluation_cycle
()
{
if
(
this
.
evaluation_cycle
.
personalLevel
.
length
==
0
)
{
if
(
this
.
evaluation_cycle
.
personalLevel
.
length
==
0
)
{
this
.
plListFilter
().
forEach
(
x
=>
this
.
selectPl
(
x
))
this
.
plListFilter
().
forEach
(
x
=>
this
.
selectPl
(
x
))
}
}
const
body
=
new
MyEvaluationCycleModel
(
this
.
evaluation_cycle
)
const
body
=
new
MyEvaluationCycleModel
(
this
.
evaluation_cycle
)
...
...
src/app/components/competency-assessment/setting-competency/competency-configuration/competency-configuration.component.html
View file @
45ca933f
...
@@ -28,8 +28,11 @@
...
@@ -28,8 +28,11 @@
</div>
</div>
<div
class=
"grid grid-cols-3 gap-6"
>
<div
class=
"grid grid-cols-3 gap-6"
>
<div
class=
"col-span-1"
>
<div
class=
"col-span-1"
>
<input
type=
"text"
class=
"ti-form-input w-2/3 pr-10"
<!-- <input type="text" class="ti-form-input w-2/3 pr-10"
oninput=
"this.value = this.value.replace(/\D/g, '')"
[(
ngModel
)]="
setting
.
data
.
apsyear
"
>
oninput="this.value = this.value.replace(/\D/g, '')" [(ngModel)]="setting.data.apsyear"> -->
<select
class=
"ti-form-select"
[(
ngModel
)]="
setting
.
data
.
apsyear
"
>
<option
*
ngFor=
"let item of yearList"
[
ngValue
]="
item
"
>
{{ item }}
</option>
</select>
</div>
</div>
</div>
</div>
<div
class=
"grid grid-cols-3 gap-6 mt-10"
>
<div
class=
"grid grid-cols-3 gap-6 mt-10"
>
...
...
src/app/components/competency-assessment/setting-competency/competency-configuration/competency-configuration.component.ts
View file @
45ca933f
...
@@ -10,6 +10,20 @@ import { SettingAssessmentService } from 'src/app/shared/services/setting-assess
...
@@ -10,6 +10,20 @@ import { SettingAssessmentService } from 'src/app/shared/services/setting-assess
})
})
export
class
CompetencyConfigurationComponent
{
export
class
CompetencyConfigurationComponent
{
setting
:
{
loading
:
boolean
,
data
:
SettingAssessmentModel
}
=
{
loading
:
false
,
data
:
new
MySettingAssessmentModel
()
}
setting
:
{
loading
:
boolean
,
data
:
SettingAssessmentModel
}
=
{
loading
:
false
,
data
:
new
MySettingAssessmentModel
()
}
currentDate
=
new
Date
()
yearList
=
[
(
this
.
currentDate
.
getFullYear
()
-
5
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
-
4
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
-
3
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
-
2
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
-
1
)
+
""
,
(
this
.
currentDate
.
getFullYear
())
+
""
,
(
this
.
currentDate
.
getFullYear
()
+
1
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
+
2
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
+
3
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
+
4
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
+
5
)
+
""
,
]
constructor
(
private
settingAssessmentService
:
SettingAssessmentService
,
constructor
(
private
settingAssessmentService
:
SettingAssessmentService
,
private
toastr
:
ToastrService
,
private
toastr
:
ToastrService
,
private
cdr
:
ChangeDetectorRef
private
cdr
:
ChangeDetectorRef
...
...
src/app/components/performance-evaluation/evaluation/evaluation.component.html
View file @
45ca933f
...
@@ -109,7 +109,7 @@
...
@@ -109,7 +109,7 @@
</td>
</td>
<td
class=
"align-start !white-space-normal"
>
<td
class=
"align-start !white-space-normal"
>
<ng-container
*
ngIf=
"f"
>
<ng-container
*
ngIf=
"f"
>
{{item2.groupAssessment1.competencyIndicatorsCourses1Mini.competencyIndicatorsCourses0.tdesc}}
{{item2.groupAssessment1.competencyIndicatorsCourses1Mini.competencyIndicatorsCourses0.
competencyTopic.
tdesc}}
</ng-container>
</ng-container>
</td>
</td>
<td
class=
"align-start !white-space-normal"
>
<td
class=
"align-start !white-space-normal"
>
...
...
src/app/components/performance-management-evaluation/evaluation-cycle-performance/management-evaluation-cycle/management-evaluation-cycle.component.html
View file @
45ca933f
...
@@ -135,7 +135,8 @@
...
@@ -135,7 +135,8 @@
</span>
</span>
</td>
</td>
<td
class=
"flex justify-center items-center"
>
<td
class=
"flex justify-center items-center"
>
<i
class=
"ti ti-edit cursor-pointer i-gray fs-l px-1"
*
ngIf=
"item.data.statusFrom.code =='1'"
(
click
)="
modalStatus=
'edit'
;
setData
(
item
.
data
)"
<i
class=
"ti ti-edit cursor-pointer i-gray fs-l px-1"
*
ngIf=
"item.data.statusFrom.code =='1'"
(
click
)="
modalStatus=
'edit'
;
setData
(
item
.
data
)"
data-hs-overlay=
"#management-evaluation-cycle-page-modal"
></i>
data-hs-overlay=
"#management-evaluation-cycle-page-modal"
></i>
<i
class=
"ti ti-user cursor-pointer i-gray fs-l px-1"
data-hs-overlay=
"#evaluation-cycle-person-modal"
<i
class=
"ti ti-user cursor-pointer i-gray fs-l px-1"
data-hs-overlay=
"#evaluation-cycle-person-modal"
(
click
)="
openModal
('
evaluation-cycle-person-modal
',
item
.
data
.
pmsEvaluationRoundId
)"
></i>
(
click
)="
openModal
('
evaluation-cycle-person-modal
',
item
.
data
.
pmsEvaluationRoundId
)"
></i>
...
@@ -144,7 +145,9 @@
...
@@ -144,7 +145,9 @@
<!-- <span class="badge text-white m-1" *ngIf="item.data.statusCode.code!='1'"
<!-- <span class="badge text-white m-1" *ngIf="item.data.statusCode.code!='1'"
[ngClass]="{'bg-primary':item.data.statusCode.code=='1','bg-gray-400':item.data.statusCode.code!='3'}">ปิดรอบประเมิน</span>
[ngClass]="{'bg-primary':item.data.statusCode.code=='1','bg-gray-400':item.data.statusCode.code!='3'}">ปิดรอบประเมิน</span>
<span class="badge text-white m-1 bg-secondary" *ngIf="item.data.statusCode.code=='0'">สร้างแบบฟอร์ม</span> -->
<span class="badge text-white m-1 bg-secondary" *ngIf="item.data.statusCode.code=='0'">สร้างแบบฟอร์ม</span> -->
<span
class=
"badge text-white m-1 cursor-pointer"
data-hs-overlay=
"#management-evaluation-cycle-page-alert-modal"
(
click
)="
modalStatus=
'createForm'
;
setData
(
item
.
data
)"
*
ngIf=
"item.data.statusFrom.code == '0'"
[
ngClass
]="{
<span
class=
"badge text-white m-1 cursor-pointer"
data-hs-overlay=
"#management-evaluation-cycle-page-alert-modal"
(
click
)="
modalStatus=
'createForm'
;
setData
(
item
.
data
)"
*
ngIf=
"item.data.statusFrom.code == '0'"
[
ngClass
]="{
'
bg-secondary
'
:
item
.
data
.
statusFrom
.
code =
=
'
0
',
'
bg-secondary
'
:
item
.
data
.
statusFrom
.
code =
=
'
0
',
'
text-white
'
:
item
.
data
.
statusFrom
.
code =
=
'
0
'
'
text-white
'
:
item
.
data
.
statusFrom
.
code =
=
'
0
'
}"
>
}"
>
...
@@ -265,9 +268,11 @@
...
@@ -265,9 +268,11 @@
<input
type=
"text"
id=
"detail_eng"
class=
"ti-form-input h-16"
[(
ngModel
)]="
pmsMasfromEvaluation
.
edesc
"
>
<input
type=
"text"
id=
"detail_eng"
class=
"ti-form-input h-16"
[(
ngModel
)]="
pmsMasfromEvaluation
.
edesc
"
>
<label
for=
"input-label"
class=
"ti-form-label mt-2rem"
>
ปีการประเมิน
<span
class=
"text-danger"
>
*
</span></label>
<label
for=
"input-label"
class=
"ti-form-label mt-2rem"
>
ปีการประเมิน
<span
class=
"text-danger"
>
*
</span></label>
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input w-1/2"
<!-- <input type="text" id="input-label" class="ti-form-input w-1/2"
oninput=
"this.value = this.value.replace(/\D/g, '')"
[(
ngModel
)]="
pmsMasfromEvaluation
.
apsyear
"
>
oninput="this.value = this.value.replace(/\D/g, '')" [(ngModel)]="pmsMasfromEvaluation.apsyear"> -->
<select
class=
"ti-form-select"
[(
ngModel
)]="
pmsMasfromEvaluation
.
apsyear
"
>
<option
*
ngFor=
"let item of yearList"
[
ngValue
]="
item
"
>
{{ item }}
</option>
</select>
<label
for=
"input-label"
class=
"ti-form-label mt-2rem"
>
เริ่มวันที่
<span
class=
"text-danger"
>
*
</span></label>
<label
for=
"input-label"
class=
"ti-form-label mt-2rem"
>
เริ่มวันที่
<span
class=
"text-danger"
>
*
</span></label>
<input
type=
"date"
id=
"input-label"
class=
"ti-form-input w-1/2"
<input
type=
"date"
id=
"input-label"
class=
"ti-form-input w-1/2"
[(
ngModel
)]="
pmsMasfromEvaluation
.
apsPeriodStart
"
>
[(
ngModel
)]="
pmsMasfromEvaluation
.
apsPeriodStart
"
>
...
...
src/app/components/performance-management-evaluation/evaluation-cycle-performance/management-evaluation-cycle/management-evaluation-cycle.component.ts
View file @
45ca933f
...
@@ -23,7 +23,7 @@ export class ManagementCycleComponent {
...
@@ -23,7 +23,7 @@ export class ManagementCycleComponent {
currentPage
=
1
currentPage
=
1
page
=
Array
.
from
({
length
:
1
},
(
_
,
i
)
=>
i
+
1
);
page
=
Array
.
from
({
length
:
1
},
(
_
,
i
)
=>
i
+
1
);
search
=
""
search
=
""
modalStatus
:
'createForm'
|
'add'
|
'edit'
|
'delete'
|
'deleteGroup'
=
'add'
modalStatus
:
'createForm'
|
'add'
|
'edit'
|
'delete'
|
'deleteGroup'
=
'add'
pmsMasfromEvaluationlist
:
{
check
:
boolean
,
data
:
PmsMasfromEvaluationModel
}[]
=
[]
pmsMasfromEvaluationlist
:
{
check
:
boolean
,
data
:
PmsMasfromEvaluationModel
}[]
=
[]
pmsMasfromEvaluation
:
PmsMasfromEvaluationModel
=
new
MyPmsMasfromEvaluationModel
({})
pmsMasfromEvaluation
:
PmsMasfromEvaluationModel
=
new
MyPmsMasfromEvaluationModel
({})
dataLoading
=
false
dataLoading
=
false
...
@@ -41,7 +41,20 @@ export class ManagementCycleComponent {
...
@@ -41,7 +41,20 @@ export class ManagementCycleComponent {
}
}
pl
:
{
loading
:
boolean
,
selectIndex
:
number
,
dataList
:
PLModel
[]
}
=
{
loading
:
false
,
selectIndex
:
-
1
,
dataList
:
[]
}
pl
:
{
loading
:
boolean
,
selectIndex
:
number
,
dataList
:
PLModel
[]
}
=
{
loading
:
false
,
selectIndex
:
-
1
,
dataList
:
[]
}
currentDate
=
new
Date
()
yearList
=
[
(
this
.
currentDate
.
getFullYear
()
-
5
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
-
4
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
-
3
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
-
2
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
-
1
)
+
""
,
(
this
.
currentDate
.
getFullYear
())
+
""
,
(
this
.
currentDate
.
getFullYear
()
+
1
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
+
2
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
+
3
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
+
4
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
+
5
)
+
""
,
]
constructor
(
private
pmsMasfromEvaluationCycleService
:
PmsMasfromEvaluationCycleService
,
constructor
(
private
pmsMasfromEvaluationCycleService
:
PmsMasfromEvaluationCycleService
,
private
toastr
:
ToastrService
,
private
toastr
:
ToastrService
,
private
cdr
:
ChangeDetectorRef
,
private
cdr
:
ChangeDetectorRef
,
...
...
src/app/components/performance-management-evaluation/setting-performance-evalution/assessment-system-configuration/assessment-system-configuration.component.html
View file @
45ca933f
...
@@ -26,8 +26,11 @@
...
@@ -26,8 +26,11 @@
</div>
</div>
<div
class=
"grid grid-cols-3 gap-6"
>
<div
class=
"grid grid-cols-3 gap-6"
>
<div
class=
"col-span-1"
>
<div
class=
"col-span-1"
>
<input
type=
"text"
class=
"ti-form-input w-2/3 pr-10"
oninput=
"this.value = this.value.replace(/\D/g, '')"
<!-- <input type="text" class="ti-form-input w-2/3 pr-10" oninput="this.value = this.value.replace(/\D/g, '')"
[(
ngModel
)]="
setting
.
data
.
apsyear
"
>
[(ngModel)]="setting.data.apsyear"> -->
<select
class=
"ti-form-select"
[(
ngModel
)]="
setting
.
data
.
apsyear
"
>
<option
*
ngFor=
"let item of yearList"
[
ngValue
]="
item
"
>
{{ item }}
</option>
</select>
</div>
</div>
</div>
</div>
<label
for=
"hs-trailing-button-add-on-with-icon"
class=
"ti-form-label mt-10"
>
จัดการสมรรถนะกับกลุ่ม
<span
<label
for=
"hs-trailing-button-add-on-with-icon"
class=
"ti-form-label mt-10"
>
จัดการสมรรถนะกับกลุ่ม
<span
...
...
src/app/components/performance-management-evaluation/setting-performance-evalution/assessment-system-configuration/assessment-system-configuration.component.ts
View file @
45ca933f
...
@@ -9,6 +9,20 @@ import { PmsSettingAssessmentService } from 'src/app/shared/services/pms-setting
...
@@ -9,6 +9,20 @@ import { PmsSettingAssessmentService } from 'src/app/shared/services/pms-setting
})
})
export
class
AssessmentSystemConfigurationComponent
{
export
class
AssessmentSystemConfigurationComponent
{
setting
:
{
loading
:
boolean
,
data
:
PmsSettingAssessmentModel
}
=
{
loading
:
false
,
data
:
new
MyPmsSettingAssessmentModel
()
}
setting
:
{
loading
:
boolean
,
data
:
PmsSettingAssessmentModel
}
=
{
loading
:
false
,
data
:
new
MyPmsSettingAssessmentModel
()
}
currentDate
=
new
Date
()
yearList
=
[
(
this
.
currentDate
.
getFullYear
()
-
5
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
-
4
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
-
3
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
-
2
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
-
1
)
+
""
,
(
this
.
currentDate
.
getFullYear
())
+
""
,
(
this
.
currentDate
.
getFullYear
()
+
1
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
+
2
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
+
3
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
+
4
)
+
""
,
(
this
.
currentDate
.
getFullYear
()
+
5
)
+
""
,
]
constructor
(
private
pmsSettingAssessmentService
:
PmsSettingAssessmentService
,
constructor
(
private
pmsSettingAssessmentService
:
PmsSettingAssessmentService
,
private
toastr
:
ToastrService
,
private
toastr
:
ToastrService
,
private
cdr
:
ChangeDetectorRef
private
cdr
:
ChangeDetectorRef
...
...
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