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
cd8b71cc
Commit
cd8b71cc
authored
Mar 15, 2025
by
Ooh-Ao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
admin
parent
d901add5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
77 additions
and
40 deletions
+77
-40
admin-manage.component.html
...c/app/DPU/common/admin-manage/admin-manage.component.html
+62
-17
admin-manage.component.ts
...src/app/DPU/common/admin-manage/admin-manage.component.ts
+1
-1
equipments.model.ts
Web-Manage/src/app/DPU/models/equipments.model.ts
+4
-4
nav.service.ts
Web-Manage/src/app/shared/services/nav.service.ts
+10
-18
No files found.
Web-Manage/src/app/DPU/common/admin-manage/admin-manage.component.html
View file @
cd8b71cc
...
...
@@ -33,7 +33,7 @@
</div>
</div>
@for(item of filterList;track filterList){
<div
class=
"xxl:col-span-4 xl:col-span-6 lg:col-span-6 md:col-span-6 sm:col-span-12 col-span-12"
>
<
!-- <
div class="xxl:col-span-4 xl:col-span-6 lg:col-span-6 md:col-span-6 sm:col-span-12 col-span-12">
<div class="box team-member-card">
<div class="teammember-cover-image mt-1">
<span class="avatar avatar-xl avatar-rounded">
...
...
@@ -46,26 +46,12 @@
class="flex flex-wrap align-item-center sm:mt-0 mt-[3rem] justify-between border-b border-dashed dark:border-defaultborder/10 p-4">
<div class="team-member-details flex-grow">
<p class="mb-0 font-semibold text-[1rem] text-truncate">
<a
href=
"javascript:void(0);"
>
{{item.equipment
_n
ame}}
</a>
<a href="javascript:void(0);">{{item.equipment
N
ame}}</a>
</p>
<p class="mb-0 text-[0.75rem] text-[#8c9097] dark:text-white/50 text-truncate">
{{item.description}}</p>
</div>
</div>
<!-- <div class="team-member-stats sm:flex items-center justify-evenly">
<div class="text-center p-4 w-full">
<p class="font-semibold mb-0">รหัสพนักงาน</p>
<span class="text-[#8c9097] dark:text-white/50 text-[0.75rem]">{{item.employeeId}}</span>
</div>
<div class="text-center p-4 w-full">
<p class="font-semibold mb-0">แผนก</p>
<span class="text-[#8c9097] dark:text-white/50 text-[0.75rem]">{{item.position.thName}}</span>
</div>
<div class="text-center p-4 w-full">
<p class="font-semibold mb-0">ตำแหน่ง</p>
<span class="text-[#8c9097] dark:text-white/50 text-[0.75rem]">{{item.department.thName}}</span>
</div>
</div> -->
</div>
<div class="box-footer border-block-start-dashed dark:border-defaultborder/10 text-center">
<div class="btn-list">
...
...
@@ -78,6 +64,65 @@
</div>
</div>
</div>
</div> -->
<div
class=
"xxl:col-span-2 xl:col-span-3 lg:col-span-4 md:col-span-4 sm:col-span-6 col-span-12"
>
<div
class=
"box custom-box"
>
<img
src=
"./assets/images/nft-images/18.png"
class=
"!rounded-t-md"
alt=
"..."
>
<div
class=
"flex items-center justify-between nft-like-section w-full px-4"
>
<!-- <div class="flex-grow">
<button type="button" aria-label="button"
class="ti-btn ti-btn-sm ti-btn-success-full !rounded-full btn-wave waves-effect waves-light">
<i class="ri-heart-fill"></i>
</button>
</div>
<div>
<span class="badge nft-like-badge text-white"><i
class="ri-heart-fill me-1 text-danger align-middle inline-block"></i>0.47k</span>
</div> -->
</div>
<div
class=
"box-body"
>
<!-- <p class="mb-0 text-white nft-auction-time">
04hrs : 24m : 38s
</p> -->
<p
class=
"text-[.9375rem] font-semibold mb-2"
><a
href=
"javascript:void(0);"
>
{{item.equipmentName}}
</a></p>
<div
class=
"flex flex-wrap align-itesm-center justify-between"
>
<div
class=
"font-semibold mb-1"
>
รายละเอียด :
</div>
<p
class=
"text-[#8c9097] dark:text-white/50 mb-3"
>
{{item.description}}
</p>
<!-- <div class="flex flex-wrap items-center leading-none">
<span class="avatar avatar-xs me-1">
<img src="./assets/images/crypto-currencies/square-color/Ethereum.svg" alt="">
</span>0.24ETH
</div> -->
</div>
<div
class=
"flex flex-wrap align-itesm-center justify-between mb-2"
>
<div
class=
"font-semibold mb-1"
>
จำนวน :
</div>
<h3
class=
"text-[#8c9097] dark:text-white/50"
>
{{item.quantity}}
</h3>
</div>
<!-- <div class="grid">
<button type="button" class="ti-btn ti-btn-primary btn-wave waves-effect waves-light">Place Bid</button>
</div> -->
</div>
<div
class=
"box-footer border-block-start-dashed dark:border-defaultborder/10 text-center"
>
<div
class=
"btn-list"
>
<div
class=
"btn-list"
>
<button
type=
"button"
aria-label=
"button"
data-hs-overlay=
"#modal-detail"
class=
"ti-btn ti-btn-sm ti-btn-primary me-[0.375rem]"
><i
class=
"ri-edit-line"
></i></button>
<button
routerLinkActive=
"active"
type=
"button"
aria-label=
"button"
class=
"ti-btn ti-btn-sm ti-btn-secondary !me-[0.375rem]"
>
<i
class=
"ri-time-line"
></i>
</button>
<button
data-hs-overlay=
"#modal-face"
type=
"button"
aria-label=
"button"
class=
"ti-btn ti-btn-sm ti-btn-warning me-[0.375rem]"
>
<i
class=
"ri-account-circle-line"
></i>
</button>
<button
type=
"button"
aria-label=
"button"
class=
"ti-btn ti-btn-sm ti-btn-danger me-0"
><i
class=
"ri-delete-bin-line"
></i></button>
</div>
</div>
</div>
</div>
</div>
}
</div>
...
...
@@ -121,7 +166,7 @@
<div
class=
"xl:col-span-6 col-span-12"
>
<label
for=
"deal-name"
class=
"form-label"
>
ชื่อ
</label>
<input
type=
"text"
class=
"form-control"
id=
"deal-name"
placeholder=
"ชื่อ"
[(
ngModel
)]="
selectModel
.
equipment
_n
ame
"
>
[(
ngModel
)]="
selectModel
.
equipment
N
ame
"
>
</div>
<div
class=
"xl:col-span-6 col-span-12"
>
<label
for=
"deal-lead-score"
class=
"form-label"
>
รายละเอียด
</label>
...
...
Web-Manage/src/app/DPU/common/admin-manage/admin-manage.component.ts
View file @
cd8b71cc
...
...
@@ -136,7 +136,7 @@ export class AdminManageComponent {
this
.
pageIndex
=
0
;
return
this
.
itemsList
?.
filter
(
(
x
)
=>
x
.
equipment
_n
ame
.
toLowerCase
().
indexOf
(
v
.
toLowerCase
())
!==
-
1
||
x
.
equipment
N
ame
.
toLowerCase
().
indexOf
(
v
.
toLowerCase
())
!==
-
1
||
x
.
description
?.
toLowerCase
().
indexOf
(
v
.
toLowerCase
())
!==
-
1
);
}
...
...
Web-Manage/src/app/DPU/models/equipments.model.ts
View file @
cd8b71cc
...
...
@@ -5,9 +5,9 @@ import { environment } from "../../../environments/environment";
export
class
EquipmentModel
extends
BaseModel
{
equipment_id
:
string
;
picture
:
string
;
equipment
_n
ame
:
string
;
equipment
N
ame
:
string
;
description
?:
string
;
quantity
_total
:
number
;
quantity
:
number
;
is_returnable
:
boolean
;
location
?:
string
;
created_at
:
string
;
...
...
@@ -17,9 +17,9 @@ export class EquipmentModel extends BaseModel {
super
(
data
,
translateService
);
this
.
picture
=
data
?.
picture
??
''
;
this
.
equipment_id
=
data
?.
equipment_id
??
''
;
this
.
equipment
_name
=
data
?.
equipment_n
ame
??
''
;
this
.
equipment
Name
=
data
?.
equipmentN
ame
??
''
;
this
.
description
=
data
?.
description
??
''
;
this
.
quantity
_total
=
data
?.
quantity_total
??
0
;
this
.
quantity
=
data
?.
quantity
??
0
;
this
.
is_returnable
=
data
?.
is_returnable
??
true
;
this
.
location
=
data
?.
location
??
''
;
this
.
created_at
=
data
?.
created_at
??
new
Date
().
toISOString
();
...
...
Web-Manage/src/app/shared/services/nav.service.ts
View file @
cd8b71cc
...
...
@@ -134,24 +134,16 @@ export class NavService implements OnDestroy {
type
:
'link'
,
},
],
},
{
path
:
'/admin/borrow-management'
,
title
:
'การเบิกคืนอุปกรณ์'
,
type
:
'link'
,
selected
:
false
,
Menusub
:
true
,
active
:
false
,
// children: [
// { path: '/admin/borrow-management', title: 'การจัดการการเบิก', type: 'link' },
// { path: '/admin/approve-borrow', title: 'อนุมัติการเบิก', type: 'link' },
// { path: '/admin/return-borrow', title: 'อนุมัติการคืน', type: 'link' },
// {
// path: '/admin/history-product',
// title: 'ประวัติการทำรายการ',
// type: 'link',
// },
// ],
}]
},
// {
// path: '/admin/borrow-management',
// title: 'การเบิกคืนอุปกรณ์',
// type: 'link',
// selected: false,
// Menusub: true,
// active: false,
// }
]
}
getCompanyMenu
()
{
...
...
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