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
Nov 29, 2021
by
Chanachai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edit ภาษาและaddปุ่มค้นหา
parent
51383543
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
95 additions
and
39 deletions
+95
-39
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
+9
-8
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 @@
...
@@ -75,13 +75,13 @@
<thead>
<thead>
<tr>
<tr>
<th
scope=
"col"
>
#
</th>
<th
scope=
"col"
>
#
</th>
<th
scope=
"col"
>
Catagory
</th>
<th
scope=
"col"
>
หมวดหมู่
</th>
<th
scope=
"col"
>
Type
</th>
<th
scope=
"col"
>
ประเภท
</th>
<th
scope=
"col"
>
Detail
</th>
<th
scope=
"col"
>
รายละเอียด
</th>
<th
scope=
"col"
>
Name
</th>
<th
scope=
"col"
>
ชื่อ
</th>
<th
scope=
"col"
>
Start-Date
</th>
<th
scope=
"col"
>
วันที่เริ่มต้น
</th>
<th
scope=
"col"
>
End-Date
</th>
<th
scope=
"col"
>
วันที่สิ้นสุด
</th>
<th
scope=
"col"
>
Status
</th>
<th
scope=
"col"
>
สถานะ
</th>
</tr>
</tr>
</thead>
</thead>
<tbody>
<tbody>
...
@@ -134,14 +134,14 @@
...
@@ -134,14 +134,14 @@
<thead>
<thead>
<tr>
<tr>
<th
scope=
"col"
>
#
</th>
<th
scope=
"col"
>
#
</th>
<th
scope=
"col"
>
Catagory
</th>
<th
scope=
"col"
>
หมวดหมู่
</th>
<th
scope=
"col"
>
Type
</th>
<th
scope=
"col"
>
ประเภท
</th>
<th
scope=
"col"
>
Detail
</th>
<th
scope=
"col"
>
รายละเอียด
</th>
<th
scope=
"col"
>
Name
</th>
<th
scope=
"col"
>
ชื่อ
</th>
<th
scope=
"col"
>
Start-Date
</th>
<th
scope=
"col"
>
วันที่เริ่มต้น
</th>
<th
scope=
"col"
>
End-Date
</th>
<th
scope=
"col"
>
วันที่สิ้นสุด
</th>
<th
scope=
"col"
>
Quantity
</th>
<th
scope=
"col"
>
จำนวน
</th>
<th
scope=
"col"
>
Status
</th>
<th
scope=
"col"
>
สถานะ
</th>
</tr>
</tr>
</thead>
</thead>
<tbody>
<tbody>
...
...
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 @@
...
@@ -7,13 +7,13 @@
<thead>
<thead>
<tr>
<tr>
<th
scope=
"col"
>
#
</th>
<th
scope=
"col"
>
#
</th>
<th
scope=
"col"
>
Catagory
</th>
<th
scope=
"col"
>
หมวดหมู่
</th>
<th
scope=
"col"
>
Type
</th>
<th
scope=
"col"
>
ประเภท
</th>
<th
scope=
"col"
>
Detail
</th>
<th
scope=
"col"
>
รายละเอียด
</th>
<th
scope=
"col"
>
Name
</th>
<th
scope=
"col"
>
ชื่อ
</th>
<th
scope=
"col"
>
Start-Date
</th>
<th
scope=
"col"
>
วันที่เริ่มต้น
</th>
<th
scope=
"col"
>
End-Date
</th>
<th
scope=
"col"
>
วันที่สิ้นสุด
</th>
<th
scope=
"col"
>
Quantity
</th>
<th
scope=
"col"
>
จำนวน
</th>
</tr>
</tr>
</thead>
</thead>
<tbody>
<tbody>
...
@@ -26,7 +26,8 @@
...
@@ -26,7 +26,8 @@
<td>
{{ country.sdate | date:'dd-MM-yyyy' }}
</td>
<td>
{{ country.sdate | date:'dd-MM-yyyy' }}
</td>
<td>
{{ country.edate | date:'dd-MM-yyyy' }}
</td>
<td>
{{ country.edate | date:'dd-MM-yyyy' }}
</td>
<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 }}
{{ country.quantity }}
<button
class=
"btn btn-primary btn-sm"
>
-
</button>
<button
class=
"btn btn-primary btn-sm"
>
-
</button>
</td>
</td>
...
...
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
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
NgbDate
,
NgbCalendar
,
NgbDateParserFormatter
}
from
'@ng-bootstrap/ng-bootstrap'
;
import
{
NgbDate
,
NgbCalendar
,
NgbDateParserFormatter
}
from
'@ng-bootstrap/ng-bootstrap'
;
import
{
NgbModal
,
ModalDismissReasons
}
from
'@ng-bootstrap/ng-bootstrap'
;
@
Component
({
@
Component
({
selector
:
'app-pending'
,
selector
:
'app-pending'
,
...
@@ -36,6 +37,8 @@ export class PendingComponent implements OnInit {
...
@@ -36,6 +37,8 @@ export class PendingComponent implements OnInit {
page
=
1
;
page
=
1
;
pageSize
=
10
;
pageSize
=
10
;
closeResult
=
''
;
countries
:
Country
[]
=
[
countries
:
Country
[]
=
[
{
{
catagory
:
'string'
,
catagory
:
'string'
,
...
@@ -68,7 +71,7 @@ export class PendingComponent implements OnInit {
...
@@ -68,7 +71,7 @@ export class PendingComponent implements OnInit {
fromDate
:
NgbDate
|
null
;
fromDate
:
NgbDate
|
null
;
toDate
:
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
.
fromDate
=
calendar
.
getToday
();
this
.
toDate
=
calendar
.
getNext
(
calendar
.
getToday
(),
'd'
,
10
);
this
.
toDate
=
calendar
.
getNext
(
calendar
.
getToday
(),
'd'
,
10
);
this
.
refreshCountries
();
this
.
refreshCountries
();
...
@@ -91,6 +94,24 @@ export class PendingComponent implements OnInit {
...
@@ -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
)
{
isHovered
(
date
:
NgbDate
)
{
return
this
.
fromDate
&&
!
this
.
toDate
&&
this
.
hoveredDate
&&
date
.
after
(
this
.
fromDate
)
&&
date
.
before
(
this
.
hoveredDate
);
return
this
.
fromDate
&&
!
this
.
toDate
&&
this
.
hoveredDate
&&
date
.
after
(
this
.
fromDate
)
&&
date
.
before
(
this
.
hoveredDate
);
}
}
...
...
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