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
83db1670
Commit
83db1670
authored
Jul 11, 2025
by
Natthaphat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
เพิ่ม datagird sysfunction ## npm i --force
parent
5e69bb3f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
19 deletions
+51
-19
package-lock.json
package-lock.json
+6
-1
package.json
package.json
+9
-3
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
+19
-15
styles.scss
src/styles.scss
+17
-0
No files found.
package-lock.json
View file @
83db1670
...
@@ -35,7 +35,12 @@
...
@@ -35,7 +35,12 @@
"@syncfusion/ej2-angular-grids"
:
"^29.2.4"
,
"@syncfusion/ej2-angular-grids"
:
"^29.2.4"
,
"@syncfusion/ej2-angular-inputs"
:
"^29.2.4"
,
"@syncfusion/ej2-angular-inputs"
:
"^29.2.4"
,
"@syncfusion/ej2-angular-pivotview"
:
"^29.2.4"
,
"@syncfusion/ej2-angular-pivotview"
:
"^29.2.4"
,
"@syncfusion/ej2-grids"
:
"^29.2.11"
,
"@syncfusion/ej2-base"
:
"^29.2.4"
,
"@syncfusion/ej2-buttons"
:
"^29.2.4"
,
"@syncfusion/ej2-data"
:
"^29.2.4"
,
"@syncfusion/ej2-dropdowns"
:
"^29.2.4"
,
"@syncfusion/ej2-grids"
:
"^29.2.4"
,
"@syncfusion/ej2-inputs"
:
"^29.2.4"
,
"@tailwindcss/forms"
:
"^0.5.7"
,
"@tailwindcss/forms"
:
"^0.5.7"
,
"@types/google.maps"
:
"^3.58.1"
,
"@types/google.maps"
:
"^3.58.1"
,
"@types/googlemaps"
:
"^3.43.3"
,
"@types/googlemaps"
:
"^3.43.3"
,
...
...
package.json
View file @
83db1670
...
@@ -35,12 +35,17 @@
...
@@ -35,12 +35,17 @@
"
@ngx-translate/core
"
:
"^15.0.0"
,
"
@ngx-translate/core
"
:
"^15.0.0"
,
"
@ngx-translate/http-loader
"
:
"^8.0.0"
,
"
@ngx-translate/http-loader
"
:
"^8.0.0"
,
"
@syncfusion/ej2-angular-base
"
:
"^29.2.4"
,
"
@syncfusion/ej2-angular-base
"
:
"^29.2.4"
,
"
@syncfusion/ej2-angular-charts
"
:
"^29.2.4"
,
"
@syncfusion/ej2-angular-dropdowns
"
:
"^29.2.4"
,
"
@syncfusion/ej2-angular-dropdowns
"
:
"^29.2.4"
,
"
@syncfusion/ej2-angular-grids
"
:
"^29.2.4"
,
"
@syncfusion/ej2-angular-grids
"
:
"^29.2.4"
,
"
@syncfusion/ej2-angular-inputs
"
:
"^29.2.4"
,
"
@syncfusion/ej2-angular-inputs
"
:
"^29.2.4"
,
"
@syncfusion/ej2-angular-pivotview
"
:
"^29.2.4"
,
"
@syncfusion/ej2-angular-pivotview
"
:
"^29.2.4"
,
"
@syncfusion/ej2-grids
"
:
"^29.2.11"
,
"
@syncfusion/ej2-base
"
:
"^29.2.4"
,
"
@syncfusion/ej2-buttons
"
:
"^29.2.4"
,
"
@syncfusion/ej2-data
"
:
"^29.2.4"
,
"
@syncfusion/ej2-dropdowns
"
:
"^29.2.4"
,
"
@syncfusion/ej2-grids
"
:
"^29.2.4"
,
"
@syncfusion/ej2-inputs
"
:
"^29.2.4"
,
"
@syncfusion/ej2-angular-charts
"
:
"^29.2.4"
,
"
@tailwindcss/forms
"
:
"^0.5.7"
,
"
@tailwindcss/forms
"
:
"^0.5.7"
,
"
@types/google.maps
"
:
"^3.58.1"
,
"
@types/google.maps
"
:
"^3.58.1"
,
"
@types/googlemaps
"
:
"^3.43.3"
,
"
@types/googlemaps
"
:
"^3.43.3"
,
...
@@ -115,4 +120,4 @@
...
@@ -115,4 +120,4 @@
"
tailwindcss
"
:
"^3.3.2"
,
"
tailwindcss
"
:
"^3.3.2"
,
"
typescript
"
:
"~5.2.2"
"
typescript
"
:
"~5.2.2"
}
}
}
}
\ No newline at end of file
src/app/DPU/common/myportal/set-excel-reports/excel-list/excel-list.component.html
View file @
83db1670
This diff is collapsed.
Click to expand it.
src/app/DPU/common/myportal/set-excel-reports/excel-list/excel-list.component.ts
View file @
83db1670
...
@@ -58,11 +58,12 @@ export class ExcelListComponent implements OnInit {
...
@@ -58,11 +58,12 @@ export class ExcelListComponent implements OnInit {
template
:
{
data
:
TemplateModel
[],
filter
:
TemplateModel
[],
loading
:
boolean
}
=
{
data
:
[],
filter
:
[],
loading
:
false
}
template
:
{
data
:
TemplateModel
[],
filter
:
TemplateModel
[],
loading
:
boolean
}
=
{
data
:
[],
filter
:
[],
loading
:
false
}
templateFile
:
TemplateFileModel
=
new
MyTemplateFileModel
()
templateFile
:
TemplateFileModel
=
new
MyTemplateFileModel
()
module
:
{
data
:
ModuleModel
[],
loading
:
boolean
}
=
{
data
:
[],
loading
:
false
}
module
:
{
data
:
ModuleModel
[],
loading
:
boolean
}
=
{
data
:
[],
loading
:
false
}
pagedItems
:
TemplateModel
[]
=
[];
pageIndex
:
number
=
0
;
pageIndex
:
number
=
0
;
itemsPerPage
:
number
=
10
;
itemsPerPage
:
number
=
10
;
page
=
1
page
=
0
pageSize
=
10
pageSize
=
10
pageModal
=
1
pageModal
=
0
pageSizeModal
=
10
pageSizeModal
=
10
searchBy
=
''
searchBy
=
''
condition
=
''
condition
=
''
...
@@ -150,8 +151,8 @@ export class ExcelListComponent implements OnInit {
...
@@ -150,8 +151,8 @@ export class ExcelListComponent implements OnInit {
modalRefvideoModal
:
any
;
modalRefvideoModal
:
any
;
modalRefprintModal
:
any
;
modalRefprintModal
:
any
;
modalRefmodalData
:
any
;
modalRefmodalData
:
any
;
modalRefgridModal
:
any
;
modalRefgridModal
:
MatDialogRef
<
any
>
;
modalRefpivotModal
:
any
;
modalRefpivotModal
:
MatDialogRef
<
any
>
;
searchText
:
string
=
''
;
searchText
:
string
=
''
;
@
ViewChild
(
'addGroupModal'
)
addGroupModal
!
:
TemplateRef
<
any
>
;
@
ViewChild
(
'addGroupModal'
)
addGroupModal
!
:
TemplateRef
<
any
>
;
...
@@ -195,12 +196,15 @@ export class ExcelListComponent implements OnInit {
...
@@ -195,12 +196,15 @@ export class ExcelListComponent implements OnInit {
this
.
pageIndex
=
index
;
this
.
pageIndex
=
index
;
this
.
updatePagedItems
();
this
.
updatePagedItems
();
}
}
updatePagedItems
():
void
{
updatePagedItems
()
{
const
start
=
this
.
pageIndex
*
this
.
itemsPerPage
;
const
data
=
this
.
searchText
==
''
?
this
.
template
.
data
:
this
.
template
.
filter
;
const
end
=
start
+
this
.
itemsPerPage
;
const
source
=
this
.
searchText
==
''
?
this
.
template
.
data
:
this
.
template
.
filter
;
const
start
=
this
.
page
*
this
.
pageSize
;
// ถ้า page = 1 → เริ่มที่ index 10
this
.
template
.
filter
=
source
.
slice
(
start
,
end
);
const
end
=
start
+
this
.
pageSize
;
this
.
pagedItems
=
data
.
slice
(
start
,
end
);
}
}
getExcelPortalList
()
{
getExcelPortalList
()
{
this
.
excelPortal
.
loading
=
true
this
.
excelPortal
.
loading
=
true
this
.
excelReportService
.
getExcelPortalList
().
subscribe
(
response
=>
{
this
.
excelReportService
.
getExcelPortalList
().
subscribe
(
response
=>
{
...
@@ -343,8 +347,8 @@ export class ExcelListComponent implements OnInit {
...
@@ -343,8 +347,8 @@ export class ExcelListComponent implements OnInit {
}
}
openExcelPortalModal
()
{
openExcelPortalModal
()
{
this
.
pageModal
=
1
;
this
.
pageModal
=
0
;
this
.
pageSizeModal
=
10
;
this
.
pageSizeModal
=
5
;
this
.
modalRefexcel_portal
=
this
.
modal
.
open
(
this
.
excel_portalModal
,
{
this
.
modalRefexcel_portal
=
this
.
modal
.
open
(
this
.
excel_portalModal
,
{
width
:
'1500px'
,
width
:
'1500px'
,
...
@@ -802,7 +806,7 @@ export class ExcelListComponent implements OnInit {
...
@@ -802,7 +806,7 @@ export class ExcelListComponent implements OnInit {
this
.
dataList
=
response
.
excelData
as
any
this
.
dataList
=
response
.
excelData
as
any
this
.
loadingExcel
=
false
this
.
loadingExcel
=
false
if
(
type
===
'grid'
)
{
if
(
type
===
'grid'
)
{
this
.
modal
.
open
(
this
.
gridModal
,
{
this
.
modal
RefgridModal
=
this
.
modal
.
open
(
this
.
gridModal
,
{
width
:
'1000px'
,
width
:
'1000px'
,
height
:
'700px'
,
height
:
'700px'
,
data
:
{
data
:
{
...
@@ -813,8 +817,8 @@ export class ExcelListComponent implements OnInit {
...
@@ -813,8 +817,8 @@ export class ExcelListComponent implements OnInit {
autoFocus
:
false
autoFocus
:
false
});
});
}
else
if
(
type
===
'pivot'
)
{
}
else
if
(
type
===
'pivot'
)
{
this
.
modal
.
open
(
this
.
pivotModal
,
{
this
.
modal
RefpivotModal
=
this
.
modal
.
open
(
this
.
pivotModal
,
{
width
:
'
8
00px'
,
width
:
'
10
00px'
,
height
:
'580px'
,
height
:
'580px'
,
data
:
{
data
:
{
pivotData
:
(
response
.
excelPerspective
as
any
).
pivotStr
,
pivotData
:
(
response
.
excelPerspective
as
any
).
pivotStr
,
...
@@ -939,7 +943,7 @@ export class ExcelListComponent implements OnInit {
...
@@ -939,7 +943,7 @@ export class ExcelListComponent implements OnInit {
closeModalgridModal
()
{
closeModalgridModal
()
{
this
.
modalRefgridModal
?.
close
()
this
.
modalRefgridModal
?.
close
()
}
}
closeModalpivotModal
()
{
closeModalpivotModal
()
{
this
.
modalRefpivotModal
?.
close
()
this
.
modalRefpivotModal
?.
close
()
}
}
...
...
src/styles.scss
View file @
83db1670
...
@@ -31,6 +31,23 @@
...
@@ -31,6 +31,23 @@
@import
"../node_modules/angular-calendar/scss/angular-calendar.scss"
;
@import
"../node_modules/angular-calendar/scss/angular-calendar.scss"
;
@import
'../node_modules/quill/dist/quill.core.css'
;
@import
'../node_modules/quill/dist/quill.core.css'
;
@import
'../node_modules/quill/dist/quill.snow.css'
;
@import
'../node_modules/quill/dist/quill.snow.css'
;
@import
url('https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,600,700,800')
;
@import
url("https://fonts.googleapis.com/css?family=Kanit:300,400,600,700,800")
;
@import
url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css")
;
@import
'../node_modules/@syncfusion/ej2-base/styles/material.css'
;
@import
'../node_modules/@syncfusion/ej2-buttons/styles/material.css'
;
@import
'../node_modules/@syncfusion/ej2-calendars/styles/material.css'
;
@import
'../node_modules/@syncfusion/ej2-dropdowns/styles/material.css'
;
@import
'../node_modules/@syncfusion/ej2-inputs/styles/material.css'
;
@import
'../node_modules/@syncfusion/ej2-navigations/styles/material.css'
;
@import
'../node_modules/@syncfusion/ej2-popups/styles/material.css'
;
@import
'../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css'
;
@import
'../node_modules/@syncfusion/ej2-angular-grids/styles/material.css'
;
@import
'../node_modules/@syncfusion/ej2-grids/styles/material.css'
;
@import
'../node_modules/@syncfusion/ej2-lists/styles/material.css'
;
@import
"../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css"
;
@import
'../node_modules/@syncfusion/ej2-angular-pivotview/styles/material.css'
;
// @import "../node_modules/angular-calendar/scss/angular-calendar.scss";
// @import "../node_modules/angular-calendar/scss/angular-calendar.scss";
//swiperjs
//swiperjs
...
...
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