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
66a890c0
Commit
66a890c0
authored
Aug 25, 2025
by
pantakan konthang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
แก้ปุ่ม PDF
parent
530c28df
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
15 deletions
+24
-15
pms-form-employee.component.html
...uation/pms-form-employee/pms-form-employee.component.html
+3
-3
pms-form-employee.component.ts
...aluation/pms-form-employee/pms-form-employee.component.ts
+0
-10
pms-idp.component.html
...aluation/pms-form-employee/pms-idp/pms-idp.component.html
+21
-2
pms-idp.component.ts
...evaluation/pms-form-employee/pms-idp/pms-idp.component.ts
+0
-0
No files found.
src/app/components/performance-evaluation/pms-form-employee/pms-form-employee.component.html
View file @
66a890c0
...
@@ -617,7 +617,7 @@
...
@@ -617,7 +617,7 @@
<app-pms-idp
[
currentTap
]="
currentTap
"
[
canSave
]="
canSave
"
[
appraisalIdp
]="
compentency
.
data
.
idp
"
<app-pms-idp
[
currentTap
]="
currentTap
"
[
canSave
]="
canSave
"
[
appraisalIdp
]="
compentency
.
data
.
idp
"
[
evaluaterId
]="
evaluaterId
"
[
evaluateeId
]="
evaluateeId
"
[
evaluaterId
]="
evaluaterId
"
[
evaluateeId
]="
evaluateeId
"
[
canEdit
]="
evaluationForm=
='sup'?canEdit:false"
[
currentStep
]="
compentency
.
data
.
currentStep
"
[
canEdit
]="
evaluationForm=
='sup'?canEdit:false"
[
currentStep
]="
compentency
.
data
.
currentStep
"
[
dateIso
]="
dateIso
"
(
idpForm
)="
compentency
.
data
.
idp=
$event"
[
complete
]="
complete
"
[
pdfPrint
]="
pdfPrint
"
(
pdfPrinted
)="
onPdfPrinted
()"
></app-pms-idp>
[
dateIso
]="
dateIso
"
(
idpForm
)="
compentency
.
data
.
idp=
$event"
[
complete
]="
complete
"
></app-pms-idp>
</div>
</div>
<ng-container
*
ngIf=
"compentency.data&&canSave"
>
<ng-container
*
ngIf=
"compentency.data&&canSave"
>
<div
class=
"box-footer text-end space-x-3 rtl:space-x-reverse"
<div
class=
"box-footer text-end space-x-3 rtl:space-x-reverse"
...
@@ -626,11 +626,11 @@
...
@@ -626,11 +626,11 @@
<textarea
type=
"text"
class=
"ti-form-input"
rows=
"2"
placeholder=
"ใส่ Comment ที่นี่"
<textarea
type=
"text"
class=
"ti-form-input"
rows=
"2"
placeholder=
"ใส่ Comment ที่นี่"
[(
ngModel
)]="
comment
"
></textarea>
[(
ngModel
)]="
comment
"
></textarea>
</div>
</div>
<button
(
click
)="
toggleStatusPdfPrint
()"
class=
"ti-btn m-0 ti-btn-soft-warning"
<
!-- <
button (click)="toggleStatusPdfPrint()" class="ti-btn m-0 ti-btn-soft-warning"
*ngIf="currentTap == 'แผนพัฒนาบุคลากร'">
*ngIf="currentTap == 'แผนพัฒนาบุคลากร'">
<i class="ri-draft-fill"></i>
<i class="ri-draft-fill"></i>
PDF
PDF
</button>
</button>
-->
<button
(
click
)="
save
('
approve
')"
class=
"ti-btn m-0 ti-btn-soft-secondary"
<button
(
click
)="
save
('
approve
')"
class=
"ti-btn m-0 ti-btn-soft-secondary"
[
disabled
]="
compentencyFormRemain
||
kpiFormRemain
"
[
disabled
]="
compentencyFormRemain
||
kpiFormRemain
"
[
class
.
ti-btn-disabled
]="
compentencyFormRemain
||
kpiFormRemain
"
>
[
class
.
ti-btn-disabled
]="
compentencyFormRemain
||
kpiFormRemain
"
>
...
...
src/app/components/performance-evaluation/pms-form-employee/pms-form-employee.component.ts
View file @
66a890c0
...
@@ -74,7 +74,6 @@ export class PmsFormEmployeeComponent {
...
@@ -74,7 +74,6 @@ export class PmsFormEmployeeComponent {
complete
=
false
complete
=
false
@
ViewChild
(
'scrollContainer'
)
scrollContainer
!
:
ElementRef
;
@
ViewChild
(
'scrollContainer'
)
scrollContainer
!
:
ElementRef
;
pdfPrint
=
false
;
constructor
(
constructor
(
private
router
:
Router
,
private
router
:
Router
,
...
@@ -760,13 +759,4 @@ export class PmsFormEmployeeComponent {
...
@@ -760,13 +759,4 @@ export class PmsFormEmployeeComponent {
imgElement
.
src
=
'./assets/img/users/defaultperson.jpg'
;
imgElement
.
src
=
'./assets/img/users/defaultperson.jpg'
;
}
}
toggleStatusPdfPrint
()
{
this
.
pdfPrint
=
!
this
.
pdfPrint
;
// สลับ true/false เพื่อให้ Child จับการเปลี่ยน
}
onPdfPrinted
()
{
// เมื่อ Child แจ้งว่าพิมพ์เสร็จ ให้รีเซ็ตกลับเป็น false
this
.
pdfPrint
=
false
;
}
}
}
src/app/components/performance-evaluation/pms-form-employee/pms-idp/pms-idp.component.html
View file @
66a890c0
...
@@ -2,10 +2,26 @@
...
@@ -2,10 +2,26 @@
<ng-template
#
idpEvaluation
>
<ng-template
#
idpEvaluation
>
<ng-container
*
ngIf=
"appraisalIdp"
>
<ng-container
*
ngIf=
"appraisalIdp"
>
<div
style=
"overflow-y: auto; padding-top: 1rem"
#
pdfArea
class=
"pdf-container"
>
<div
style=
"overflow-y: auto; padding-top: 1rem"
#
pdfArea
class=
"pdf-container"
>
<div
class=
"pb-2"
>
<!-- <ng-container *ngIf="pdfPrintCheck === 1">
<div *ngFor="let item of [1,2,3]" class="ti-spinner w-8 h-8 text-secondary mx-1"
role="status" aria-label="loading">
<span class="sr-only">Loading...</span>
</div>
</ng-container> -->
<ng-container>
<div
class=
"pb-2 flex justify-between items-center"
>
<div
class=
"font-size-18px font-weight-700 text-gray-500"
>
<div
class=
"font-size-18px font-weight-700 text-gray-500"
>
ส่วนที่ 1: ข้อมูลทั่วไป
ส่วนที่ 1: ข้อมูลทั่วไป
</div>
</div>
<!-- <button class="ti-btn m-0 ti-btn-soft-warning" *ngIf="pdfPrintCheck == 0" (click)="exportPdf()" >
<i class="ri-draft-fill"></i>
PDF
</button> -->
<button
class=
"ti-btn m-0 ti-btn-soft-warning"
data-html2canvas-ignore=
"true"
data-hide-in-pdf
(
click
)="
exportPdf
()"
>
<i
class=
"ri-draft-fill"
></i>
PDF
</button>
</div>
</div>
<div
class=
"pt-2 pb-2rem"
>
<div
class=
"pt-2 pb-2rem"
>
<div
class=
"flex flex-row gap-2 "
>
<div
class=
"flex flex-row gap-2 "
>
...
@@ -344,7 +360,7 @@
...
@@ -344,7 +360,7 @@
</ng-container>
</ng-container>
</ng-container>
</ng-container>
<ng-container
*
ngIf=
"pdfPrintCheck
== 1
"
>
<ng-container
*
ngIf=
"pdfPrintCheck
!= 0
"
>
{{convertDateFormat(appraisalIdp.masfromEvaluationRound.apsPeriodStart)}}
{{convertDateFormat(appraisalIdp.masfromEvaluationRound.apsPeriodStart)}}
<ng-container
<ng-container
*
ngIf=
"appraisalIdp.masfromEvaluationRound.apsPeriodStart &&appraisalIdp.masfromEvaluationRound.apsPeriodEnd"
>
*
ngIf=
"appraisalIdp.masfromEvaluationRound.apsPeriodStart &&appraisalIdp.masfromEvaluationRound.apsPeriodEnd"
>
...
@@ -361,6 +377,9 @@
...
@@ -361,6 +377,9 @@
</table>
</table>
</div>
</div>
</div>
</div>
</ng-container>
</div>
</div>
</ng-container>
</ng-container>
</ng-template>
</ng-template>
...
...
src/app/components/performance-evaluation/pms-form-employee/pms-idp/pms-idp.component.ts
View file @
66a890c0
This diff is collapsed.
Click to expand it.
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