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
91aa3926
Commit
91aa3926
authored
Dec 15, 2021
by
DESKTOP-HF0LVOG\myhr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update service
parent
b0670726
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
19 deletions
+37
-19
equirment.service.ts
src/app/service/equirment.service.ts
+25
-16
room.service.ts
src/app/service/room.service.ts
+12
-3
No files found.
src/app/service/equirment.service.ts
View file @
91aa3926
...
...
@@ -38,112 +38,112 @@ export class EquirmentService {
eqPic
:
"assets/img/keyboard.png"
},
{
eqId
:
1
,
eqId
:
5
,
eqName
:
"จอคอมพิวเตอร์"
,
eqDesc
:
"หน้าจอขนาด 22 นิ้ว"
,
eqType
:
"it"
,
eqPic
:
"assets/img/mo1.jpg"
},
{
eqId
:
2
,
eqId
:
6
,
eqName
:
"เมาส์"
,
eqDesc
:
"..."
,
eqType
:
"it"
,
eqPic
:
"assets/img/mou.jpg"
},
{
eqId
:
3
,
eqId
:
7
,
eqName
:
"โน๊ตบุ๊ค"
,
eqDesc
:
"หน้าจอขนาด 20 นิ้ว"
,
eqType
:
"it"
,
eqPic
:
"assets/img/notebook.jpg"
},
{
eqId
:
4
,
eqId
:
8
,
eqName
:
"คีย์บอร์ด"
,
eqDesc
:
"..."
,
eqType
:
"it"
,
eqPic
:
"assets/img/keyboard.png"
},
{
eqId
:
1
,
eqId
:
9
,
eqName
:
"จอคอมพิวเตอร์"
,
eqDesc
:
"หน้าจอขนาด 22 นิ้ว"
,
eqType
:
"it"
,
eqPic
:
"assets/img/mo1.jpg"
},
{
eqId
:
2
,
eqId
:
10
,
eqName
:
"เมาส์"
,
eqDesc
:
"..."
,
eqType
:
"it"
,
eqPic
:
"assets/img/mou.jpg"
},
{
eqId
:
3
,
eqId
:
11
,
eqName
:
"โน๊ตบุ๊ค"
,
eqDesc
:
"หน้าจอขนาด 20 นิ้ว"
,
eqType
:
"it"
,
eqPic
:
"assets/img/notebook.jpg"
},
{
eqId
:
4
,
eqId
:
12
,
eqName
:
"คีย์บอร์ด"
,
eqDesc
:
"..."
,
eqType
:
"it"
,
eqPic
:
"assets/img/keyboard.png"
},
{
eqId
:
1
,
eqId
:
1
3
,
eqName
:
"จอคอมพิวเตอร์"
,
eqDesc
:
"หน้าจอขนาด 22 นิ้ว"
,
eqType
:
"it"
,
eqPic
:
"assets/img/mo1.jpg"
},
{
eqId
:
2
,
eqId
:
14
,
eqName
:
"เมาส์"
,
eqDesc
:
"..."
,
eqType
:
"it"
,
eqPic
:
"assets/img/mou.jpg"
},
{
eqId
:
3
,
eqId
:
15
,
eqName
:
"โน๊ตบุ๊ค"
,
eqDesc
:
"หน้าจอขนาด 20 นิ้ว"
,
eqType
:
"it"
,
eqPic
:
"assets/img/notebook.jpg"
},
{
eqId
:
4
,
eqId
:
16
,
eqName
:
"คีย์บอร์ด"
,
eqDesc
:
"..."
,
eqType
:
"it"
,
eqPic
:
"assets/img/keyboard.png"
},
{
eqId
:
1
,
eqId
:
1
7
,
eqName
:
"จอคอมพิวเตอร์"
,
eqDesc
:
"หน้าจอขนาด 22 นิ้ว"
,
eqType
:
"it"
,
eqPic
:
"assets/img/mo1.jpg"
},
{
eqId
:
2
,
eqId
:
18
,
eqName
:
"เมาส์"
,
eqDesc
:
"..."
,
eqType
:
"it"
,
eqPic
:
"assets/img/mou.jpg"
},
{
eqId
:
3
,
eqId
:
19
,
eqName
:
"โน๊ตบุ๊ค"
,
eqDesc
:
"หน้าจอขนาด 20 นิ้ว"
,
eqType
:
"it"
,
eqPic
:
"assets/img/notebook.jpg"
},
{
eqId
:
4
,
eqId
:
20
,
eqName
:
"คีย์บอร์ด"
,
eqDesc
:
"..."
,
eqType
:
"it"
,
...
...
@@ -206,6 +206,15 @@ export class EquirmentService {
})
}
updateEquirProfile
(
model
:
Equirment
)
{
this
.
listEquirment
=
this
.
listEquirment
.
filter
((
value
,
key
)
=>
{
if
(
value
.
eqId
===
model
.
eqId
)
{
value
=
model
;
}
return
true
;
});
}
EquirmentModel
(
eqId
:
string
)
{
}
...
...
src/app/service/room.service.ts
View file @
91aa3926
...
...
@@ -169,7 +169,7 @@ export class RoomService {
}
,
{
rId
:
2
,
rId
:
2
0
,
rName
:
"ห้องคู่"
,
rType
:
"ห้อง"
,
rPic
:
"assets/img/room.jpg"
,
...
...
@@ -177,7 +177,7 @@ export class RoomService {
rDesc
:
"จำนวนคน 50 คน"
,
},
{
rId
:
2
0
,
rId
:
2
1
,
rName
:
"ห้องรวม"
,
rType
:
"ห้อง"
,
rPic
:
"assets/img/room.jpg"
,
...
...
@@ -185,7 +185,7 @@ export class RoomService {
rDesc
:
"จำนวนคน 100 คน"
,
},
{
rId
:
2
1
,
rId
:
2
2
,
rName
:
"รถ"
,
rType
:
"รถ"
,
rPic
:
"assets/img/car.jpg"
,
...
...
@@ -247,6 +247,15 @@ export class RoomService {
})
}
updateRoomProfile
(
model
:
Room
)
{
this
.
listRoomModel
=
this
.
listRoomModel
.
filter
((
value
,
key
)
=>
{
if
(
value
.
rId
===
model
.
rId
)
{
value
=
model
;
}
return
true
;
});
}
roomModel
(
rId
:
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