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
c2ed17fe
Commit
c2ed17fe
authored
May 16, 2025
by
DESKTOP-E0VCCBD\zedan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c624d2bc
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
50 deletions
+0
-50
project_equipment.cpython-312.pyc
.../src/models/__pycache__/project_equipment.cpython-312.pyc
+0
-0
project_equipment.py
API-Fast/src/models/project_equipment.py
+0
-1
home-common.component.html
...src/app/DPU/common/home-common/home-common.component.html
+0
-34
home-common.component.ts
...e/src/app/DPU/common/home-common/home-common.component.ts
+0
-15
home-installer.component.html
...y-management/home-installer/home-installer.component.html
+0
-0
home-installer.component.ts
...any-management/home-installer/home-installer.component.ts
+0
-0
No files found.
API-Fast/src/models/__pycache__/project_equipment.cpython-312.pyc
View file @
c2ed17fe
No preview for this file type
API-Fast/src/models/project_equipment.py
View file @
c2ed17fe
...
...
@@ -26,7 +26,6 @@ class ProjectEquipment(Base):
)
quantity_in_project
=
Column
(
Integer
,
nullable
=
False
,
default
=
0
)
low_stock_threshold
=
Column
(
Integer
,
nullable
=
False
,
default
=
5
)
# Relationship กลับไปยัง Project และ Equipment
project
=
relationship
(
"Project"
,
back_populates
=
"project_equipment"
,
lazy
=
"joined"
)
...
...
Web-Manage/src/app/DPU/common/home-common/home-common.component.html
View file @
c2ed17fe
...
...
@@ -21,40 +21,6 @@
<label
for=
"endDate"
class=
"whitespace-nowrap"
>
End Date:
</label>
<input
type=
"date"
[(
ngModel
)]="
endDate
"
id=
"endDate"
name=
"endDate"
class=
"border rounded px-2 py-1"
/>
</div>
<!-- Dropdown Checkbox -->
<div
class=
"relative inline-block"
(
clickOutside
)="
isDropdownOpen =
false"
>
<!-- Dropdown button -->
<button
(
click
)="
toggleDropdown
()"
class=
"border rounded px-4 py-2 bg-white shadow w-48 text-left"
>
{{ getSelectedLabel() }}
</button>
<!-- Dropdown content -->
<div
*
ngIf=
"isDropdownOpen"
class=
"absolute z-10 mt-1 w-48 bg-white border rounded shadow"
>
<label
*
ngFor=
"let project of projectList"
class=
"flex items-center px-4 py-2 hover:bg-gray-100"
>
<input
type=
"checkbox"
[
value
]="
project
"
[(
ngModel
)]="
projectSelection
[
project
.
project_name
]"
class=
"mr-2"
/>
{{ project.project_name }}
</label>
</div>
</div>
<!-- Dropdown Checkbox -->
<div
class=
"relative inline-block"
(
clickOutside
)="
isDropdownOpen1 =
false"
>
<!-- Dropdown button -->
<button
(
click
)="
toggleDropdown1
()"
class=
"border rounded px-4 py-2 bg-white shadow w-48 text-left"
>
{{ getSelected() }}
</button>
<!-- Dropdown content -->
<div
*
ngIf=
"isDropdownOpen1"
class=
"absolute z-10 mt-1 w-48 bg-white border rounded shadow"
>
<label
*
ngFor=
"let item of equipmentList"
class=
"flex items-center px-4 py-2 hover:bg-gray-100"
>
<input
type=
"checkbox"
[
value
]="
item
"
[(
ngModel
)]="
itemSelection
[
item
.
equipmentName
]"
class=
"mr-2"
/>
{{ item.equipmentName }}
</label>
</div>
</div>
<div
class=
"flex flex-wrap gap-2"
>
<a
href=
"javascript:void(0);"
class=
"hs-dropdown-toggle ti-btn ti-btn-primary-full me-2"
(
click
)="
getDashbord
()"
data-hs-overlay=
"#modal-detail"
><i
class=
"font-semibold align-middle"
></i>
Apply
...
...
Web-Manage/src/app/DPU/common/home-common/home-common.component.ts
View file @
c2ed17fe
...
...
@@ -365,21 +365,6 @@ export class HomeCommonComponent {
}
getSelectedLabel
():
string
{
const
selectedIds
=
Object
.
keys
(
this
.
projectSelection
).
filter
(
id
=>
this
.
projectSelection
[
id
]
);
if
(
selectedIds
.
length
===
0
)
return
'เลือกโปรเจค'
;
if
(
selectedIds
.
length
===
this
.
projectList
.
length
)
return
'โปรเจคทั้งหมด'
;
// ดึงชื่อจริงจาก projectList
const
selectedNames
=
this
.
projectList
.
filter
(
project
=>
selectedIds
.
includes
(
project
.
project_name
))
.
map
(
project
=>
project
.
project_name
);
return
selectedNames
.
join
(
', '
);
}
getSelected
():
string
{
const
selectedIds
=
Object
.
keys
(
this
.
itemSelection
).
filter
(
...
...
Web-Manage/src/app/DPU/company-management/home-installer/home-installer.component.html
View file @
c2ed17fe
This diff is collapsed.
Click to expand it.
Web-Manage/src/app/DPU/company-management/home-installer/home-installer.component.ts
View file @
c2ed17fe
This diff is collapsed.
Click to expand it.
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