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
24e076ae
Commit
24e076ae
authored
Mar 17, 2025
by
Ooh-Ao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
menu
parent
8963d880
Show whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
176 additions
and
45 deletions
+176
-45
admin-borrow-manage.component.html
...nt/admin-borrow-manage/admin-borrow-manage.component.html
+1
-0
admin-borrow-manage.component.scss
...nt/admin-borrow-manage/admin-borrow-manage.component.scss
+0
-0
admin-borrow-manage.component.ts
...ment/admin-borrow-manage/admin-borrow-manage.component.ts
+12
-0
admin-project-emp-manage.component.html
...roject-emp-manage/admin-project-emp-manage.component.html
+1
-0
admin-project-emp-manage.component.scss
...roject-emp-manage/admin-project-emp-manage.component.scss
+0
-0
admin-project-emp-manage.component.ts
...-project-emp-manage/admin-project-emp-manage.component.ts
+12
-0
admin-project-equirement.component.html
...roject-equirement/admin-project-equirement.component.html
+1
-0
admin-project-equirement.component.scss
...roject-equirement/admin-project-equirement.component.scss
+0
-0
admin-project-equirement.component.ts
...-project-equirement/admin-project-equirement.component.ts
+12
-0
admin-project-home.component.html
...ment/admin-project-home/admin-project-home.component.html
+1
-0
admin-project-home.component.scss
...ment/admin-project-home/admin-project-home.component.scss
+0
-0
admin-project-home.component.ts
...gement/admin-project-home/admin-project-home.component.ts
+12
-0
company-management.module.ts
...c/app/DPU/company-management/company-management.module.ts
+54
-33
emp-borrow-manage.component.html
...gement/emp-borrow-manage/emp-borrow-manage.component.html
+1
-0
emp-borrow-manage.component.scss
...gement/emp-borrow-manage/emp-borrow-manage.component.scss
+0
-0
emp-borrow-manage.component.ts
...nagement/emp-borrow-manage/emp-borrow-manage.component.ts
+12
-0
emp-project-home.component.html
...nagement/emp-project-home/emp-project-home.component.html
+1
-0
emp-project-home.component.scss
...nagement/emp-project-home/emp-project-home.component.scss
+0
-0
emp-project-home.component.ts
...management/emp-project-home/emp-project-home.component.ts
+12
-0
login.component.ts
Web-Manage/src/app/authentication/login/login.component.ts
+5
-3
sidebar.component.ts
...ge/src/app/shared/components/sidebar/sidebar.component.ts
+8
-1
nav.service.ts
Web-Manage/src/app/shared/services/nav.service.ts
+31
-8
No files found.
Web-Manage/src/app/DPU/company-management/admin-borrow-manage/admin-borrow-manage.component.html
0 → 100644
View file @
24e076ae
<p>
admin-borrow-manage works!
</p>
Web-Manage/src/app/DPU/company-management/admin-borrow-manage/admin-borrow-manage.component.scss
0 → 100644
View file @
24e076ae
Web-Manage/src/app/DPU/company-management/admin-borrow-manage/admin-borrow-manage.component.ts
0 → 100644
View file @
24e076ae
import
{
Component
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-admin-borrow-manage'
,
standalone
:
true
,
imports
:
[],
templateUrl
:
'./admin-borrow-manage.component.html'
,
styleUrl
:
'./admin-borrow-manage.component.scss'
})
export
class
AdminBorrowManageComponent
{
}
Web-Manage/src/app/DPU/company-management/admin-project-emp-manage/admin-project-emp-manage.component.html
0 → 100644
View file @
24e076ae
<p>
admin-project-emp-manage works!
</p>
Web-Manage/src/app/DPU/company-management/admin-project-emp-manage/admin-project-emp-manage.component.scss
0 → 100644
View file @
24e076ae
Web-Manage/src/app/DPU/company-management/admin-project-emp-manage/admin-project-emp-manage.component.ts
0 → 100644
View file @
24e076ae
import
{
Component
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-admin-project-emp-manage'
,
standalone
:
true
,
imports
:
[],
templateUrl
:
'./admin-project-emp-manage.component.html'
,
styleUrl
:
'./admin-project-emp-manage.component.scss'
})
export
class
AdminProjectEmpManageComponent
{
}
Web-Manage/src/app/DPU/company-management/admin-project-equirement/admin-project-equirement.component.html
0 → 100644
View file @
24e076ae
<p>
admin-project-equirement works!
</p>
Web-Manage/src/app/DPU/company-management/admin-project-equirement/admin-project-equirement.component.scss
0 → 100644
View file @
24e076ae
Web-Manage/src/app/DPU/company-management/admin-project-equirement/admin-project-equirement.component.ts
0 → 100644
View file @
24e076ae
import
{
Component
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-admin-project-equirement'
,
standalone
:
true
,
imports
:
[],
templateUrl
:
'./admin-project-equirement.component.html'
,
styleUrl
:
'./admin-project-equirement.component.scss'
})
export
class
AdminProjectEquirementComponent
{
}
Web-Manage/src/app/DPU/company-management/admin-project-home/admin-project-home.component.html
0 → 100644
View file @
24e076ae
<p>
admin-project-home works!
</p>
Web-Manage/src/app/DPU/company-management/admin-project-home/admin-project-home.component.scss
0 → 100644
View file @
24e076ae
Web-Manage/src/app/DPU/company-management/admin-project-home/admin-project-home.component.ts
0 → 100644
View file @
24e076ae
import
{
Component
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-admin-project-home'
,
standalone
:
true
,
imports
:
[],
templateUrl
:
'./admin-project-home.component.html'
,
styleUrl
:
'./admin-project-home.component.scss'
})
export
class
AdminProjectHomeComponent
{
}
Web-Manage/src/app/DPU/company-management/company-management.module.ts
View file @
24e076ae
...
...
@@ -10,53 +10,74 @@ export const companyRoutes: Routes = [
loadComponent
:
()
=>
import
(
'./home-installer/home-installer.component'
).
then
((
m
)
=>
m
.
HomeInstallerComponent
),
},
// {
// path: 'company/company-info',
// loadComponent: () =>
// import('./company-info/company-info.component').then((m) => m.CompanyInfoComponent),
// },
// {
// path: 'company/company-location',
// loadComponent: () =>
// import('./company-location/company-location.component').then((m) => m.CompanyLocationComponent),
// },
// {
// path: 'company/company-department',
// loadComponent: () =>
// import('../common/employee/department/department.component').then((m) => m.DepartmentComponent),
// },
// {
// path: 'company/company-position',
// loadComponent: () =>
// import('../common/employee/position/position.component').then((m) => m.PositionComponent),
// },
// {
// path: 'company/company-emp',
// loadComponent: () =>
// import('./company-emp/company-emp.component').then((m) => m.CompanyEmpComponent),
// },
// {
// path: 'company/timestamp-log',
// loadComponent: () =>
// import('./timestamp-log/timestamp-log.component').then((m) => m.TimestampLogComponent),
// },
// {
// path: 'company/timestamp-log/:company_employeeId',
// loadComponent: () =>
// import('./timestamp-log/timestamp-log.component').then((m) => m.TimestampLogComponent),
// },
// {
// path: 'company/timestamp-face',
// loadComponent: () =>
// import('./enroll-face/enroll-face.component').then((m) => m.EnrollFaceComponent),
// },
// {
// path: 'company/warning-timestamp-log',
// loadComponent: () =>
// import('./warning-timetamp/warning-timetamp.component').then((m) => m.WarningTimetampComponent),
// },
{
path
:
'company/company-info
'
,
path
:
'company/admin-home
'
,
loadComponent
:
()
=>
import
(
'./company-info/company-info.component'
).
then
((
m
)
=>
m
.
CompanyInfo
Component
),
import
(
'./admin-project-home/admin-project-home.component'
).
then
((
m
)
=>
m
.
AdminProjectHome
Component
),
},
{
path
:
'company/company-location
'
,
path
:
'company/project-emp
'
,
loadComponent
:
()
=>
import
(
'./company-location/company-location.component'
).
then
((
m
)
=>
m
.
CompanyLocation
Component
),
import
(
'./admin-project-emp-manage/admin-project-emp-manage.component'
).
then
((
m
)
=>
m
.
AdminProjectEmpManage
Component
),
},
{
path
:
'company/company-department
'
,
path
:
'company/equirement-emp
'
,
loadComponent
:
()
=>
import
(
'../common/employee/department/department.component'
).
then
((
m
)
=>
m
.
Depart
mentComponent
),
import
(
'./admin-project-equirement/admin-project-equirement.component'
).
then
((
m
)
=>
m
.
AdminProjectEquire
mentComponent
),
},
{
path
:
'company/company-position
'
,
path
:
'company/admin-borrow
'
,
loadComponent
:
()
=>
import
(
'../common/employee/position/position.component'
).
then
((
m
)
=>
m
.
PositionComponent
),
},
{
path
:
'company/company-emp'
,
loadComponent
:
()
=>
import
(
'./company-emp/company-emp.component'
).
then
((
m
)
=>
m
.
CompanyEmpComponent
),
},
{
path
:
'company/timestamp-log'
,
loadComponent
:
()
=>
import
(
'./timestamp-log/timestamp-log.component'
).
then
((
m
)
=>
m
.
TimestampLogComponent
),
},
{
path
:
'company/timestamp-log/:company_employeeId'
,
loadComponent
:
()
=>
import
(
'./timestamp-log/timestamp-log.component'
).
then
((
m
)
=>
m
.
TimestampLogComponent
),
},
{
path
:
'company/timestamp-face'
,
loadComponent
:
()
=>
import
(
'./enroll-face/enroll-face.component'
).
then
((
m
)
=>
m
.
EnrollFaceComponent
),
},
{
path
:
'company/warning-timestamp-log'
,
loadComponent
:
()
=>
import
(
'./warning-timetamp/warning-timetamp.component'
).
then
((
m
)
=>
m
.
WarningTimetampComponent
),
import
(
'./admin-borrow-manage/admin-borrow-manage.component'
).
then
((
m
)
=>
m
.
AdminBorrowManageComponent
),
},
];
...
...
Web-Manage/src/app/DPU/company-management/emp-borrow-manage/emp-borrow-manage.component.html
0 → 100644
View file @
24e076ae
<p>
emp-borrow-manage works!
</p>
Web-Manage/src/app/DPU/company-management/emp-borrow-manage/emp-borrow-manage.component.scss
0 → 100644
View file @
24e076ae
Web-Manage/src/app/DPU/company-management/emp-borrow-manage/emp-borrow-manage.component.ts
0 → 100644
View file @
24e076ae
import
{
Component
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-emp-borrow-manage'
,
standalone
:
true
,
imports
:
[],
templateUrl
:
'./emp-borrow-manage.component.html'
,
styleUrl
:
'./emp-borrow-manage.component.scss'
})
export
class
EmpBorrowManageComponent
{
}
Web-Manage/src/app/DPU/company-management/emp-project-home/emp-project-home.component.html
0 → 100644
View file @
24e076ae
<p>
emp-project-home works!
</p>
Web-Manage/src/app/DPU/company-management/emp-project-home/emp-project-home.component.scss
0 → 100644
View file @
24e076ae
Web-Manage/src/app/DPU/company-management/emp-project-home/emp-project-home.component.ts
0 → 100644
View file @
24e076ae
import
{
Component
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-emp-project-home'
,
standalone
:
true
,
imports
:
[],
templateUrl
:
'./emp-project-home.component.html'
,
styleUrl
:
'./emp-project-home.component.scss'
})
export
class
EmpProjectHomeComponent
{
}
Web-Manage/src/app/authentication/login/login.component.ts
View file @
24e076ae
...
...
@@ -124,13 +124,15 @@ export class LoginComponent {
this
.
tokenService
.
saveToken
(
result
.
access_token
);
// this.tokenService.saveRefreshToken(result.refreshToken);
this
.
tokenService
.
saveUser
(
result
);
if
(
result
.
member
.
role
==
99
||
result
.
member
.
role
==
1
)
{
if
(
result
.
member
.
status
==
1
)
{
if
(
result
.
member
.
role
==
99
)
{
this
.
routes
.
navigate
([
'/admin/member-manage'
])
}
else
{
this
.
adminCompanyList
(
result
.
member
.
memberId
)
}
}
else
{
this
.
error
=
'ไม่สามารถใช้งานได้กรุณาติดต่อผู้ให้บริการ'
}
// this.routes.navigate(['/admin/member-manage'])
},
(
error
)
=>
{
this
.
showLoader
=
false
;
...
...
Web-Manage/src/app/shared/components/sidebar/sidebar.component.ts
View file @
24e076ae
...
...
@@ -170,9 +170,16 @@ export class SidebarComponent {
changeMenu
()
{
if
(
this
.
isInstallerRoute
)
{
if
(
this
.
tokenService
.
getUser
().
member
.
role
==
1
){
this
.
menuitemsSubscribe$
=
this
.
navServices
.
items
.
subscribe
((
items
)
=>
{
this
.
menuItems
=
this
.
navServices
.
getCompany
Menu
();
this
.
menuItems
=
this
.
navServices
.
getProjectAdmin
Menu
();
});
}
else
{
this
.
menuitemsSubscribe$
=
this
.
navServices
.
items
.
subscribe
((
items
)
=>
{
this
.
menuItems
=
this
.
navServices
.
getProjectEmpMenu
();
});
}
}
else
{
this
.
menuitemsSubscribe$
=
this
.
navServices
.
items
.
subscribe
((
items
)
=>
{
this
.
menuItems
=
this
.
navServices
.
getCommonMenu
();
...
...
Web-Manage/src/app/shared/services/nav.service.ts
View file @
24e076ae
...
...
@@ -146,27 +146,50 @@ export class NavService implements OnDestroy {
]
}
get
Company
Menu
()
{
get
ProjectAdmin
Menu
()
{
return
[
// Dashboard
{
headTitle
:
'จัดการบริษัท'
},
{
headTitle
:
'จัดการโครงการ'
},
{
icon
:
'home'
,
path
:
'/company/admin-home'
,
title
:
'หน้าแรก'
,
type
:
'link'
,
selected
:
false
,
Menusub
:
true
,
active
:
false
,
},
// { headTitle: 'User Management' },
{
title
:
'จัดการข้อมูล
บริษัท
'
,
title
:
'จัดการข้อมูล
โครงการ
'
,
icon
:
'buildings'
,
type
:
'sub'
,
badgeClass
:
'warning'
,
badgeText
:
'warning'
,
active
:
false
,
children
:
[
{
path
:
'/company/company-info'
,
title
:
'ข้อมูลบริษัท'
,
type
:
'link'
},
{
path
:
'/company/company-department'
,
title
:
'จัดการแผนก'
,
type
:
'link'
},
{
path
:
'/company/company-position'
,
title
:
'จัดการตำแหน่ง'
,
type
:
'link'
},
// { path: '/company/company-hr', title: 'จัดการผู้ดูแลบริษัท', type: 'link' },
{
path
:
'/company/company-emp'
,
title
:
'พนักงาน'
,
type
:
'link'
},
{
path
:
'/company/equirement-emp'
,
title
:
'สินทรัพย์'
,
type
:
'link'
},
{
path
:
'/company/project-emp'
,
title
:
'พนักงาน'
,
type
:
'link'
}
],
},
{
icon
:
'store'
,
path
:
'/company/admin-borrow'
,
title
:
'จัดการการเบิก-คืน'
,
type
:
'link'
,
selected
:
false
,
Menusub
:
true
,
active
:
false
,
},
];
}
getProjectEmpMenu
()
{
return
[
// Dashboard
{
headTitle
:
'จัดการบริษัท'
},
// { headTitle: 'User Management' }
{
title
:
'จัดการข้อมูลการลงเวลา'
,
icon
:
'time'
,
type
:
'sub'
,
...
...
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