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
54af895b
Commit
54af895b
authored
2 months ago
by
Natthaphat Pankiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
บังคับให้อัปเดต View ตอนเปิด Modal หน้า ทะเบียนส่วน ,ส่วนย่อย 2
parent
87d9dc4b
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 @
54af895b
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
{
Bu2Model
,
MyBu2Model
}
from
'src/app/shared/model/bu2.model'
;
import
{
Bu3Model
,
MyBu3Model
}
from
'src/app/shared/model/bu3.model'
;
...
...
@@ -37,7 +37,8 @@ export class SectionRegistrationComponent implements OnInit {
currentModal
=
""
constructor
(
private
bu3Service
:
Bu3Service
,
private
bu2Service
:
Bu2Service
,
private
toastr
:
ToastrService
private
toastr
:
ToastrService
,
private
cdr
:
ChangeDetectorRef
)
{
}
ngOnInit
():
void
{
this
.
getBu3List
()
...
...
@@ -64,6 +65,7 @@ export class SectionRegistrationComponent implements OnInit {
if
(
this
.
bu3
.
parent
)
{
this
.
bu2Service
.
getById
(
this
.
bu3
.
parent
).
subscribe
(
response
=>
{
this
.
bu2
=
new
MyBu2Model
(
response
)
this
.
cdr
.
detectChanges
()
})
}
}
...
...
This diff is collapsed.
Click to expand it.
src/app/components/company-registration/branch-business-unit/sub-department-two/sub-department-two.component.ts
View file @
54af895b
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
{
Bu4Model
,
MyBu4Model
}
from
'src/app/shared/model/bu4.model'
;
import
{
Bu5Model
,
MyBu5Model
}
from
'src/app/shared/model/bu5.model'
;
...
...
@@ -37,7 +37,8 @@ export class SubDepartmentTwoComponent implements OnInit {
currentModal
=
""
constructor
(
private
bu5Service
:
Bu5Service
,
private
bu4Service
:
Bu4Service
,
private
toastr
:
ToastrService
private
toastr
:
ToastrService
,
private
cdr
:
ChangeDetectorRef
)
{
}
ngOnInit
():
void
{
this
.
getBu5List
()
...
...
@@ -64,6 +65,7 @@ export class SubDepartmentTwoComponent implements OnInit {
if
(
this
.
bu5
.
parent
)
{
this
.
bu4Service
.
getById
(
this
.
bu5
.
parent
).
subscribe
(
response
=>
{
this
.
bu4
=
new
MyBu4Model
(
response
)
this
.
cdr
.
detectChanges
()
})
}
}
...
...
This diff is collapsed.
Click to expand it.
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