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
af519bae
Commit
af519bae
authored
Nov 29, 2021
by
DESKTOP-HF0LVOG\myhr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Up ใหม่
parent
9f351b7c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
127 additions
and
0 deletions
+127
-0
items.model.ts
src/app/models/items.model.ts
+32
-0
transection.model.ts
src/app/models/transection.model.ts
+7
-0
lend-page.component.html
src/app/pages/lend-page/lend-page.component.html
+47
-0
lend-page.component.ts
src/app/pages/lend-page/lend-page.component.ts
+41
-0
No files found.
src/app/models/items.model.ts
0 → 100644
View file @
af519bae
interface
RoomModel
{
rid
:
number
;
rname
:
string
;
rdesc
:
string
;
rpic
:
string
;
}
interface
EquirmentModel
{
id
:
number
;
name
:
string
;
desc
:
string
;
type
?:
CategoryModel
;
pic
:
string
;
}
interface
CategoryModel
{
id
:
number
;
name
:
string
;
}
interface
Country
{
id
?:
number
;
catagory
:
string
;
type
:
string
;
detail
:
string
;
name
:
string
;
sdate
:
string
;
edate
:
string
;
status
:
string
;
quantity
:
string
;
}
\ No newline at end of file
src/app/models/transection.model.ts
0 → 100644
View file @
af519bae
interface
TransectionRoom
{
id
:
number
;
employeeId
:
string
;
remark
:
string
;
room
:
RoomModel
;
}
\ No newline at end of file
src/app/pages/lend-page/lend-page.component.html
0 → 100644
View file @
af519bae
<div
class=
"content"
>
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"card"
>
<div
class=
"card-body"
>
<table
class=
"table table-striped"
>
<thead>
<tr>
<th
scope=
"col"
>
#
</th>
<th
scope=
"col"
>
Catagory
</th>
<th
scope=
"col"
>
Type
</th>
<th
scope=
"col"
>
Detail
</th>
<th
scope=
"col"
>
Name
</th>
<th
scope=
"col"
>
Start-Date
</th>
<th
scope=
"col"
>
End-Date
</th>
<th
scope=
"col"
>
Quantity
</th>
</tr>
</thead>
<tbody>
<tr
*
ngFor=
"let country of countries"
>
<th
scope=
"row"
>
{{ country.id }}
</th>
<td>
{{ country.catagory }}
</td>
<td>
{{ country.type }}
</td>
<td>
{{ country.detail }}
</td>
<td>
{{ country.name }}
</td>
<td>
{{ country.sdate | date:'dd-MM-yyyy' }}
</td>
<td>
{{ country.edate | date:'dd-MM-yyyy' }}
</td>
<td>
<button
class=
"btn btn-primary btn-sm"
(
click
)="
_increamentQTY
(
item
.
productId
.
_id
,
1
)"
>
+
</button>
{{ country.quantity }}
<button
class=
"btn btn-primary btn-sm"
>
-
</button>
</td>
</tr>
</tbody>
</table>
<div
class=
"text-center"
>
<div
class=
"d-grid gap-2 a-md-flex justify-content-md-end "
>
<button
class=
"btn btn-sm btn-primary"
type=
"button"
>
ยืม
</button>
<button
class=
"btn btn-sm btn-primary"
type=
"button"
>
ยกเลิก
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
src/app/pages/lend-page/lend-page.component.ts
0 → 100644
View file @
af519bae
import
{
Component
,
OnInit
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-lend-page'
,
templateUrl
:
'./lend-page.component.html'
,
styleUrls
:
[
'./lend-page.component.scss'
]
})
export
class
LendPageComponent
implements
OnInit
{
countries
:
Country
[]
=
[
{
catagory
:
'string'
,
type
:
'string'
,
detail
:
'Moniter'
,
name
:
'a'
,
sdate
:
'2021-11-25'
,
edate
:
'2021-11-25'
,
status
:
'waiting'
,
quantity
:
'1'
,
},
{
catagory
:
'string'
,
type
:
'string'
,
detail
:
'Mouse'
,
name
:
'b'
,
sdate
:
'2021-11-25'
,
edate
:
'2021-11-25'
,
status
:
'waiting'
,
quantity
:
'1'
,
}
];
collectionSize
=
this
.
countries
.
length
;
constructor
()
{
}
ngOnInit
():
void
{
}
}
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