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
e31a1e11
Commit
e31a1e11
authored
Dec 15, 2021
by
DESKTOP-HF0LVOG\myhr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update ลบอุปกรณ์
parent
ab2ed268
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
11 deletions
+47
-11
admin-equirment.component.html
src/app/pages/admin-equirment/admin-equirment.component.html
+19
-1
admin-equirment.component.ts
src/app/pages/admin-equirment/admin-equirment.component.ts
+16
-1
admin-pending.component.html
src/app/pages/admin-pending/admin-pending.component.html
+4
-6
pending.component.html
src/app/pages/pending/pending.component.html
+2
-3
equirment.service.ts
src/app/service/equirment.service.ts
+6
-0
No files found.
src/app/pages/admin-equirment/admin-equirment.component.html
View file @
e31a1e11
...
...
@@ -100,7 +100,7 @@
<button
class=
"btn btn-sm btn-outline-primary"
(
click
)="
Eopen
(
editLend
,((
page-1
)
*
pageSize
)+
i
)"
>
แก้ไข
</button>
<button
class=
"btn btn-sm btn-danger"
type=
"button.dispose
"
>
ลบ
</button>
(
click
)="
openDeleteEquirment
(
deleteEquirPopup
,
item
)
"
>
ลบ
</button>
</div>
</div>
</div>
...
...
@@ -350,4 +350,21 @@
</div>
</div>
</div>
</ng-template>
<ng-template
#
deleteEquirPopup
let-modal
>
<div
class=
" col-md-12"
style=
"padding: 0; "
>
<div
class=
"card"
style=
"margin: 0; "
>
<div
class=
" card-header"
>
<h5
class=
" title"
>
ลบข้อมูล
</h5>
</div>
<div
class=
"card-body"
>
<h4
class=
"text"
>
คุณต้องการลบข้อมูลจริงหรือไม่
</h4>
</div>
<div
class=
" card-footer"
>
<button
class=
" btn btn-fill btn-danger"
type=
"submit"
(
click
)="
deleteEquirProfile
()"
>
ยืนยัน
</button>
<button
class=
" btn btn-fill btn-danger"
type=
"cancel"
(
click
)="
modal
.
dismiss
()"
>
ยกเลิก
</button>
</div>
</div>
</div>
</ng-template>
\ No newline at end of file
src/app/pages/admin-equirment/admin-equirment.component.ts
View file @
e31a1e11
...
...
@@ -282,8 +282,14 @@ export class AdminEquirmentComponent implements OnInit {
this
.
modalService
.
dismissAll
();
this
.
ngOnInit
();
}
deleteEquirProfile
()
{
this
.
equirmentService
.
deleteEquirProfile
(
this
.
modelEquirment
)
this
.
modalService
.
dismissAll
();
this
.
ngOnInit
();
}
openDelete
(
deleteRoom
,
item
)
{
openDelete
Room
(
deleteRoom
,
item
)
{
this
.
modelRoom
=
item
;
this
.
modalService
.
open
(
deleteRoom
,
{
ariaLabelledBy
:
'modal-basic-title'
}).
result
.
then
((
result
)
=>
{
this
.
closeResult
=
`Closed with:
${
result
}
`
;
...
...
@@ -292,4 +298,13 @@ export class AdminEquirmentComponent implements OnInit {
});
}
openDeleteEquirment
(
deleteEquirment
,
item
)
{
this
.
modelEquirment
=
item
;
this
.
modalService
.
open
(
deleteEquirment
,
{
ariaLabelledBy
:
'modal-basic-title'
}).
result
.
then
((
result
)
=>
{
this
.
closeResult
=
`Closed with:
${
result
}
`
;
},
(
reason
)
=>
{
this
.
closeResult
=
`Dismissed
${
this
.
getDismissReason
(
reason
)}
`
;
});
}
}
src/app/pages/admin-pending/admin-pending.component.html
View file @
e31a1e11
...
...
@@ -94,10 +94,9 @@
<td>
{{ item.userName }}
</td>
<td>
{{ item.sDate | date : 'dd/MM/yyyy' }} {{ item.sTime }}
</td>
<td>
{{ item.eDate | date : 'dd/MM/yyyy' }} {{ item.eTime }}
</td>
<td
*
ngIf=
"item.rStatus==0"
>
รอดำเนินการ
</td>
<td
*
ngIf=
"item.rStatus==1"
>
อนุมัติ
</td>
<td
*
ngIf=
"item.rStatus==0"
>
จอง
</td>
<td
*
ngIf=
"item.rStatus==1"
>
ไม่
อนุมัติ
</td>
<td
*
ngIf=
"item.rStatus==2"
>
ยกเลิก
</td>
<td
*
ngIf=
"item.rStatus==3"
>
สำเร็จแล้ว
</td>
<div
class=
"col-auto align-self-sm-center"
>
<button
type=
"button"
class=
"btn btn-info btn-sm btn-circle "
style=
"line-height: 0px"
(
click
)="
openRoomDetail
(
Room
,
item
)"
><i
...
...
@@ -295,10 +294,9 @@
<label>
สถานะ
</label>
<select
class=
"custom-select form-control"
aria-label=
"Default select example"
formControlName=
"rStatus"
>
<option
value=
"0"
selected
style=
"color: black;"
>
รอดำเนินการ
</option>
<option
value=
"1"
style=
"color: black;"
>
อนุมัติ
</option>
<option
value=
"0"
selected
style=
"color: black;"
>
จอง
</option>
<option
value=
"1"
style=
"color: black;"
>
ไม่
อนุมัติ
</option>
<option
value=
"2"
style=
"color: black;"
>
ยกเลิก
</option>
<option
value=
"3"
style=
"color: black;"
>
สำเร็จแล้ว
</option>
</select>
</div>
</div>
...
...
src/app/pages/pending/pending.component.html
View file @
e31a1e11
...
...
@@ -94,10 +94,9 @@
<td>
{{ item.userName }}
</td>
<td>
{{ item.sDate | date : 'dd/MM/yyyy' }} {{ item.sTime }}
</td>
<td>
{{ item.eDate | date : 'dd/MM/yyyy' }} {{ item.eTime }}
</td>
<td
*
ngIf=
"item.rStatus==0"
>
รอดำเนินการ
</td>
<td
*
ngIf=
"item.rStatus==1"
>
อนุมัติ
</td>
<td
*
ngIf=
"item.rStatus==0"
>
จอง
</td>
<td
*
ngIf=
"item.rStatus==1"
>
ไม่
อนุมัติ
</td>
<td
*
ngIf=
"item.rStatus==2"
>
ยกเลิก
</td>
<td
*
ngIf=
"item.rStatus==3"
>
สำเร็จแล้ว
</td>
<div
class=
"col-auto align-self-sm-center"
>
<button
type=
"button"
class=
"btn btn-info btn-sm btn-circle "
style=
"line-height: 0px"
(
click
)="
openRoomDetail
(
Room
,
item
)"
><i
...
...
src/app/service/equirment.service.ts
View file @
e31a1e11
...
...
@@ -215,6 +215,12 @@ export class EquirmentService {
});
}
deleteEquirProfile
(
row_obj
:
Equirment
)
{
this
.
listEquirment
=
this
.
listEquirment
.
filter
((
value
,
key
)
=>
{
return
value
.
eqId
!==
row_obj
.
eqId
;
});
}
EquirmentModel
(
eqId
:
string
)
{
}
...
...
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