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
e8b711e4
Commit
e8b711e4
authored
Jul 09, 2025
by
DESKTOP-E3GSHH7\myhr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
หน้ารายงาน excel
parent
f956c40e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
121 additions
and
13 deletions
+121
-13
common.module.ts
src/app/DPU/common/common.module.ts
+5
-0
excel-report.component.css
...U/common/myportal/excel-report/excel-report.component.css
+0
-0
excel-report.component.html
.../common/myportal/excel-report/excel-report.component.html
+0
-0
excel-report.component.spec.ts
...mmon/myportal/excel-report/excel-report.component.spec.ts
+28
-0
excel-report.component.ts
...PU/common/myportal/excel-report/excel-report.component.ts
+0
-0
excel-report.service copy.ts
src/app/DPU/services/excel-report.service copy.ts
+84
-0
sidebar.component.ts
src/app/shared/components/sidebar/sidebar.component.ts
+0
-0
nav.service.ts
src/app/shared/services/nav.service.ts
+4
-13
No files found.
src/app/DPU/common/common.module.ts
View file @
e8b711e4
...
@@ -84,6 +84,11 @@ export const admin: Routes = [
...
@@ -84,6 +84,11 @@ export const admin: Routes = [
},
},
//////////////MyPortal/////////////////
//////////////MyPortal/////////////////
{
{
path
:
'excel-report'
,
loadComponent
:
()
=>
import
(
'./myportal/excel-report/excel-report.component'
).
then
((
m
)
=>
m
.
ExcelReportComponent
),
},
{
path
:
'excel-list'
,
path
:
'excel-list'
,
loadComponent
:
()
=>
loadComponent
:
()
=>
import
(
'./myportal/set-excel-reports/excel-list/excel-list.component'
).
then
((
m
)
=>
m
.
ExcelListComponent
),
import
(
'./myportal/set-excel-reports/excel-list/excel-list.component'
).
then
((
m
)
=>
m
.
ExcelListComponent
),
...
...
src/app/DPU/common/myportal/excel-report/excel-report.component.css
0 → 100644
View file @
e8b711e4
src/app/DPU/common/myportal/excel-report/excel-report.component.html
0 → 100644
View file @
e8b711e4
This diff is collapsed.
Click to expand it.
src/app/DPU/common/myportal/excel-report/excel-report.component.spec.ts
0 → 100644
View file @
e8b711e4
/* tslint:disable:no-unused-variable */
import
{
async
,
ComponentFixture
,
TestBed
}
from
'@angular/core/testing'
;
import
{
By
}
from
'@angular/platform-browser'
;
import
{
DebugElement
}
from
'@angular/core'
;
import
{
ExcelReportComponent
}
from
'./excel-report.component'
;
describe
(
'ExcelReportComponent'
,
()
=>
{
let
component
:
ExcelReportComponent
;
let
fixture
:
ComponentFixture
<
ExcelReportComponent
>
;
beforeEach
(
async
(()
=>
{
TestBed
.
configureTestingModule
({
declarations
:
[
ExcelReportComponent
]
})
.
compileComponents
();
}));
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
ExcelReportComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'should create'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
src/app/DPU/common/myportal/excel-report/excel-report.component.ts
0 → 100644
View file @
e8b711e4
This diff is collapsed.
Click to expand it.
src/app/DPU/services/excel-report.service copy.ts
0 → 100644
View file @
e8b711e4
import
{
Injectable
}
from
'@angular/core'
;
import
{
HttpClient
,
HttpHeaders
}
from
'@angular/common/http'
;
import
{
TranslateService
}
from
'@ngx-translate/core'
;
import
{
Observable
}
from
'rxjs'
;
import
{
environment
}
from
'../../../environments/environment'
;
import
{
TemplateFileModel
,
TemplateModel
}
from
'../models/template.model'
;
import
{
ModuleModel
}
from
'../models/module.model'
;
import
{
ExcelPortalGroupModel
,
ExcelPortalModel
,
ExcelPortalTagsModel
}
from
'../models/excel-portal.model'
;
import
{
AlertModel
}
from
'../models/alert.model'
;
import
{
TemplateFileMiniModel
}
from
'../models/template-file-mini.model'
;
@
Injectable
({
providedIn
:
'root'
})
export
class
ExcelReportService
{
constructor
(
private
http
:
HttpClient
,
private
translateService
:
TranslateService
)
{
}
getExcelList
():
Observable
<
TemplateModel
[]
>
{
return
this
.
http
.
get
<
TemplateModel
[]
>
(
environment
.
url
+
"template/lists?companyid=eb2f4f30-edaf-11ee-a69a-c7680edc0e47"
)
}
getModuleList
():
Observable
<
ModuleModel
[]
>
{
return
this
.
http
.
get
<
ModuleModel
[]
>
(
environment
.
url
+
"template/lists/module?companyid=eb2f4f30-edaf-11ee-a69a-c7680edc0e47"
)
}
getExcelPortalList
():
Observable
<
ExcelPortalModel
[]
>
{
return
this
.
http
.
get
<
ExcelPortalModel
[]
>
(
environment
.
url
+
"excel-center/content/lists"
)
}
getExcelPortalgGroupList
():
Observable
<
ExcelPortalGroupModel
[]
>
{
return
this
.
http
.
get
<
ExcelPortalGroupModel
[]
>
(
environment
.
url
+
"portal-group/lists"
)
}
getExcelPortalTagsList
():
Observable
<
ExcelPortalTagsModel
[]
>
{
return
this
.
http
.
get
<
ExcelPortalTagsModel
[]
>
(
environment
.
url
+
"tag/lists"
)
}
postTemplate
(
body
:
{
templateId
:
string
,
tname
:
string
,
ename
:
string
,
tdesc
:
string
,
edesc
:
string
,
module
:
string
})
{
return
this
.
http
.
post
(
environment
.
url
+
"template?companyid=eb2f4f30-edaf-11ee-a69a-c7680edc0e47"
,
body
)
}
deleteTemplate
(
body
:
TemplateModel
):
Observable
<
AlertModel
>
{
let
option
=
{
headers
:
new
HttpHeaders
({
"Content-Type"
:
"application/json"
,
}),
body
:
body
}
return
this
.
http
.
delete
<
AlertModel
>
(
environment
.
url
+
"template?companyid=eb2f4f30-edaf-11ee-a69a-c7680edc0e47"
,
option
)
}
postTemplateFile
(
body
:
TemplateFileModel
):
Observable
<
AlertModel
>
{
return
this
.
http
.
post
<
AlertModel
>
(
environment
.
url
+
"template-file?companyid=eb2f4f30-edaf-11ee-a69a-c7680edc0e47"
,
body
)
}
deleteTemplateFile
(
body
:
TemplateFileModel
):
Observable
<
AlertModel
>
{
let
option
=
{
headers
:
new
HttpHeaders
({
"Content-Type"
:
"application/json"
,
}),
body
:
body
}
return
this
.
http
.
delete
<
AlertModel
>
(
environment
.
url
+
"template-file?companyid=eb2f4f30-edaf-11ee-a69a-c7680edc0e47"
,
option
)
}
downloadTemplateFile
(
fileName
:
string
)
{
return
this
.
http
.
get
(
environment
.
url
+
"template-file/download/excel/"
+
fileName
+
"?companyid=eb2f4f30-edaf-11ee-a69a-c7680edc0e47"
,
{
responseType
:
'blob'
})
}
printExcelReport
(
body
:
{
fileName
:
string
,
paramObj
:
string
})
{
return
this
.
http
.
post
(
environment
.
url
+
"template-file/export-to-excel?companyid=eb2f4f30-edaf-11ee-a69a-c7680edc0e47"
,
body
,
{
responseType
:
'blob'
})
}
getTemplateFile
(
templateid
:
string
,
filename
:
string
):
Observable
<
AlertModel
>
{
return
this
.
http
.
get
<
AlertModel
>
(
environment
.
url
+
"template-file/"
+
templateid
+
"/"
+
filename
+
"?companyid=eb2f4f30-edaf-11ee-a69a-c7680edc0e47"
,)
}
getTemplateFileLists
():
Observable
<
TemplateFileMiniModel
[]
>
{
return
this
.
http
.
get
<
TemplateFileMiniModel
[]
>
(
environment
.
url
+
"template-file/menuitem/mini/lists?companyid=eb2f4f30-edaf-11ee-a69a-c7680edc0e47"
,)
}
}
\ No newline at end of file
src/app/shared/components/sidebar/sidebar.component.ts
View file @
e8b711e4
This diff is collapsed.
Click to expand it.
src/app/shared/services/nav.service.ts
View file @
e8b711e4
...
@@ -149,19 +149,10 @@ export class NavService implements OnDestroy {
...
@@ -149,19 +149,10 @@ export class NavService implements OnDestroy {
type
:
'link'
,
type
:
'link'
,
},
},
{
{
icon
:
'buildings'
,
icon
:
'receipt'
,
path
:
'/admin/company-departments'
,
path
:
'/admin/excel-report'
,
title
:
'ทะเบียนบริษัท'
,
title
:
'รายงาน Excel'
,
type
:
'sub'
,
type
:
'link'
,
children
:
[
{
path
:
'/admin/career-cluster'
,
title
:
'จัดการกลุ่มอาชีพ'
,
type
:
'link'
},
{
path
:
'/admin/position'
,
title
:
'จัดการตำแหน่ง'
,
type
:
'link'
},
{
path
:
'/admin/job-types'
,
title
:
'จัดการประเภทงาน'
,
type
:
'link'
},
{
path
:
'/admin/category-company'
,
title
:
'จัดการประเภทธุรกิจ'
,
type
:
'link'
},
{
path
:
'/admin/degree-manage'
,
title
:
'จัดการระดับการศึกษา'
,
type
:
'link'
},
{
path
:
'/admin/country-registration'
,
title
:
'จัดการประเทศ'
,
type
:
'link'
},
{
path
:
'/admin/provinces'
,
title
:
'จัดการจังหวัด'
,
type
:
'link'
},
],
},
},
// { headTitle: 'User Management' },
// { headTitle: 'User Management' },
...
...
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