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
217ff232
Commit
217ff232
authored
Dec 14, 2021
by
DESKTOP-HF0LVOG\myhr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup myForm หน้า admin
parent
374f8af9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
1 deletions
+34
-1
admin-pending.component.html
src/app/pages/admin-pending/admin-pending.component.html
+0
-0
admin-pending.component.ts
src/app/pages/admin-pending/admin-pending.component.ts
+34
-0
room-detail.service.ts
src/app/service/room-detail.service.ts
+0
-1
No files found.
src/app/pages/admin-pending/admin-pending.component.html
View file @
217ff232
This diff is collapsed.
Click to expand it.
src/app/pages/admin-pending/admin-pending.component.ts
View file @
217ff232
...
...
@@ -121,6 +121,22 @@ export class AdminPendingComponent implements OnInit {
this
.
sDate
=
sDate
[
0
]
+
"-"
+
sDate
[
1
]
+
"-"
+
sDate
[
2
]
let
eDate
=
this
.
modelItemDetail
.
eDate
.
split
(
'/'
)
this
.
eDate
=
eDate
[
0
]
+
"-"
+
eDate
[
1
]
+
"-"
+
eDate
[
2
]
this
.
myFormEquir
=
new
FormGroup
({
userNameForm
:
new
FormControl
(
this
.
modelItemDetail
.
userName
,
[
Validators
.
required
]),
eTelephone
:
new
FormControl
(
this
.
modelItemDetail
.
eTelephone
,
[
Validators
.
required
]),
email
:
new
FormControl
(
this
.
modelItemDetail
.
email
,
[
Validators
.
required
,
Validators
.
email
]),
eqName
:
new
FormControl
(
this
.
modelItemDetail
.
equirment
.
eqName
,
[
Validators
.
required
]),
eqDesc
:
new
FormControl
(
this
.
modelItemDetail
.
equirment
.
eqDesc
,
[
Validators
.
required
]),
eqType
:
new
FormControl
(
this
.
modelItemDetail
.
equirment
.
eqType
,
[
Validators
.
required
]),
sDate
:
new
FormControl
(
this
.
modelItemDetail
.
sDate
,
[
Validators
.
required
]),
eDate
:
new
FormControl
(
this
.
modelItemDetail
.
eDate
,
[
Validators
.
required
]),
sTime
:
new
FormControl
(
this
.
modelItemDetail
.
sTime
,
[
Validators
.
required
]),
eTime
:
new
FormControl
(
this
.
modelItemDetail
.
eTime
,
[
Validators
.
required
]),
Quantity
:
new
FormControl
(
this
.
modelItemDetail
.
Quantity
,
[
Validators
.
required
]),
Remark
:
new
FormControl
(
this
.
modelItemDetail
.
Remark
),
eStatus
:
new
FormControl
(
this
.
modelItemDetail
.
eStatus
)
})
this
.
modalService
.
open
(
content
,
{
ariaLabelledBy
:
'modal-basic-title'
}).
result
.
then
((
result
)
=>
{
this
.
closeResult
=
`Closed with:
${
result
}
`
;
},
(
reason
)
=>
{
...
...
@@ -148,6 +164,22 @@ export class AdminPendingComponent implements OnInit {
this
.
sDate
=
SDate
[
0
]
+
"-"
+
SDate
[
1
]
+
"-"
+
SDate
[
2
]
let
EDate
=
this
.
modelRoomDetail
.
eDate
.
split
(
'/'
)
this
.
eDate
=
EDate
[
0
]
+
"-"
+
EDate
[
1
]
+
"-"
+
EDate
[
2
]
this
.
myFormRoom
=
new
FormGroup
({
userNameForm
:
new
FormControl
(
this
.
modelRoomDetail
.
userName
,
[
Validators
.
required
]),
rTelephone
:
new
FormControl
(
this
.
modelRoomDetail
.
rTelephone
,
[
Validators
.
required
]),
email
:
new
FormControl
(
this
.
modelRoomDetail
.
email
,
[
Validators
.
required
,
Validators
.
email
]),
rName
:
new
FormControl
(
this
.
modelRoomDetail
.
room
.
rName
,
[
Validators
.
required
]),
rDesc
:
new
FormControl
(
this
.
modelRoomDetail
.
room
.
rDesc
,
[
Validators
.
required
]),
rType
:
new
FormControl
(
this
.
modelRoomDetail
.
room
.
rType
,
[
Validators
.
required
]),
sDate
:
new
FormControl
(
this
.
modelRoomDetail
.
sDate
,
[
Validators
.
required
]),
eDate
:
new
FormControl
(
this
.
modelRoomDetail
.
sTime
,
[
Validators
.
required
]),
sTime
:
new
FormControl
(
this
.
modelRoomDetail
.
eDate
,
[
Validators
.
required
]),
eTime
:
new
FormControl
(
this
.
modelRoomDetail
.
eTime
,
[
Validators
.
required
]),
Remark
:
new
FormControl
(
this
.
modelRoomDetail
.
Remark
),
rStatus
:
new
FormControl
(
this
.
modelRoomDetail
.
rStatus
)
});
this
.
modalService
.
open
(
content
,
{
ariaLabelledBy
:
'modal-basic-title'
}).
result
.
then
((
result
)
=>
{
this
.
closeResult
=
`Closed with:
${
result
}
`
;
},
(
reason
)
=>
{
...
...
@@ -239,6 +271,8 @@ export class AdminPendingComponent implements OnInit {
this
.
ngOnInit
();
console
.
log
(
this
.
modelRoomDetail
)
}
}
export
class
NgbdDropdownBasic
{
...
...
src/app/service/room-detail.service.ts
View file @
217ff232
...
...
@@ -80,7 +80,6 @@ export class RoomDetailService {
x
.
Id
==
model
.
Id
)
console
.
log
(
"temp"
,
temp
);
}
getListRoomDetail
()
{
...
...
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