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
51774a1e
Commit
51774a1e
authored
Nov 20, 2024
by
kantavee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
การจัดการข้อมูลองค์กร>ทะเบียนบริษัท>สาขาและหน่วยธุรกิจ>ส่วนย่อย1 เเละส่วนย่อย3
parent
f9550b1f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
176 additions
and
0 deletions
+176
-0
branch-business-unit.component.html
.../branch-business-unit/branch-business-unit.component.html
+16
-0
sub-department-one.component.html
...unit/sub-department-one/sub-department-one.component.html
+0
-0
sub-department-one.component.scss
...unit/sub-department-one/sub-department-one.component.scss
+60
-0
sub-department-one.component.ts
...s-unit/sub-department-one/sub-department-one.component.ts
+18
-0
sub-department-three.component.html
.../sub-department-three/sub-department-three.component.html
+0
-0
sub-department-three.component.scss
.../sub-department-three/sub-department-three.component.scss
+60
-0
sub-department-three.component.ts
...it/sub-department-three/sub-department-three.component.ts
+18
-0
dashboard.module.ts
src/app/components/dashboard/dashboard.module.ts
+4
-0
No files found.
src/app/components/company-registration/branch-business-unit/branch-business-unit.component.html
View file @
51774a1e
...
...
@@ -20,5 +20,20 @@
<div
*
ngIf=
"activeTab === 'tab2'"
class=
"tab-pane"
>
<app-department-list></app-department-list>
</div>
<div
*
ngIf=
"activeTab === 'tab3'"
class=
"tab-pane"
>
</div>
<div
*
ngIf=
"activeTab === 'tab4'"
class=
"tab-pane"
>
<app-sub-department-one></app-sub-department-one>
</div>
<div
*
ngIf=
"activeTab === 'tab5'"
class=
"tab-pane"
>
</div>
<div
*
ngIf=
"activeTab === 'tab6'"
class=
"tab-pane"
>
<app-sub-department-three></app-sub-department-three>
</div>
<div
*
ngIf=
"activeTab === 'tab7'"
class=
"tab-pane"
>
</div>
</div>
</div>
\ No newline at end of file
src/app/components/company-registration/branch-business-unit/sub-department-one/sub-department-one.component.html
0 → 100644
View file @
51774a1e
This diff is collapsed.
Click to expand it.
src/app/components/company-registration/branch-business-unit/sub-department-one/sub-department-one.component.scss
0 → 100644
View file @
51774a1e
/* สไตล์ของแถบเมนู */
.nav-tabs
{
display
:
flex
;
border-bottom
:
2px
solid
#ccc
;
/* เส้นใต้ */
width
:
100%
;
cursor
:
pointer
;
}
.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
:
3
.5px
solid
#569bf5
;
}
\ No newline at end of file
src/app/components/company-registration/branch-business-unit/sub-department-one/sub-department-one.component.ts
0 → 100644
View file @
51774a1e
import
{
Component
,
EventEmitter
,
Input
,
Output
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-sub-department-one'
,
templateUrl
:
'./sub-department-one.component.html'
,
styleUrls
:
[
'./sub-department-one.component.scss'
]
})
export
class
SubDepartmentOneComponent
{
@
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
;
}
}
src/app/components/company-registration/branch-business-unit/sub-department-three/sub-department-three.component.html
0 → 100644
View file @
51774a1e
This diff is collapsed.
Click to expand it.
src/app/components/company-registration/branch-business-unit/sub-department-three/sub-department-three.component.scss
0 → 100644
View file @
51774a1e
/* สไตล์ของแถบเมนู */
.nav-tabs
{
display
:
flex
;
border-bottom
:
2px
solid
#ccc
;
/* เส้นใต้ */
width
:
100%
;
cursor
:
pointer
;
}
.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
:
3
.5px
solid
#569bf5
;
}
\ No newline at end of file
src/app/components/company-registration/branch-business-unit/sub-department-three/sub-department-three.component.ts
0 → 100644
View file @
51774a1e
import
{
Component
,
EventEmitter
,
Input
,
Output
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-sub-department-three'
,
templateUrl
:
'./sub-department-three.component.html'
,
styleUrls
:
[
'./sub-department-three.component.scss'
]
})
export
class
SubDepartmentThreeComponent
{
@
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
;
}
}
src/app/components/dashboard/dashboard.module.ts
View file @
51774a1e
...
...
@@ -24,6 +24,8 @@ import { CompanyRegistrationComponent } from '../company-registration/company-re
import
{
DepartmentRegisterComponent
}
from
'../company-registration/branch-business-unit/department-register/department-register.component'
;
import
{
BranchBusinessUnitComponent
}
from
'../company-registration/branch-business-unit/branch-business-unit.component'
;
import
{
DepartmentListComponent
}
from
'../company-registration/branch-business-unit/department-list/department-list.component'
;
import
{
SubDepartmentOneComponent
}
from
'../company-registration/branch-business-unit/sub-department-one/sub-department-one.component'
;
import
{
SubDepartmentThreeComponent
}
from
'../company-registration/branch-business-unit/sub-department-three/sub-department-three.component'
;
@
NgModule
({
declarations
:
[
SalesComponent
,
...
...
@@ -44,6 +46,8 @@ import { DepartmentListComponent } from '../company-registration/branch-business
BranchBusinessUnitComponent
,
DepartmentRegisterComponent
,
DepartmentListComponent
,
SubDepartmentOneComponent
,
SubDepartmentThreeComponent
,
],
imports
:
[
CommonModule
,
...
...
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