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
ef1ab89a
Commit
ef1ab89a
authored
Dec 27, 2024
by
Nakarin Luankla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
เพิ่มหน้า import
parent
b9b98825
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
77 additions
and
5 deletions
+77
-5
dashboard.module.ts
src/app/components/dashboard/dashboard.module.ts
+2
-0
import-data.component.html
...-detail-management/import-data/import-data.component.html
+0
-0
import-data.component.scss
...-detail-management/import-data/import-data.component.scss
+0
-0
import-data.component.ts
...ob-detail-management/import-data/import-data.component.ts
+57
-0
job-detail-management.component.html
...ob-detail-management/job-detail-management.component.html
+1
-5
job.model.ts
src/app/shared/model/job.model.ts
+17
-0
No files found.
src/app/components/dashboard/dashboard.module.ts
View file @
ef1ab89a
...
...
@@ -61,6 +61,7 @@ import { JobDetailManagementComponent } from '../job-detail-components/job-detai
import
{
DevelopmentCourseComponent
}
from
'../course-registration/development-course/development-course.component'
;
import
{
IndicatorsAndCurriculumComponent
}
from
'../competency-management/indicators-and-curriculum/indicators-and-curriculum.component'
;
import
{
CourseRegistrationComponent
}
from
'../course-registration/course-registration.component'
;
import
{
ImportDataComponent
}
from
'../job-detail-components/job-detail-management/import-data/import-data.component'
;
...
...
@@ -107,6 +108,7 @@ import { CourseRegistrationComponent } from '../course-registration/course-regis
CourseRegistrationComponent
,
DevelopmentCourseComponent
,
IndicatorsAndCurriculumComponent
,
ImportDataComponent
],
imports
:
[
CommonModule
,
...
...
src/app/components/job-detail-components/job-detail-management/import-data/import-data.component.html
0 → 100644
View file @
ef1ab89a
This diff is collapsed.
Click to expand it.
src/app/components/job-detail-components/job-detail-management/import-data/import-data.component.scss
0 → 100644
View file @
ef1ab89a
src/app/components/job-detail-components/job-detail-management/import-data/import-data.component.ts
0 → 100644
View file @
ef1ab89a
import
{
Component
}
from
'@angular/core'
;
import
{
ToastrService
}
from
'ngx-toastr'
;
import
{
JobModel
,
MyJobModel
}
from
'src/app/shared/model/job.model'
;
@
Component
({
selector
:
'app-import-data'
,
templateUrl
:
'./import-data.component.html'
,
styleUrls
:
[
'./import-data.component.scss'
]
})
export
class
ImportDataComponent
{
currentPage
=
1
page
=
Array
.
from
({
length
:
1
},
(
_
,
i
)
=>
i
+
1
);
jobList
:
JobModel
[]
=
[]
job
:
JobModel
=
new
MyJobModel
({})
search
=
""
constructor
(
private
toastr
:
ToastrService
)
{
}
ngOnInit
():
void
{
}
searchChange
()
{
this
.
currentPage
=
1
this
.
page
=
Array
.
from
({
length
:
Math
.
ceil
(
this
.
jobListFilter
().
length
/
10
)
},
(
_
,
i
)
=>
i
+
1
);
}
jobListFilter
()
{
return
this
.
jobList
.
filter
(
x
=>
x
.
jobid
.
toLowerCase
().
includes
(
this
.
search
)
||
x
.
tdesc
.
toLowerCase
().
includes
(
this
.
search
)
||
x
.
edesc
.
toLowerCase
().
includes
(
this
.
search
))
}
selectJob
(
job
:
JobModel
)
{
// this.showSuccess()
this
.
job
=
new
MyJobModel
(
job
)
}
showSuccess
()
{
this
.
toastr
.
success
(
'This is an example of tip'
,
'TIP'
,
{
timeOut
:
3000
,
positionClass
:
'toast-top-right'
,
});
}
addBu1
()
{
// this.bu1Service.post(this.bu1).subscribe((response:any) => {
// if (response.success) {
// this.getBu1List()
// }
// })
}
deleteJob
(
job
:
JobModel
)
{
// this.bu1Service.delete(new MyBu1Model(bu1)).subscribe((response:any) => {
// if (response.success) {
// this.getBu1List()
// }
// })
}
}
src/app/components/job-detail-components/job-detail-management/job-detail-management.component.html
View file @
ef1ab89a
...
...
@@ -18,11 +18,7 @@
</div>
<div
class=
"mt-3 px-3rem"
>
<div
id=
"underline-1"
role=
"tabpanel"
aria-labelledby=
"underline-item-1"
>
รายละเอียดทะเบียนบริษัท
</div>
<div
id=
"underline-2"
class=
"hidden"
role=
"tabpanel"
aria-labelledby=
"underline-item-2"
>
<app-branch-business-unit
[
pathTitle
]="
pathTitle
"
(
sendPathTitle
)="
pathTitle=
$event"
></app-branch-business-unit>
<app-import-data></app-import-data>
</div>
</div>
</div>
...
...
src/app/shared/model/job.model.ts
0 → 100644
View file @
ef1ab89a
export
interface
JobModel
{
jobid
:
string
;
tdesc
:
string
;
edesc
:
string
;
}
export
class
MyJobModel
implements
JobModel
{
jobid
:
string
;
tdesc
:
string
;
edesc
:
string
;
constructor
(
data
:
Partial
<
JobModel
>
)
{
this
.
jobid
=
data
.
jobid
||
""
this
.
tdesc
=
data
.
tdesc
||
""
this
.
edesc
=
data
.
edesc
||
""
}
}
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