Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
BookingMyHrManagement
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
Chanachai
BookingMyHrManagement
Commits
f110dfb9
Commit
f110dfb9
authored
Mar 11, 2025
by
Ooh-Ao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
เมนูพนักดงาน
parent
f47c946b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
3 deletions
+54
-3
employee.module.ts
Synto-Angular/src/app/employee/employee.module.ts
+3
-1
employee.routing.ts
Synto-Angular/src/app/employee/employee.routing.ts
+27
-0
sidebar.component.ts
...ar/src/app/shared/components/sidebar/sidebar.component.ts
+1
-1
fullroutes.ts
Synto-Angular/src/app/shared/routes/fullroutes.ts
+4
-0
navservice.ts
Synto-Angular/src/app/shared/services/navservice.ts
+19
-1
No files found.
Synto-Angular/src/app/employee/employee.module.ts
View file @
f110dfb9
...
@@ -6,10 +6,12 @@ import { BorrowProductEmpComponent } from './borrow-product-emp/borrow-product-e
...
@@ -6,10 +6,12 @@ import { BorrowProductEmpComponent } from './borrow-product-emp/borrow-product-e
import
{
HistoryEmpComponent
}
from
'./history-emp/history-emp.component'
;
import
{
HistoryEmpComponent
}
from
'./history-emp/history-emp.component'
;
import
{
EmpInformationComponent
}
from
'./emp-information/emp-information.component'
;
import
{
EmpInformationComponent
}
from
'./emp-information/emp-information.component'
;
import
{
ReturnProductEmpComponent
}
from
'./return-product-emp/return-product-emp.component'
;
import
{
ReturnProductEmpComponent
}
from
'./return-product-emp/return-product-emp.component'
;
import
{
EmployeeRoutingModule
}
from
'./employee.routing'
;
@
NgModule
({
@
NgModule
({
imports
:
[
imports
:
[
CommonModule
CommonModule
,
EmployeeRoutingModule
],
],
declarations
:
[
EmployeeComponent
,
HomeEmployeeComponent
,
BorrowProductEmpComponent
,
HistoryEmpComponent
,
EmpInformationComponent
,
ReturnProductEmpComponent
]
declarations
:
[
EmployeeComponent
,
HomeEmployeeComponent
,
BorrowProductEmpComponent
,
HistoryEmpComponent
,
EmpInformationComponent
,
ReturnProductEmpComponent
]
})
})
...
...
Synto-Angular/src/app/employee/employee.routing.ts
0 → 100644
View file @
f110dfb9
import
{
NgModule
}
from
'@angular/core'
;
import
{
Routes
,
RouterModule
}
from
'@angular/router'
;
import
{
HomeEmployeeComponent
}
from
'./home-employee/home-employee.component'
;
import
{
BorrowProductEmpComponent
}
from
'./borrow-product-emp/borrow-product-emp.component'
;
import
{
EmpInformationComponent
}
from
'./emp-information/emp-information.component'
;
import
{
HistoryEmpComponent
}
from
'./history-emp/history-emp.component'
;
import
{
ReturnProductEmpComponent
}
from
'./return-product-emp/return-product-emp.component'
;
const
routes
:
Routes
=
[
{
path
:
"employee"
,
children
:
[
{
path
:
"home"
,
component
:
HomeEmployeeComponent
},
{
path
:
"emp-infomation"
,
component
:
EmpInformationComponent
},
{
path
:
"borrow-emp"
,
component
:
BorrowProductEmpComponent
},
{
path
:
"return-emp"
,
component
:
ReturnProductEmpComponent
},
{
path
:
"history-emp"
,
component
:
HistoryEmpComponent
},
]
}
];
@
NgModule
({
imports
:
[
RouterModule
.
forChild
(
routes
)],
exports
:
[
RouterModule
]
})
export
class
EmployeeRoutingModule
{
}
Synto-Angular/src/app/shared/components/sidebar/sidebar.component.ts
View file @
f110dfb9
...
@@ -72,7 +72,7 @@ export class SidebarComponent {
...
@@ -72,7 +72,7 @@ export class SidebarComponent {
}
}
ngOnInit
()
{
ngOnInit
()
{
if
(
true
){
if
(
!
true
){
this
.
menuitemsSubscribe$
=
this
.
navServices
.
itemsAdmin
.
subscribe
((
items
)
=>
{
this
.
menuitemsSubscribe$
=
this
.
navServices
.
itemsAdmin
.
subscribe
((
items
)
=>
{
this
.
menuItems
=
items
;
this
.
menuItems
=
items
;
});
});
...
...
Synto-Angular/src/app/shared/routes/fullroutes.ts
View file @
f110dfb9
...
@@ -72,5 +72,9 @@ export const content: Routes = [
...
@@ -72,5 +72,9 @@ export const content: Routes = [
path
:
''
,
path
:
''
,
loadChildren
:
()
=>
import
(
'../../admin/admin.module'
).
then
(
m
=>
m
.
AdminModule
)
loadChildren
:
()
=>
import
(
'../../admin/admin.module'
).
then
(
m
=>
m
.
AdminModule
)
},
},
{
path
:
''
,
loadChildren
:
()
=>
import
(
'../../employee/employee.module'
).
then
(
m
=>
m
.
EmployeeModule
)
},
];
];
Synto-Angular/src/app/shared/services/navservice.ts
View file @
f110dfb9
...
@@ -688,5 +688,23 @@ export class NavService implements OnDestroy {
...
@@ -688,5 +688,23 @@ export class NavService implements OnDestroy {
},
},
],
],
}]);
}]);
itemsEmp
=
new
BehaviorSubject
<
Menu
[]
>
(
this
.
MENUITEMS
);
itemsEmp
=
new
BehaviorSubject
<
Menu
[]
>
([{
headTitle
:
'พนักงาน'
},
{
path
:
'/employee/home'
,
title
:
'หน้าแรก'
,
type
:
'link'
},
{
path
:
'/employee/emp-infomation'
,
title
:
'ข้อมูลพนักงาน'
,
type
:
'link'
}
,
{
title
:
'การเบิกคืนอุปกรณ์'
,
type
:
'sub'
,
selected
:
false
,
Menusub
:
true
,
active
:
false
,
children
:
[
{
path
:
'/employee/borrow-emp'
,
title
:
'ข้อมูลการข้อเบิก'
,
type
:
'link'
},
{
path
:
'/employee/return-emp'
,
title
:
'ข้อมูลการคืน'
,
type
:
'link'
},
{
path
:
'/employee/history-emp'
,
title
:
'ประวัติการทำรายการ'
,
type
:
'link'
,
},
],
}]);
}
}
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