Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
myhr-portal
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
angular
myhr-portal
Commits
8bc1d607
Commit
8bc1d607
authored
Jul 12, 2024
by
Nakarin Luankla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UPDATE ui หน้าดาวน์โหลดใหม่
parent
c177089a
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
86 additions
and
10 deletions
+86
-10
view-list-course.component.html
...app/apps/view-list-course/view-list-course.component.html
+28
-1
view-list-course.component.ts
src/app/apps/view-list-course/view-list-course.component.ts
+4
-0
view-list-doc.component.html
src/app/apps/view-list-doc/view-list-doc.component.html
+29
-3
view-list-doc.component.ts
src/app/apps/view-list-doc/view-list-doc.component.ts
+3
-0
view-list-excel.component.html
src/app/apps/view-list-excel/view-list-excel.component.html
+9
-5
view-list-excel.component.ts
src/app/apps/view-list-excel/view-list-excel.component.ts
+4
-0
styles.scss
src/styles.scss
+9
-1
No files found.
src/app/apps/view-list-course/view-list-course.component.html
View file @
8bc1d607
<div
class=
"row"
>
<div
class=
"row"
*
ngIf=
"checkType == '1'"
>
<div
class=
"col-12"
>
<div
class=
"card card-body"
>
<h4
class=
"card-title"
>
รายการหลักสูตร
</h4>
...
...
@@ -61,3 +61,29 @@
</div>
</div>
</div>
<div
class=
"row"
*
ngIf=
"checkType != '1'"
>
<div
class=
"col-12"
>
<div
class=
"py-3"
>
<input
type=
"text"
class=
"form-control w-25"
placeholder=
"ค้นหา"
[(
ngModel
)]="
search
"
>
</div>
</div>
<div
class=
"col-sm-6 col-md-4 col-lg-4 mb-3"
*
ngFor=
"let data of filterListCourse()"
>
<div
class=
"card border-5 border border-excel h-100 shadow"
>
<div
class=
" p-2 border-5"
>
<img
width=
"100"
class=
"card-img-top cover"
src=
"{{data.getImage()}}"
(
click
)="
openEmployeeModal
(
data
.
getImage
())"
>
</div>
<div
class=
"card-body"
>
<h4
class=
"card-title"
>
{{ data.thName }}
</h4>
<p
class=
"card-text "
>
{{ data.thDesc }}
</p>
<p
class=
"text-info pointer mb-0"
(
click
)="
downloadFile
(
data
.
courseId
)"
><i
class=
"fas fa-download mr-1"
></i>
ดาวน์โหลด
<small
class=
"text-muted"
*
ngIf=
"data.dwTime > 0"
>
{{coverDate(data.downloadDate)}} {{data.downloadTime}} ( {{data.dwTime}} ครั้ง)
</small></p>
<p
class=
"text-info pointer mb-0"
(
click
)="
openLink
(
data
.
link1
)"
><i
class=
"fas fa-link mr-1"
></i>
ตัวอย่างวิธีใช้งาน
</p>
</div>
<div
class=
"card-footer border-bottom-5"
>
<small
class=
"text-muted"
>
วันที่อัพโหลด {{coverDate(data.uploadDate)}} {{data.uploadTime}}
</small>
</div>
</div>
</div>
</div>
\ No newline at end of file
src/app/apps/view-list-course/view-list-course.component.ts
View file @
8bc1d607
...
...
@@ -95,4 +95,8 @@ export class ViewListCourseComponent implements OnInit {
this
.
modalService
.
dismissAll
()
})
}
coverDate
(
date
:
string
){
return
date
.
split
(
'-'
).
reverse
().
join
(
'/'
)
}
}
src/app/apps/view-list-doc/view-list-doc.component.html
View file @
8bc1d607
<div
class=
"row"
>
<div
class=
"row"
*
ngIf=
"checkType == '1'"
>
<div
class=
"col-12"
>
<div
class=
"card card-body"
>
<h4
class=
"card-title"
>
รายการเอกสาร
</h4>
...
...
@@ -11,7 +11,6 @@
<tr>
<th
class=
"text-center"
scope=
"col"
>
#
</th>
<th
scope=
"col"
>
รูปภาพ
</th>
<!-- <th scope="col">รหัสเอกสาร</th> -->
<th
scope=
"col"
>
ชื่อ
</th>
<th
scope=
"col"
>
รายละเอียด
</th>
<th
scope=
"col"
class=
"text-center"
>
ลิงค์
</th>
...
...
@@ -30,7 +29,6 @@
<tr
*
ngFor=
"let data of filterListDoc() | slice: (page-1) * pageSize : (page-1) * pageSize + pageSize ; let i = index"
>
<td
class=
"text-center"
>
{{i+1}}
</td>
<td><img
width=
"100"
class=
"border p-1"
src=
"{{data.getImage()}}"
(
click
)="
openEmployeeModal
(
data
.
getImage
())"
></td>
<!-- <td >{{data.id}}</td> -->
<td>
{{ data.thName }}
</td>
<td>
{{ data.thDesc }}
</td>
<td
class=
"text-center"
><i
class=
"fas fa-link pointer"
(
click
)="
openLink
(
data
.
link1
)"
></i></td>
...
...
@@ -63,3 +61,30 @@
</div>
</div>
</div>
<div
class=
"row"
*
ngIf=
"checkType != '1'"
>
<div
class=
"col-12"
>
<div
class=
"py-3"
>
<input
type=
"text"
class=
"form-control w-25"
placeholder=
"ค้นหา"
[(
ngModel
)]="
search
"
>
</div>
</div>
<div
class=
"col-sm-6 col-md-4 col-lg-4 mb-3"
*
ngFor=
"let data of filterListDoc()"
>
<div
class=
"card border-5 border border-doc h-100 shadow"
>
<div
class=
" p-2 border-5"
>
<img
width=
"100"
class=
"card-img-top cover"
src=
"{{data.getImage()}}"
(
click
)="
openEmployeeModal
(
data
.
getImage
())"
>
</div>
<div
class=
"card-body"
>
<h4
class=
"card-title"
>
{{ data.thName }}
</h4>
<p
class=
"card-text "
>
{{ data.thDesc }}
</p>
<p
class=
"text-info pointer mb-0"
(
click
)="
downloadFile
(
data
.
docId
,'
tha
')"
><i
class=
"fas fa-download mr-1"
></i>
ดาวน์โหลด (ไทย)
<small
class=
"text-muted"
*
ngIf=
"data.dwTime > 0"
>
{{coverDate(data.downloadDate)}} {{data.downloadTime}} ( {{data.dwTime}} ครั้ง)
</small></p>
<p
class=
"text-info pointer mb-0"
(
click
)="
downloadFile
(
data
.
docId
,'
eng
')"
><i
class=
"fas fa-download mr-1"
></i>
ดาวน์โหลด (อังกฤษ)
<small
class=
"text-muted"
*
ngIf=
"data.dwTime > 0"
>
{{coverDate(data.downloadDate)}} {{data.downloadTime}} ( {{data.dwTime}} ครั้ง)
</small></p>
<p
class=
"text-info pointer mb-0"
(
click
)="
openLink
(
data
.
link1
)"
><i
class=
"fas fa-link mr-1"
></i>
ตัวอย่างวิธีใช้งาน
</p>
</div>
<div
class=
"card-footer border-bottom-5"
>
<small
class=
"text-muted"
>
วันที่อัพโหลด {{coverDate(data.uploadDate)}} {{data.uploadTime}}
</small>
</div>
</div>
</div>
</div>
\ No newline at end of file
src/app/apps/view-list-doc/view-list-doc.component.ts
View file @
8bc1d607
...
...
@@ -95,4 +95,7 @@ export class ViewListDocComponent implements OnInit {
openLink
(
url
:
string
){
window
.
open
(
url
,
"_blank"
);
}
coverDate
(
date
:
string
){
return
date
.
split
(
'-'
).
reverse
().
join
(
'/'
)
}
}
src/app/apps/view-list-excel/view-list-excel.component.html
View file @
8bc1d607
...
...
@@ -66,16 +66,20 @@
<input
type=
"text"
class=
"form-control w-25"
placeholder=
"ค้นหา"
[(
ngModel
)]="
search
"
>
</div>
</div>
<div
class=
"col-
4
"
*
ngFor=
"let data of filterListExcel()"
>
<div
class=
"card border-5 border border-excel"
>
<div
class=
"col-
sm-6 col-md-4 col-lg-4 mb-3
"
*
ngFor=
"let data of filterListExcel()"
>
<div
class=
"card border-5 border border-excel
h-100 shadow
"
>
<div
class=
" p-2 border-5"
>
<img
width=
"100"
class=
"card-img-top cover"
src=
"{{data.getImage()}}"
(
click
)="
openEmployeeModal
(
data
.
getImage
())"
>
</div>
<div
class=
"card-body"
>
<h4
class=
"card-title"
>
{{ data.thName }}
</h4>
<p
class=
"card-text view-detail"
>
{{ data.thDesc }}
</p>
<p
class=
"text-info pointer"
(
click
)="
downloadFile
(
data
.
excelId
)"
><i
class=
"fas fa-download mr-1"
></i>
ดาวน์โหลด
</p>
<p
class=
"text-info pointer"
(
click
)="
openLink
(
data
.
link1
)"
><i
class=
"fas fa-link mr-1"
></i>
ตัวอย่างวิธีใช้งาน
</p>
<p
class=
"card-text "
>
{{ data.thDesc }}
</p>
<p
class=
"text-info pointer mb-0"
(
click
)="
downloadFile
(
data
.
excelId
)"
><i
class=
"fas fa-download mr-1"
></i>
ดาวน์โหลด
<small
class=
"text-muted"
*
ngIf=
"data.dwTime > 0"
>
{{coverDate(data.downloadDate)}} {{data.downloadTime}} ( {{data.dwTime}} ครั้ง)
</small></p>
<p
class=
"text-info pointer mb-0"
(
click
)="
openLink
(
data
.
link1
)"
><i
class=
"fas fa-link mr-1"
></i>
ตัวอย่างวิธีใช้งาน
</p>
</div>
<div
class=
"card-footer border-bottom-5"
>
<small
class=
"text-muted"
>
วันที่อัพโหลด {{coverDate(data.uploadDate)}} {{data.uploadTime}}
</small>
</div>
</div>
</div>
...
...
src/app/apps/view-list-excel/view-list-excel.component.ts
View file @
8bc1d607
...
...
@@ -91,6 +91,7 @@ export class ViewListExcelComponent implements OnInit {
window
.
open
(
url
,
"_blank"
);
}
openAlertModal
(
message
?:
string
)
{
const
modalRef
=
this
.
modalService
.
open
(
AlertModalComponent
,
{
centered
:
true
,
...
...
@@ -103,4 +104,7 @@ export class ViewListExcelComponent implements OnInit {
this
.
modalService
.
dismissAll
()
})
}
coverDate
(
date
:
string
){
return
date
.
split
(
'-'
).
reverse
().
join
(
'/'
)
}
}
src/styles.scss
View file @
8bc1d607
...
...
@@ -94,8 +94,12 @@ body {
border
:
1px
solid
#21a366
!
important
;
border-color
:
#21a366
!
important
;
}
.border-doc
{
border
:
1px
solid
#2091eb
!
important
;
border-color
:
#2091eb
!
important
;
}
.border-5
{
border-radius
:
5%
border-radius
:
10px
}
.no-bg
{
background-color
:
#fff0
;
...
...
@@ -106,3 +110,6 @@ body {
-webkit-box-orient
:
vertical
;
overflow
:
hidden
;
}
.border-bottom-5
{
border-radius
:
0
0
6px
6px
!
important
;
}
\ No newline at end of file
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