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
f44d0a6f
Commit
f44d0a6f
authored
Dec 23, 2021
by
Chanachai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update หน้า calendar หน้าการเบิก
parent
bd43e3c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
70 additions
and
1 deletions
+70
-1
home-page-lend-calendar.component.html
...pp/pages/home-page/home-page-lend-calendar.component.html
+37
-0
home-page.component.ts
src/app/pages/home-page/home-page.component.ts
+33
-1
No files found.
src/app/pages/home-page/home-page-lend-calendar.component.html
0 → 100644
View file @
f44d0a6f
<div
class=
"modal-header"
>
<h4
class=
"modal-title"
>
รายละเอียดการเบิก
</h4>
<button
type=
"button"
class=
"close"
aria-label=
"Close"
(
click
)="
activeModal
.
dismiss
('
Cross
click
')"
>
<span
aria-hidden=
"true"
>
×
</span>
</button>
</div>
<div
class=
" modal-body"
>
<div
class=
" row"
>
<div
class=
" col-md-12"
>
<div
class=
" form-group"
>
<label>
ชื่อผู้เบิก
</label>
<input
readonly
class=
" form-control"
type=
"text"
value=
{{name}}
style=
"color: aliceblue;"
/>
</div>
</div>
</div>
<div
class=
" row"
>
<div
class=
" col-md-12"
>
<div
class=
" form-group"
>
<label>
เบอร์โทร
</label>
<input
readonly
class=
" form-control"
type=
"text"
value=
{{telephone}}
style=
"color: aliceblue;"
/>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-sm-12 mb-1"
>
<label
for=
"exampleFormControlSelect1"
>
ชื่ออุปกรณ์
</label>
<input
readonly
class=
"form-control"
type=
"text"
value=
{{eqName}}
style=
"color: aliceblue;"
>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-sm-12 mb-1"
>
<label
for=
"exampleFormControlSelect1"
>
จำนวน
</label>
<input
readonly
class=
"form-control"
type=
"text"
value=
{{quantity}}
style=
"color: aliceblue;"
>
</div>
</div>
</div>
\ No newline at end of file
src/app/pages/home-page/home-page.component.ts
View file @
f44d0a6f
...
...
@@ -27,6 +27,20 @@ export class NgbdModalContent {
}
@
Component
({
selector
:
'ngbd-modal-content'
,
templateUrl
:
'./home-page-lend-calendar.component.html'
,
})
export
class
NgbdModalLendContent
{
@
Input
()
name
;
telephone
;
eqName
;
quantity
;
constructor
(
public
activeModal
:
NgbActiveModal
)
{
}
}
@
Component
({
selector
:
'app-home-page'
,
templateUrl
:
'./home-page.component.html'
,
styleUrls
:
[
'./home-page.component.scss'
],
...
...
@@ -73,6 +87,7 @@ export class HomePageComponent implements OnInit {
modelItemDetail
=
new
ItemDetail
();
modelRoomDetail
=
new
RoomDetail
();
selectedRoomDetail
=
new
RoomDetail
();
selectedItemDetail
=
new
ItemDetail
();
hoveredDate
:
NgbDate
|
null
=
null
;
...
...
@@ -115,6 +130,13 @@ export class HomePageComponent implements OnInit {
this
.
eventShow
();
}
handleLendClick
(
arg
)
{
// alert('date click! ' + arg.dateStr)
this
.
selectedItemDetail
=
arg
.
event
.
extendedProps
;
console
.
log
(
this
.
selectedItemDetail
)
this
.
eventLendShow
();
}
dateKub
()
{
return
this
.
listRoomDetail
.
length
}
...
...
@@ -230,7 +252,8 @@ export class HomePageComponent implements OnInit {
themeSystem
:
'bootstrap'
,
dayMaxEventRows
:
true
,
locale
:
"th"
,
events
:
this
.
eventEquirment
events
:
this
.
eventEquirment
,
eventClick
:
this
.
handleLendClick
.
bind
(
this
),
};
}
...
...
@@ -254,6 +277,15 @@ export class HomePageComponent implements OnInit {
modalRef
.
componentInstance
.
sTime
=
this
.
selectedRoomDetail
.
sTime
;
modalRef
.
componentInstance
.
eTime
=
this
.
selectedRoomDetail
.
eTime
;
}
eventLendShow
()
{
this
.
listItemDetail
=
this
.
ItemDetailService
.
getListItemDetail
();
const
modalRef
=
this
.
modalService
.
open
(
NgbdModalLendContent
);
modalRef
.
componentInstance
.
name
=
this
.
selectedItemDetail
.
userName
;
modalRef
.
componentInstance
.
telephone
=
this
.
selectedItemDetail
.
eTelephone
;
modalRef
.
componentInstance
.
eqName
=
this
.
selectedItemDetail
.
equirment
.
eqName
;
modalRef
.
componentInstance
.
quantity
=
this
.
selectedItemDetail
.
Quantity
;
}
}
function
content
(
content
:
any
,
arg1
:
{
ariaLabelledBy
:
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