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
0342af61
Commit
0342af61
authored
Nov 29, 2021
by
DESKTOP-HF0LVOG\myhr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add หน้าการจอง/การเบิก
parent
b83251ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
165 additions
and
61 deletions
+165
-61
equipment.component.html
src/app/pages/equipment/equipment.component.html
+141
-61
equipment.component.ts
src/app/pages/equipment/equipment.component.ts
+24
-0
No files found.
src/app/pages/equipment/equipment.component.html
View file @
0342af61
...
@@ -14,64 +14,10 @@
...
@@ -14,64 +14,10 @@
<li
ngbNavItem
>
<li
ngbNavItem
>
<a
ngbNavLink
>
การจอง
</a>
<a
ngbNavLink
>
การจอง
</a>
<ng-template
ngbNavContent
>
<ng-template
ngbNavContent
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"col-sm-12"
>
<div
class=
""
>
<div
class=
""
>
<div
class=
"card-body"
>
<div
class=
"card-body"
>
<ng-template
#
content
let-modal
style=
"padding: 0; "
>
<div
class=
" col-md-12"
>
<div
class=
"card"
>
<div
class=
" card-header"
>
<h5
class=
" title"
>
Add Equirment
</h5>
</div>
<div
class=
" card-body"
>
<form>
<div
class=
" row"
>
<div
class=
" col-md-12"
>
<div
class=
" form-group"
>
<label>
Name
</label>
<input
class=
" form-control"
placeholder=
""
type=
"text"
value=
""
/>
</div>
</div>
</div>
<div
class=
" row"
>
<div
class=
" col-md-6 mb-2"
>
<div
class=
" form-group"
>
<label>
Type
</label>
<br>
<select
class=
"form-select"
aria-label=
"Default select example"
>
<option
selected
>
Open this select type
</option>
<option
value=
"1"
>
Rooms
</option>
<option
value=
"2"
>
Cars
</option>
</select>
</div>
</div>
</div>
<div
class=
" row"
>
<div
class=
" col-md-12"
>
<div
class=
" form-group"
>
<label>
Details
</label>
<textarea
class=
"form-control"
id=
"exampleFormControlTextarea1"
rows=
"3"
placeholder=
"......"
></textarea>
</div>
</div>
</div>
<label
for=
"exampleFormControlFile"
>
แนบไฟล์รูปภาพ
</label>
<input
type=
"file"
class=
"form-control-file"
id=
"exampleFormControlFile"
>
</form>
</div>
<div
class=
" card-footer"
>
<button
class=
" btn btn-fill btn-danger"
type=
"submit"
>
Save
</button>
<button
class=
" btn btn-fill btn-danger"
type=
"cancel"
>
Cancel
</button>
</div>
</div>
</div>
</ng-template>
<button
class=
"btn btn-lg btn-outline-primary"
<button
class=
"btn btn-lg btn-outline-primary"
(
click
)="
open
(
content
)"
>
เพิ่มรายการ
</button>
(
click
)="
open
(
content
)"
>
เพิ่มรายการ
</button>
...
@@ -91,7 +37,8 @@
...
@@ -91,7 +37,8 @@
<div
class=
"text-center"
>
<div
class=
"text-center"
>
<div
class=
"d-grid gap-2 a-md-flex justify-content-md-end "
>
<div
class=
"d-grid gap-2 a-md-flex justify-content-md-end "
>
<button
class=
"btn btn-sm btn-primary"
type=
"button"
>
ยืม
</button>
<button
class=
"btn btn-sm btn-outline-primary"
(
click
)="
open
(
Room
)"
>
ยืม
</button>
<button
class=
"btn btn-sm btn-primary"
type=
"button"
>
ยกเลิก
</button>
<button
class=
"btn btn-sm btn-primary"
type=
"button"
>
ยกเลิก
</button>
</div>
</div>
</div>
</div>
...
@@ -120,7 +67,6 @@
...
@@ -120,7 +67,6 @@
<li
ngbNavItem
>
<li
ngbNavItem
>
<a
ngbNavLink
>
การเบิก
</a>
<a
ngbNavLink
>
การเบิก
</a>
<ng-template
ngbNavContent
>
<ng-template
ngbNavContent
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"col-sm-12"
>
<div
class=
""
>
<div
class=
""
>
...
@@ -161,8 +107,8 @@
...
@@ -161,8 +107,8 @@
<div
class=
" form-group"
>
<div
class=
" form-group"
>
<label>
Details
</label>
<label>
Details
</label>
<textarea
class=
"form-control"
<textarea
class=
"form-control"
id=
"exampleFormControlTextarea1"
id=
"exampleFormControlTextarea1"
rows=
"3"
rows=
"3"
placeholder=
"......"
></textarea>
placeholder=
"......"
></textarea>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -198,7 +144,8 @@
...
@@ -198,7 +144,8 @@
<div
class=
"text-center"
>
<div
class=
"text-center"
>
<div
class=
"d-grid gap-2 a-md-flex justify-content-md-end"
>
<div
class=
"d-grid gap-2 a-md-flex justify-content-md-end"
>
<button
class=
"btn btn-sm btn-primary"
type=
"button"
>
ยืม
</button>
<button
class=
"btn btn-sm btn-outline-primary"
(
click
)="
open
(
lend
)"
>
ยืม
</button>
<button
class=
"btn btn-sm btn-primary"
type=
"button"
>
ยกเลิก
</button>
<button
class=
"btn btn-sm btn-primary"
type=
"button"
>
ยกเลิก
</button>
</div>
</div>
</div>
</div>
...
@@ -227,4 +174,137 @@
...
@@ -227,4 +174,137 @@
</li>
</li>
</ul>
</ul>
<div
[
ngbNavOutlet
]="
nav
"
></div>
<div
[
ngbNavOutlet
]="
nav
"
></div>
</div>
</div>
\ No newline at end of file
<ng-template
#
content
let-modal
style=
"padding: 0; "
>
<div
class=
" col-md-12"
>
<div
class=
"card"
>
<div
class=
" card-header"
>
<h5
class=
" title"
>
Add Equirment
</h5>
</div>
<div
class=
" card-body"
>
<form>
<div
class=
" row"
>
<div
class=
" col-md-12"
>
<div
class=
" form-group"
>
<label>
Name
</label>
<input
class=
" form-control"
placeholder=
""
type=
"text"
value=
""
/>
</div>
</div>
</div>
<div
class=
" row"
>
<div
class=
" col-md-6 mb-2"
>
<div
class=
" form-group"
>
<label>
Type
</label>
<br>
<select
class=
"form-select"
aria-label=
"Default select example"
>
<option
selected
>
Open this select type
</option>
<option
value=
"1"
>
Rooms
</option>
<option
value=
"2"
>
Cars
</option>
</select>
</div>
</div>
</div>
<div
class=
" row"
>
<div
class=
" col-md-12"
>
<div
class=
" form-group"
>
<label>
Details
</label>
<textarea
class=
"form-control"
id=
"exampleFormControlTextarea1"
rows=
"3"
placeholder=
"......"
></textarea>
</div>
</div>
</div>
<label
for=
"exampleFormControlFile"
>
แนบไฟล์รูปภาพ
</label>
<input
type=
"file"
class=
"form-control-file"
id=
"exampleFormControlFile"
>
</form>
</div>
<div
class=
" card-footer"
>
<button
class=
" btn btn-fill btn-danger"
type=
"submit"
>
Save
</button>
<button
class=
" btn btn-fill btn-danger"
type=
"cancel"
>
Cancel
</button>
</div>
</div>
</div>
</ng-template>
<ng-template
#
Room
let-modal
style=
"padding: 0; "
>
<div
class=
" col-md-12"
>
<div
class=
"card"
>
<div
class=
" card-header"
>
<h5
class=
" title"
>
Booking
</h5>
</div>
<div
class=
" card-body"
>
<form>
<div
class=
" row"
>
<div
class=
" col-md-12"
>
<div
class=
" form-group"
>
<label>
ชื่อผู้จอง
</label>
<input
class=
" form-control"
placeholder=
""
type=
"text"
value=
""
/>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-sm-5 mb-3"
>
<label
for=
"exampleFormControlSelect1"
>
ชื่อห้อง
</label>
<input
readonly
class=
"form-control"
type=
"text"
value=
"{{item.rname}}"
>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-sm-5 mb-3"
>
<label
for=
"exampleFormControlSelect1"
>
รายละเอียด
</label>
<input
readonly
class=
"form-control"
type=
"text"
value=
"{{item.rdecs}}"
>
</div>
</div>
</form>
</div>
<div
class=
" card-footer"
>
<button
class=
" btn btn-fill btn-danger"
type=
"submit"
>
Save
</button>
<button
class=
" btn btn-fill btn-danger"
type=
"close"
>
Cancel
</button>
</div>
</div>
</div>
</ng-template>
<ng-template
#
lend
let-modal
style=
"padding: 0; "
>
<div
class=
" col-md-12"
>
<div
class=
"card"
>
<div
class=
" card-header"
>
<h5
class=
" title"
>
Lend Equirment
</h5>
</div>
<div
class=
" card-body"
>
<form>
<div
class=
" row"
>
<div
class=
" col-md-12"
>
<div
class=
" form-group"
>
<label>
ชื่อผู้จอง
</label>
<input
class=
" form-control"
placeholder=
""
type=
"text"
value=
""
/>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-sm-5 mb-3"
>
<label
for=
"exampleFormControlSelect1"
>
ชื่ออุปกรณ์
</label>
<input
readonly
class=
"form-control"
type=
"text"
value=
"{{item.rname}}"
>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-sm-5 mb-3"
>
<label
for=
"exampleFormControlSelect1"
>
รายละเอียดอุปกรณ์
</label>
<input
readonly
class=
"form-control"
type=
"text"
value=
"{{item.rdecs}}"
>
</div>
</div>
<div
class=
" row"
>
<div
class=
" col-sm-6 mb-2"
>
<label
for=
"changequantity"
>
จำนวน
</label>
<input
id=
"changequantity"
type=
"number"
class=
"form-control form-control-sm"
[(
ngModel
)]="
quantity
"
/>
</div>
</div>
</form>
</div>
<div
class=
" card-footer"
>
<button
class=
" btn btn-fill btn-danger"
type=
"submit"
>
Save
</button>
<button
class=
" btn btn-fill btn-danger"
type=
"close"
>
Cancel
</button>
</div>
</div>
</div>
</ng-template>
\ No newline at end of file
src/app/pages/equipment/equipment.component.ts
View file @
0342af61
...
@@ -83,6 +83,30 @@ export class EquipmentComponent implements OnInit {
...
@@ -83,6 +83,30 @@ export class EquipmentComponent implements OnInit {
rpic
:
"assets/img/car.jpg"
rpic
:
"assets/img/car.jpg"
},
},
]
]
countries
:
Country
[]
=
[
{
catagory
:
'string'
,
type
:
'string'
,
detail
:
'Moniter'
,
name
:
'a'
,
sdate
:
'2021-11-25'
,
edate
:
'2021-11-25'
,
status
:
'waiting'
,
quantity
:
'1'
,
},
{
catagory
:
'string'
,
type
:
'string'
,
detail
:
'Mouse'
,
name
:
'b'
,
sdate
:
'2021-11-25'
,
edate
:
'2021-11-25'
,
status
:
'waiting'
,
quantity
:
'1'
,
}
];
collectionSize
=
this
.
listEquirment
.
length
;
collectionSize
=
this
.
listEquirment
.
length
;
constructor
(
private
modalService
:
NgbModal
)
{
}
constructor
(
private
modalService
:
NgbModal
)
{
}
...
...
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