Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
myjob-manage
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
myjob-manage
Commits
ce6154cd
Commit
ce6154cd
authored
Jul 10, 2025
by
Natthaphat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
เพิ่ม modal Excel Report, Table memployee
parent
8d6cbd3d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
25 deletions
+34
-25
excel-list.component.html
...al/set-excel-reports/excel-list/excel-list.component.html
+0
-0
excel-list.component.ts
...rtal/set-excel-reports/excel-list/excel-list.component.ts
+34
-25
No files found.
src/app/DPU/common/myportal/set-excel-reports/excel-list/excel-list.component.html
View file @
ce6154cd
This diff is collapsed.
Click to expand it.
src/app/DPU/common/myportal/set-excel-reports/excel-list/excel-list.component.ts
View file @
ce6154cd
...
...
@@ -148,12 +148,16 @@ export class ExcelListComponent implements OnInit {
modalRefaddChild
:
any
;
modalRefexcel_portal
:
MatDialogRef
<
any
>
;
modalRefvideoModal
:
any
;
modalRefprintModal
:
any
;
modalRefmodalData
:
any
;
searchText
:
string
=
''
;
@
ViewChild
(
'addGroupModal'
)
addGroupModal
!
:
TemplateRef
<
any
>
;
@
ViewChild
(
'addChildModal'
)
addChildModal
!
:
TemplateRef
<
any
>
;
@
ViewChild
(
'excel_portalModal'
)
excel_portalModal
!
:
TemplateRef
<
any
>
;
@
ViewChild
(
'videoModal'
)
videoModal
!
:
TemplateRef
<
any
>
;
@
ViewChild
(
'printModal'
)
printModal
!
:
TemplateRef
<
any
>
;
@
ViewChild
(
'modalData'
)
modalData
!
:
TemplateRef
<
any
>
;
constructor
(
private
excelReportService
:
ExcelReportService
,
private
modalService
:
NgbModal
,
private
customCubeService
:
CustomCubeService
,
...
...
@@ -352,13 +356,6 @@ export class ExcelListComponent implements OnInit {
}
});
}
// openVideoModal(targetModal: TemplateRef<any>, videoLink: string) {
// this.videoLink = this.convertToEmbedUrl(videoLink)
// this.modalService.open(targetModal, {
// centered: true,
// windowClass: 'my-dialog-video-preview'
// })
// }
openVideoModal
(
videoLink
:
string
)
{
this
.
videoLink
=
this
.
convertToEmbedUrl
(
videoLink
);
this
.
modalRefvideoModal
=
this
.
modal
.
open
(
this
.
videoModal
,
{
...
...
@@ -368,14 +365,6 @@ export class ExcelListComponent implements OnInit {
backdropClass
:
'video-backdrop'
});
}
// openVideoModal(videoLink: string) {
// this.videoLink = this.convertToEmbedUrl(videoLink);
// this.modalRefvideoModal = this.modal.open(this.videoModal, {
// width: '100%',
// height: '100%',
// panelClass: 'video-dialog-custom'
// });
// }
convertToEmbedUrl
(
youtubeUrl
:
string
):
string
{
try
{
const
url
=
new
URL
(
youtubeUrl
);
...
...
@@ -559,12 +548,9 @@ export class ExcelListComponent implements OnInit {
this
.
openAlertModal
(
error
.
message
)
})
}
openPrintModal
(
t
argetModal
:
TemplateRef
<
any
>
,
t
emplateFile
:
TemplateFileModel
)
{
openPrintModal
(
templateFile
:
TemplateFileModel
)
{
this
.
getTemplateFile
(
templateFile
)
this
.
modalService
.
open
(
targetModal
,
{
centered
:
true
,
size
:
'lg'
})
this
.
openModalprintModal
()
}
getTemplateFile
(
templateFile
:
TemplateFileModel
)
{
this
.
loading
=
true
...
...
@@ -611,7 +597,7 @@ export class ExcelListComponent implements OnInit {
})
}
openModalData
(
data
:
any
,
modal
:
any
)
{
openModalData
(
data
:
any
)
{
this
.
searchModal
=
''
this
.
page
=
1
this
.
pageSize
=
10
...
...
@@ -624,7 +610,7 @@ export class ExcelListComponent implements OnInit {
tableHead
:
[
'ID'
,
'detailTH'
,
'detailENG'
]
}
}
this
.
modalService
.
open
(
modal
,
{
centered
:
true
,
size
:
'lg'
}
)
this
.
openModalmodalData
(
)
}
valueDetailFilter
():
ValueDetailItem
[]
{
...
...
@@ -894,15 +880,37 @@ export class ExcelListComponent implements OnInit {
this
.
modalRefexcel_portal
?.
close
()
}
openModvideoModal
()
{
openMod
al
videoModal
()
{
this
.
modalRefvideoModal
=
this
.
modal
.
open
(
this
.
videoModal
,
{
width
:
'1500px'
,
height
:
'700px'
})
}
closeModvideoModal
()
{
this
.
modalRefexcel_portal
?.
close
()
closeModalvideoModal
()
{
this
.
modalRefvideoModal
?.
close
()
}
openModalprintModal
()
{
this
.
modalRefprintModal
=
this
.
modal
.
open
(
this
.
printModal
,
{
width
:
'700px'
,
height
:
'300px'
})
}
closeModalprintModal
()
{
this
.
modalRefprintModal
?.
close
()
}
openModalmodalData
()
{
this
.
modalRefmodalData
=
this
.
modal
.
open
(
this
.
modalData
,
{
width
:
'800px'
,
height
:
'580px'
})
}
closeModalmodalData
()
{
this
.
modalRefmodalData
?.
close
()
}
}
\ 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