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
d98800ca
Commit
d98800ca
authored
Mar 28, 2025
by
Nattana Chaiyamat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Primary Key
parent
7792eb25
Hide whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
174 additions
and
105 deletions
+174
-105
user-settings.component.html
...count-settings/user-settings/user-settings.component.html
+1
-1
department-register.component.html
...it/department-register/department-register.component.html
+1
-1
section-registration.component.html
.../section-registration/section-registration.component.html
+1
-1
sub-department-four.component.html
...it/sub-department-four/sub-department-four.component.html
+1
-1
sub-department-one.component.html
...unit/sub-department-one/sub-department-one.component.html
+1
-1
sub-department-three.component.html
.../sub-department-three/sub-department-three.component.html
+1
-1
sub-department-two.component.html
...unit/sub-department-two/sub-department-two.component.html
+1
-1
set-approvers.component.html
...ncy-management/set-approvers/set-approvers.component.html
+1
-1
development-course.component.html
...tion/development-course/development-course.component.html
+19
-14
development-course.component.ts
...ration/development-course/development-course.component.ts
+4
-0
define-document-form.component.html
.../define-document-form/define-document-form.component.html
+2
-2
evaluation-cycle.component.html
...-manager/evaluation-cycle/evaluation-cycle.component.html
+8
-5
evaluation-cycle.component.ts
...le-manager/evaluation-cycle/evaluation-cycle.component.ts
+4
-1
sub-grade-registration.component.html
...-grade-registration/sub-grade-registration.component.html
+4
-4
competency-topic.component.html
...stration/competency-topic/competency-topic.component.html
+11
-6
competency-topic.component.ts
...gistration/competency-topic/competency-topic.component.ts
+4
-0
type-registration.component.html
...ration/type-registration/type-registration.component.html
+12
-7
type-registration.component.ts
...stration/type-registration/type-registration.component.ts
+4
-0
assessment-tool.component.html
...l-register/assessment-tool/assessment-tool.component.html
+17
-12
assessment-tool.component.ts
...ool-register/assessment-tool/assessment-tool.component.ts
+4
-0
assigning-approvers.component.html
...nt/assigning-approvers/assigning-approvers.component.html
+1
-1
document-form.component.html
...le-performance/document-form/document-form.component.html
+2
-2
management-evaluation-cycle.component.html
...aluation-cycle/management-evaluation-cycle.component.html
+6
-4
management-evaluation-cycle.component.ts
...evaluation-cycle/management-evaluation-cycle.component.ts
+17
-13
assessment-topics.component.html
...omance/assessment-topics/assessment-topics.component.html
+13
-10
assessment-topics.component.ts
...rfomance/assessment-topics/assessment-topics.component.ts
+3
-0
assessment-types.component.html
...rfomance/assessment-types/assessment-types.component.html
+1
-1
pms-grade-management.component.html
.../pms-grade-management/pms-grade-management.component.html
+1
-1
pms-group-grade.component.html
...management/pms-group-grade/pms-group-grade.component.html
+10
-5
pms-group-grade.component.ts
...e-management/pms-group-grade/pms-group-grade.component.ts
+5
-1
pms-sub-grade-registration.component.html
...de-registration/pms-sub-grade-registration.component.html
+4
-4
time-attendance-manage.component.html
...e-attendance-manage/time-attendance-manage.component.html
+6
-4
time-attendance-manage.component.ts
...ime-attendance-manage/time-attendance-manage.component.ts
+4
-0
No files found.
src/app/components/company-components/account-settings/user-settings/user-settings.component.html
View file @
d98800ca
...
...
@@ -213,7 +213,7 @@
</div>
<div
class=
"ti-modal-body padding-16px pt-0 overflow-y-0"
>
<label
class=
"ti-form-label mt-2rem"
>
ชื่อล็อกอิน
<span
class=
"text-danger"
>
*
<span
class=
"text-danger"
>
*
<ng-container
*
ngIf=
"currentModal=='add'&&checkPrimary()"
>
ชื่อล็อกอินซ้ำ
</ng-container>
...
...
src/app/components/company-components/company-registration/branch-business-unit/department-register/department-register.component.html
View file @
d98800ca
...
...
@@ -173,7 +173,7 @@
</div>
<div
class=
"ti-modal-body padding-16px pt-0 overflow-y-0"
>
<label
for=
"input-label"
class=
"ti-form-label mt-2rem"
>
ฝ่าย
<span
class=
"text-danger"
>
*
<span
class=
"text-danger"
>
*
<ng-container
*
ngIf=
"checkPrimary()"
>
ฝ่ายซ้ำ
</ng-container>
...
...
src/app/components/company-components/company-registration/branch-business-unit/section-registration/section-registration.component.html
View file @
d98800ca
...
...
@@ -198,7 +198,7 @@
</div>
</div>
<label
class=
"ti-form-label mt-2rem"
>
ส่วน
<span
class=
"text-danger"
>
*
<span
class=
"text-danger"
>
*
<ng-container
*
ngIf=
"currentModal=='add'&&checkPrimary()"
>
ส่วนซ้ำ
</ng-container>
...
...
src/app/components/company-components/company-registration/branch-business-unit/sub-department-four/sub-department-four.component.html
View file @
d98800ca
...
...
@@ -197,7 +197,7 @@
</div>
</div>
<label
class=
"ti-form-label mt-2rem"
>
ส่วนย่อย4
<span
class=
"text-danger"
>
*
<span
class=
"text-danger"
>
*
<ng-container
*
ngIf=
"currentModal=='add'&&checkPrimary()"
>
ส่วนย่อย4ซ้ำ
</ng-container>
...
...
src/app/components/company-components/company-registration/branch-business-unit/sub-department-one/sub-department-one.component.html
View file @
d98800ca
...
...
@@ -199,7 +199,7 @@
</div>
</div>
<label
class=
"ti-form-label mt-2rem"
>
ส่วนย่อย1
<span
class=
"text-danger"
>
*
<span
class=
"text-danger"
>
*
<ng-container
*
ngIf=
"currentModal=='add'&&checkPrimary()"
>
ส่วนย่อย1ซ้ำ
</ng-container>
...
...
src/app/components/company-components/company-registration/branch-business-unit/sub-department-three/sub-department-three.component.html
View file @
d98800ca
...
...
@@ -197,7 +197,7 @@
</div>
</div>
<label
class=
"ti-form-label mt-2rem"
>
ส่วนย่อย3
<span
class=
"text-danger"
>
*
<span
class=
"text-danger"
>
*
<ng-container
*
ngIf=
"currentModal=='add'&&checkPrimary()"
>
ส่วนย่อย3ซ้ำ
</ng-container>
...
...
src/app/components/company-components/company-registration/branch-business-unit/sub-department-two/sub-department-two.component.html
View file @
d98800ca
...
...
@@ -197,7 +197,7 @@
</div>
</div>
<label
class=
"ti-form-label mt-2rem"
>
ส่วนย่อย2
<span
class=
"text-danger"
>
*
<span
class=
"text-danger"
>
*
<ng-container
*
ngIf=
"currentModal=='add'&&checkPrimary()"
>
ส่วนย่อย2ซ้ำ
</ng-container>
...
...
src/app/components/competency-assessment/competency-management/set-approvers/set-approvers.component.html
View file @
d98800ca
...
...
@@ -167,7 +167,7 @@
</div>
</div>
<div
class=
"ti-modal-body mt-1"
>
<label
for=
"input-label"
class=
"ti-form-label"
>
ชื่อพนักงาน
<span
class=
"text-danger"
>
*
</span></label>
<label
for=
"input-label"
class=
"ti-form-label"
>
ชื่อพนักงาน
<span
class=
"text-danger"
>
*
</span></label>
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input w-1/2 bg-input-readonly"
readonly
[
value
]="
groupapprove
.
apsassessy
.
fname
+
'
'
+
groupapprove
.
apsassessy
.
lname
"
>
<label
for=
"input-label"
class=
"ti-form-label mt-2rem"
>
ระดับพนักงาน
</label>
...
...
src/app/components/competency-assessment/course-registration/development-course/development-course.component.html
View file @
d98800ca
...
...
@@ -104,10 +104,11 @@
<input
type=
"checkbox"
class=
"ti-form-checkbox cursor-pointer"
id=
"checkbox-{{item.data.competencyCourseId}}"
[(
ngModel
)]="
item
.
check
"
(
change
)="
dataListCheck
()"
>
</td>
<td
class=
"text-center"
>
<label
for=
"checkbox-{{item.data.competencyCourseId}}"
>
{{item.data.competencyCourseId}}
</label>
<label
for=
"checkbox-{{item.data.competencyCourseId}}"
>
{{item.data.competencyCourseId}}
</label>
</td>
<td>
{{item.data.tdesc}}
</td>
<td
class=
"flex justify-center"
>
...
...
@@ -245,11 +246,15 @@
</div>
</div>
<div
class=
"ti-modal-body mt-1"
>
<label
for=
"input-label"
class=
"ti-form-label"
>
รหัสหลักสูตร
<span
class=
"text-danger"
>
*
</span></label>
<label
for=
"input-label"
class=
"ti-form-label"
>
รหัสหลักสูตร
<span
class=
"text-danger"
>
*
<ng-container
*
ngIf=
"currentModal=='add'&&checkPrimary()"
>
รหัสหลักสูตรซ้ำ
</ng-container></span></label>
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input w-1/2"
[
ngClass
]="{'
bg-input-readonly
'
:currentModal=
='edit'}"
[
readonly
]="
currentModal=
='edit'"
[(
ngModel
)]="
competencyCourse
.
select
.
competencyCourseId
"
>
<label
for=
"detail_th"
class=
"ti-form-label mt-2rem"
>
ชื่อหลักสูตร (ไทย)
<span
class=
"text-danger"
>
*
</span></label>
<label
for=
"detail_th"
class=
"ti-form-label mt-2rem"
>
ชื่อหลักสูตร (ไทย)
<span
class=
"text-danger"
>
*
</span></label>
<input
type=
"text"
id=
"detail_th"
class=
"ti-form-input h-10"
[(
ngModel
)]="
competencyCourse
.
select
.
tdesc
"
>
<label
for=
"detail_eng"
class=
"ti-form-label mt-2rem"
>
ชื่อหลักสูตร (อังกฤษ)
</label>
...
...
@@ -271,8 +276,8 @@
</button>
<button
type=
"button"
class=
"ti-btn ti-btn-success"
data-hs-overlay=
"#development-course-alert-modal"
[
class
.
ti-btn-disabled
]="!
competencyCourse
.
select
.
competencyCourseId
||!
competencyCourse
.
select
.
tdesc
"
[
disabled
]="!
competencyCourse
.
select
.
competencyCourseId
||!
competencyCourse
.
select
.
tdesc
"
>
[
class
.
ti-btn-disabled
]="!
competencyCourse
.
select
.
competencyCourseId
||!
competencyCourse
.
select
.
tdesc
||(
currentModal=
='add'&&checkPrimary())
"
[
disabled
]="!
competencyCourse
.
select
.
competencyCourseId
||!
competencyCourse
.
select
.
tdesc
||(
currentModal=
='add'&&checkPrimary())
"
>
บันทึกข้อมูล
</button>
</div>
...
...
@@ -291,8 +296,7 @@
</h3>
<div
class=
"flex justify-end"
>
<button
type=
"button"
class=
"hs-dropdown-toggle ti-modal-clode-btn text-danger"
*
ngIf=
"currentModal=='add'||currentModal=='edit'"
data-hs-overlay=
"#development-course-modal"
>
*
ngIf=
"currentModal=='add'||currentModal=='edit'"
data-hs-overlay=
"#development-course-modal"
>
<span
class=
"sr-only"
>
Close
</span>
<i
class=
"ti ti-circle-x fs-xxl"
></i>
</button>
...
...
@@ -311,11 +315,11 @@
<p
class=
"mt-1 text-gray-800 dark:text-white/70"
*
ngIf=
"currentModal=='delete'||currentModal=='deleteGroup'"
>
<ng-container
*
ngIf=
"numDataListChecked"
>
ยืนยันการลบข้อมูลหรือไม่
</ng-container>
<ng-container
*
ngIf=
"!numDataListChecked"
>
เลือกข้อมูลที่ต้องการลบ
</ng-container>
ยืนยันการลบข้อมูลหรือไม่
</ng-container>
<ng-container
*
ngIf=
"!numDataListChecked"
>
เลือกข้อมูลที่ต้องการลบ
</ng-container>
</p>
<div
class=
"flex justify-end mt-2rem mb-1rem"
*
ngIf=
"currentModal=='add'||currentModal=='edit'"
>
...
...
@@ -337,7 +341,8 @@
ย้อนกลับ
</button>
<a
class=
"ti-btn ti-btn-danger"
href=
"javascript:void(0);"
data-hs-overlay=
"#development-course-alert-modal"
(
click
)="
updateCompetencyCourse
('
delete
')"
*
ngIf=
"numDataListChecked"
>
data-hs-overlay=
"#development-course-alert-modal"
(
click
)="
updateCompetencyCourse
('
delete
')"
*
ngIf=
"numDataListChecked"
>
ลบข้อมูล
</a>
</div>
...
...
src/app/components/competency-assessment/course-registration/development-course/development-course.component.ts
View file @
d98800ca
...
...
@@ -171,4 +171,8 @@ export class DevelopmentCourseComponent {
this
.
selectCompetencycourse
(
new
MyCompetencyCourseModel
({
competencyCourseId
:
this
.
competencyCourse
.
select
.
competencyCourseId
}))
}
}
checkPrimary
()
{
return
this
.
competencyCourse
.
dataList
.
find
(
x
=>
x
.
data
.
competencyCourseId
==
this
.
competencyCourse
.
select
.
competencyCourseId
)
}
}
src/app/components/competency-assessment/evaluation-cycle-manager/define-document-form/define-document-form.component.html
View file @
d98800ca
...
...
@@ -192,11 +192,11 @@
</div>
</div>
<div
class=
"ti-modal-body padding-16px pt-0 overflow-y-0"
>
<!-- <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"
[ngClass]="{'bg-input-readonly':modalStatus=='edit'}" [readonly]="modalStatus=='edit'"
[(ngModel)]="dataSelect.code">
<label for="detail_th" class="ti-form-label mt-2rem">รายละเอียดฝ่าย (ไทย)
<span class="text-danger">*</span></label>
<label for="detail_th" class="ti-form-label mt-2rem">รายละเอียดฝ่าย (ไทย)<span class="text-danger">*</span></label>
<input type="text" id="detail_th" class="ti-form-input h-16" [(ngModel)]="dataSelect.period">
<label for="detail_eng" class="ti-form-label mt-2rem">รายละเอียดฝ่าย (อังกฤษ)</label>
<input type="text" id="detail_eng" class="ti-form-input h-16">
...
...
src/app/components/competency-assessment/evaluation-cycle-manager/evaluation-cycle/evaluation-cycle.component.html
View file @
d98800ca
...
...
@@ -254,8 +254,10 @@
</div>
</div>
<div
class=
"ti-modal-body padding-16px pt-0 overflow-y-0"
>
<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"
>
*
<ng-container
*
ngIf=
"modalStatus=='add'&&checkPrimary()"
>
รหัสรอบการประเมินซ้ำ
</ng-container></span></label>
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input w-1/2"
[
ngClass
]="{'
bg-input-readonly
'
:modalStatus=
='edit'}"
[
readonly
]="
modalStatus=
='edit'"
[(
ngModel
)]="
evaluation_cycle
.
evaluationRoundId
"
>
...
...
@@ -342,9 +344,10 @@
data-hs-overlay=
"#evaluation-cycle-page-modal"
>
ย้อนกลับ
</button>
<button
type=
"button"
class=
"ti-btn ti-btn-success"
data-hs-overlay=
"#evaluation-cycle-page-alert-modal"
*
ngIf=
"modalStatusEdit"
[
class
.
ti-btn-disabled
]="!
evaluation_cycle
.
evaluationRoundId
||!
evaluation_cycle
.
tdesc
||!
evaluation_cycle
.
apsyear
||!
evaluation_cycle
.
apsPeriodStart
||!
evaluation_cycle
.
apsPeriodEnd
"
[
disabled
]="!
evaluation_cycle
.
evaluationRoundId
||!
evaluation_cycle
.
tdesc
||!
evaluation_cycle
.
apsyear
||!
evaluation_cycle
.
apsPeriodStart
||!
evaluation_cycle
.
apsPeriodEnd
"
>
<button
type=
"button"
class=
"ti-btn ti-btn-success"
data-hs-overlay=
"#evaluation-cycle-page-alert-modal"
*
ngIf=
"modalStatusEdit"
[
class
.
ti-btn-disabled
]="!
evaluation_cycle
.
evaluationRoundId
||!
evaluation_cycle
.
tdesc
||!
evaluation_cycle
.
apsyear
||!
evaluation_cycle
.
apsPeriodStart
||!
evaluation_cycle
.
apsPeriodEnd
||(
modalStatus=
='add'&&checkPrimary())"
[
disabled
]="!
evaluation_cycle
.
evaluationRoundId
||!
evaluation_cycle
.
tdesc
||!
evaluation_cycle
.
apsyear
||!
evaluation_cycle
.
apsPeriodStart
||!
evaluation_cycle
.
apsPeriodEnd
||(
modalStatus=
='add'&&checkPrimary())"
>
บันทึกข้อมูล
</button>
</div>
...
...
src/app/components/competency-assessment/evaluation-cycle-manager/evaluation-cycle/evaluation-cycle.component.ts
View file @
d98800ca
...
...
@@ -47,7 +47,7 @@ export class EvaluationCycleComponent {
(
this
.
currentDate
.
getFullYear
())
+
""
,
(
this
.
currentDate
.
getFullYear
()
+
1
)
+
""
,
]
modalStatusEdit
=
false
modalStatusEdit
=
false
constructor
(
private
evaluationCycleService
:
EvaluationCycleService
,
private
toastr
:
ToastrService
,
private
cdr
:
ChangeDetectorRef
,
...
...
@@ -269,6 +269,9 @@ export class EvaluationCycleComponent {
})
}
checkPrimary
()
{
return
this
.
evaluation_cyclelist
.
find
(
x
=>
x
.
data
.
evaluationRoundId
==
this
.
evaluation_cycle
.
evaluationRoundId
)
}
}
src/app/components/competency-assessment/grade-registration/grade-management/sub-grade-registration/sub-grade-registration.component.html
View file @
d98800ca
...
...
@@ -183,7 +183,7 @@
</div>
</div>
<div
class=
"ti-modal-body"
>
<label
class=
"ti-form-label "
>
รหัสเกรด
<span
class=
"text-danger"
>
*
</span></label>
<label
class=
"ti-form-label "
>
รหัสเกรด
<span
class=
"text-danger"
>
*
</span></label>
<div
class=
"flex"
>
<div
class=
"relative flex rounded-md"
>
<input
type=
"text"
id=
"hs-leading-button-add-on-with-icon-and-button"
...
...
@@ -209,7 +209,7 @@
</div>
<div
class=
"flex justify-between mt-2rem space-x-4"
>
<div
class=
"w-1/2 pr-2"
>
<label
class=
"ti-form-label"
>
กำหนดเกรด
<span
class=
"text-danger"
>
*
</span></label>
<label
class=
"ti-form-label"
>
กำหนดเกรด
<span
class=
"text-danger"
>
*
</span></label>
<div
class=
"relative flex rounded-md"
>
<input
type=
"text"
id=
"hs-leading-button-add-on-with-icon-and-button"
name=
"hs-leading-button-add-on-with-icon-and-button"
...
...
@@ -230,7 +230,7 @@
</div>
<div
class=
"flex justify-between mt-2rem space-x-4"
>
<div
class=
"w-1/2 pr-2"
>
<label
class=
"ti-form-label"
>
คะแนนต่ำสุด
<span
class=
"text-danger"
>
*
</span></label>
<label
class=
"ti-form-label"
>
คะแนนต่ำสุด
<span
class=
"text-danger"
>
*
</span></label>
<div
class=
"relative flex rounded-md"
>
<input
type=
"text"
id=
"hs-leading-button-add-on-with-icon-and-button"
name=
"hs-leading-button-add-on-with-icon-and-button"
...
...
@@ -240,7 +240,7 @@
</div>
</div>
<div
class=
"w-1/2 pl-2"
>
<label
class=
"ti-form-label"
>
คะแนนสูงสุด
<span
class=
"text-danger"
>
*
</span></label>
<label
class=
"ti-form-label"
>
คะแนนสูงสุด
<span
class=
"text-danger"
>
*
</span></label>
<div
class=
"relative flex rounded-md"
>
<input
type=
"text"
id=
"hs-leading-button-add-on-with-icon-and-button"
name=
"hs-leading-button-add-on-with-icon-and-button"
...
...
src/app/components/competency-assessment/name-registration/competency-topic/competency-topic.component.html
View file @
d98800ca
...
...
@@ -205,11 +205,15 @@
</div>
</div>
<div
class=
"ti-modal-body mt-1"
>
<label
for=
"input-label"
class=
"ti-form-label"
>
รหัส
<span
class=
"text-danger"
>
*
</span></label>
<label
for=
"input-label"
class=
"ti-form-label"
>
รหัส
<span
class=
"text-danger"
>
*
<ng-container
*
ngIf=
"modalStatus=='add'&&checkPrimary()"
>
รหัสซ้ำ
</ng-container></span></label>
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input w-1/2"
[
ngClass
]="{'
bg-input-readonly
'
:modalStatus=
='edit'}"
[
readonly
]="
modalStatus=
='edit'"
[(
ngModel
)]="
dataSelect
.
id
"
>
<label
for=
"detail_th"
class=
"ti-form-label mt-2rem"
>
ชื่อหัวข้อ (ไทย)
<span
class=
"text-danger"
>
*
</span></label>
<label
for=
"detail_th"
class=
"ti-form-label mt-2rem"
>
ชื่อหัวข้อ (ไทย)
<span
class=
"text-danger"
>
*
</span></label>
<input
type=
"text"
id=
"detail_th"
class=
"ti-form-input h-10"
[(
ngModel
)]="
dataSelect
.
name
"
>
<label
for=
"detail_eng"
class=
"ti-form-label mt-2rem"
>
ชื่อหัวข้อ (อังกฤษ)
</label>
<input
type=
"text"
id=
"detail_eng"
class=
"ti-form-input h-10"
[(
ngModel
)]="
dataSelect
.
edesc
"
>
...
...
@@ -229,7 +233,8 @@
(
click
)="
dataSelect
.
type
.
code=
''
"
>
<i
class=
"ti ti-circle-x cursor-pointer"
></i>
</button>
<button
type=
"button"
class=
"flex items-center text-gray-500 dark:text-white/70"
(
click
)="
searchCompetencytypeChange
()"
<button
type=
"button"
class=
"flex items-center text-gray-500 dark:text-white/70"
(
click
)="
searchCompetencytypeChange
()"
data-hs-overlay=
"#competency-topic-table-modal-select"
>
<i
class=
"ri-search-line cursor-pointer text-gray"
></i>
</button>
...
...
@@ -270,8 +275,8 @@
</button>
<button
type=
"button"
class=
"ti-btn ti-btn-success"
data-hs-overlay=
"#competency-topic-page-alert-modal"
[
class
.
ti-btn-disabled
]="!
dataSelect
.
id
||!
dataSelect
.
name
||!
dataSelect
.
type
.
code
"
[
disabled
]="!
dataSelect
.
id
||!
dataSelect
.
name
||!
dataSelect
.
type
.
code
"
>
[
class
.
ti-btn-disabled
]="!
dataSelect
.
id
||!
dataSelect
.
name
||!
dataSelect
.
type
.
code
||(
modalStatus=
='add'&&checkPrimary())
"
[
disabled
]="!
dataSelect
.
id
||!
dataSelect
.
name
||!
dataSelect
.
type
.
code
||(
modalStatus=
='add'&&checkPrimary())
"
>
บันทึกข้อมูล
</button>
</div>
...
...
@@ -617,7 +622,7 @@
data-hs-overlay=
"#competency-topic-page-alert-modal"
>
ย้อนกลับ
</button>
<a
class=
"ti-btn ti-btn-danger"
href=
"javascript:void(0);"
*
ngIf=
"numDataListChecked"
<a
class=
"ti-btn ti-btn-danger"
href=
"javascript:void(0);"
*
ngIf=
"numDataListChecked"
data-hs-overlay=
"#competency-topic-page-alert-modal"
(
click
)="
deleteCompetency_topic
()"
>
ลบข้อมูล
</a>
...
...
src/app/components/competency-assessment/name-registration/competency-topic/competency-topic.component.ts
View file @
d98800ca
...
...
@@ -324,4 +324,8 @@ export class CompetencyTopic {
this
.
numDataListChecked
=
this
.
competoncyTopicList
.
filter
(
x
=>
x
.
check
).
length
;
this
.
isDataListChecked
=
Boolean
(
this
.
numDataListChecked
)
}
checkPrimary
()
{
return
this
.
competoncyTopicList
.
find
(
x
=>
x
.
data
.
id
==
this
.
dataSelect
.
id
)
}
}
src/app/components/competency-assessment/name-registration/type-registration/type-registration.component.html
View file @
d98800ca
...
...
@@ -205,17 +205,22 @@
</div>
</div>
<div
class=
"ti-modal-body"
style=
"padding-top: 0px;"
>
<label
for=
"input-label"
class=
"ti-form-label mt-1rem"
>
รหัส
<span
class=
"text-danger"
>
*
</span></label>
<label
for=
"input-label"
class=
"ti-form-label mt-1rem"
>
รหัส
<span
class=
"text-danger"
>
*
<ng-container
*
ngIf=
"modalStatus=='add'&&checkPrimary()"
>
รหัสซ้ำ
</ng-container></span></label>
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input w-1/2"
[
ngClass
]="{'
bg-input-readonly
'
:modalStatus=
='edit'}"
[
readonly
]="
modalStatus=
='edit'"
[(
ngModel
)]="
dataSelect
.
id
"
>
<label
for=
"detail_th"
class=
"ti-form-label mt-1rem"
>
ชื่อประเภท (ไทย)
<span
class=
"text-danger"
>
*
</span></label>
<label
for=
"detail_th"
class=
"ti-form-label mt-1rem"
>
ชื่อประเภท (ไทย)
<span
class=
"text-danger"
>
*
</span></label>
<input
type=
"text"
id=
"detail_th"
class=
"ti-form-input w-2/3"
[(
ngModel
)]="
dataSelect
.
name
"
>
<label
for=
"detail_eng"
class=
"ti-form-label mt-1rem"
>
ชื่อประเภท (อังกฤษ)
</label>
<input
type=
"text"
id=
"detail_eng"
class=
"ti-form-input w-2/3"
[(
ngModel
)]="
dataSelect
.
edesc
"
>
<label
for=
"detail_eng"
class=
"ti-form-label mt-1rem"
>
ชื่อย่อ
<span
class=
"text-danger"
>
*
</span></label>
<label
for=
"detail_eng"
class=
"ti-form-label mt-1rem"
>
ชื่อย่อ
<span
class=
"text-danger"
>
*
</span></label>
<input
type=
"text"
id=
"detail_eng"
class=
"ti-form-input w-2/3"
[(
ngModel
)]="
dataSelect
.
code
"
>
<label
for=
"detail_eng"
class=
"ti-form-label mt-1rem"
>
ระดับความคาดหวัง
<span
class=
"text-danger"
>
*
</span></label>
<label
for=
"detail_eng"
class=
"ti-form-label mt-1rem"
>
ระดับความคาดหวัง
<span
class=
"text-danger"
>
*
</span></label>
<input
type=
"text"
id=
"detail_eng"
class=
"ti-form-input"
style=
"width: 200px;"
oninput=
"this.value = this.value.replace(/\D/g, '')"
[(
ngModel
)]="
dataSelect
.
level
"
>
<label
for=
"detail_eng"
class=
"ti-form-label mt-1rem"
>
น้ำหนัก
</label>
...
...
@@ -231,8 +236,8 @@
</button>
<button
type=
"button"
class=
"ti-btn ti-btn-success"
data-hs-overlay=
"#type-registration-component-page-alert-modal"
[
class
.
ti-btn-disabled
]="!
dataSelect
.
id
||!
dataSelect
.
name
||!
dataSelect
.
code
||!
dataSelect
.
level
"
[
disabled
]="!
dataSelect
.
id
||!
dataSelect
.
name
||!
dataSelect
.
code
||!
dataSelect
.
level
"
>
[
class
.
ti-btn-disabled
]="!
dataSelect
.
id
||!
dataSelect
.
name
||!
dataSelect
.
code
||!
dataSelect
.
level
||(
modalStatus=
='add'&&checkPrimary())
"
[
disabled
]="!
dataSelect
.
id
||!
dataSelect
.
name
||!
dataSelect
.
code
||!
dataSelect
.
level
||(
modalStatus=
='add'&&checkPrimary())
"
>
บันทึกข้อมูล
</button>
</div>
...
...
@@ -299,7 +304,7 @@
data-hs-overlay=
"#type-registration-component-page-alert-modal"
>
ย้อนกลับ
</button>
<a
class=
"ti-btn ti-btn-danger"
href=
"javascript:void(0);"
*
ngIf=
"numDataListChecked"
<a
class=
"ti-btn ti-btn-danger"
href=
"javascript:void(0);"
*
ngIf=
"numDataListChecked"
data-hs-overlay=
"#type-registration-component-page-alert-modal"
(
click
)="
deleteType_registration
()"
>
ลบข้อมูล
...
...
src/app/components/competency-assessment/name-registration/type-registration/type-registration.component.ts
View file @
d98800ca
...
...
@@ -208,5 +208,9 @@ export class TypeRegistration {
this
.
setData
({
id
:
this
.
dataSelect
.
id
,
companyId
:
""
,
name
:
""
,
edesc
:
""
,
code
:
""
,
level
:
""
,
weight
:
0.00
,
checked
:
this
.
dataSelect
.
checked
})
}
}
checkPrimary
()
{
return
this
.
competoncy_typeList
.
find
(
x
=>
x
.
data
.
id
==
this
.
dataSelect
.
id
)
}
}
src/app/components/competency-assessment/tool-register/assessment-tool/assessment-tool.component.html
View file @
d98800ca
...
...
@@ -245,15 +245,20 @@
</div>
</div>
<div
class=
"ti-modal-body"
style=
"padding-top: 0px;"
>
<label
for=
"input-label"
class=
"ti-form-label mt-1rem"
>
รหัส
<span
class=
"text-danger"
>
*
</span></label>
<label
for=
"input-label"
class=
"ti-form-label mt-1rem"
>
รหัส
<span
class=
"text-danger"
>
*
<ng-container
*
ngIf=
"currentModal=='add'&&checkPrimary()"
>
รหัสซ้ำ
</ng-container></span></label>
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input w-1/2"
[
ngClass
]="{'
bg-input-readonly
'
:currentModal=
='edit'}"
[
readonly
]="
currentModal=
='edit'"
[(
ngModel
)]="
assessment
.
select
.
assessmentId
"
>
<label
for=
"detail_th"
class=
"ti-form-label mt-1rem"
>
ชื่อเครื่องมือประเมิน (ไทย)
<span
class=
"text-danger"
>
*
</span></label>
<label
for=
"detail_th"
class=
"ti-form-label mt-1rem"
>
ชื่อเครื่องมือประเมิน (ไทย)
<span
class=
"text-danger"
>
*
</span></label>
<input
type=
"text"
id=
"detail_th"
class=
"ti-form-input w-full"
[(
ngModel
)]="
assessment
.
select
.
tdesc
"
>
<label
for=
"detail_eng"
class=
"ti-form-label mt-1rem"
>
ชื่อเครื่องมือประเมิน (อังกฤษ)
</label>
<input
type=
"text"
id=
"detail_eng"
class=
"ti-form-input w-full"
[(
ngModel
)]="
assessment
.
select
.
edesc
"
>
<label
for=
"detail_eng"
class=
"ti-form-label mt-1rem"
>
ชื่อที่ใช้เเสดง
<span
class=
"text-danger"
>
*
</span></label>
<label
for=
"detail_eng"
class=
"ti-form-label mt-1rem"
>
ชื่อที่ใช้เเสดง
<span
class=
"text-danger"
>
*
</span></label>
<input
type=
"text"
id=
"showname"
class=
"ti-form-input w-full"
[(
ngModel
)]="
assessment
.
select
.
shortName
"
>
<div
class=
"flex justify-end mt-2rem mb-1rem"
>
<button
type=
"button"
...
...
@@ -262,8 +267,8 @@
ย้อนกลับ
</button>
<button
type=
"button"
class=
"ti-btn ti-btn-success"
data-hs-overlay=
"#assessment-tool-alert-modal"
[
class
.
ti-btn-disabled
]="!
assessment
.
select
.
assessmentId
||!
assessment
.
select
.
tdesc
||!
assessment
.
select
.
shortName
"
[
disabled
]="!
assessment
.
select
.
assessmentId
||!
assessment
.
select
.
tdesc
||!
assessment
.
select
.
shortName
"
>
[
class
.
ti-btn-disabled
]="!
assessment
.
select
.
assessmentId
||!
assessment
.
select
.
tdesc
||!
assessment
.
select
.
shortName
||(
currentModal=
='add'&&checkPrimary())
"
[
disabled
]="!
assessment
.
select
.
assessmentId
||!
assessment
.
select
.
tdesc
||!
assessment
.
select
.
shortName
||(
currentModal=
='add'&&checkPrimary())
"
>
บันทึกข้อมูล
</button>
</div>
...
...
@@ -301,11 +306,11 @@
<p
class=
"mt-1 text-gray-800 dark:text-white/70"
*
ngIf=
"currentModal=='delete'||currentModal=='deleteGroup'"
>
<ng-container
*
ngIf=
"numDataListChecked"
>
ยืนยันการลบข้อมูลหรือไม่
</ng-container>
<ng-container
*
ngIf=
"!numDataListChecked"
>
เลือกข้อมูลที่ต้องการลบ
</ng-container>
ยืนยันการลบข้อมูลหรือไม่
</ng-container>
<ng-container
*
ngIf=
"!numDataListChecked"
>
เลือกข้อมูลที่ต้องการลบ
</ng-container>
</p>
<div
class=
"flex justify-end mt-2rem mb-1rem"
*
ngIf=
"currentModal=='add'||currentModal=='edit'"
>
<button
type=
"button"
...
...
@@ -325,8 +330,8 @@
data-hs-overlay=
"#assessment-tool-alert-modal"
>
ย้อนกลับ
</button>
<button
type=
"button"
class=
"ti-btn ti-btn-danger"
data-hs-overlay=
"#assessment-tool-alert-modal"
*
ngIf=
"numDataListChecked"
(
click
)="
updateAssessment
('
delete
')"
>
<button
type=
"button"
class=
"ti-btn ti-btn-danger"
data-hs-overlay=
"#assessment-tool-alert-modal"
*
ngIf=
"numDataListChecked"
(
click
)="
updateAssessment
('
delete
')"
>
ลบข้อมูล
</button>
</div>
...
...
src/app/components/competency-assessment/tool-register/assessment-tool/assessment-tool.component.ts
View file @
d98800ca
...
...
@@ -180,5 +180,9 @@ export class AssessmentToolComponent {
this
.
numDataListChecked
=
this
.
assessment
.
dataList
.
filter
(
x
=>
x
.
check
).
length
;
this
.
isDataListChecked
=
Boolean
(
this
.
numDataListChecked
)
}
checkPrimary
()
{
return
this
.
assessment
.
dataList
.
find
(
x
=>
x
.
data
.
assessmentId
==
this
.
assessment
.
select
.
assessmentId
)
}
}
src/app/components/performance-management-evaluation/assessment-management/assigning-approvers/assigning-approvers.component.html
View file @
d98800ca
...
...
@@ -130,7 +130,7 @@
</div>
</div>
<div
class=
"ti-modal-body mt-1"
>
<label
for=
"input-label"
class=
"ti-form-label"
>
ชื่อพนักงาน
<span
class=
"text-danger"
>
*
</span></label>
<label
for=
"input-label"
class=
"ti-form-label"
>
ชื่อพนักงาน
<span
class=
"text-danger"
>
*
</span></label>
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input w-1/2 bg-input-readonly"
readonly
[
value
]="
groupapprove
.
apsassessy
.
fname
+
'
'
+
groupapprove
.
apsassessy
.
lname
"
>
<label
for=
"input-label"
class=
"ti-form-label mt-2rem"
>
ระดับพนักงาน
</label>
...
...
src/app/components/performance-management-evaluation/evaluation-cycle-performance/document-form/document-form.component.html
View file @
d98800ca
...
...
@@ -172,11 +172,11 @@
</div>
</div>
<div
class=
"ti-modal-body padding-16px pt-0 overflow-y-0"
>
<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"
[
ngClass
]="{'
bg-input-readonly
'
:modalStatus=
='edit'}"
[
readonly
]="
modalStatus=
='edit'"
[(
ngModel
)]="
dataSelect
.
code
"
>
<label
for=
"detail_th"
class=
"ti-form-label mt-2rem"
>
รายละเอียดฝ่าย (ไทย)
<span
class=
"text-danger"
>
*
</span></label>
<label
for=
"detail_th"
class=
"ti-form-label mt-2rem"
>
รายละเอียดฝ่าย (ไทย)
<span
class=
"text-danger"
>
*
</span></label>
<input
type=
"text"
id=
"detail_th"
class=
"ti-form-input h-16"
[(
ngModel
)]="
dataSelect
.
period
"
>
<label
for=
"detail_eng"
class=
"ti-form-label mt-2rem"
>
รายละเอียดฝ่าย (อังกฤษ)
</label>
<input
type=
"text"
id=
"detail_eng"
class=
"ti-form-input h-16"
>
...
...
src/app/components/performance-management-evaluation/evaluation-cycle-performance/management-evaluation-cycle/management-evaluation-cycle.component.html
View file @
d98800ca
...
...
@@ -255,8 +255,10 @@
</div>
</div>
<div
class=
"ti-modal-body padding-16px pt-0 overflow-y-0"
>
<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"
>
*
<ng-container
*
ngIf=
"modalStatus=='add'&&checkPrimary()"
>
รหัสรอบการประเมินซ้ำ
</ng-container></span></label>
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input w-1/2"
[
ngClass
]="{'
bg-input-readonly
'
:modalStatus=
='edit'}"
[
readonly
]="
modalStatus=
='edit'"
[(
ngModel
)]="
pmsMasfromEvaluation
.
pmsEvaluationRoundId
"
>
...
...
@@ -340,8 +342,8 @@
</button>
<button
type=
"button"
class=
"ti-btn ti-btn-success"
data-hs-overlay=
"#management-evaluation-cycle-page-alert-modal"
*
ngIf=
"modalStatusEdit"
[
class
.
ti-btn-disabled
]="!
pmsMasfromEvaluation
.
pmsEvaluationRoundId
||!
pmsMasfromEvaluation
.
tdesc
||!
pmsMasfromEvaluation
.
apsyear
||!
pmsMasfromEvaluation
.
apsPeriodStart
||!
pmsMasfromEvaluation
.
apsPeriodEnd
"
[
disabled
]="!
pmsMasfromEvaluation
.
pmsEvaluationRoundId
||!
pmsMasfromEvaluation
.
tdesc
||!
pmsMasfromEvaluation
.
apsyear
||!
pmsMasfromEvaluation
.
apsPeriodStart
||!
pmsMasfromEvaluation
.
apsPeriodEnd
"
>
[
class
.
ti-btn-disabled
]="!
pmsMasfromEvaluation
.
pmsEvaluationRoundId
||!
pmsMasfromEvaluation
.
tdesc
||!
pmsMasfromEvaluation
.
apsyear
||!
pmsMasfromEvaluation
.
apsPeriodStart
||!
pmsMasfromEvaluation
.
apsPeriodEnd
||(
modalStatus=
='add'&&checkPrimary())
"
[
disabled
]="!
pmsMasfromEvaluation
.
pmsEvaluationRoundId
||!
pmsMasfromEvaluation
.
tdesc
||!
pmsMasfromEvaluation
.
apsyear
||!
pmsMasfromEvaluation
.
apsPeriodStart
||!
pmsMasfromEvaluation
.
apsPeriodEnd
||(
modalStatus=
='add'&&checkPrimary())
"
>
บันทึกข้อมูล
</button>
</div>
...
...
src/app/components/performance-management-evaluation/evaluation-cycle-performance/management-evaluation-cycle/management-evaluation-cycle.component.ts
View file @
d98800ca
...
...
@@ -48,7 +48,7 @@ export class ManagementCycleComponent {
(
this
.
currentDate
.
getFullYear
()
+
1
)
+
""
,
]
modalStatusEdit
=
false
modalStatusEdit
=
false
constructor
(
private
pmsMasfromEvaluationCycleService
:
PmsMasfromEvaluationCycleService
,
private
toastr
:
ToastrService
,
private
cdr
:
ChangeDetectorRef
,
...
...
@@ -155,7 +155,7 @@ export class ManagementCycleComponent {
addPmsMasfromEvaluation
()
{
if
(
this
.
pmsMasfromEvaluation
.
personalLevel
.
length
==
0
)
{
this
.
plListFilter
().
forEach
(
x
=>
this
.
selectPl
(
x
))
}
}
const
body
=
new
MyPmsMasfromEvaluationModel
(
this
.
pmsMasfromEvaluation
)
this
.
dataLoading
=
true
this
.
pmsMasfromEvaluationCycleService
.
post
(
body
).
subscribe
({
...
...
@@ -255,20 +255,24 @@ export class ManagementCycleComponent {
})
this
.
pmsMasfromEvaluationCycleService
.
postCreateForm
(
body
).
subscribe
({
next
:
response
=>
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
this
.
getPmsMasfromEvaluationCycleList
()
}
else
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
this
.
getPmsMasfromEvaluationCycleList
()
}
else
{
this
.
dataLoading
=
false
this
.
showAlert
(
response
.
message
,
'error'
)
this
.
cdr
.
detectChanges
()
}
},
error
:
error
=>
{
this
.
showAlert
(
error
.
message
,
'error'
)
this
.
dataLoading
=
false
this
.
showAlert
(
response
.
message
,
'error'
)
this
.
cdr
.
detectChanges
()
}
},
error
:
error
=>
{
this
.
showAlert
(
error
.
message
,
'error'
)
this
.
dataLoading
=
false
this
.
cdr
.
detectChanges
()
}
})
})
}
checkPrimary
()
{
return
this
.
pmsMasfromEvaluationlist
.
find
(
x
=>
x
.
data
.
pmsEvaluationRoundId
==
this
.
pmsMasfromEvaluation
.
pmsEvaluationRoundId
)
}
}
...
...
src/app/components/performance-management-evaluation/name-registration-perfomance/assessment-topics/assessment-topics.component.html
View file @
d98800ca
...
...
@@ -202,7 +202,10 @@
</div>
</div>
<div
class=
"ti-modal-body padding-16px pt-0 overflow-y-0"
>
<label
class=
"ti-form-label mt-2rem"
>
รหัส
<span
class=
"text-danger"
>
*
</span></label>
<label
class=
"ti-form-label mt-2rem"
>
รหัส
<span
class=
"text-danger"
>
*
<ng-container
*
ngIf=
"modalStatus=='add'&&checkPrimary()"
>
รหัสซ้ำ
</ng-container></span></label>
<input
type=
"text"
class=
"ti-form-input w-1/2"
[
ngClass
]="{'
bg-input-readonly
'
:modalStatus=
='edit'}"
[
readonly
]="
modalStatus=
='edit'"
[(
ngModel
)]="
pmstopic
.
select
.
pmsTopicId
"
>
<label
class=
"ti-form-label mt-2rem"
>
ประเภทการประเมินผล
<span
class=
"text-danger"
>
*
</span></label>
...
...
@@ -273,8 +276,8 @@
ย้อนกลับ
</button>
<button
type=
"button"
class=
"ti-btn ti-btn-success"
data-hs-overlay=
"#assessment-topics-alert-modal"
[
class
.
ti-btn-disabled
]="!
pmstopic
.
select
.
pmsTopicId
||!
pmstopic
.
select
.
pmsType
.
pmsTypeId
||!
pmstopic
.
select
.
tdesc
"
[
disabled
]="!
pmstopic
.
select
.
pmsTopicId
||!
pmstopic
.
select
.
pmsType
.
pmsTypeId
||!
pmstopic
.
select
.
tdesc
"
>
[
class
.
ti-btn-disabled
]="!
pmstopic
.
select
.
pmsTopicId
||!
pmstopic
.
select
.
pmsType
.
pmsTypeId
||!
pmstopic
.
select
.
tdesc
||(
modalStatus=
='add'&&checkPrimary())
"
[
disabled
]="!
pmstopic
.
select
.
pmsTopicId
||!
pmstopic
.
select
.
pmsType
.
pmsTypeId
||!
pmstopic
.
select
.
tdesc
||(
modalStatus=
='add'&&checkPrimary())
"
>
บันทึกข้อมูล
</button>
</div>
...
...
@@ -314,11 +317,11 @@
</ng-container>
<ng-container
*
ngIf=
"modalStatus=='delete'||modalStatus=='deleteGroup'"
>
<ng-container
*
ngIf=
"numDataListChecked"
>
ยืนยันการลบข้อมูลหรือไม่
</ng-container>
<ng-container
*
ngIf=
"!numDataListChecked"
>
เลือกข้อมูลที่ต้องการลบ
</ng-container>
ยืนยันการลบข้อมูลหรือไม่
</ng-container>
<ng-container
*
ngIf=
"!numDataListChecked"
>
เลือกข้อมูลที่ต้องการลบ
</ng-container>
</ng-container>
</p>
...
...
@@ -340,8 +343,8 @@
data-hs-overlay=
"#assessment-topics-alert-modal"
>
ย้อนกลับ
</button>
<a
class=
"ti-btn ti-btn-danger"
href=
"javascript:void(0);"
data-hs-overlay=
"#assessment-topics-alert-modal"
*
ngIf=
"numDataListChecked"
(
click
)="
updatePmstopic
('
delete
')"
>
<a
class=
"ti-btn ti-btn-danger"
href=
"javascript:void(0);"
data-hs-overlay=
"#assessment-topics-alert-modal"
*
ngIf=
"numDataListChecked"
(
click
)="
updatePmstopic
('
delete
')"
>
ลบข้อมูล
</a>
</ng-container>
...
...
src/app/components/performance-management-evaluation/name-registration-perfomance/assessment-topics/assessment-topics.component.ts
View file @
d98800ca
...
...
@@ -254,5 +254,8 @@ export class AssessmentTopicsComponent {
return
`
${
year
}
-
${
month
}
-
${
day
}
`
;
}
checkPrimary
()
{
return
this
.
pmstopic
.
dataList
.
find
(
x
=>
x
.
data
.
pmsTopicId
==
this
.
pmstopic
.
select
.
pmsTopicId
)
}
}
src/app/components/performance-management-evaluation/name-registration-perfomance/assessment-types/assessment-types.component.html
View file @
d98800ca
...
...
@@ -201,7 +201,7 @@
</div>
</div>
<div
class=
"ti-modal-body padding-16px pt-0 overflow-y-0"
>
<label
for=
"input-label"
class=
"ti-form-label mt-1rem"
>
รหัส
<span
class=
"text-danger"
>
*
</span></label>
<label
for=
"input-label"
class=
"ti-form-label mt-1rem"
>
รหัส
<span
class=
"text-danger"
>
*
</span></label>
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input w-1/2"
[
ngClass
]="{'
bg-input-readonly
'
:modalStatus=
='edit'}"
[
readonly
]="
modalStatus=
='edit'"
[(
ngModel
)]="
pmstype
.
select
.
pmsTypeId
"
>
...
...
src/app/components/performance-management-evaluation/pms-grade-registration/pms-grade-management/pms-grade-management.component.html
View file @
d98800ca
...
...
@@ -177,7 +177,7 @@
<ng-container
*
ngIf=
"typeTab"
>
<app-pms-group-grade
[
dataSelect
]="
dataSelect
"
[
typeTab
]="
typeTab
"
(
sendBackTab
)="
pathTitleChange
($
event
)"
<app-pms-group-grade
[
dataSelect
]="
dataSelect
"
[
dataList
]="
dataList
"
[
typeTab
]="
typeTab
"
(
sendBackTab
)="
pathTitleChange
($
event
)"
(
sendDataList
)="
dataList=
$event"
></app-pms-group-grade>
</ng-container>
...
...
src/app/components/performance-management-evaluation/pms-grade-registration/pms-grade-management/pms-group-grade/pms-group-grade.component.html
View file @
d98800ca
...
...
@@ -14,8 +14,9 @@
<div
class=
"flex justify-end"
>
<div
class=
"px-1"
>
<button
type=
"button"
class=
"ti-btn ti-btn-soft-success h-10 m-0 shadow-md"
[
ngClass
]="{'
ti-btn-disabled
'
:
!
dataSelect
.
code
||!
dataSelect
.
tdesc
}"
data-hs-overlay=
"#add-group-grade-alert-add-modal"
[
disabled
]="!
dataSelect
.
code
||!
dataSelect
.
tdesc
"
>
[
ngClass
]="{'
ti-btn-disabled
'
:
!
dataSelect
.
code
||!
dataSelect
.
tdesc
||(
typeTab=
='add'&&checkPrimary())}"
data-hs-overlay=
"#add-group-grade-alert-add-modal"
[
disabled
]="!
dataSelect
.
code
||!
dataSelect
.
tdesc
||(
typeTab=
='add'&&checkPrimary())"
>
<i
class=
"ri-save-3-line"
></i>
Save
</button>
...
...
@@ -65,10 +66,14 @@
<div
class=
"pt-50px"
>
<div
*
ngIf=
"currentTab==1"
id=
"card-type-1"
role=
"tabpanel"
aria-labelledby=
"card-type-item-1"
>
<div
class=
"page px-rem"
>
<label
for=
"input-label"
class=
"ti-form-label"
>
กำหนดรหัสกลุ่มเกรด
<span
class=
"text-danger"
>
*
</span></label>
<label
for=
"input-label"
class=
"ti-form-label"
>
กำหนดรหัสกลุ่มเกรด
<span
class=
"text-danger"
>
*
<ng-container
*
ngIf=
"typeTab=='add'&&checkPrimary()"
>
รหัสกลุ่มเกรดซ้ำ
</ng-container></span></label>
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input w-1/4"
[
readonly
]="
typeTab =
=
'
edit
'"
[
class
.
bg-input-readonly
]="
typeTab =
=
'
edit
'"
[(
ngModel
)]="
dataSelect
.
code
"
>
<label
for=
"detail_th"
class=
"ti-form-label mt-2rem"
>
รายละเอียด (ไทย)
<span
class=
"text-danger"
>
*
</span></label>
[
class
.!
bg-input-readonly
]="
typeTab =
=
'
edit
'"
[(
ngModel
)]="
dataSelect
.
code
"
>
<label
for=
"detail_th"
class=
"ti-form-label mt-2rem"
>
รายละเอียด (ไทย)
<span
class=
"text-danger"
>
*
</span></label>
<input
type=
"text"
id=
"detail_th"
class=
"ti-form-input w-1/2"
[(
ngModel
)]="
dataSelect
.
tdesc
"
>
<label
for=
"detail_eng"
class=
"ti-form-label mt-2rem"
>
รายละเอียด (อังกฤษ)
</label>
<input
type=
"text"
id=
"detail_eng"
class=
"ti-form-input w-1/2"
[(
ngModel
)]="
dataSelect
.
edesc
"
>
...
...
src/app/components/performance-management-evaluation/pms-grade-registration/pms-grade-management/pms-group-grade/pms-group-grade.component.ts
View file @
d98800ca
import
{
Component
,
EventEmitter
,
Input
,
Output
,
OnInit
,
ChangeDetectorRef
}
from
'@angular/core'
;
import
{
ToastrService
}
from
'ngx-toastr'
;
import
{
CompetencyGradeModel
}
from
'src/app/shared/model/competency-grades.model'
;
import
{
CompetencyGradeModel
,
MyCompetencyGradeModel
}
from
'src/app/shared/model/competency-grades.model'
;
import
{
MyPmsGroupGradeModel
}
from
'src/app/shared/model/pms-group-grade.model'
;
import
{
PmsGroupGradeService
}
from
'src/app/shared/services/pms-group-grade.service'
;
export
interface
DataModel
{
...
...
@@ -20,6 +20,7 @@ export class PmsGroupGradeComponent implements OnInit {
@
Output
()
sendBackTab
:
EventEmitter
<
undefined
>
=
new
EventEmitter
<
undefined
>
();
@
Input
()
typeTab
:
'add'
|
'edit'
=
'add'
@
Input
()
dataSelect
:
DataModel
=
{
check
:
false
,
code
:
''
,
tdesc
:
''
,
edesc
:
''
,
pmsGrade
:
[]
}
@
Input
()
dataList
:
DataModel
[]
=
[];
dataOriginal
:
DataModel
=
{
check
:
false
,
code
:
''
,
tdesc
:
''
,
edesc
:
''
,
pmsGrade
:
[]
}
@
Output
()
sendDataList
:
EventEmitter
<
DataModel
[]
>
=
new
EventEmitter
<
DataModel
[]
>
();
currentTab
=
1
...
...
@@ -70,5 +71,8 @@ export class PmsGroupGradeComponent implements OnInit {
});
}
checkPrimary
()
{
return
this
.
dataList
.
find
(
x
=>
x
.
code
==
this
.
dataSelect
.
code
)
}
}
src/app/components/performance-management-evaluation/pms-grade-registration/pms-grade-management/pms-sub-grade-registration/pms-sub-grade-registration.component.html
View file @
d98800ca
...
...
@@ -185,7 +185,7 @@
</div>
</div>
<div
class=
"ti-modal-body"
>
<label
class=
"ti-form-label "
>
รหัสเกรด
<span
class=
"text-danger"
>
*
</span></label>
<label
class=
"ti-form-label "
>
รหัสเกรด
<span
class=
"text-danger"
>
*
</span></label>
<div
class=
"flex"
>
<div
class=
"relative flex rounded-md"
>
<input
type=
"text"
id=
"hs-leading-button-add-on-with-icon-and-button"
...
...
@@ -211,7 +211,7 @@
</div>
<div
class=
"flex justify-between mt-2rem space-x-4"
>
<div
class=
"w-1/2 pr-2"
>
<label
class=
"ti-form-label"
>
กำหนดเกรด
<span
class=
"text-danger"
>
*
</span></label>
<label
class=
"ti-form-label"
>
กำหนดเกรด
<span
class=
"text-danger"
>
*
</span></label>
<div
class=
"relative flex rounded-md"
>
<input
type=
"text"
id=
"hs-leading-button-add-on-with-icon-and-button"
name=
"hs-leading-button-add-on-with-icon-and-button"
...
...
@@ -232,7 +232,7 @@
</div>
<div
class=
"flex justify-between mt-2rem space-x-4"
>
<div
class=
"w-1/2 pr-2"
>
<label
class=
"ti-form-label"
>
คะแนนต่ำสุด
<span
class=
"text-danger"
>
*
</span></label>
<label
class=
"ti-form-label"
>
คะแนนต่ำสุด
<span
class=
"text-danger"
>
*
</span></label>
<div
class=
"relative flex rounded-md"
>
<input
type=
"text"
id=
"hs-leading-button-add-on-with-icon-and-button"
name=
"hs-leading-button-add-on-with-icon-and-button"
...
...
@@ -242,7 +242,7 @@
</div>
</div>
<div
class=
"w-1/2 pl-2"
>
<label
class=
"ti-form-label"
>
คะแนนสูงสุด
<span
class=
"text-danger"
>
*
</span></label>
<label
class=
"ti-form-label"
>
คะแนนสูงสุด
<span
class=
"text-danger"
>
*
</span></label>
<div
class=
"relative flex rounded-md"
>
<input
type=
"text"
id=
"hs-leading-button-add-on-with-icon-and-button"
name=
"hs-leading-button-add-on-with-icon-and-button"
...
...
src/app/components/performance-management-evaluation/time-attendance/time-attendance-manage/time-attendance-manage.component.html
View file @
d98800ca
...
...
@@ -193,10 +193,12 @@
</div>
</div>
<div
class=
"ti-modal-body padding-16px pt-0 overflow-y-0"
>
<label
class=
"ti-form-label mt-2rem"
>
รหัส
<span
class=
"text-danger"
>
*
</span></label>
<label
class=
"ti-form-label mt-2rem"
>
รหัส
<span
class=
"text-danger"
>
*
<ng-container
*
ngIf=
"modalStatus=='add'&&checkPrimary()"
>
รหัสซ้ำ
</ng-container></span></label>
<input
type=
"text"
class=
"ti-form-input w-1/2"
[
ngClass
]="{'
bg-input-readonly
'
:modalStatus=
='edit'}"
[
readonly
]="
modalStatus=
='edit'"
[(
ngModel
)]="
pmsWorkingTime
.
select
.
pmsWorkingTimeId
"
>
<label
class=
"ti-form-label mt-2rem"
>
รหัสประเภทวัน
<span
class=
"text-danger"
>
*
</span></label>
<label
class=
"ti-form-label mt-2rem"
>
รหัสประเภทวัน
<span
class=
"text-danger"
>
*
</span></label>
<div
*
ngFor=
"let item of pmsWorkingTime.select.emeventgrp;let i = index;let f=first;let l = last"
class=
"grid grid-cols-2"
>
<div
class=
"col-span-1"
>
...
...
@@ -366,8 +368,8 @@
ย้อนกลับ
</button>
<button
type=
"button"
class=
"ti-btn ti-btn-success"
data-hs-overlay=
"#time-attendance-alert-modal"
[
class
.
ti-btn-disabled
]="!
pmsWorkingTime
.
select
.
pmsWorkingTimeId
||!
pmsWorkingTime
.
select
.
emeventgrp
.
length
||!
pmsWorkingTime
.
select
.
tdesc
"
[
disabled
]="!
pmsWorkingTime
.
select
.
pmsWorkingTimeId
||!
pmsWorkingTime
.
select
.
emeventgrp
.
length
||!
pmsWorkingTime
.
select
.
tdesc
"
>
[
class
.
ti-btn-disabled
]="!
pmsWorkingTime
.
select
.
pmsWorkingTimeId
||!
pmsWorkingTime
.
select
.
emeventgrp
.
length
||!
pmsWorkingTime
.
select
.
tdesc
||(
modalStatus=
='add'&&checkPrimary())
"
[
disabled
]="!
pmsWorkingTime
.
select
.
pmsWorkingTimeId
||!
pmsWorkingTime
.
select
.
emeventgrp
.
length
||!
pmsWorkingTime
.
select
.
tdesc
||(
modalStatus=
='add'&&checkPrimary())
"
>
บันทึกข้อมูล
</button>
</div>
...
...
src/app/components/performance-management-evaluation/time-attendance/time-attendance-manage/time-attendance-manage.component.ts
View file @
d98800ca
...
...
@@ -186,4 +186,8 @@ export class TimeAttendanceManageComponent {
positionClass
:
'toast-top-right'
,
})
}
checkPrimary
()
{
return
this
.
pmsWorkingTime
.
dataList
.
find
(
x
=>
x
.
data
.
pmsWorkingTimeId
==
this
.
pmsWorkingTime
.
select
.
pmsWorkingTimeId
)
}
}
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