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
2e80d1dd
Commit
2e80d1dd
authored
Jan 08, 2025
by
LAPTOP-CV4JFSHE\kantavee
Browse files
Options
Browse Files
Download
Plain Diff
เเก้ชน
parents
4a753109
cafbc44f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
393 additions
and
176 deletions
+393
-176
account-settings.component.html
...mponents/account-settings/account-settings.component.html
+3
-3
account-settings.component.ts
...components/account-settings/account-settings.component.ts
+1
-1
user-settings.component.html
...count-settings/user-settings/user-settings.component.html
+4
-4
employee-registration.component.html
...mployee-registration/employee-registration.component.html
+26
-0
employee-registration.component.scss
...mployee-registration/employee-registration.component.scss
+43
-0
employee-registration.component.ts
.../employee-registration/employee-registration.component.ts
+10
-0
sub-employee-registration.component.html
...yee-registration/sub-employee-registration.component.html
+0
-0
sub-employee-registration.component.scss
...yee-registration/sub-employee-registration.component.scss
+154
-0
sub-employee-registration.component.ts
...loyee-registration/sub-employee-registration.component.ts
+94
-0
job-description.component.html
...components/job-description/job-description.component.html
+5
-101
job-description.component.ts
...y-components/job-description/job-description.component.ts
+1
-1
edit-group-indicators.html
...rriculum/edit-group-indicators/edit-group-indicators.html
+1
-1
define-document-form.component.scss
.../define-document-form/define-document-form.component.scss
+0
-48
define-document-form.component.ts
...er/define-document-form/define-document-form.component.ts
+5
-6
dashboard-routing.module.ts
src/app/components/dashboard/dashboard-routing.module.ts
+4
-2
dashboard.module.ts
src/app/components/dashboard/dashboard.module.ts
+4
-0
assessment-management.component.html
...ssessment-management/assessment-management.component.html
+3
-3
assessment-management.component.ts
.../assessment-management/assessment-management.component.ts
+1
-1
assigning-approvers.component.ts
...ment/assigning-approvers/assigning-approvers.component.ts
+2
-2
document-form.component.ts
...ycle-performance/document-form/document-form.component.ts
+1
-1
evaluation-cycle-performance.component.html
...e-performance/evaluation-cycle-performance.component.html
+2
-2
navservice.ts
src/app/shared/services/navservice.ts
+1
-0
style.css
src/assets/css/style.css
+28
-0
No files found.
src/app/components/company-components/account-settings/account-settings.component.html
View file @
2e80d1dd
...
...
@@ -41,17 +41,17 @@
<nav
class=
"-mb-0.5 flex space-x-6 rtl:space-x-reverse"
>
<a
class=
"text-base font-medium hs-tab-active:text-lg hs-tab-active:font-bold hs-tab-active:border-secondary hs-tab-active:text-secondary pb-3 inline-flex items-center gap-2 border-b-[3px] border-transparent whitespace-nowrap text-gray-500 dark:text-white/70 hover:text-secondary active"
href=
"javascript:void(0);"
id=
"underline-item-1"
data-hs-tab=
"#underline-1"
aria-controls=
"underline-1"
(
click
)="
pathTitle =
['ตั้งค่าผู้ใช้งาน','สร้างชื่อผู้ใช้งาน']"
>
aria-controls=
"underline-1"
(
click
)="
pathTitle =
['
การจัดการข้อมูลองค์กร',
'
ตั้งค่าผู้ใช้งาน','สร้างชื่อผู้ใช้งาน']"
>
สร้างชื่อผู้ใช้งาน
</a>
<a
class=
"text-base font-medium hs-tab-active:text-lg hs-tab-active:font-bold hs-tab-active:border-secondary hs-tab-active:text-secondary pb-3 px-1 inline-flex items-center gap-2 border-b-[3px] border-transparent whitespace-nowrap text-gray-500 dark:text-white/70 hover:text-secondary"
href=
"javascript:void(0);"
id=
"underline-item-2"
data-hs-tab=
"#underline-2"
aria-controls=
"underline-2"
(
click
)="
pathTitle =
['ตั้งค่าผู้ใช้งาน','กำหนดรหัสผ่าน']"
>
aria-controls=
"underline-2"
(
click
)="
pathTitle =
['
การจัดการข้อมูลองค์กร',
'
ตั้งค่าผู้ใช้งาน','กำหนดรหัสผ่าน']"
>
กำหนดรหัสผ่าน
</a>
<a
class=
"text-base font-medium hs-tab-active:text-lg hs-tab-active:font-bold hs-tab-active:border-secondary hs-tab-active:text-secondary pb-3 px-1 inline-flex items-center gap-2 border-b-[3px] border-transparent whitespace-nowrap text-gray-500 dark:text-white/70 hover:text-secondary"
href=
"javascript:void(0);"
id=
"underline-item-3"
data-hs-tab=
"#underline-3"
aria-controls=
"underline-3"
(
click
)="
pathTitle =
['ตั้งค่าผู้ใช้งาน','จัดการผู้ใช้งาน']"
>
aria-controls=
"underline-3"
(
click
)="
pathTitle =
['
การจัดการข้อมูลองค์กร',
'
ตั้งค่าผู้ใช้งาน','จัดการผู้ใช้งาน']"
>
จัดการผู้ใช้งาน
</a>
</nav>
...
...
src/app/components/company-components/account-settings/account-settings.component.ts
View file @
2e80d1dd
...
...
@@ -6,5 +6,5 @@ import { Component } from '@angular/core';
styleUrls
:
[
'./account-settings.component.scss'
]
})
export
class
AccountSettingsComponent
{
pathTitle
=
[
'ตั้งค่าผู้ใช้งาน'
,
'สร้างชื่อผู้ใช้งาน'
]
pathTitle
=
[
'
การจัดการข้อมูลองค์กร'
,
'
ตั้งค่าผู้ใช้งาน'
,
'สร้างชื่อผู้ใช้งาน'
]
}
src/app/components/company-components/account-settings/user-settings/user-settings.component.html
View file @
2e80d1dd
...
...
@@ -202,7 +202,7 @@
</div>
</div>
</div>
<div
class=
"flex col-span-4 relative mt-2
relative
"
>
<div
class=
"flex col-span-4 relative mt-2"
>
<input
type=
"password"
class=
"ti-form-input bg-input-readonly"
disabled
placeholder=
""
>
</div>
</div>
...
...
@@ -220,7 +220,7 @@
</div>
</div>
</div>
<div
class=
"flex col-span-4 relative mt-2
relative
"
>
<div
class=
"flex col-span-4 relative mt-2"
>
<input
type=
"password"
class=
"ti-form-input bg-input-readonly"
disabled
placeholder=
""
>
</div>
</div>
...
...
@@ -316,7 +316,7 @@
</div>
</div>
</div>
<div
class=
"flex col-span-4 relative mt-2
relative
"
>
<div
class=
"flex col-span-4 relative mt-2"
>
<input
type=
"password"
class=
"ti-form-input bg-input-readonly"
disabled
placeholder=
""
>
</div>
</div>
...
...
@@ -334,7 +334,7 @@
</div>
</div>
</div>
<div
class=
"flex col-span-4 relative mt-2
relative
"
>
<div
class=
"flex col-span-4 relative mt-2"
>
<input
type=
"password"
class=
"ti-form-input bg-input-readonly"
disabled
placeholder=
""
>
</div>
</div>
...
...
src/app/components/company-components/employee-registration/employee-registration.component.html
0 → 100644
View file @
2e80d1dd
<app-page-header
[
pathTitle
]="
pathTitle
"
></app-page-header>
<div
class=
"bg-card-white"
>
</div>
<div
class=
"block-main-content"
>
<div
class=
"text-lg font-bold py-2 px-8 text-primary"
>
ทะเบียนพนักงาน
</div>
<div
class=
"page"
>
<div
class=
"border-b border-gray-200 dark:border-white/10 px-8"
>
<nav
class=
"-mb-0.5 flex space-x-6 rtl:space-x-reverse"
>
<a
class=
"text-base font-medium hs-tab-active:text-lg hs-tab-active:font-bold hs-tab-active:border-secondary hs-tab-active:text-secondary pb-3 inline-flex items-center gap-2 border-b-[3px] border-transparent whitespace-nowrap text-gray-500 dark:text-white/70 hover:text-secondary active"
href=
"javascript:void(0);"
id=
"underline-item-1"
data-hs-tab=
"#underline-1"
aria-controls=
"underline-1"
(
click
)="
pathTitle =
['การจัดการข้อมูลองค์กร','ตั้งค่าผู้ใช้งาน',
'ทะเบียนพนักงาน']"
>
ทะเบียนพนักงาน
</a>
</nav>
</div>
<div
class=
"mt-3 px-3rem"
>
<div
id=
"underline-1"
role=
"tabpanel"
aria-labelledby=
"underline-item-1"
>
<app-sub-employee-registration
[
pathTitle
]="
pathTitle
"
(
sendPathTitle
)="
pathTitle=
$event"
></app-sub-employee-registration>
</div>
</div>
</div>
</div>
\ No newline at end of file
src/app/components/company-components/employee-registration/employee-registration.component.scss
0 → 100644
View file @
2e80d1dd
/* สไตล์ของแถบเมนู */
.nav-tabs
{
display
:
flex
;
border-bottom
:
2px
solid
#ccc
;
/* เส้นใต้ */
border-top
:
2px
solid
#ccc
;
width
:
100%
;
cursor
:
pointer
;
border-top
:
2px
solid
#ccc
;
}
.nav-item
{
list-style
:
none
;
margin-right
:
40px
;
/* ช่องว่างระหว่างเมนู */
}
.nav-link
{
text-decoration
:
none
;
padding
:
10px
20px
;
display
:
inline-block
;
font-size
:
medium
;
text-align
:
left
;
padding-left
:
0px
;
padding-right
:
0px
;
}
.nav-link
:hover
{
background-color
:
#f0f0f0
;
/* เปลี่ยนสีเมื่อ hover */
}
.nav-link.active
{
color
:
#569bf5
;
/* สีตัวอักษรในสถานะ active */
font-size
:
medium
;
border-bottom
:
3
.5px
solid
#569bf5
;
/* เส้นใต้ */
}
.tab-content
{
margin-top
:
20px
;
}
.tab-pane.active
{
display
:
block
;
}
src/app/components/company-components/employee-registration/employee-registration.component.ts
0 → 100644
View file @
2e80d1dd
import
{
Component
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-employee-registration'
,
templateUrl
:
'./employee-registration.component.html'
,
styleUrls
:
[
'./employee-registration.component.scss'
]
})
export
class
EmployeeRegistrationComponent
{
pathTitle
=
[
'การจัดการข้อมูลองค์กร'
,
'ตั้งค่าผู้ใช้งาน'
,
'ทะเบียนพนักงาน'
]
}
src/app/components/company-components/employee-registration/sub-employee-registration/sub-employee-registration.component.html
0 → 100644
View file @
2e80d1dd
This diff is collapsed.
Click to expand it.
src/app/components/company-components/employee-registration/sub-employee-registration/sub-employee-registration.component.scss
0 → 100644
View file @
2e80d1dd
.button-clear
{
position
:
absolute
;
top
:
96px
;
z-index
:
1
;
right
:
41vw
;
}
.button-help
{
position
:
absolute
;
top
:
0px
;
z-index
:
1
;
right
:
0vw
;
margin
:
4
.2rem
;
margin-right
:
10px
;
/* เพิ่มใหม่ 12/16*/
}
table
.ti-custom-table
thead
{
height
:
50px
;
}
table
.ti-custom-table
thead
th
span
{
font-size
:
12px
;
font-weight
:
bold
;
}
a
.custom-link
{
padding
:
10px
40px
;
/* ปรับ padding ให้เพิ่มขนาด */
}
/* สไตล์ของแถบเมนู */
.nav-tabs
{
display
:
flex
;
width
:
100%
;
cursor
:
pointer
;
margin-bottom
:
10px
;
height
:
20%
;
}
.nav-item
{
list-style
:
none
;
margin-right
:
10px
;
/* ช่องว่างระหว่างเมนู */
}
.nav-link
{
text-decoration
:
none
;
padding
:
10px
20px
;
display
:
inline-block
;
font-size
:
large
;
border-width
:
2px
2px
0px
2px
;
border-style
:
solid
;
border-color
:
#ccc
;
border-radius
:
5px
5px
0px
0px
;
}
.nav-link
:hover
{
background-color
:
#f0f0f0
;
/* เปลี่ยนสีเมื่อ hover */
}
.nav-link.active
{
color
:
#ffffff
;
/* สีตัวอักษรในสถานะ active */
font-size
:
large
;
border-bottom
:
3
.5px
solid
rgb
(
var
(
--
color-primary
));
/* เส้นใต้ */
background-color
:
rgb
(
var
(
--
color-primary
));
border-width
:
2px
2px
0px
2px
;
border-style
:
solid
;
border-color
:
rgb
(
var
(
--
color-primary
));
border-radius
:
5px
5px
0px
0px
;
}
.tab-content
{
margin-top
:
20px
;
}
.tab-pane.active
{
display
:
block
;
}
.nav-item-text
{
list-style
:
none
;
margin-right
:
10px
;
/* ช่องว่างระหว่างเมนู */
}
.nav-link-text
{
text-decoration
:
none
;
display
:
inline-block
;
font-size
:
large
;
color
:
#569bf5
;
border-bottom
:
2px
solid
#569bf5
;
line-height
:
0
.8
;
}
.ti-pagination
.page-link.active
{
background-color
:
#569bf5
;
color
:
white
;
border-radius
:
50%
;
padding
:
8px
12px
;
}
.box-body
{
padding
:
0rem
;
}
.page
{
min-height
:
0vh
;
}
.ti-modal-content
{
width
:
50%
;
position
:
absolute
;
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
max-height
:
90%
;
/* จำกัดความสูงให้อยู่ใน modal */
overflow-y
:
auto
;
/* เปิดการเลื่อนแนวตั้ง */
}
.ti-modal-body-content
{
display
:
flex
;
/* ใช้ flexbox เพื่อจัดตำแหน่ง */
justify-content
:
center
;
/* จัดฟอร์มให้อยู่กลางในแนวนอน */
flex-direction
:
column
;
/* ทำให้ฟอร์มแสดงผลในรูปแบบคอลัมน์ */
height
:
calc
(
100%
-
50px
);
/* ให้ความสูงเป็น 100% ลบด้วยระยะห่างข้างบน */
margin-left
:
calc
(
15%
-
30px
);
margin-right
:
20px
;
}
.ti-modal
.ti-modal-header-upload
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
border-bottom-width
:
1px
;
padding-top
:
0
.75rem
;
padding-bottom
:
0
.75rem
;
padding-left
:
1rem
;
padding-right
:
1rem
;
}
.ti-modal-content-upload
{
background-color
:
white
;
width
:
25%
;
/* ความกว้างที่คุณต้องการ */
height
:
80%
;
position
:
absolute
;
/* ทำให้สามารถจัดตำแหน่งได้ */
top
:
50%
;
/* ให้อยู่กลางในแนวตั้ง */
left
:
50%
;
/* ให้อยู่กลางในแนวนอน */
transform
:
translate
(
-50%
,
-50%
);
/* เคลื่อนที่ modal กลับมาให้ตรงกลาง */
}
.ti-modal-content-alert
{
width
:
35%
;
/* ความกว้างที่คุณต้องการ */
position
:
absolute
;
/* ทำให้สามารถจัดตำแหน่งได้ */
top
:
50%
;
/* ให้อยู่กลางในแนวตั้ง */
left
:
50%
;
/* ให้อยู่กลางในแนวนอน */
transform
:
translate
(
-50%
,
-50%
);
/* เคลื่อนที่ modal กลับมาให้ตรงกลาง */
background-color
:
#ffffff
;
}
.header-title-type
{
width
:
100%
;
min-height
:
50px
;
/* ใช้ min-height เพื่อให้มีความยืดหยุ่น */
margin-top
:
50px
;
margin-bottom
:
10px
;
justify-content
:
space-between
;
/* จัดเรียงองค์ประกอบภายใน */
align-items
:
center
;
/* จัดกลางแนวตั้ง */
}
\ No newline at end of file
src/app/components/company-components/employee-registration/sub-employee-registration/sub-employee-registration.component.ts
0 → 100644
View file @
2e80d1dd
import
{
Component
,
EventEmitter
,
Input
,
Output
}
from
'@angular/core'
;
import
{
ToastrService
}
from
'ngx-toastr'
;
@
Component
({
selector
:
'app-sub-employee-registration'
,
templateUrl
:
'./sub-employee-registration.component.html'
,
styleUrls
:
[
'./sub-employee-registration.component.scss'
]
})
export
class
SubEmployeeRegistrationComponent
{
@
Input
()
pathTitle
=
[
'การจัดการข้อมูลองค์กร'
,
'ตั้งค่าผู้ใช้งาน'
,
'ทะเบียนพนักงาน'
];
@
Output
()
sendPathTitle
:
EventEmitter
<
string
[]
>
=
new
EventEmitter
<
string
[]
>
();
activeTab
:
string
=
'tab1'
;
// กำหนด tab เริ่มต้น
// ฟังก์ชันในการเปลี่ยนแท็บ
changeTab
(
tab
:
{
id
:
string
,
text
:
string
})
{
this
.
sendPathTitle
.
emit
([
'การจัดการข้อมูลองค์กร'
,
'ตั้งค่าผู้ใช้งาน'
,
tab
.
text
]);
this
.
activeTab
=
tab
.
id
;
}
// การจัดการการเปิดปิด modal
modalOptions
:
{
[
nameModal
:
string
]:
{
isModalOpen
:
boolean
;
modalSize
:
string
;
backdropClose
:
boolean
;
};
}
=
{
"add"
:
{
isModalOpen
:
false
,
modalSize
:
'm'
,
backdropClose
:
true
,
},
"edit"
:
{
isModalOpen
:
false
,
modalSize
:
'm'
,
backdropClose
:
true
,
}
};
openModal
(
name
:
string
,
size
:
string
,
closeOnBackdrop
?:
boolean
)
{
this
.
modalOptions
[
name
].
modalSize
=
size
;
this
.
modalOptions
[
name
].
backdropClose
=
closeOnBackdrop
||
false
;
this
.
modalOptions
[
name
].
isModalOpen
=
true
;
this
.
currentModal
=
name
;
// ตั้งค่าค่าของ currentModal เป็น 'add' หรือ 'edit'
document
.
body
.
style
.
overflow
=
'hidden'
;
}
closeModal
(
name
:
string
)
{
this
.
modalOptions
[
name
].
isModalOpen
=
false
;
if
(
!
this
.
isAnyModalOpen
())
{
document
.
body
.
style
.
overflow
=
''
;
// คืนค่าการ Scroll เฉพาะเมื่อ Modal ทั้งหมดปิดแล้ว
}
}
isAnyModalOpen
():
boolean
{
return
Object
.
values
(
this
.
modalOptions
).
some
(
modal
=>
modal
.
isModalOpen
);
// ตรวจสอบว่า modal อื่นยังเปิดอยู่หรือไม่
}
// ฟังก์ชันสำหรับการเพิ่ม ลบ หรือแก้ไข ข้อมูล
addUser
()
{
// ฟังก์ชันสำหรับการเพิ่มผู้ใช้งาน
console
.
log
(
'เพิ่มผู้ใช้งาน'
);
}
deleteUser
()
{
// ฟังก์ชันสำหรับการลบผู้ใช้งาน
console
.
log
(
'ลบผู้ใช้งาน'
);
}
editUser
()
{
// ฟังก์ชันสำหรับการแก้ไขผู้ใช้งาน
console
.
log
(
'แก้ไขผู้ใช้งาน'
);
}
currentModal
=
""
constructor
(
private
toastr
:
ToastrService
)
{
}
showSuccess
()
{
this
.
toastr
.
success
(
'บันทึกข้อมูลสำเร็จ'
,
'เเจ้งเตือน'
,
{
timeOut
:
3000
,
positionClass
:
'toast-top-right'
,
});
}
showSuccessEdit
()
{
this
.
toastr
.
success
(
'เเก้ไขข้อมูลสำเร็จ'
,
'เเจ้งเตือน'
,
{
timeOut
:
3000
,
positionClass
:
'toast-top-right'
,
});
}
showSuccessDelete
()
{
this
.
toastr
.
success
(
'ลบข้อมูลสำเร็จ'
,
'เเจ้งเตือน'
,
{
timeOut
:
3000
,
positionClass
:
'toast-top-right'
,
});
}
}
src/app/components/company-components/job-description/job-description.component.html
View file @
2e80d1dd
<!-- <app-page-header [pathTitle]="pathTitle"></app-page-header>
<div class="bg-card-white">
</div>
<div class="block-main-content">
<div>
<p class="text-xxl font-bold py-2 px-4 text-primary ltr:ml-5" style="margin-bottom: 15px;">ข้อมูลลักษณะงาน</p>
</div>
<div class="body-content">
<ul class="nav-tabs">
<li class="nav-item" *ngFor="let item of [{id:'tab1',text:'กลุ่มพนักงาน'},
{id:'tab2',text:'ตำเเหน่ง'},
{id:'tab3',text:'ลักษณะงาน'},
{id:'tab4',text:'ประเภทพนักงาน'},
{id:'tab5',text:'ระดับพนักงาน (PL)'}]" (click)="changeTab(item)">
<a [class.active]="activeTab === item.id" class="nav-link">{{item.text}}</a>
</li>
</ul>
<div class="tab-content">
<div *ngIf="activeTab === 'tab1'" class="tab-pane">
<div class="mt-5">
<app-employee-group-unit [pathTitle]="pathTitle"
(sendPathTitle)="pathTitle=$event"></app-employee-group-unit>
</div>
</div>
<div *ngIf="activeTab === 'tab2'" class="tab-pane">
<div class="mt-5">
<app-position-unit [pathTitle]="pathTitle" (sendPathTitle)="pathTitle=$event"></app-position-unit>
</div>
</div>
<div *ngIf="activeTab === 'tab3'" class="tab-pane">
<div class="mt-5">
</div>
</div>
<div *ngIf="activeTab === 'tab4'" class="tab-pane">
<div class="mt-5">
<app-employee-categories [pathTitle]="pathTitle"
(sendPathTitle)="pathTitle=$event"></app-employee-categories>
</div>
</div>
<div *ngIf="activeTab === 'tab5'" class="tab-pane">
<div class="mt-5">
<app-employee-level [pathTitle]="pathTitle" (sendPathTitle)="pathTitle=$event"></app-employee-level>
</div>
</div>
</div>
</div>
</div> -->
<!-- <app-page-header [pathTitle]="pathTitle"></app-page-header>
<div class="bg-card-white">
</div>
<div class="block-main-content">
<div>
<p class="text-xxl font-bold py-2 px-4 text-primary ltr:ml-5" style="margin-bottom: 15px;">ข้อมูลลักษณะงาน</p>
</div>
<div class="body-content">
<ul class="nav-tabs">
<li class="nav-item" *ngFor="let item of [{id:'tab1',text:'กลุ่มพนักงาน'},
{id:'tab2',text:'ตำเเหน่ง'},
{id:'tab3',text:'ลักษณะงาน'},
{id:'tab4',text:'ประเภทพนักงาน'},
{id:'tab5',text:'ระดับพนักงาน (PL)'}]" (click)="changeTab(item)">
<a [class.active]="activeTab === item.id" class="nav-link">{{item.text}}</a>
</li>
</ul>
<div class="tab-content">
<div *ngIf="activeTab === 'tab1'" class="tab-pane">
<div class="mt-5">
<app-employee-group-unit [pathTitle]="pathTitle"
(sendPathTitle)="pathTitle=$event"></app-employee-group-unit>
</div>
</div>
<div *ngIf="activeTab === 'tab2'" class="tab-pane">
<div class="mt-5">
<app-position-unit [pathTitle]="pathTitle" (sendPathTitle)="pathTitle=$event"></app-position-unit>
</div>
</div>
<div *ngIf="activeTab === 'tab3'" class="tab-pane">
<div class="mt-5">
</div>
</div>
<div *ngIf="activeTab === 'tab4'" class="tab-pane">
<div class="mt-5">
<app-employee-categories [pathTitle]="pathTitle"
(sendPathTitle)="pathTitle=$event"></app-employee-categories>
</div>
</div>
<div *ngIf="activeTab === 'tab5'" class="tab-pane">
<div class="mt-5">
<app-employee-level [pathTitle]="pathTitle" (sendPathTitle)="pathTitle=$event"></app-employee-level>
</div>
</div>
</div>
</div>
</div> -->
<app-page-header
[
pathTitle
]="
pathTitle
"
></app-page-header>
<div
class=
"bg-card-white"
>
</div>
...
...
@@ -106,27 +10,27 @@
<nav
class=
"-mb-0.5 flex space-x-6 rtl:space-x-reverse"
>
<a
class=
"text-base font-medium hs-tab-active:text-lg hs-tab-active:font-bold hs-tab-active:border-secondary hs-tab-active:text-secondary pb-3 inline-flex items-center gap-2 border-b-[3px] border-transparent whitespace-nowrap text-gray-500 dark:text-white/70 hover:text-secondary active"
href=
"javascript:void(0);"
id=
"underline-item-1"
data-hs-tab=
"#underline-1"
aria-controls=
"underline-1"
(
click
)="
pathTitle =
['ข้อมูลลักษณะงาน','กลุ่มพนักงาน']"
>
aria-controls=
"underline-1"
(
click
)="
pathTitle =
['
การจัดการข้อมูลองค์กร','
ข้อมูลลักษณะงาน','กลุ่มพนักงาน']"
>
กลุ่มพนักงาน
</a>
<a
class=
"text-base font-medium hs-tab-active:text-lg hs-tab-active:font-bold hs-tab-active:border-secondary hs-tab-active:text-secondary pb-3 px-1 inline-flex items-center gap-2 border-b-[3px] border-transparent whitespace-nowrap text-gray-500 dark:text-white/70 hover:text-secondary"
href=
"javascript:void(0);"
id=
"underline-item-2"
data-hs-tab=
"#underline-2"
aria-controls=
"underline-2"
(
click
)="
pathTitle =
['ข้อมูลลักษณะงาน','ตำเเหน่ง']"
>
aria-controls=
"underline-2"
(
click
)="
pathTitle =
['
การจัดการข้อมูลองค์กร','
ข้อมูลลักษณะงาน','ตำเเหน่ง']"
>
ตำเเหน่ง
</a>
<a
class=
"text-base font-medium hs-tab-active:text-lg hs-tab-active:font-bold hs-tab-active:border-secondary hs-tab-active:text-secondary pb-3 px-1 inline-flex items-center gap-2 border-b-[3px] border-transparent whitespace-nowrap text-gray-500 dark:text-white/70 hover:text-secondary"
href=
"javascript:void(0);"
id=
"underline-item-3"
data-hs-tab=
"#underline-3"
aria-controls=
"underline-3"
(
click
)="
pathTitle =
['ข้อมูลลักษณะงาน','ลักษณะงาน']"
>
aria-controls=
"underline-3"
(
click
)="
pathTitle =
['
การจัดการข้อมูลองค์กร','
ข้อมูลลักษณะงาน','ลักษณะงาน']"
>
ลักษณะงาน
</a>
<a
class=
"text-base font-medium hs-tab-active:text-lg hs-tab-active:font-bold hs-tab-active:border-secondary hs-tab-active:text-secondary pb-3 px-1 inline-flex items-center gap-2 border-b-[3px] border-transparent whitespace-nowrap text-gray-500 dark:text-white/70 hover:text-secondary"
href=
"javascript:void(0);"
id=
"underline-item-4"
data-hs-tab=
"#underline-4"
aria-controls=
"underline-4"
(
click
)="
pathTitle =
['ข้อมูลลักษณะงาน','ประเภทพนักงาน']"
>
aria-controls=
"underline-4"
(
click
)="
pathTitle =
['
การจัดการข้อมูลองค์กร','
ข้อมูลลักษณะงาน','ประเภทพนักงาน']"
>
ประเภทพนักงาน
</a>
<a
class=
"text-base font-medium hs-tab-active:text-lg hs-tab-active:font-bold hs-tab-active:border-secondary hs-tab-active:text-secondary pb-3 px-1 inline-flex items-center gap-2 border-b-[3px] border-transparent whitespace-nowrap text-gray-500 dark:text-white/70 hover:text-secondary"
href=
"javascript:void(0);"
id=
"underline-item-5"
data-hs-tab=
"#underline-5"
aria-controls=
"underline-5"
(
click
)="
pathTitle =
['ข้อมูลลักษณะงาน','ระดับพนักงาน
(
PL
)']"
>
aria-controls=
"underline-5"
(
click
)="
pathTitle =
['
การจัดการข้อมูลองค์กร','
ข้อมูลลักษณะงาน','ระดับพนักงาน
(
PL
)']"
>
ระดับพนักงาน (PL)
</a>
</nav>
...
...
src/app/components/company-components/job-description/job-description.component.ts
View file @
2e80d1dd
...
...
@@ -6,5 +6,5 @@ import { Component } from '@angular/core';
styleUrls
:
[
'./job-description.component.scss'
]
})
export
class
JobDescriptionComponent
{
pathTitle
=
[
'ข้อมูลลักษณะงาน'
,
'กลุ่มพนักงาน'
]
pathTitle
=
[
'
การจัดการข้อมูลองค์กร'
,
'
ข้อมูลลักษณะงาน'
,
'กลุ่มพนักงาน'
]
}
src/app/components/competency-assessment/competency-management/indicators-and-curriculum/edit-group-indicators/edit-group-indicators.html
View file @
2e80d1dd
...
...
@@ -233,7 +233,7 @@
<thead>
<tr>
<ng-container
*
ngFor=
"let item of ['รหัส','ชื่อเครื่องมือประเมิ
ณ
','ชื่อที่เเสดง','Action']; let f = first; let l = last; let i = index"
>
*
ngFor=
"let item of ['รหัส','ชื่อเครื่องมือประเมิ
น
','ชื่อที่เเสดง','Action']; let f = first; let l = last; let i = index"
>
<th
scope=
"col"
class=
"relative px-10px py-10px bg-soft-secondary text-primary"
[
class
.!
text-center
]="
f
||
l
"
>
<span
class=
"text-sm"
>
{{ item }}
</span>
...
...
src/app/components/competency-assessment/evaluation-cycle-manager/define-document-form/define-document-form.component.scss
View file @
2e80d1dd
.ti-modal-content-new
{
top
:
50%
;
/* ให้อยู่กลางในแนวตั้ง */
left
:
50%
;
/* ให้อยู่กลางในแนวนอน */
position
:
relative
;
/* ทำให้สามารถจัดตำแหน่งได้ */
transform
:
translate
(
-50%
,
-50%
);
/* เคลื่อนที่ modal กลับมาให้ตรงกลาง */
background-color
:
white
;
overflow
:
hidden
;
/* ป้องกันการเลื่อนในโมดอล */
}
.ti-modal-body-new
{
height
:
50vh
;
display
:
flex
;
justify-content
:
center
;
/* จัดแนวนอนให้ตรงกลาง */
align-items
:
center
;
/* จัดแนวตั้งให้ตรงกลาง */
padding
:
1rem
;
}
.swal2-confirm
{
background-color
:
#1DBE5A
!
important
;
}
.swal2-cancel
{
background-color
:
#B3B3B3
!
important
;
}
.div
:where
(
.swal2-icon
)
{
position
:
relative
;
box-sizing
:
content-box
;
justify-content
:
center
;
width
:
5em
;
height
:
5em
;
margin
:
2
.5em
auto
.6em
;
border
:
.25em
solid
rgba
(
0
,
0
,
0
,
0
);
border-radius
:
50%
;
border-color
:
white
;
font-family
:
inherit
;
line-height
:
5em
;
cursor
:
default
;
user-select
:
none
;
}
src/app/components/competency-assessment/evaluation-cycle-manager/define-document-form/define-document-form.component.ts
View file @
2e80d1dd
...
...
@@ -126,20 +126,19 @@ export class DefineDocumentFormComponent {
positionClass
:
'toast-top-right'
,
});
}
basicAlert3
()
{
Swal
.
fire
({
iconHtml
:
'<i class="ri-file-upload-line"></i>'
,
iconHtml
:
'<i class="ri-file-upload-line
text-center rounded-full !h-80px !w-80px !bg-success
"></i>'
,
title
:
'ส่งออกเอกสาร'
,
text
:
'คุณต้องการส่งออกเอกสารฉบับนี้ใช่หรือไม่'
,
showCancelButton
:
true
,
reverseButtons
:
true
,
confirmButtonText
:
'ส่งออกเอกสาร'
,
confirmButtonColor
:
'#1DBE5A'
,
cancelButtonText
:
'ย้อนกลับ'
,
cancelButtonColor
:
'#B3B3B3'
,
reverseButtons
:
true
,
customClass
:
{
icon
:
'custom-icon'
,
actions
:
"!swal2-actions-mt-20px"
,
icon
:
'!swal2-icon-no-border'
,
confirmButton
:
'!swal2-button-bg-green'
,
},
}).
then
((
result
)
=>
{
if
(
result
.
isConfirmed
)
{
...
...
src/app/components/dashboard/dashboard-routing.module.ts
View file @
2e80d1dd
...
...
@@ -34,7 +34,7 @@ import { AssessmentManagementComponent } from '../performance-management-evaluat
import
{
JobPositionIndicatorsComponent
}
from
'../job-detail-components/job-position-indicators/job-position-indicators.component'
;
import
{
EvaluationCyclePerformanceComponent
}
from
'../performance-management-evaluation/evaluation-cycle-performance/evaluation-cycle-performance.component'
;
import
{
SupervisorEvaluationComponent
}
from
'../Performance Evaluation/supervisor-evaluation/supervisor-evaluation.component'
;
import
{
EmployeeRegistrationComponent
}
from
'../company-components/employee-registration/employee-registration.component'
;
...
...
@@ -72,10 +72,12 @@ const routes: Routes = [
{
path
:
"job-qualifications"
,
title
:
'คุณสมบัติที่จำเป็นต่อการปฏิบัติหน้าที่'
,
component
:
JobQualificationsComponent
},
{
path
:
"job-detail"
,
title
:
'รายละเอียดของงาน'
,
component
:
JobDetailComponent
},
{
path
:
"command-structure"
,
title
:
'โครงสร้างสายการบังคับบัญชา'
,
component
:
CommandStructureComponent
},
{
path
:
"assessment-management"
,
title
:
'การจัดการการประเมิ
ณ
'
,
component
:
AssessmentManagementComponent
},
{
path
:
"assessment-management"
,
title
:
'การจัดการการประเมิ
น
'
,
component
:
AssessmentManagementComponent
},
{
path
:
"job-position-indicators"
,
title
:
'ตัวชี้วัดของตำแหน่งงาน'
,
component
:
JobPositionIndicatorsComponent
},
{
path
:
"evaluation-cycle-performance"
,
title
:
'รอบการประเมิณ'
,
component
:
EvaluationCyclePerformanceComponent
},
{
path
:
"supervisor-evaluation"
,
title
:
'ประเมินโดยหัวหน้า'
,
component
:
SupervisorEvaluationComponent
},
{
path
:
"evaluation-cycle-performance"
,
title
:
'รอบการประเมิน'
,
component
:
EvaluationCyclePerformanceComponent
},
{
path
:
"employee-registration"
,
title
:
'ทะเบียนพนักงาน'
,
component
:
EmployeeRegistrationComponent
},
]
}
];
...
...
src/app/components/dashboard/dashboard.module.ts
View file @
2e80d1dd
...
...
@@ -91,6 +91,8 @@ import { DocumentFormComponent } from '../performance-management-evaluation/eval
import
{
EditEvaluationFormComponent
}
from
'../performance-management-evaluation/evaluation-cycle-performance/document-form/edit-evaluation-form/edit-evaluation-form.component'
;
import
{
RoundOneComponent
}
from
'../Performance Evaluation/supervisor-evaluation/round-one/round-one.component'
;
import
{
SupervisorEvaluationComponent
}
from
'../Performance Evaluation/supervisor-evaluation/supervisor-evaluation.component'
;
import
{
EmployeeRegistrationComponent
}
from
'../company-components/employee-registration/employee-registration.component'
;
import
{
SubEmployeeRegistrationComponent
}
from
'../company-components/employee-registration/sub-employee-registration/sub-employee-registration.component'
;
@
NgModule
({
declarations
:
[
...
...
@@ -164,6 +166,8 @@ import { SupervisorEvaluationComponent } from '../Performance Evaluation/supervi
EditEvaluationFormComponent
,
RoundOneComponent
,
SupervisorEvaluationComponent
,
EmployeeRegistrationComponent
,
SubEmployeeRegistrationComponent
,
],
imports
:
[
CommonModule
,
...
...
src/app/components/performance-management-evaluation/assessment-management/assessment-management.component.html
View file @
2e80d1dd
...
...
@@ -3,7 +3,7 @@
</div>
<div
class=
"block-main-content"
>
<div
class=
"font-size-18px font-weight-700 pt-1.5rem text-primary px-2rem"
>
การจัดการประเมิ
ณ
การจัดการประเมิ
น
</div>
<div
class=
"page pt-0.75rem"
>
<div
class=
"border-b border-gray-200 dark:border-white/10 px-2rem"
>
...
...
@@ -12,14 +12,14 @@
<a
class=
"text-base font-medium hs-tab-active:border-secondary hs-tab-active:text-secondary pb-3 inline-flex items-center gap-2 border-b-[3px] border-transparent whitespace-nowrap text-gray-500 dark:text-white/70 hover:text-secondary active"
href=
"javascript:void(0);"
id=
"underline-item-1"
data-hs-tab=
"#underline-1"
aria-controls=
"underline-1"
(
click
)="
activeTab=
'underline-1'
;
pathTitle =
['การประเมินจัดการประสิทธิภาพ','การจัดการประเมิ
ณ
','จัดกลุ่มการประเมิน']"
>
(
click
)="
activeTab=
'underline-1'
;
pathTitle =
['การประเมินจัดการประสิทธิภาพ','การจัดการประเมิ
น
','จัดกลุ่มการประเมิน']"
>
จัดกลุ่มการประเมิน
</a>
<a
class=
"text-base font-medium hs-tab-active:border-secondary hs-tab-active:text-secondary pb-3 inline-flex items-center gap-2 border-b-[3px] border-transparent whitespace-nowrap text-gray-500 dark:text-white/70 hover:text-secondary"
href=
"javascript:void(0);"
id=
"underline-item-2"
data-hs-tab=
"#underline-2"
aria-controls=
"underline-2"
(
click
)="
activeTab=
'underline-2'
;
pathTitle =
['การประเมินจัดการประสิทธิภาพ','การจัดการประเมิ
ณ
','กำหนดผู้อนุมัติ']"
>
(
click
)="
activeTab=
'underline-2'
;
pathTitle =
['การประเมินจัดการประสิทธิภาพ','การจัดการประเมิ
น
','กำหนดผู้อนุมัติ']"
>
กำหนดผู้อนุมัติ
</a>
</nav>
...
...
src/app/components/performance-management-evaluation/assessment-management/assessment-management.component.ts
View file @
2e80d1dd
...
...
@@ -6,6 +6,6 @@ import { Component } from '@angular/core';
styleUrls
:
[
'./assessment-management.component.scss'
]
})
export
class
AssessmentManagementComponent
{
pathTitle
=
[
'การประเมินจัดการประสิทธิภาพ'
,
'การจัดการประเมิ
ณ'
,
'จัดกลุ่มการประเมิณ
'
]
pathTitle
=
[
'การประเมินจัดการประสิทธิภาพ'
,
'การจัดการประเมิ
น'
,
'จัดกลุ่มการประเมิน
'
]
activeTab
:
string
=
'underline-1'
;
}
src/app/components/performance-management-evaluation/assessment-management/assigning-approvers/assigning-approvers.component.ts
View file @
2e80d1dd
...
...
@@ -7,14 +7,14 @@ import { ToastrService } from 'ngx-toastr';
styleUrls
:
[
'./assigning-approvers.component.scss'
]
})
export
class
AssigningApproversComponent
{
@
Input
()
pathTitle
=
[
'การประเมินจัดการประสิทธิภาพ'
,
'การจัดการประเมิ
ณ
'
,
'กำหนดผู้อนุมัติ'
];
@
Input
()
pathTitle
=
[
'การประเมินจัดการประสิทธิภาพ'
,
'การจัดการประเมิ
น
'
,
'กำหนดผู้อนุมัติ'
];
@
Output
()
sendPathTitle
:
EventEmitter
<
string
[]
>
=
new
EventEmitter
<
string
[]
>
();
activeTab
:
string
=
'tab1'
;
// กำหนด tab เริ่มต้น
// ฟังก์ชันในการเปลี่ยนแท็บ
changeTab
(
tab
:
{
id
:
string
,
text
:
string
})
{
this
.
sendPathTitle
.
emit
([
'การประเมินจัดการประสิทธิภาพ'
,
'การจัดการประเมิ
ณ
'
,
tab
.
text
]);
this
.
sendPathTitle
.
emit
([
'การประเมินจัดการประสิทธิภาพ'
,
'การจัดการประเมิ
น
'
,
tab
.
text
]);
this
.
activeTab
=
tab
.
id
;
}
...
...
src/app/components/performance-management-evaluation/evaluation-cycle-performance/document-form/document-form.component.ts
View file @
2e80d1dd
...
...
@@ -28,7 +28,7 @@ onEdit(){
// ฟังก์ชันในการเปลี่ยนแท็บ
changeTab
(
tab
:
{
id
:
string
,
text
:
string
})
{
this
.
sendPathTitle
.
emit
([
'การประเมินจัดการประสิทธิภาพ'
,
'การจัดการประเมิ
ณ
'
,
tab
.
text
]);
this
.
sendPathTitle
.
emit
([
'การประเมินจัดการประสิทธิภาพ'
,
'การจัดการประเมิ
น
'
,
tab
.
text
]);
this
.
activeTab
=
tab
.
id
;
}
currentPage
=
1
...
...
src/app/components/performance-management-evaluation/evaluation-cycle-performance/evaluation-cycle-performance.component.html
View file @
2e80d1dd
...
...
@@ -12,14 +12,14 @@
<a
class=
"text-base font-medium hs-tab-active:border-secondary hs-tab-active:text-secondary pb-3 inline-flex items-center gap-2 border-b-[3px] border-transparent whitespace-nowrap text-gray-500 dark:text-white/70 hover:text-secondary active"
href=
"javascript:void(0);"
id=
"underline-item-1"
data-hs-tab=
"#underline-1"
aria-controls=
"underline-1"
(
click
)="
activeTab=
'underline-1'
;
pathTitle =
['การประเมินจัดการประสิทธิภาพ','การจัดการประเมิ
ณ
','รอบการประเมิน']"
>
(
click
)="
activeTab=
'underline-1'
;
pathTitle =
['การประเมินจัดการประสิทธิภาพ','การจัดการประเมิ
น
','รอบการประเมิน']"
>
จัดกลุ่มการประเมิน
</a>
<a
class=
"text-base font-medium hs-tab-active:border-secondary hs-tab-active:text-secondary pb-3 inline-flex items-center gap-2 border-b-[3px] border-transparent whitespace-nowrap text-gray-500 dark:text-white/70 hover:text-secondary"
href=
"javascript:void(0);"
id=
"underline-item-2"
data-hs-tab=
"#underline-2"
aria-controls=
"underline-2"
(
click
)="
activeTab=
'underline-2'
;
pathTitle =
['การประเมินจัดการประสิทธิภาพ','การจัดการประเมิ
ณ
','กำหนดฟอร์มเอกสาร']"
>
(
click
)="
activeTab=
'underline-2'
;
pathTitle =
['การประเมินจัดการประสิทธิภาพ','การจัดการประเมิ
น
','กำหนดฟอร์มเอกสาร']"
>
กำหนดฟอร์มเอกสาร
</a>
</nav>
...
...
src/app/shared/services/navservice.ts
View file @
2e80d1dd
...
...
@@ -94,6 +94,7 @@ export class NavService implements OnDestroy {
children
:
[
{
path
:
'/company-registration'
,
title
:
'ทะเบียนบริษัท'
,
type
:
'link'
},
{
path
:
'/job-description'
,
title
:
'ข้อมูลลักษณะงาน'
,
type
:
'link'
},
{
path
:
'/employee-registration'
,
title
:
'ทะเบียนพนักงาน'
,
type
:
'link'
},
{
path
:
'/account-settings'
,
title
:
'ตั้งค่าชื่อผู้ใช้'
,
type
:
'link'
},
],
},
...
...
src/assets/css/style.css
View file @
2e80d1dd
...
...
@@ -24767,3 +24767,30 @@ div:where(.swal2-container) div:where(.swal2-validation-message) {
.justify-around
{
justify-content
:
space-around
;
}
.
\
!
swal2-icon-no-border
{
border
:
0
!important
;
}
.swal2-actions
.
\
!
swal2-actions-mt-20px
{
margin-top
:
20px
!important
;
}
.swal2-styled.swal2-confirm
.
\
!
swal2-button-bg-green
{
background-color
:
#1dbe5a
!important
;
}
.swal2-styled.swal2-confirm
.
\
!
swal2-button-bg-green
:focus
{
box-shadow
:
0
0
0
3px
rgba
(
110
,
120
,
129
,
0.5
)
!important
;
}
.
\
!
w-80px
{
width
:
80px
!important
;
}
.
\
!
h-80px
{
height
:
80px
!important
;
}
.w-80px
{
width
:
80px
!important
;
}
.h-80px
{
height
:
80px
!important
;
}
\ No newline at end of file
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