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
f11c6620
Commit
f11c6620
authored
Dec 23, 2024
by
LAPTOP-CV4JFSHE\kantavee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
หน้าเเก้ไขข้อมูล ส่วนย่อยที่ 1 2 เเละ 3
parent
87d9dc4b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
sub-department-four.component.ts
...unit/sub-department-four/sub-department-four.component.ts
+4
-2
sub-department-one.component.ts
...s-unit/sub-department-one/sub-department-one.component.ts
+4
-2
sub-department-three.component.ts
...it/sub-department-three/sub-department-three.component.ts
+4
-2
No files found.
src/app/components/company-registration/branch-business-unit/sub-department-four/sub-department-four.component.ts
View file @
f11c6620
import
{
Component
,
EventEmitter
,
Input
,
OnInit
}
from
'@angular/core'
;
import
{
ChangeDetectorRef
,
Component
,
EventEmitter
,
Input
,
OnInit
}
from
'@angular/core'
;
import
{
ToastrService
}
from
'ngx-toastr'
;
import
{
ToastrService
}
from
'ngx-toastr'
;
import
{
Bu6Model
,
MyBu6Model
}
from
'src/app/shared/model/bu6.model'
;
import
{
Bu6Model
,
MyBu6Model
}
from
'src/app/shared/model/bu6.model'
;
import
{
Bu7Model
,
MyBu7Model
}
from
'src/app/shared/model/bu7.model'
;
import
{
Bu7Model
,
MyBu7Model
}
from
'src/app/shared/model/bu7.model'
;
...
@@ -38,7 +38,8 @@ export class SubDepartmentFourComponent implements OnInit {
...
@@ -38,7 +38,8 @@ export class SubDepartmentFourComponent implements OnInit {
currentModal
=
""
currentModal
=
""
constructor
(
private
bu7Service
:
Bu7Service
,
constructor
(
private
bu7Service
:
Bu7Service
,
private
bu6Service
:
Bu6Service
,
private
bu6Service
:
Bu6Service
,
private
toastr
:
ToastrService
private
toastr
:
ToastrService
,
private
cdr
:
ChangeDetectorRef
)
{
}
)
{
}
ngOnInit
():
void
{
ngOnInit
():
void
{
this
.
getBu7List
()
this
.
getBu7List
()
...
@@ -65,6 +66,7 @@ export class SubDepartmentFourComponent implements OnInit {
...
@@ -65,6 +66,7 @@ export class SubDepartmentFourComponent implements OnInit {
if
(
this
.
bu7
.
parent
)
{
if
(
this
.
bu7
.
parent
)
{
this
.
bu6Service
.
getById
(
this
.
bu7
.
parent
).
subscribe
(
response
=>
{
this
.
bu6Service
.
getById
(
this
.
bu7
.
parent
).
subscribe
(
response
=>
{
this
.
bu6
=
new
MyBu6Model
(
response
)
this
.
bu6
=
new
MyBu6Model
(
response
)
this
.
cdr
.
detectChanges
()
})
})
}
}
}
}
...
...
src/app/components/company-registration/branch-business-unit/sub-department-one/sub-department-one.component.ts
View file @
f11c6620
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
{
Bu3Model
,
MyBu3Model
}
from
'src/app/shared/model/bu3.model'
;
import
{
Bu3Model
,
MyBu3Model
}
from
'src/app/shared/model/bu3.model'
;
import
{
Bu4Model
,
MyBu4Model
}
from
'src/app/shared/model/bu4.model'
;
import
{
Bu4Model
,
MyBu4Model
}
from
'src/app/shared/model/bu4.model'
;
...
@@ -37,7 +37,8 @@ export class SubDepartmentOneComponent implements OnInit {
...
@@ -37,7 +37,8 @@ export class SubDepartmentOneComponent implements OnInit {
currentModal
=
""
currentModal
=
""
constructor
(
private
bu4Service
:
Bu4Service
,
constructor
(
private
bu4Service
:
Bu4Service
,
private
bu3Service
:
Bu3Service
,
private
bu3Service
:
Bu3Service
,
private
toastr
:
ToastrService
private
toastr
:
ToastrService
,
private
cdr
:
ChangeDetectorRef
)
{
}
)
{
}
ngOnInit
():
void
{
ngOnInit
():
void
{
this
.
getBu4List
()
this
.
getBu4List
()
...
@@ -64,6 +65,7 @@ export class SubDepartmentOneComponent implements OnInit {
...
@@ -64,6 +65,7 @@ export class SubDepartmentOneComponent implements OnInit {
if
(
this
.
bu4
.
parent
)
{
if
(
this
.
bu4
.
parent
)
{
this
.
bu3Service
.
getById
(
this
.
bu4
.
parent
).
subscribe
(
response
=>
{
this
.
bu3Service
.
getById
(
this
.
bu4
.
parent
).
subscribe
(
response
=>
{
this
.
bu3
=
new
MyBu3Model
(
response
)
this
.
bu3
=
new
MyBu3Model
(
response
)
this
.
cdr
.
detectChanges
()
})
})
}
}
}
}
...
...
src/app/components/company-registration/branch-business-unit/sub-department-three/sub-department-three.component.ts
View file @
f11c6620
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
{
Bu5Model
,
MyBu5Model
}
from
'src/app/shared/model/bu5.model'
;
import
{
Bu5Model
,
MyBu5Model
}
from
'src/app/shared/model/bu5.model'
;
import
{
Bu6Model
,
MyBu6Model
}
from
'src/app/shared/model/bu6.model'
;
import
{
Bu6Model
,
MyBu6Model
}
from
'src/app/shared/model/bu6.model'
;
...
@@ -38,7 +38,8 @@ export class SubDepartmentThreeComponent implements OnInit {
...
@@ -38,7 +38,8 @@ export class SubDepartmentThreeComponent implements OnInit {
currentModal
=
""
currentModal
=
""
constructor
(
private
bu6Service
:
Bu6Service
,
constructor
(
private
bu6Service
:
Bu6Service
,
private
bu5Service
:
Bu5Service
,
private
bu5Service
:
Bu5Service
,
private
toastr
:
ToastrService
private
toastr
:
ToastrService
,
private
cdr
:
ChangeDetectorRef
)
{
}
)
{
}
ngOnInit
():
void
{
ngOnInit
():
void
{
this
.
getBu6List
()
this
.
getBu6List
()
...
@@ -65,6 +66,7 @@ export class SubDepartmentThreeComponent implements OnInit {
...
@@ -65,6 +66,7 @@ export class SubDepartmentThreeComponent implements OnInit {
if
(
this
.
bu6
.
parent
)
{
if
(
this
.
bu6
.
parent
)
{
this
.
bu5Service
.
getById
(
this
.
bu6
.
parent
).
subscribe
(
response
=>
{
this
.
bu5Service
.
getById
(
this
.
bu6
.
parent
).
subscribe
(
response
=>
{
this
.
bu5
=
new
MyBu5Model
(
response
)
this
.
bu5
=
new
MyBu5Model
(
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