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
37fd070b
Commit
37fd070b
authored
3 years ago
by
Chanachai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edit ภาษาและaddปุ่มค้นหา
parent
51383543
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
96 additions
and
40 deletions
+96
-40
admin-pending.component.html
src/app/pages/admin-pending/admin-pending.component.html
+15
-15
equipment.component.html
src/app/pages/equipment/equipment.component.html
+49
-15
lend-page.component.html
src/app/pages/lend-page/lend-page.component.html
+10
-9
pending.component.html
src/app/pages/pending/pending.component.html
+0
-0
pending.component.ts
src/app/pages/pending/pending.component.ts
+22
-1
No files found.
src/app/pages/admin-pending/admin-pending.component.html
View file @
37fd070b
...
...
@@ -75,13 +75,13 @@
<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"
>
Status
</th>
<th
scope=
"col"
>
หมวดหมู่
</th>
<th
scope=
"col"
>
ประเภท
</th>
<th
scope=
"col"
>
รายละเอียด
</th>
<th
scope=
"col"
>
ชื่อ
</th>
<th
scope=
"col"
>
วันที่เริ่มต้น
</th>
<th
scope=
"col"
>
วันที่สิ้นสุด
</th>
<th
scope=
"col"
>
สถานะ
</th>
</tr>
</thead>
<tbody>
...
...
@@ -134,14 +134,14 @@
<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>
<th
scope=
"col"
>
Status
</th>
<th
scope=
"col"
>
หมวดหมู่
</th>
<th
scope=
"col"
>
ประเภท
</th>
<th
scope=
"col"
>
รายละเอียด
</th>
<th
scope=
"col"
>
ชื่อ
</th>
<th
scope=
"col"
>
วันที่เริ่มต้น
</th>
<th
scope=
"col"
>
วันที่สิ้นสุด
</th>
<th
scope=
"col"
>
จำนวน
</th>
<th
scope=
"col"
>
สถานะ
</th>
</tr>
</thead>
<tbody>
...
...
This diff is collapsed.
Click to expand it.
src/app/pages/equipment/equipment.component.html
View file @
37fd070b
This diff is collapsed.
Click to expand it.
src/app/pages/lend-page/lend-page.component.html
View file @
37fd070b
...
...
@@ -7,13 +7,13 @@
<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>
<th
scope=
"col"
>
หมวดหมู่
</th>
<th
scope=
"col"
>
ประเภท
</th>
<th
scope=
"col"
>
รายละเอียด
</th>
<th
scope=
"col"
>
ชื่อ
</th>
<th
scope=
"col"
>
วันที่เริ่มต้น
</th>
<th
scope=
"col"
>
วันที่สิ้นสุด
</th>
<th
scope=
"col"
>
จำนวน
</th>
</tr>
</thead>
<tbody>
...
...
@@ -26,10 +26,11 @@
<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>
<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>
</td>
</tr>
</tbody>
</table>
...
...
This diff is collapsed.
Click to expand it.
src/app/pages/pending/pending.component.html
View file @
37fd070b
This diff is collapsed.
Click to expand it.
src/app/pages/pending/pending.component.ts
View file @
37fd070b
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
NgbDate
,
NgbCalendar
,
NgbDateParserFormatter
}
from
'@ng-bootstrap/ng-bootstrap'
;
import
{
NgbModal
,
ModalDismissReasons
}
from
'@ng-bootstrap/ng-bootstrap'
;
@
Component
({
selector
:
'app-pending'
,
...
...
@@ -36,6 +37,8 @@ export class PendingComponent implements OnInit {
page
=
1
;
pageSize
=
10
;
closeResult
=
''
;
countries
:
Country
[]
=
[
{
catagory
:
'string'
,
...
...
@@ -68,7 +71,7 @@ export class PendingComponent implements OnInit {
fromDate
:
NgbDate
|
null
;
toDate
:
NgbDate
|
null
;
constructor
(
private
calendar
:
NgbCalendar
,
public
formatter
:
NgbDateParserFormatter
)
{
constructor
(
private
calendar
:
NgbCalendar
,
public
formatter
:
NgbDateParserFormatter
,
private
modalService
:
NgbModal
)
{
this
.
fromDate
=
calendar
.
getToday
();
this
.
toDate
=
calendar
.
getNext
(
calendar
.
getToday
(),
'd'
,
10
);
this
.
refreshCountries
();
...
...
@@ -91,6 +94,24 @@ export class PendingComponent implements OnInit {
}
}
open
(
content
)
{
this
.
modalService
.
open
(
content
,
{
ariaLabelledBy
:
'modal-basic-title'
}).
result
.
then
((
result
)
=>
{
this
.
closeResult
=
`Closed with:
${
result
}
`
;
},
(
reason
)
=>
{
this
.
closeResult
=
`Dismissed
${
this
.
getDismissReason
(
reason
)}
`
;
});
}
private
getDismissReason
(
reason
:
any
):
string
{
if
(
reason
===
ModalDismissReasons
.
ESC
)
{
return
'by pressing ESC'
;
}
else
if
(
reason
===
ModalDismissReasons
.
BACKDROP_CLICK
)
{
return
'by clicking on a backdrop'
;
}
else
{
return
`with:
${
reason
}
`
;
}
}
isHovered
(
date
:
NgbDate
)
{
return
this
.
fromDate
&&
!
this
.
toDate
&&
this
.
hoveredDate
&&
date
.
after
(
this
.
fromDate
)
&&
date
.
before
(
this
.
hoveredDate
);
}
...
...
This diff is collapsed.
Click to expand it.
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