Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
myAppraisal
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
myAppraisal
Commits
5172e66d
Commit
5172e66d
authored
Feb 18, 2025
by
Nattana Chaiyamat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ทะเบียนเครื่องมือ
parent
f61fc5dd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
51 additions
and
50 deletions
+51
-50
user-settings.component.ts
...account-settings/user-settings/user-settings.component.ts
+2
-2
department-list.component.ts
...usiness-unit/department-list/department-list.component.ts
+2
-2
department-register.component.ts
...unit/department-register/department-register.component.ts
+2
-2
section-registration.component.ts
...it/section-registration/section-registration.component.ts
+2
-2
sub-department-four.component.ts
...unit/sub-department-four/sub-department-four.component.ts
+2
-2
sub-department-one.component.ts
...s-unit/sub-department-one/sub-department-one.component.ts
+2
-2
sub-department-three.component.ts
...it/sub-department-three/sub-department-three.component.ts
+2
-2
sub-department-two.component.ts
...s-unit/sub-department-two/sub-department-two.component.ts
+2
-2
company-registration-page.component.ts
...-registration-page/company-registration-page.component.ts
+2
-2
sub-employee-registration.component.ts
...loyee-registration/sub-employee-registration.component.ts
+2
-2
employee-categories.component.ts
...tion/employee-categories/employee-categories.component.ts
+2
-2
employee-group-unit.component.ts
...tion/employee-group-unit/employee-group-unit.component.ts
+2
-2
employee-level.component.ts
...ob-description/employee-level/employee-level.component.ts
+2
-2
position-unit.component.ts
...nents/job-description/position/position-unit.component.ts
+2
-2
competency-topic.component.html
...stration/competency-topic/competency-topic.component.html
+1
-1
competency-topic.component.ts
...gistration/competency-topic/competency-topic.component.ts
+2
-2
type-registration.component.ts
...stration/type-registration/type-registration.component.ts
+2
-2
assessment-tool.component.html
...l-register/assessment-tool/assessment-tool.component.html
+0
-0
assessment-tool.component.ts
...ool-register/assessment-tool/assessment-tool.component.ts
+0
-0
tool-register.component.html
...ncy-assessment/tool-register/tool-register.component.html
+2
-3
sub-job-competency.component.ts
...etency/sub-job-competency/sub-job-competency.component.ts
+2
-2
assessment.model.ts
src/app/shared/model/assessment.model.ts
+6
-6
assessment.service.ts
src/app/shared/services/assessment.service.ts
+6
-4
file.service.ts
src/app/shared/services/file.service.ts
+2
-2
No files found.
src/app/components/company-components/account-settings/user-settings/user-settings.component.ts
View file @
5172e66d
...
...
@@ -178,7 +178,7 @@ export class UserSettingsComponent {
const
formData
=
new
FormData
();
formData
.
append
(
'file'
,
this
.
selectedFile
);
this
.
user
.
loading
=
true
this
.
fileService
.
upload
(
formData
,
'muser'
).
subscribe
({
this
.
fileService
.
upload
Excel
(
formData
,
'muser'
).
subscribe
({
next
:
response
=>
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
...
...
@@ -195,7 +195,7 @@ export class UserSettingsComponent {
}
downloadFile
()
{
const
fileName
=
'IMPORT_USER.xlsx'
this
.
fileService
.
download
(
fileName
).
subscribe
({
this
.
fileService
.
download
Template
(
fileName
).
subscribe
({
next
:
response
=>
{
const
url
=
window
.
URL
.
createObjectURL
(
response
);
const
a
=
document
.
createElement
(
"a"
);
...
...
src/app/components/company-components/company-registration/branch-business-unit/department-list/department-list.component.ts
View file @
5172e66d
...
...
@@ -65,7 +65,7 @@ export class DepartmentListComponent implements OnInit {
const
formData
=
new
FormData
();
formData
.
append
(
'file'
,
this
.
selectedFile
);
this
.
bu2ListLoading
=
true
this
.
fileService
.
upload
(
formData
,
'mbu2'
).
subscribe
({
this
.
fileService
.
upload
Excel
(
formData
,
'mbu2'
).
subscribe
({
next
:
response
=>
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
...
...
@@ -83,7 +83,7 @@ export class DepartmentListComponent implements OnInit {
downloadFile
()
{
const
fileName
=
'IMPORT_BU.xlsx'
this
.
fileService
.
download
(
fileName
).
subscribe
({
this
.
fileService
.
download
Template
(
fileName
).
subscribe
({
next
:
response
=>
{
const
url
=
window
.
URL
.
createObjectURL
(
response
);
const
a
=
document
.
createElement
(
"a"
);
...
...
src/app/components/company-components/company-registration/branch-business-unit/department-register/department-register.component.ts
View file @
5172e66d
...
...
@@ -42,7 +42,7 @@ export class DepartmentRegisterComponent implements OnInit {
const
formData
=
new
FormData
();
formData
.
append
(
'file'
,
this
.
selectedFile
);
this
.
bu1ListLoading
=
true
this
.
fileService
.
upload
(
formData
,
'mbu1'
).
subscribe
({
this
.
fileService
.
upload
Excel
(
formData
,
'mbu1'
).
subscribe
({
next
:
response
=>
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
...
...
@@ -60,7 +60,7 @@ export class DepartmentRegisterComponent implements OnInit {
downloadFile
()
{
const
fileName
=
'IMPORT_BU.xlsx'
this
.
fileService
.
download
(
fileName
).
subscribe
({
this
.
fileService
.
download
Template
(
fileName
).
subscribe
({
next
:
response
=>
{
const
url
=
window
.
URL
.
createObjectURL
(
response
);
const
a
=
document
.
createElement
(
"a"
);
...
...
src/app/components/company-components/company-registration/branch-business-unit/section-registration/section-registration.component.ts
View file @
5172e66d
...
...
@@ -66,7 +66,7 @@ export class SectionRegistrationComponent implements OnInit {
const
formData
=
new
FormData
();
formData
.
append
(
'file'
,
this
.
selectedFile
);
this
.
bu3ListLoading
=
true
this
.
fileService
.
upload
(
formData
,
'mbu3'
).
subscribe
({
this
.
fileService
.
upload
Excel
(
formData
,
'mbu3'
).
subscribe
({
next
:
response
=>
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
...
...
@@ -84,7 +84,7 @@ export class SectionRegistrationComponent implements OnInit {
downloadFile
()
{
const
fileName
=
'IMPORT_BU.xlsx'
this
.
fileService
.
download
(
fileName
).
subscribe
({
this
.
fileService
.
download
Template
(
fileName
).
subscribe
({
next
:
response
=>
{
const
url
=
window
.
URL
.
createObjectURL
(
response
);
const
a
=
document
.
createElement
(
"a"
);
...
...
src/app/components/company-components/company-registration/branch-business-unit/sub-department-four/sub-department-four.component.ts
View file @
5172e66d
...
...
@@ -66,7 +66,7 @@ export class SubDepartmentFourComponent implements OnInit {
const
formData
=
new
FormData
();
formData
.
append
(
'file'
,
this
.
selectedFile
);
this
.
bu7ListLoading
=
true
this
.
fileService
.
upload
(
formData
,
'mbu7'
).
subscribe
({
this
.
fileService
.
upload
Excel
(
formData
,
'mbu7'
).
subscribe
({
next
:
response
=>
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
...
...
@@ -84,7 +84,7 @@ export class SubDepartmentFourComponent implements OnInit {
downloadFile
()
{
const
fileName
=
'IMPORT_BU.xlsx'
this
.
fileService
.
download
(
fileName
).
subscribe
({
this
.
fileService
.
download
Template
(
fileName
).
subscribe
({
next
:
response
=>
{
const
url
=
window
.
URL
.
createObjectURL
(
response
);
const
a
=
document
.
createElement
(
"a"
);
...
...
src/app/components/company-components/company-registration/branch-business-unit/sub-department-one/sub-department-one.component.ts
View file @
5172e66d
...
...
@@ -66,7 +66,7 @@ export class SubDepartmentOneComponent implements OnInit {
const
formData
=
new
FormData
();
formData
.
append
(
'file'
,
this
.
selectedFile
);
this
.
bu4ListLoading
=
true
this
.
fileService
.
upload
(
formData
,
'mbu4'
).
subscribe
({
this
.
fileService
.
upload
Excel
(
formData
,
'mbu4'
).
subscribe
({
next
:
response
=>
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
...
...
@@ -84,7 +84,7 @@ export class SubDepartmentOneComponent implements OnInit {
downloadFile
()
{
const
fileName
=
'IMPORT_BU.xlsx'
this
.
fileService
.
download
(
fileName
).
subscribe
({
this
.
fileService
.
download
Template
(
fileName
).
subscribe
({
next
:
response
=>
{
const
url
=
window
.
URL
.
createObjectURL
(
response
);
const
a
=
document
.
createElement
(
"a"
);
...
...
src/app/components/company-components/company-registration/branch-business-unit/sub-department-three/sub-department-three.component.ts
View file @
5172e66d
...
...
@@ -66,7 +66,7 @@ export class SubDepartmentThreeComponent implements OnInit {
const
formData
=
new
FormData
();
formData
.
append
(
'file'
,
this
.
selectedFile
);
this
.
bu6ListLoading
=
true
this
.
fileService
.
upload
(
formData
,
'mbu6'
).
subscribe
({
this
.
fileService
.
upload
Excel
(
formData
,
'mbu6'
).
subscribe
({
next
:
response
=>
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
...
...
@@ -84,7 +84,7 @@ export class SubDepartmentThreeComponent implements OnInit {
downloadFile
()
{
const
fileName
=
'IMPORT_BU.xlsx'
this
.
fileService
.
download
(
fileName
).
subscribe
({
this
.
fileService
.
download
Template
(
fileName
).
subscribe
({
next
:
response
=>
{
const
url
=
window
.
URL
.
createObjectURL
(
response
);
const
a
=
document
.
createElement
(
"a"
);
...
...
src/app/components/company-components/company-registration/branch-business-unit/sub-department-two/sub-department-two.component.ts
View file @
5172e66d
...
...
@@ -65,7 +65,7 @@ export class SubDepartmentTwoComponent implements OnInit {
const
formData
=
new
FormData
();
formData
.
append
(
'file'
,
this
.
selectedFile
);
this
.
bu5ListLoading
=
true
this
.
fileService
.
upload
(
formData
,
'mbu5'
).
subscribe
({
this
.
fileService
.
upload
Excel
(
formData
,
'mbu5'
).
subscribe
({
next
:
response
=>
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
...
...
@@ -83,7 +83,7 @@ export class SubDepartmentTwoComponent implements OnInit {
downloadFile
()
{
const
fileName
=
'IMPORT_BU.xlsx'
this
.
fileService
.
download
(
fileName
).
subscribe
({
this
.
fileService
.
download
Template
(
fileName
).
subscribe
({
next
:
response
=>
{
const
url
=
window
.
URL
.
createObjectURL
(
response
);
const
a
=
document
.
createElement
(
"a"
);
...
...
src/app/components/company-components/company-registration/company-registration-page/company-registration-page.component.ts
View file @
5172e66d
...
...
@@ -142,7 +142,7 @@ export class CompanyRegistrationPageComponent {
const
formData
=
new
FormData
();
formData
.
append
(
'file'
,
this
.
selectedFile
);
this
.
dataLoading
=
true
this
.
fileService
.
upload
(
formData
,
''
).
subscribe
({
this
.
fileService
.
upload
Excel
(
formData
,
''
).
subscribe
({
next
:
response
=>
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
...
...
@@ -161,7 +161,7 @@ export class CompanyRegistrationPageComponent {
}
downloadFile
()
{
const
fileName
=
'.xlsx'
this
.
fileService
.
download
(
fileName
).
subscribe
({
this
.
fileService
.
download
Template
(
fileName
).
subscribe
({
next
:
response
=>
{
const
url
=
window
.
URL
.
createObjectURL
(
response
);
const
a
=
document
.
createElement
(
"a"
);
...
...
src/app/components/company-components/employee-registration/sub-employee-registration/sub-employee-registration.component.ts
View file @
5172e66d
...
...
@@ -98,7 +98,7 @@ export class SubEmployeeRegistrationComponent {
const
formData
=
new
FormData
();
formData
.
append
(
'file'
,
this
.
selectedFile
);
this
.
employee
.
loading
=
true
this
.
fileService
.
upload
(
formData
,
''
).
subscribe
({
this
.
fileService
.
upload
Excel
(
formData
,
''
).
subscribe
({
next
:
response
=>
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
...
...
@@ -117,7 +117,7 @@ export class SubEmployeeRegistrationComponent {
}
downloadFile
()
{
const
fileName
=
'IMPORT_MPOSITION.xlsx'
this
.
fileService
.
download
(
fileName
).
subscribe
({
this
.
fileService
.
download
Template
(
fileName
).
subscribe
({
next
:
response
=>
{
const
url
=
window
.
URL
.
createObjectURL
(
response
);
const
a
=
document
.
createElement
(
"a"
);
...
...
src/app/components/company-components/job-description/employee-categories/employee-categories.component.ts
View file @
5172e66d
...
...
@@ -54,7 +54,7 @@ export class EmployeeCategories {
const
formData
=
new
FormData
();
this
.
dataLoading
=
true
formData
.
append
(
'file'
,
this
.
selectedFile
);
this
.
fileService
.
upload
(
formData
,
'employment_type'
).
subscribe
({
this
.
fileService
.
upload
Excel
(
formData
,
'employment_type'
).
subscribe
({
next
:
response
=>
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
...
...
@@ -74,7 +74,7 @@ export class EmployeeCategories {
downloadFile
()
{
const
fileName
=
'IMPORT_MEMPLOYMENTTYPE.xlsx'
this
.
fileService
.
download
(
fileName
).
subscribe
({
this
.
fileService
.
download
Template
(
fileName
).
subscribe
({
next
:
response
=>
{
const
url
=
window
.
URL
.
createObjectURL
(
response
);
const
a
=
document
.
createElement
(
"a"
);
...
...
src/app/components/company-components/job-description/employee-group-unit/employee-group-unit.component.ts
View file @
5172e66d
...
...
@@ -55,7 +55,7 @@ export class EmployeeGroupUnit implements OnInit {
const
formData
=
new
FormData
();
formData
.
append
(
'file'
,
this
.
selectedFile
);
this
.
dataLoading
=
true
this
.
fileService
.
upload
(
formData
,
'mgroup'
).
subscribe
({
this
.
fileService
.
upload
Excel
(
formData
,
'mgroup'
).
subscribe
({
next
:
response
=>
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
...
...
@@ -73,7 +73,7 @@ export class EmployeeGroupUnit implements OnInit {
downloadFile
()
{
const
fileName
=
'IMPORT_MGROUP.xlsx'
this
.
fileService
.
download
(
fileName
).
subscribe
({
this
.
fileService
.
download
Template
(
fileName
).
subscribe
({
next
:
response
=>
{
const
url
=
window
.
URL
.
createObjectURL
(
response
);
const
a
=
document
.
createElement
(
"a"
);
...
...
src/app/components/company-components/job-description/employee-level/employee-level.component.ts
View file @
5172e66d
...
...
@@ -56,7 +56,7 @@ export class EmployeeLevel implements OnInit {
const
formData
=
new
FormData
();
formData
.
append
(
'file'
,
this
.
selectedFile
);
this
.
dataLoading
=
true
this
.
fileService
.
upload
(
formData
,
'pl'
).
subscribe
({
this
.
fileService
.
upload
Excel
(
formData
,
'pl'
).
subscribe
({
next
:
response
=>
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
...
...
@@ -76,7 +76,7 @@ export class EmployeeLevel implements OnInit {
downloadFile
()
{
const
fileName
=
'IMPORT_PL.xlsx'
this
.
fileService
.
download
(
fileName
).
subscribe
({
this
.
fileService
.
download
Template
(
fileName
).
subscribe
({
next
:
response
=>
{
const
url
=
window
.
URL
.
createObjectURL
(
response
);
const
a
=
document
.
createElement
(
"a"
);
...
...
src/app/components/company-components/job-description/position/position-unit.component.ts
View file @
5172e66d
...
...
@@ -55,7 +55,7 @@ export class PositionUnitComponent implements OnInit {
const
formData
=
new
FormData
();
formData
.
append
(
'file'
,
this
.
selectedFile
);
this
.
dataLoading
=
true
this
.
fileService
.
upload
(
formData
,
'mposition'
).
subscribe
({
this
.
fileService
.
upload
Excel
(
formData
,
'mposition'
).
subscribe
({
next
:
response
=>
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
...
...
@@ -75,7 +75,7 @@ export class PositionUnitComponent implements OnInit {
downloadFile
()
{
const
fileName
=
'IMPORT_MPOSITION.xlsx'
this
.
fileService
.
download
(
fileName
).
subscribe
({
this
.
fileService
.
download
Template
(
fileName
).
subscribe
({
next
:
response
=>
{
const
url
=
window
.
URL
.
createObjectURL
(
response
);
const
a
=
document
.
createElement
(
"a"
);
...
...
src/app/components/competency-assessment/name-registration/competency-topic/competency-topic.component.html
View file @
5172e66d
...
...
@@ -560,7 +560,7 @@
<div
class=
"flex justify-end"
>
<ng-container
*
ngIf=
"modalStatus=='add'||modalStatus=='edit'"
>
<button
type=
"button"
class=
"hs-dropdown-toggle ti-modal-clode-btn text-danger"
data-hs-overlay=
"#competency-topic-page-
alert-
modal"
>
data-hs-overlay=
"#competency-topic-page-modal"
>
<span
class=
"sr-only"
>
Close
</span>
<i
class=
"ti ti-circle-x fs-xxl"
></i>
</button>
...
...
src/app/components/competency-assessment/name-registration/competency-topic/competency-topic.component.ts
View file @
5172e66d
...
...
@@ -87,7 +87,7 @@ export class CompetencyTopic {
const
formData
=
new
FormData
();
formData
.
append
(
'file'
,
this
.
selectedFile
);
this
.
dataLoading
=
true
this
.
fileService
.
upload
(
formData
,
'competency_topic'
).
subscribe
({
this
.
fileService
.
upload
Excel
(
formData
,
'competency_topic'
).
subscribe
({
next
:
response
=>
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
...
...
@@ -108,7 +108,7 @@ export class CompetencyTopic {
downloadFile
()
{
const
fileName
=
'IMPORT_COMPETENCY_TOPIC.xlsx'
this
.
fileService
.
download
(
fileName
).
subscribe
({
this
.
fileService
.
download
Template
(
fileName
).
subscribe
({
next
:
response
=>
{
const
url
=
window
.
URL
.
createObjectURL
(
response
);
const
a
=
document
.
createElement
(
"a"
);
...
...
src/app/components/competency-assessment/name-registration/type-registration/type-registration.component.ts
View file @
5172e66d
...
...
@@ -60,7 +60,7 @@ export class TypeRegistration {
const
formData
=
new
FormData
();
formData
.
append
(
'file'
,
this
.
selectedFile
);
this
.
dataLoading
=
true
this
.
fileService
.
upload
(
formData
,
'competency_type'
).
subscribe
({
this
.
fileService
.
upload
Excel
(
formData
,
'competency_type'
).
subscribe
({
next
:
response
=>
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
...
...
@@ -80,7 +80,7 @@ export class TypeRegistration {
downloadFile
()
{
const
fileName
=
'IMPORT_COMPETENCY_TYPE.xlsx'
this
.
fileService
.
download
(
fileName
).
subscribe
({
this
.
fileService
.
download
Template
(
fileName
).
subscribe
({
next
:
response
=>
{
const
url
=
window
.
URL
.
createObjectURL
(
response
);
const
a
=
document
.
createElement
(
"a"
);
...
...
src/app/components/competency-assessment/tool-register/assessment-tool/assessment-tool.component.html
View file @
5172e66d
This diff is collapsed.
Click to expand it.
src/app/components/competency-assessment/tool-register/assessment-tool/assessment-tool.component.ts
View file @
5172e66d
This diff is collapsed.
Click to expand it.
src/app/components/competency-assessment/tool-register/tool-register.component.html
View file @
5172e66d
...
...
@@ -15,10 +15,9 @@
</a>
</nav>
</div>
<div
class=
"mt-3 px-
3
rem !-mt-3 pt-50px"
>
<div
class=
"mt-3 px-
2
rem !-mt-3 pt-50px"
>
<div
id=
"underline-1"
role=
"tabpanel"
aria-labelledby=
"underline-item-1"
>
<app-assessment-tool
[
pathTitle
]="
pathTitle
"
(
sendPathTitle
)="
pathTitle=
$event"
></app-assessment-tool>
<app-assessment-tool></app-assessment-tool>
</div>
</div>
</div>
...
...
src/app/components/job-detail-components/job-competency/sub-job-competency/sub-job-competency.component.ts
View file @
5172e66d
...
...
@@ -92,7 +92,7 @@ export class SubJobCompetencyComponent {
const
formData
=
new
FormData
();
formData
.
append
(
'file'
,
this
.
selectedFile
);
this
.
loading
=
true
this
.
fileService
.
upload
(
formData
,
'MJOBCODE_COMPETENCY'
).
subscribe
({
this
.
fileService
.
upload
Excel
(
formData
,
'MJOBCODE_COMPETENCY'
).
subscribe
({
next
:
response
=>
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
...
...
@@ -111,7 +111,7 @@ export class SubJobCompetencyComponent {
downloadFile
()
{
const
fileName
=
'IMPORT_MJOBCODEV2.xlsx'
this
.
fileService
.
download
(
fileName
).
subscribe
({
this
.
fileService
.
download
Template
(
fileName
).
subscribe
({
next
:
response
=>
{
const
url
=
window
.
URL
.
createObjectURL
(
response
);
const
a
=
document
.
createElement
(
"a"
);
...
...
src/app/shared/model/assessment.model.ts
View file @
5172e66d
...
...
@@ -13,12 +13,12 @@ export class MyAssessmentModel implements AssessmentModel {
edesc
:
string
tdesc
:
string
shortName
:
string
constructor
(
data
:
Partial
<
AssessmentModel
>
)
{
this
.
assessmentId
=
data
.
assessmentId
||
""
this
.
companyId
=
data
.
companyId
||
""
this
.
edesc
=
data
.
edesc
||
""
this
.
tdesc
=
data
.
tdesc
||
""
this
.
shortName
=
data
.
shortName
||
""
constructor
(
data
?
:
Partial
<
AssessmentModel
>
)
{
this
.
assessmentId
=
data
?
.
assessmentId
||
""
this
.
companyId
=
data
?
.
companyId
||
""
this
.
edesc
=
data
?
.
edesc
||
""
this
.
tdesc
=
data
?
.
tdesc
||
""
this
.
shortName
=
data
?
.
shortName
||
""
}
}
src/app/shared/services/assessment.service.ts
View file @
5172e66d
...
...
@@ -3,6 +3,7 @@ import { Injectable } from '@angular/core';
import
{
Observable
}
from
'rxjs'
;
import
{
environment
}
from
'src/environments/environment'
;
import
{
AssessmentModel
}
from
'../model/assessment.model'
;
import
{
AlertModel
}
from
'../model/alert.model'
;
@
Injectable
({
providedIn
:
'root'
})
...
...
@@ -17,16 +18,16 @@ export class AssessmentService {
getList
():
Observable
<
AssessmentModel
[]
>
{
return
this
.
http
.
get
<
AssessmentModel
[]
>
(
this
.
urlApi
+
"/lists"
)
}
post
(
body
:
AssessmentModel
)
{
return
this
.
http
.
post
(
this
.
urlApi
,
body
)
post
(
body
:
AssessmentModel
)
:
Observable
<
AlertModel
>
{
return
this
.
http
.
post
<
AlertModel
>
(
this
.
urlApi
,
body
)
}
delete
(
body
:
AssessmentModel
)
{
delete
(
body
:
AssessmentModel
)
:
Observable
<
AlertModel
>
{
const
options
=
{
headers
:
new
HttpHeaders
({
"Content-Type"
:
"application/json"
,
}),
body
:
body
};
return
this
.
http
.
delete
(
this
.
urlApi
,
options
)
return
this
.
http
.
delete
<
AlertModel
>
(
this
.
urlApi
,
options
)
}
}
\ No newline at end of file
src/app/shared/services/file.service.ts
View file @
5172e66d
...
...
@@ -10,10 +10,10 @@ export class FileService {
constructor
(
private
http
:
HttpClient
)
{
}
upload
(
formData
:
any
,
table
:
string
):
Observable
<
AlertModel
>
{
upload
Excel
(
formData
:
any
,
table
:
string
):
Observable
<
AlertModel
>
{
return
this
.
http
.
post
<
AlertModel
>
(
environment
.
baseUrl
+
'/import/excel/'
+
table
,
formData
)
}
download
(
fileName
:
string
)
{
download
Template
(
fileName
:
string
)
{
return
this
.
http
.
get
(
"/assets/template/"
+
fileName
,
{
responseType
:
"blob"
})
}
}
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