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
37815da0
Commit
37815da0
authored
Dec 16, 2021
by
DESKTOP-HF0LVOG\myhr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update ปุ่มจองทั้งวัน
parent
1bc6ca85
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
15 deletions
+36
-15
admin-pending.component.html
src/app/pages/admin-pending/admin-pending.component.html
+1
-1
equipment.component.html
src/app/pages/equipment/equipment.component.html
+29
-11
equipment.component.ts
src/app/pages/equipment/equipment.component.ts
+5
-2
pending.component.html
src/app/pages/pending/pending.component.html
+1
-1
No files found.
src/app/pages/admin-pending/admin-pending.component.html
View file @
37815da0
...
...
@@ -87,7 +87,7 @@
</thead>
<tbody>
<tr
*
ngFor=
"let item of listRoomDetail"
>
<th
scope=
"row"
>
{{ item.
I
d }}
</th>
<th
scope=
"row"
>
{{ item.
i
d }}
</th>
<td>
{{ item.room.rType }}
</td>
<td>
{{ item.room.rName }}
</td>
<td>
{{ item.room.rDesc }}
</td>
...
...
src/app/pages/equipment/equipment.component.html
View file @
37815da0
...
...
@@ -19,7 +19,8 @@
<div
class=
""
>
<div
class=
"card-body"
>
<div
class=
"row"
>
<div
class=
"col-sm-3"
*
ngFor=
"let item of listRoomModel|slice: (pageListRoom-1) * pageSizeListRoom :(pageListRoom-1) * pageSizeListRoom + pageSizeListRoom ;let i = index"
>
<div
class=
"col-sm-3"
*
ngFor=
"let item of listRoomModel|slice: (pageListRoom-1) * pageSizeListRoom :(pageListRoom-1) * pageSizeListRoom + pageSizeListRoom ;let i = index"
>
<div
class=
"card"
style=
"
padding: 10px;"
>
<div
class=
"card-body"
>
...
...
@@ -70,7 +71,8 @@
<div
class=
""
>
<div
class=
"card-body"
>
<div
class=
"row"
>
<div
class=
"col-sm-3"
*
ngFor=
"let item of listEquirmentModel |slice: (page-1) * pageSize :(page-1) * pageSize + pageSize ;let i = index"
>
<div
class=
"col-sm-3"
*
ngFor=
"let item of listEquirmentModel |slice: (page-1) * pageSize :(page-1) * pageSize + pageSize ;let i = index"
>
<div
class=
"card"
style=
"
padding: 10px;"
>
<div
class=
"card-body"
>
...
...
@@ -250,7 +252,7 @@
<div
class=
" form-group"
>
<label>
ชื่อผู้จอง
</label>
<input
class=
" form-control"
placeholder=
""
type=
"text"
[(
ngModel
)]="
modelRoomDetail
.
userName
"
formControlName=
"userNameForm"
/>
[(
ngModel
)]="
modelRoomDetail
.
userName
"
formControlName=
"userNameForm"
/>
<div
style=
"color: red;"
*
ngIf=
"myFormRoom.controls.userNameForm.status=='INVALID'"
>
กรุณากรอกชื่อผู้จอง.
</div>
</div>
...
...
@@ -312,10 +314,23 @@
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-12 mb-1"
>
<div
class=
" form-check"
>
<label
class=
" form-check-label"
>
<input
class=
" form-check{{readonly ? 'danger' : 'success'}}"
type=
"checkbox"
value=
""
(
click
)="
readonly =
!readonly"
/>
<span
class=
" form-check-sign"
>
<span
class=
"check"
>
ทั้งวัน
</span>
</span>
</label>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-6 mb-1"
>
<label
for=
"exampleFormControlSelect1"
>
เวลาที่เริ่มต้น
</label>
<input
class=
"form-control"
type=
"time"
[(
ngModel
)]="
modelRoomDetail
.
sTime
"
formControlName=
"sTime"
/>
<input
class=
"form-control"
type=
"time"
[(
ngModel
)]="
modelRoomDetail
.
sTime
"
formControlName=
"sTime"
[
readonly
]="
readonly
"
/>
<div
style=
"color: red;"
*
ngIf=
"myFormRoom.controls.sTime.status=='INVALID'"
>
กรุณากรอกเวลาที่เริ่มต้นการจอง.
</div>
...
...
@@ -323,8 +338,9 @@
</div>
<div
class=
"col-6 mb-1"
>
<label
for=
"exampleFormControlSelect1"
>
เวลาที่สิ้นสุด
</label>
<input
class=
"form-control"
type=
"time"
[(
ngModel
)]="
modelRoomDetail
.
eTime
"
formControlName=
"eTime"
/>
<input
class=
"form-control"
type=
"time"
[(
ngModel
)]="
modelRoomDetail
.
eTime
"
formControlName=
"eTime"
[
readonly
]="
readonly
"
/>
<div
style=
"color: red;"
*
ngIf=
"myFormRoom.controls.eTime.status=='INVALID'"
>
กรุณากรอกเวลาที่สิ้นสุดการจอง.
</div>
...
...
@@ -429,16 +445,18 @@
<div
class=
"row"
>
<div
class=
"col-6 mb-1"
>
<label
for=
"exampleFormControlSelect1"
>
เวลาที่เริ่มต้น
</label>
<input
class=
"form-control"
type=
"time"
[(
ngModel
)]="
modelItemDetail
.
sTime
"
formControlName=
"sTime"
/>
<input
class=
"form-control"
type=
"time"
[(
ngModel
)]="
modelItemDetail
.
sTime
"
formControlName=
"sTime"
/>
<div
style=
"color: red;"
*
ngIf=
"myFormEquir.controls.sTime.status=='INVALID'"
>
กรุณากรอกเวลาที่เริ่มต้นการเบิก.
</div>
</div>
<div
class=
"col-6 mb-1"
>
<label
for=
"exampleFormControlSelect1"
>
เวลาที่สิ้นสุด
</label>
<input
class=
"form-control"
type=
"time"
[(
ngModel
)]="
modelItemDetail
.
eTime
"
formControlName=
"eTime"
/>
<input
class=
"form-control"
type=
"time"
[(
ngModel
)]="
modelItemDetail
.
eTime
"
formControlName=
"eTime"
/>
<div
style=
"color: red;"
*
ngIf=
"myFormEquir.controls.eTime.status=='INVALID'"
>
กรุณากรอกเวลาที่สิ้นสุดการเบิก.
</div>
...
...
src/app/pages/equipment/equipment.component.ts
View file @
37815da0
...
...
@@ -18,6 +18,8 @@ import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms'
})
export
class
EquipmentComponent
implements
OnInit
{
time
=
{
hour
:
13
,
minute
:
30
};
readonly
=
false
;
closeResult
=
''
;
...
...
@@ -42,6 +44,8 @@ export class EquipmentComponent implements OnInit {
myFormRoom
:
FormGroup
;
myFormEquir
:
FormGroup
;
ctrl
=
new
FormControl
(
null
,
Validators
.
required
);
constructor
(
private
modalService
:
NgbModal
,
private
equirmentService
:
EquirmentService
,
private
roomService
:
RoomService
,
private
ItemDetailService
:
ItemDetailService
,
private
RoomDetailService
:
RoomDetailService
,
private
fb
:
FormBuilder
)
{
...
...
@@ -189,8 +193,6 @@ export class EquipmentComponent implements OnInit {
}
saveBook
()
{
this
.
modelRoomDetail
.
sDate
=
this
.
modelRoomDetail
.
sDate
.
split
(
"-"
)[
0
]
+
"/"
+
this
.
modelRoomDetail
.
sDate
.
split
(
"-"
)[
1
]
+
"/"
+
this
.
modelRoomDetail
.
sDate
.
split
(
"-"
)[
2
];
this
.
modelRoomDetail
.
eDate
=
this
.
modelRoomDetail
.
eDate
.
split
(
"-"
)[
0
]
+
"/"
+
this
.
modelRoomDetail
.
eDate
.
split
(
"-"
)[
1
]
+
"/"
+
this
.
modelRoomDetail
.
eDate
.
split
(
"-"
)[
2
];
this
.
modelRoomDetail
.
rStatus
=
0
;
...
...
@@ -200,5 +202,6 @@ export class EquipmentComponent implements OnInit {
this
.
ngOnInit
();
}
}
src/app/pages/pending/pending.component.html
View file @
37815da0
...
...
@@ -87,7 +87,7 @@
</thead>
<tbody>
<tr
*
ngFor=
"let item of listRoomDetail"
>
<th
scope=
"row"
>
{{ item.
I
d }}
</th>
<th
scope=
"row"
>
{{ item.
i
d }}
</th>
<td>
{{ item.room.rType }}
</td>
<td>
{{ item.room.rName }}
</td>
<td>
{{ item.room.rDesc }}
</td>
...
...
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