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
d19b6e76
Commit
d19b6e76
authored
Nov 27, 2024
by
LAPTOP-CV4JFSHE\kantavee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
เเก้ไขชื่อฟังก์ชั่น
parent
b846758e
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
17 deletions
+15
-17
department-list.component.ts
...usiness-unit/department-list/department-list.component.ts
+2
-4
department-register.component.ts
...unit/department-register/department-register.component.ts
+1
-1
bu1.service.ts
src/app/shared/services/bu1.service.ts
+2
-2
bu2.service.ts
src/app/shared/services/bu2.service.ts
+2
-2
bu4.service.ts
src/app/shared/services/bu4.service.ts
+2
-2
bu5service.ts
src/app/shared/services/bu5service.ts
+2
-2
bu6.service.ts
src/app/shared/services/bu6.service.ts
+2
-2
bu7.service.ts
src/app/shared/services/bu7.service.ts
+2
-2
No files found.
src/app/components/company-registration/branch-business-unit/department-list/department-list.component.ts
View file @
d19b6e76
...
...
@@ -24,8 +24,7 @@ export class DepartmentListComponent implements OnInit {
this
.
getBu2List
()
}
getBu2List
()
{
this
.
bu2Service
.
getBu2
().
subscribe
(
response
=>
{
console
.
log
(
"31313 : "
,
response
)
this
.
bu2Service
.
getList
().
subscribe
(
response
=>
{
this
.
bu2List
=
response
this
.
searchChange
()
})
...
...
@@ -40,9 +39,8 @@ export class DepartmentListComponent implements OnInit {
x
.
edesc
.
toLowerCase
().
includes
(
this
.
search
))
}
selectBu2
(
bu2
:
Bu2Model
)
{
this
.
bu1Service
.
getB
u1B
yId
(
bu2
.
parent
).
subscribe
(
response
=>
{
this
.
bu1Service
.
getById
(
bu2
.
parent
).
subscribe
(
response
=>
{
this
.
bu1
=
response
console
.
log
(
this
.
bu1
)
})
this
.
bu2
=
new
MyBu2Model
(
bu2
)
}
...
...
src/app/components/company-registration/branch-business-unit/department-register/department-register.component.ts
View file @
d19b6e76
...
...
@@ -18,7 +18,7 @@ export class DepartmentRegisterComponent implements OnInit {
this
.
getBu1List
()
}
getBu1List
()
{
this
.
bu1Service
.
get
Bu1
().
subscribe
(
response
=>
{
this
.
bu1Service
.
get
List
().
subscribe
(
response
=>
{
this
.
bu1List
=
response
this
.
searchChange
()
})
...
...
src/app/shared/services/bu1.service.ts
View file @
d19b6e76
...
...
@@ -11,10 +11,10 @@ export class Bu1Service {
urlApi
=
environment
.
baseUrl
+
this
.
api
constructor
(
private
http
:
HttpClient
)
{
}
get
Bu1
():
Observable
<
Bu1Model
[]
>
{
get
List
():
Observable
<
Bu1Model
[]
>
{
return
this
.
http
.
get
<
Bu1Model
[]
>
(
this
.
urlApi
+
"/lists"
)
}
getB
u1B
yId
(
bu1id
:
string
):
Observable
<
Bu1Model
>
{
getById
(
bu1id
:
string
):
Observable
<
Bu1Model
>
{
return
this
.
http
.
get
<
Bu1Model
>
(
this
.
urlApi
+
"/"
+
bu1id
)
}
// post(body: Bu1Model) {
...
...
src/app/shared/services/bu2.service.ts
View file @
d19b6e76
...
...
@@ -11,10 +11,10 @@ export class Bu2Service {
urlApi
=
environment
.
baseUrl
+
this
.
api
constructor
(
private
http
:
HttpClient
)
{
}
get
Bu2
():
Observable
<
Bu2Model
[]
>
{
get
List
():
Observable
<
Bu2Model
[]
>
{
return
this
.
http
.
get
<
Bu2Model
[]
>
(
this
.
urlApi
+
"/lists"
)
}
getB
u2B
yId
(
bu2id
:
string
):
Observable
<
Bu2Model
>
{
getById
(
bu2id
:
string
):
Observable
<
Bu2Model
>
{
return
this
.
http
.
get
<
Bu2Model
>
(
this
.
urlApi
+
"/"
+
bu2id
)
}
// post(body: Bu1Model) {
...
...
src/app/shared/services/bu4.service.ts
View file @
d19b6e76
...
...
@@ -11,10 +11,10 @@ export class Bu4Service {
urlApi
=
environment
.
baseUrl
+
this
.
api
constructor
(
private
http
:
HttpClient
)
{
}
get
Bu4
():
Observable
<
Bu4Model
[]
>
{
get
List
():
Observable
<
Bu4Model
[]
>
{
return
this
.
http
.
get
<
Bu4Model
[]
>
(
this
.
urlApi
+
"/lists"
)
}
getB
u4B
yId
(
bu4id
:
string
):
Observable
<
Bu4Model
>
{
getById
(
bu4id
:
string
):
Observable
<
Bu4Model
>
{
return
this
.
http
.
get
<
Bu4Model
>
(
this
.
urlApi
+
"/"
+
bu4id
)
}
// post(body: Bu1Model) {
...
...
src/app/shared/services/bu5service.ts
View file @
d19b6e76
...
...
@@ -11,10 +11,10 @@ export class Bu5Service {
urlApi
=
environment
.
baseUrl
+
this
.
api
constructor
(
private
http
:
HttpClient
)
{
}
get
Bu5
():
Observable
<
Bu5Model
[]
>
{
get
List
():
Observable
<
Bu5Model
[]
>
{
return
this
.
http
.
get
<
Bu5Model
[]
>
(
this
.
urlApi
+
"/lists"
)
}
getB
u5B
yId
(
bu5id
:
string
):
Observable
<
Bu5Model
>
{
getById
(
bu5id
:
string
):
Observable
<
Bu5Model
>
{
return
this
.
http
.
get
<
Bu5Model
>
(
this
.
urlApi
+
"/"
+
bu5id
)
}
// post(body: Bu1Model) {
...
...
src/app/shared/services/bu6.service.ts
View file @
d19b6e76
...
...
@@ -11,10 +11,10 @@ export class Bu6Service {
urlApi
=
environment
.
baseUrl
+
this
.
api
constructor
(
private
http
:
HttpClient
)
{
}
get
Bu6
():
Observable
<
Bu6Model
[]
>
{
get
List
():
Observable
<
Bu6Model
[]
>
{
return
this
.
http
.
get
<
Bu6Model
[]
>
(
this
.
urlApi
+
"/lists"
)
}
getB
u6B
yId
(
bu6id
:
string
):
Observable
<
Bu6Model
>
{
getById
(
bu6id
:
string
):
Observable
<
Bu6Model
>
{
return
this
.
http
.
get
<
Bu6Model
>
(
this
.
urlApi
+
"/"
+
bu6id
)
}
// post(body: Bu1Model) {
...
...
src/app/shared/services/bu7.service.ts
View file @
d19b6e76
...
...
@@ -11,10 +11,10 @@ export class Bu7Service {
urlApi
=
environment
.
baseUrl
+
this
.
api
constructor
(
private
http
:
HttpClient
)
{
}
get
Bu7
():
Observable
<
Bu7Model
[]
>
{
get
List
():
Observable
<
Bu7Model
[]
>
{
return
this
.
http
.
get
<
Bu7Model
[]
>
(
this
.
urlApi
+
"/lists"
)
}
getB
u7B
yId
(
bu7id
:
string
):
Observable
<
Bu7Model
>
{
getById
(
bu7id
:
string
):
Observable
<
Bu7Model
>
{
return
this
.
http
.
get
<
Bu7Model
>
(
this
.
urlApi
+
"/"
+
bu7id
)
}
// post(body: Bu1Model) {
...
...
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