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
a8653f29
Commit
a8653f29
authored
Nov 25, 2024
by
Natthaphat Pankiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
แก้ ทะเบียนแผนก ,ส่วน 1 ,ส่วน3 เพิ่ม ประเภทพนักงาน ,ระดับพนักงาน(PL)
parent
813082b9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
139 additions
and
135 deletions
+139
-135
department-list.component.html
...iness-unit/department-list/department-list.component.html
+5
-5
sub-department-one.component.html
...unit/sub-department-one/sub-department-one.component.html
+5
-5
sub-department-three.component.html
.../sub-department-three/sub-department-three.component.html
+5
-5
employee-categories.component.html
...on/employee-categories/employee-categories.component.html
+0
-0
employee-categories.component.scss
...on/employee-categories/employee-categories.component.scss
+23
-60
employee-categories.component.ts
...tion/employee-categories/employee-categories.component.ts
+39
-0
employee-level.component.html
...-description/employee-level/employee-level.component.html
+0
-0
employee-level.component.scss
...-description/employee-level/employee-level.component.scss
+23
-60
employee-level.component.ts
...ob-description/employee-level/employee-level.component.ts
+39
-0
No files found.
src/app/components/company-registration/branch-business-unit/department-list/department-list.component.html
View file @
a8653f29
...
@@ -231,11 +231,11 @@
...
@@ -231,11 +231,11 @@
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input w-full pr-10 "
style=
"background-color: #B3B3B3;"
value=
"01"
>
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input w-full pr-10 "
style=
"background-color: #B3B3B3;"
value=
"01"
>
</div>
</div>
</div>
</div>
<label
for=
"detail_th"
class=
"ti-form-label mt-2rem"
>
รายละเอียด
ฝ่าย
(ไทย)
</label>
<label
for=
"detail_th"
class=
"ti-form-label mt-2rem"
>
รายละเอียด (ไทย)
</label>
<input
type=
"text"
id=
"detail_th"
class=
"ti-form-input
"
placeholder=
"
"
>
<input
type=
"text"
id=
"detail_th"
class=
"ti-form-input
h-16"
placeholder=
""
value=
"แผนก 1
"
>
<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"
placeholder=
""
>
<input
type=
"text"
id=
"detail_eng"
class=
"ti-form-input
h-16
"
placeholder=
""
>
<div
class=
"flex justify-end mt-2rem mb-1rem space-x-
2
"
>
<div
class=
"flex justify-end mt-2rem mb-1rem space-x-
4
"
>
<button
type=
"button"
<button
type=
"button"
class=
"hs-dropdown-toggle ti-btn ti-border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:ring-offset-white focus:ring-primary dark:bg-bgdark dark:hover:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-white dark:focus:ring-offset-white/10"
class=
"hs-dropdown-toggle ti-btn ti-border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:ring-offset-white focus:ring-primary dark:bg-bgdark dark:hover:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-white dark:focus:ring-offset-white/10"
data-hs-overlay=
"#department-list-modal-edit"
>
data-hs-overlay=
"#department-list-modal-edit"
>
...
...
src/app/components/company-registration/branch-business-unit/sub-department-one/sub-department-one.component.html
View file @
a8653f29
...
@@ -231,11 +231,11 @@
...
@@ -231,11 +231,11 @@
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input w-full pr-10 "
style=
"background-color: #B3B3B3;"
value=
"01"
>
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input w-full pr-10 "
style=
"background-color: #B3B3B3;"
value=
"01"
>
</div>
</div>
</div>
</div>
<label
for=
"detail_th"
class=
"ti-form-label mt-2rem"
>
รายละเอียด
ฝ่าย
(ไทย)
</label>
<label
for=
"detail_th"
class=
"ti-form-label mt-2rem"
>
รายละเอียด (ไทย)
</label>
<input
type=
"text"
id=
"detail_th"
class=
"ti-form-input
"
placeholder=
"
"
>
<input
type=
"text"
id=
"detail_th"
class=
"ti-form-input
h-16"
placeholder=
""
value=
"ส่วนย่อย 1
"
>
<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"
placeholder=
""
>
<input
type=
"text"
id=
"detail_eng"
class=
"ti-form-input
h-16
"
placeholder=
""
>
<div
class=
"flex justify-end mt-2rem mb-1rem space-x-
2
"
>
<div
class=
"flex justify-end mt-2rem mb-1rem space-x-
4
"
>
<button
type=
"button"
<button
type=
"button"
class=
"hs-dropdown-toggle ti-btn ti-border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:ring-offset-white focus:ring-primary dark:bg-bgdark dark:hover:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-white dark:focus:ring-offset-white/10"
class=
"hs-dropdown-toggle ti-btn ti-border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:ring-offset-white focus:ring-primary dark:bg-bgdark dark:hover:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-white dark:focus:ring-offset-white/10"
data-hs-overlay=
"#sub-department-one-modal-edit"
>
data-hs-overlay=
"#sub-department-one-modal-edit"
>
...
...
src/app/components/company-registration/branch-business-unit/sub-department-three/sub-department-three.component.html
View file @
a8653f29
...
@@ -231,11 +231,11 @@
...
@@ -231,11 +231,11 @@
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input w-full pr-10 "
style=
"background-color: #B3B3B3;"
value=
"01"
>
<input
type=
"text"
id=
"input-label"
class=
"ti-form-input w-full pr-10 "
style=
"background-color: #B3B3B3;"
value=
"01"
>
</div>
</div>
</div>
</div>
<label
for=
"detail_th"
class=
"ti-form-label mt-2rem"
>
รายละเอียด
ฝ่าย
(ไทย)
</label>
<label
for=
"detail_th"
class=
"ti-form-label mt-2rem"
>
รายละเอียด (ไทย)
</label>
<input
type=
"text"
id=
"detail_th"
class=
"ti-form-input
"
placeholder=
"
"
>
<input
type=
"text"
id=
"detail_th"
class=
"ti-form-input
h-16"
placeholder=
""
value=
"ส่วนย่อย 3
"
>
<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"
placeholder=
""
>
<input
type=
"text"
id=
"detail_eng"
class=
"ti-form-input
h-16
"
placeholder=
""
>
<div
class=
"flex justify-end mt-2rem mb-1rem space-x-
2
"
>
<div
class=
"flex justify-end mt-2rem mb-1rem space-x-
4
"
>
<button
type=
"button"
<button
type=
"button"
class=
"hs-dropdown-toggle ti-btn ti-border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:ring-offset-white focus:ring-primary dark:bg-bgdark dark:hover:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-white dark:focus:ring-offset-white/10"
class=
"hs-dropdown-toggle ti-btn ti-border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:ring-offset-white focus:ring-primary dark:bg-bgdark dark:hover:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-white dark:focus:ring-offset-white/10"
data-hs-overlay=
"#sub-department-three-modal-edit"
>
data-hs-overlay=
"#sub-department-three-modal-edit"
>
...
...
src/app/components/job-description/employee-categories/employee-categories.component.html
View file @
a8653f29
This diff is collapsed.
Click to expand it.
src/app/components/job-description/employee-categories/employee-categories.component.scss
View file @
a8653f29
/* สไตล์ของแถบเมนู */
.button-clear
{
.nav-tabs
{
position
:
absolute
;
display
:
flex
;
top
:
96px
;
width
:
100%
;
z-index
:
1
;
cursor
:
pointer
;
right
:
41vw
;
margin-bottom
:
10px
;
}
}
.button-help
{
position
:
absolute
;
.nav-item
{
top
:
96px
;
list-style
:
none
;
z-index
:
1
;
margin-right
:
10px
;
/* ช่องว่างระหว่างเมนู */
right
:
35vw
;
}
}
table
.ti-custom-table
thead
{
.nav-link
{
height
:
50px
;
text-decoration
:
none
;
}
padding
:
10px
20px
;
table
.ti-custom-table
thead
th
span
{
display
:
inline-block
;
font-size
:
12px
;
font-size
:
large
;
font-weight
:
bold
;
border-width
:
2px
2px
0px
2px
;
}
border-style
:
solid
;
a
.custom-link
{
border-color
:
#ccc
;
padding
:
10px
40px
;
/* ปรับ padding ให้เพิ่มขนาด */
border-radius
:
5px
5px
0px
0px
;
}
}
\ No newline at end of file
.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
;
}
\ No newline at end of file
src/app/components/job-description/employee-categories/employee-categories.component.ts
View file @
a8653f29
...
@@ -15,4 +15,43 @@ export class EmployeeCategories {
...
@@ -15,4 +15,43 @@ export class EmployeeCategories {
this
.
sendPathTitle
.
emit
([
'การจัดการข้อมูลองค์กร'
,
'ข้อมูลลักษณะงาน'
,
tab
.
text
])
this
.
sendPathTitle
.
emit
([
'การจัดการข้อมูลองค์กร'
,
'ข้อมูลลักษณะงาน'
,
tab
.
text
])
this
.
activeTab
=
tab
.
id
;
this
.
activeTab
=
tab
.
id
;
}
}
modalOptions
:
{
[
nameModal
:
string
]:
{
// ชื่อตรวจสอบการเปิดปิด
isModalOpen
:
boolean
;
// เปิด/ปิด
modalSize
:
string
;
// ขนาดของ Modal (s,m,l,vw10-vw100 )
backdropClose
:
boolean
;
// (คลิก Backdrop แล้ว true ปิด false ไม่ปิด )
}
}
=
{
"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
;
document
.
body
.
style
.
overflow
=
'hidden'
;
// ล็อก Scroll
}
closeModal
(
name
:
string
)
{
this
.
modalOptions
[
name
].
isModalOpen
=
false
;
// ตรวจสอบว่ามี Modal อื่นเปิดอยู่หรือไม่
if
(
!
this
.
isAnyModalOpen
())
{
document
.
body
.
style
.
overflow
=
''
;
// คืนค่าการ Scroll เฉพาะเมื่อ Modal ทั้งหมดปิดแล้ว
}
}
isAnyModalOpen
():
boolean
{
// Logic ตรวจสอบว่า Modal อื่นยังเปิดอยู่หรือไม่
return
Object
.
values
(
this
.
modalOptions
).
some
(
modal
=>
modal
.
isModalOpen
);
// หากไม่มี Modal อื่นเปิด
}
}
}
src/app/components/job-description/employee-level/employee-level.component.html
View file @
a8653f29
This diff is collapsed.
Click to expand it.
src/app/components/job-description/employee-level/employee-level.component.scss
View file @
a8653f29
/* สไตล์ของแถบเมนู */
.button-clear
{
.nav-tabs
{
position
:
absolute
;
display
:
flex
;
top
:
96px
;
width
:
100%
;
z-index
:
1
;
cursor
:
pointer
;
right
:
41vw
;
margin-bottom
:
10px
;
}
}
.button-help
{
position
:
absolute
;
.nav-item
{
top
:
96px
;
list-style
:
none
;
z-index
:
1
;
margin-right
:
10px
;
/* ช่องว่างระหว่างเมนู */
right
:
35vw
;
}
}
table
.ti-custom-table
thead
{
.nav-link
{
height
:
50px
;
text-decoration
:
none
;
}
padding
:
10px
20px
;
table
.ti-custom-table
thead
th
span
{
display
:
inline-block
;
font-size
:
12px
;
font-size
:
large
;
font-weight
:
bold
;
border-width
:
2px
2px
0px
2px
;
}
border-style
:
solid
;
a
.custom-link
{
border-color
:
#ccc
;
padding
:
10px
40px
;
/* ปรับ padding ให้เพิ่มขนาด */
border-radius
:
5px
5px
0px
0px
;
}
}
\ No newline at end of file
.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
;
}
\ No newline at end of file
src/app/components/job-description/employee-level/employee-level.component.ts
View file @
a8653f29
...
@@ -15,4 +15,43 @@ export class EmployeeLevel {
...
@@ -15,4 +15,43 @@ export class EmployeeLevel {
this
.
sendPathTitle
.
emit
([
'การจัดการข้อมูลองค์กร'
,
'ข้อมูลลักษณะงาน'
,
tab
.
text
])
this
.
sendPathTitle
.
emit
([
'การจัดการข้อมูลองค์กร'
,
'ข้อมูลลักษณะงาน'
,
tab
.
text
])
this
.
activeTab
=
tab
.
id
;
this
.
activeTab
=
tab
.
id
;
}
}
modalOptions
:
{
[
nameModal
:
string
]:
{
// ชื่อตรวจสอบการเปิดปิด
isModalOpen
:
boolean
;
// เปิด/ปิด
modalSize
:
string
;
// ขนาดของ Modal (s,m,l,vw10-vw100 )
backdropClose
:
boolean
;
// (คลิก Backdrop แล้ว true ปิด false ไม่ปิด )
}
}
=
{
"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
;
document
.
body
.
style
.
overflow
=
'hidden'
;
// ล็อก Scroll
}
closeModal
(
name
:
string
)
{
this
.
modalOptions
[
name
].
isModalOpen
=
false
;
// ตรวจสอบว่ามี Modal อื่นเปิดอยู่หรือไม่
if
(
!
this
.
isAnyModalOpen
())
{
document
.
body
.
style
.
overflow
=
''
;
// คืนค่าการ Scroll เฉพาะเมื่อ Modal ทั้งหมดปิดแล้ว
}
}
isAnyModalOpen
():
boolean
{
// Logic ตรวจสอบว่า Modal อื่นยังเปิดอยู่หรือไม่
return
Object
.
values
(
this
.
modalOptions
).
some
(
modal
=>
modal
.
isModalOpen
);
// หากไม่มี Modal อื่นเปิด
}
}
}
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