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
251b8d1c
Commit
251b8d1c
authored
Mar 15, 2025
by
Ooh-Ao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
admin
parent
3c3ffaf1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
148 additions
and
125 deletions
+148
-125
30b5e361-1bcf-4b9d-a275-a0ac70bda0eb.jpg
.../uploaded_images/30b5e361-1bcf-4b9d-a275-a0ac70bda0eb.jpg
+0
-0
admin-manage.component.html
...c/app/DPU/common/admin-manage/admin-manage.component.html
+0
-0
admin-manage.component.ts
...src/app/DPU/common/admin-manage/admin-manage.component.ts
+61
-123
user-setting.component.ts
...on/user-management/user-setting/user-setting.component.ts
+1
-1
equipments.model.ts
Web-Manage/src/app/DPU/models/equipments.model.ts
+32
-0
equirement.service.ts
Web-Manage/src/app/DPU/services/equirement.service.ts
+53
-0
nav.service.ts
Web-Manage/src/app/shared/services/nav.service.ts
+1
-1
No files found.
API-Fast/uploaded_images/30b5e361-1bcf-4b9d-a275-a0ac70bda0eb.jpg
0 → 100644
View file @
251b8d1c
31.4 KB
Web-Manage/src/app/DPU/common/admin-manage/admin-manage.component.html
View file @
251b8d1c
This diff is collapsed.
Click to expand it.
Web-Manage/src/app/DPU/common/admin-manage/admin-manage.component.ts
View file @
251b8d1c
This diff is collapsed.
Click to expand it.
Web-Manage/src/app/DPU/common/user-management/user-setting/user-setting.component.ts
View file @
251b8d1c
...
@@ -119,7 +119,7 @@ export class UserSettingComponent {
...
@@ -119,7 +119,7 @@ export class UserSettingComponent {
ngOnInit
():
void
{
ngOnInit
():
void
{
this
.
userService
.
getLists
().
subscribe
(
result
=>
{
this
.
userService
.
getLists
().
subscribe
(
result
=>
{
this
.
itemsList
=
result
.
filter
(
e
=>
e
.
role
!=
99
)
this
.
itemsList
=
result
this
.
updatePagedItems
()
this
.
updatePagedItems
()
})
})
}
}
...
...
Web-Manage/src/app/DPU/models/equipments.model.ts
0 → 100644
View file @
251b8d1c
import
{
TranslateService
}
from
"@ngx-translate/core"
;
import
{
BaseModel
}
from
"./base.model"
;
import
{
environment
}
from
"../../../environments/environment"
;
export
class
EquipmentModel
extends
BaseModel
{
equipment_id
:
string
;
picture
:
string
;
equipment_name
:
string
;
description
?:
string
;
quantity_total
:
number
;
is_returnable
:
boolean
;
location
?:
string
;
created_at
:
string
;
updated_at
:
string
;
constructor
(
data
?:
Partial
<
EquipmentModel
>
,
translateService
?:
TranslateService
)
{
super
(
data
,
translateService
);
this
.
picture
=
data
?.
picture
??
''
;
this
.
equipment_id
=
data
?.
equipment_id
??
''
;
this
.
equipment_name
=
data
?.
equipment_name
??
''
;
this
.
description
=
data
?.
description
??
''
;
this
.
quantity_total
=
data
?.
quantity_total
??
0
;
this
.
is_returnable
=
data
?.
is_returnable
??
true
;
this
.
location
=
data
?.
location
??
''
;
this
.
created_at
=
data
?.
created_at
??
new
Date
().
toISOString
();
this
.
updated_at
=
data
?.
updated_at
??
new
Date
().
toISOString
();
}
getPicture
():
string
{
return
this
.
picture
?
environment
.
baseUrl
+
'/images/'
+
this
.
picture
:
'./assets/images/faces/9.jpg'
}
}
Web-Manage/src/app/DPU/services/equirement.service.ts
0 → 100644
View file @
251b8d1c
import
{
HttpClient
}
from
'@angular/common/http'
;
import
{
Injectable
}
from
'@angular/core'
;
import
{
EquipmentModel
}
from
'../models/equipments.model'
;
import
{
map
,
tap
,
switchMap
,
filter
,
reduce
}
from
"rxjs/operators"
;
@
Injectable
({
providedIn
:
'root'
})
export
class
EquipmentService
{
apiBaseUrl
=
"/equipments"
;
constructor
(
private
http
:
HttpClient
)
{
}
getById
(
id
:
string
)
{
return
this
.
http
.
get
<
EquipmentModel
>
(
this
.
apiBaseUrl
+
"/"
+
id
)
.
pipe
(
map
((
e
)
=>
new
EquipmentModel
(
e
)));
}
getLists
()
{
return
this
.
http
.
get
<
EquipmentModel
[]
>
(
this
.
apiBaseUrl
)
.
pipe
(
map
((
e
)
=>
e
.
map
((
e
)
=>
new
EquipmentModel
(
e
)))
);
}
save
(
body
:
EquipmentModel
)
{
return
this
.
http
.
post
<
{
"message"
:
string
,
"user"
:
EquipmentModel
}
>
(
this
.
apiBaseUrl
,
new
EquipmentModel
(
body
));
}
update
(
body
:
EquipmentModel
)
{
return
this
.
http
.
put
<
{
"message"
:
string
,
"user"
:
EquipmentModel
}
>
(
this
.
apiBaseUrl
+
"/"
+
body
.
equipment_id
,
new
EquipmentModel
(
body
));
}
delete
(
body
:
EquipmentModel
)
{
return
this
.
http
.
delete
<
{
"message"
:
string
,
"user"
:
EquipmentModel
}
>
(
this
.
apiBaseUrl
+
"/"
+
body
.
equipment_id
);
}
}
Web-Manage/src/app/shared/services/nav.service.ts
View file @
251b8d1c
...
@@ -127,7 +127,7 @@ export class NavService implements OnDestroy {
...
@@ -127,7 +127,7 @@ export class NavService implements OnDestroy {
active
:
false
,
active
:
false
,
children
:
[
children
:
[
{
path
:
'/admin/member-manage'
,
title
:
'การจัดการสมาชิก'
,
type
:
'link'
},
{
path
:
'/admin/member-manage'
,
title
:
'การจัดการสมาชิก'
,
type
:
'link'
},
{
path
:
'/admin/
product-management
'
,
title
:
'การจัดการอุปกรณ์'
,
type
:
'link'
},
{
path
:
'/admin/
admin-manage
'
,
title
:
'การจัดการอุปกรณ์'
,
type
:
'link'
},
{
{
path
:
'/admin/manage-companys'
,
path
:
'/admin/manage-companys'
,
title
:
'การจัดการโครงการ'
,
title
:
'การจัดการโครงการ'
,
...
...
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