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
ba632578
Commit
ba632578
authored
Feb 13, 2025
by
Nattana Chaiyamat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ทะเบียนแผนก
parent
e5a9079a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
department-list.component.html
...iness-unit/department-list/department-list.component.html
+0
-0
department-register.component.html
...it/department-register/department-register.component.html
+2
-2
department-register.component.ts
...unit/department-register/department-register.component.ts
+6
-2
No files found.
src/app/components/company-components/company-registration/branch-business-unit/department-list/department-list.component.html
View file @
ba632578
This diff is collapsed.
Click to expand it.
src/app/components/company-components/company-registration/branch-business-unit/department-register/department-register.component.html
View file @
ba632578
...
...
@@ -3,7 +3,7 @@
<div
class=
"flex pr-2"
>
<div
class=
"px-1"
>
<button
type=
"button"
class=
"ti-btn ti-btn-soft-secondary h-20px m-0 shadow-md"
data-hs-overlay=
"#department-register-upload-modal"
>
data-hs-overlay=
"#department-register-upload-modal"
(
click
)="
selectedFileName =
'กรุณาเลือกไฟล์'
"
>
<i
class=
"ri-add-line"
></i>
นำเข้าข้อมูล
</button>
...
...
@@ -219,7 +219,7 @@
<div
class=
"absolute flex"
>
<div
class=
"px-1"
>
<button
type=
"button"
class=
"ti-btn ti-btn-soft-indigo h-45px m-0 shadow-md"
(
click
)="
selectBu1
(
undefined
,
bu1
.
bu1id
)
"
>
(
click
)="
bu1
.
tdesc=
''
;
bu1
.
edesc=
''
"
>
<svg
class=
"svg-indigo"
width=
"16"
height=
"16"
viewBox=
"0 0 64.00 64.00"
xmlns=
"http://www.w3.org/2000/svg"
fill=
"none"
stroke=
"#595BEA"
stroke-width=
"3.84"
transform=
"rotate(45)matrix(-1, 0, 0, 1, 0, 0)"
>
...
...
src/app/components/company-components/company-registration/branch-business-unit/department-register/department-register.component.ts
View file @
ba632578
...
...
@@ -96,8 +96,8 @@ export class DepartmentRegisterComponent implements OnInit {
x
.
tdesc
.
toLowerCase
().
includes
(
this
.
search
.
toLowerCase
())
||
x
.
edesc
.
toLowerCase
().
includes
(
this
.
search
.
toLowerCase
()))
}
selectBu1
(
bu1
?:
Bu1Model
,
bu1id
?:
string
)
{
this
.
bu1
=
new
MyBu1Model
(
bu1
||
{
bu1id
:
bu1id
})
selectBu1
(
bu1
?:
Bu1Model
)
{
this
.
bu1
=
new
MyBu1Model
(
bu1
||
{})
}
showAlert
(
text
:
string
,
type
:
'success'
|
'error'
)
{
...
...
@@ -107,6 +107,7 @@ export class DepartmentRegisterComponent implements OnInit {
})
}
addBu1
()
{
this
.
bu1ListLoading
=
true
this
.
bu1Service
.
post
(
this
.
bu1
).
subscribe
({
next
:
response
=>
{
if
(
response
.
success
)
{
...
...
@@ -116,11 +117,13 @@ export class DepartmentRegisterComponent implements OnInit {
this
.
showAlert
(
response
.
message
,
'error'
)
}
},
error
:
error
=>
{
this
.
bu1ListLoading
=
false
this
.
showAlert
(
error
.
message
,
'error'
)
}
})
}
deleteBu1
()
{
this
.
bu1ListLoading
=
true
this
.
bu1Service
.
delete
(
this
.
bu1
).
subscribe
({
next
:
response
=>
{
if
(
response
.
success
)
{
...
...
@@ -130,6 +133,7 @@ export class DepartmentRegisterComponent implements OnInit {
this
.
showAlert
(
response
.
message
,
'error'
)
}
},
error
:
error
=>
{
this
.
bu1ListLoading
=
false
this
.
showAlert
(
error
.
message
,
'error'
)
}
})
...
...
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