Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mySkill-x
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
mySkill-x
Commits
446cb32c
Commit
446cb32c
authored
Feb 19, 2025
by
Nattana Chaiyamat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ทะเบียนบริษัท
parent
6041af56
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
+11
-1
company-registration-page.component.html
...egistration-page/company-registration-page.component.html
+1
-1
company-registration-page.component.ts
...-registration-page/company-registration-page.component.ts
+10
-0
No files found.
src/app/components/company-components/company-registration/company-registration-page/company-registration-page.component.html
View file @
446cb32c
...
@@ -322,7 +322,7 @@
...
@@ -322,7 +322,7 @@
</div>
</div>
<div
class=
"flex justify-center mt-2rem mb-1rem space-x-4"
>
<div
class=
"flex justify-center mt-2rem mb-1rem space-x-4"
>
<button
type=
"submit"
class=
"ti-btn ti-btn-secondary"
<button
type=
"submit"
class=
"ti-btn ti-btn-secondary"
data-hs-overlay=
"#
position-unit-component
-upload-modal"
[
class
.
ti-btn-disabled
]="!
selectedFile
"
data-hs-overlay=
"#
company-registration-page
-upload-modal"
[
class
.
ti-btn-disabled
]="!
selectedFile
"
(
click
)="
uploadFile
()"
[
disabled
]="!
selectedFile
"
[
disabled
]="!
selectedFile
"
>
(
click
)="
uploadFile
()"
[
disabled
]="!
selectedFile
"
[
disabled
]="!
selectedFile
"
>
อัปโหลด
อัปโหลด
</button>
</button>
...
...
src/app/components/company-components/company-registration/company-registration-page/company-registration-page.component.ts
View file @
446cb32c
...
@@ -73,6 +73,7 @@ export class CompanyRegistrationPageComponent {
...
@@ -73,6 +73,7 @@ export class CompanyRegistrationPageComponent {
addCompany
()
{
addCompany
()
{
const
body
=
new
MyCompanyModel
({
companyId
:
this
.
dataSelect
.
code
,
tdesc
:
this
.
dataSelect
.
tdesc
,
edesc
:
this
.
dataSelect
.
edesc
,
addressText
:
this
.
dataSelect
.
address
,
contactText
:
this
.
dataSelect
.
contact
})
const
body
=
new
MyCompanyModel
({
companyId
:
this
.
dataSelect
.
code
,
tdesc
:
this
.
dataSelect
.
tdesc
,
edesc
:
this
.
dataSelect
.
edesc
,
addressText
:
this
.
dataSelect
.
address
,
contactText
:
this
.
dataSelect
.
contact
})
this
.
dataLoading
=
true
this
.
companyService
.
post
(
body
).
subscribe
({
this
.
companyService
.
post
(
body
).
subscribe
({
next
:
response
=>
{
next
:
response
=>
{
if
(
response
.
success
)
{
if
(
response
.
success
)
{
...
@@ -80,9 +81,13 @@ export class CompanyRegistrationPageComponent {
...
@@ -80,9 +81,13 @@ export class CompanyRegistrationPageComponent {
this
.
getCompanyList
()
this
.
getCompanyList
()
}
else
{
}
else
{
this
.
showAlert
(
response
.
message
,
'error'
)
this
.
showAlert
(
response
.
message
,
'error'
)
this
.
dataLoading
=
false
this
.
cdr
.
detectChanges
()
}
}
},
error
:
error
=>
{
},
error
:
error
=>
{
this
.
showAlert
(
error
.
message
,
'error'
)
this
.
showAlert
(
error
.
message
,
'error'
)
this
.
cdr
.
detectChanges
()
this
.
dataLoading
=
false
}
}
})
})
}
}
...
@@ -93,6 +98,7 @@ export class CompanyRegistrationPageComponent {
...
@@ -93,6 +98,7 @@ export class CompanyRegistrationPageComponent {
}
else
{
}
else
{
body
=
this
.
dataList
.
filter
(
x
=>
x
.
check
&&
x
.
data
.
code
!=
'100'
).
map
(
x
=>
new
MyCompanyModel
({
companyId
:
x
.
data
.
code
,
tdesc
:
x
.
data
.
tdesc
,
edesc
:
x
.
data
.
edesc
,
addressText
:
x
.
data
.
address
,
contactText
:
x
.
data
.
contact
}))
body
=
this
.
dataList
.
filter
(
x
=>
x
.
check
&&
x
.
data
.
code
!=
'100'
).
map
(
x
=>
new
MyCompanyModel
({
companyId
:
x
.
data
.
code
,
tdesc
:
x
.
data
.
tdesc
,
edesc
:
x
.
data
.
edesc
,
addressText
:
x
.
data
.
address
,
contactText
:
x
.
data
.
contact
}))
}
}
this
.
dataLoading
=
true
this
.
companyService
.
delete
(
body
).
subscribe
({
this
.
companyService
.
delete
(
body
).
subscribe
({
next
:
response
=>
{
next
:
response
=>
{
if
(
response
.
success
)
{
if
(
response
.
success
)
{
...
@@ -100,9 +106,13 @@ export class CompanyRegistrationPageComponent {
...
@@ -100,9 +106,13 @@ export class CompanyRegistrationPageComponent {
this
.
getCompanyList
()
this
.
getCompanyList
()
}
else
{
}
else
{
this
.
showAlert
(
response
.
message
,
'error'
)
this
.
showAlert
(
response
.
message
,
'error'
)
this
.
dataLoading
=
false
this
.
cdr
.
detectChanges
()
}
}
},
error
:
error
=>
{
},
error
:
error
=>
{
this
.
showAlert
(
error
.
message
,
'error'
)
this
.
showAlert
(
error
.
message
,
'error'
)
this
.
cdr
.
detectChanges
()
this
.
dataLoading
=
false
}
}
})
})
}
}
...
...
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