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
4c0fcf79
Commit
4c0fcf79
authored
Dec 23, 2024
by
kantavee
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'DEV' of
https://mygit.myhr.co.th/angular/myAppraisal
into DEV
parents
f11c6620
54af895b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
section-registration.component.ts
...it/section-registration/section-registration.component.ts
+4
-2
sub-department-two.component.ts
...s-unit/sub-department-two/sub-department-two.component.ts
+4
-2
No files found.
src/app/components/company-registration/branch-business-unit/section-registration/section-registration.component.ts
View file @
4c0fcf79
import
{
Component
,
EventEmitter
,
Input
,
OnInit
,
}
from
'@angular/core'
;
import
{
C
hangeDetectorRef
,
C
omponent
,
EventEmitter
,
Input
,
OnInit
,
}
from
'@angular/core'
;
import
{
ToastrService
}
from
'ngx-toastr'
;
import
{
ToastrService
}
from
'ngx-toastr'
;
import
{
Bu2Model
,
MyBu2Model
}
from
'src/app/shared/model/bu2.model'
;
import
{
Bu2Model
,
MyBu2Model
}
from
'src/app/shared/model/bu2.model'
;
import
{
Bu3Model
,
MyBu3Model
}
from
'src/app/shared/model/bu3.model'
;
import
{
Bu3Model
,
MyBu3Model
}
from
'src/app/shared/model/bu3.model'
;
...
@@ -37,7 +37,8 @@ export class SectionRegistrationComponent implements OnInit {
...
@@ -37,7 +37,8 @@ export class SectionRegistrationComponent implements OnInit {
currentModal
=
""
currentModal
=
""
constructor
(
private
bu3Service
:
Bu3Service
,
constructor
(
private
bu3Service
:
Bu3Service
,
private
bu2Service
:
Bu2Service
,
private
bu2Service
:
Bu2Service
,
private
toastr
:
ToastrService
private
toastr
:
ToastrService
,
private
cdr
:
ChangeDetectorRef
)
{
}
)
{
}
ngOnInit
():
void
{
ngOnInit
():
void
{
this
.
getBu3List
()
this
.
getBu3List
()
...
@@ -64,6 +65,7 @@ export class SectionRegistrationComponent implements OnInit {
...
@@ -64,6 +65,7 @@ export class SectionRegistrationComponent implements OnInit {
if
(
this
.
bu3
.
parent
)
{
if
(
this
.
bu3
.
parent
)
{
this
.
bu2Service
.
getById
(
this
.
bu3
.
parent
).
subscribe
(
response
=>
{
this
.
bu2Service
.
getById
(
this
.
bu3
.
parent
).
subscribe
(
response
=>
{
this
.
bu2
=
new
MyBu2Model
(
response
)
this
.
bu2
=
new
MyBu2Model
(
response
)
this
.
cdr
.
detectChanges
()
})
})
}
}
}
}
...
...
src/app/components/company-registration/branch-business-unit/sub-department-two/sub-department-two.component.ts
View file @
4c0fcf79
import
{
Component
,
EventEmitter
,
Input
,
OnInit
,
}
from
'@angular/core'
;
import
{
C
hangeDetectorRef
,
C
omponent
,
EventEmitter
,
Input
,
OnInit
,
}
from
'@angular/core'
;
import
{
ToastrService
}
from
'ngx-toastr'
;
import
{
ToastrService
}
from
'ngx-toastr'
;
import
{
Bu4Model
,
MyBu4Model
}
from
'src/app/shared/model/bu4.model'
;
import
{
Bu4Model
,
MyBu4Model
}
from
'src/app/shared/model/bu4.model'
;
import
{
Bu5Model
,
MyBu5Model
}
from
'src/app/shared/model/bu5.model'
;
import
{
Bu5Model
,
MyBu5Model
}
from
'src/app/shared/model/bu5.model'
;
...
@@ -37,7 +37,8 @@ export class SubDepartmentTwoComponent implements OnInit {
...
@@ -37,7 +37,8 @@ export class SubDepartmentTwoComponent implements OnInit {
currentModal
=
""
currentModal
=
""
constructor
(
private
bu5Service
:
Bu5Service
,
constructor
(
private
bu5Service
:
Bu5Service
,
private
bu4Service
:
Bu4Service
,
private
bu4Service
:
Bu4Service
,
private
toastr
:
ToastrService
private
toastr
:
ToastrService
,
private
cdr
:
ChangeDetectorRef
)
{
}
)
{
}
ngOnInit
():
void
{
ngOnInit
():
void
{
this
.
getBu5List
()
this
.
getBu5List
()
...
@@ -64,6 +65,7 @@ export class SubDepartmentTwoComponent implements OnInit {
...
@@ -64,6 +65,7 @@ export class SubDepartmentTwoComponent implements OnInit {
if
(
this
.
bu5
.
parent
)
{
if
(
this
.
bu5
.
parent
)
{
this
.
bu4Service
.
getById
(
this
.
bu5
.
parent
).
subscribe
(
response
=>
{
this
.
bu4Service
.
getById
(
this
.
bu5
.
parent
).
subscribe
(
response
=>
{
this
.
bu4
=
new
MyBu4Model
(
response
)
this
.
bu4
=
new
MyBu4Model
(
response
)
this
.
cdr
.
detectChanges
()
})
})
}
}
}
}
...
...
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