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
26cc0a8a
Commit
26cc0a8a
authored
Apr 02, 2025
by
Nattana Chaiyamat
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'DEV' of
https://mygit.myhr.co.th/angular/myAppraisal
into DEV
parents
46de48d7
403fc7f2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
14 deletions
+23
-14
company-registration-page.component.html
...egistration-page/company-registration-page.component.html
+5
-4
company-registration-page.component.ts
...-registration-page/company-registration-page.component.ts
+11
-10
styles.scss
src/styles.scss
+7
-0
No files found.
src/app/components/company-components/company-registration/company-registration-page/company-registration-page.component.html
View file @
26cc0a8a
...
@@ -136,7 +136,7 @@
...
@@ -136,7 +136,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<mat-dialog-content
class=
"mt-2"
>
<mat-dialog-content
>
<label
for=
"input-label"
class=
"ti-form-label mt-2rem"
>
รหัสบริษัท
<span
class=
"text-danger"
>
<label
for=
"input-label"
class=
"ti-form-label mt-2rem"
>
รหัสบริษัท
<span
class=
"text-danger"
>
*
*
<ng-container
*
ngIf=
"modalStatus=='add'&&checkPrimary()"
>
<ng-container
*
ngIf=
"modalStatus=='add'&&checkPrimary()"
>
...
@@ -162,11 +162,12 @@
...
@@ -162,11 +162,12 @@
class=
"hs-dropdown-toggle ti-btn ti-border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:ring-offset-white focus:ring-primary dark:bg-bgdark dark:hover:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-white dark:focus:ring-offset-white/10"
>
class=
"hs-dropdown-toggle ti-btn ti-border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:ring-offset-white focus:ring-primary dark:bg-bgdark dark:hover:bg-black/20 dark:border-white/10 dark:text-white/70 dark:hover:text-white dark:focus:ring-offset-white/10"
>
ย้อนกลับ
ย้อนกลับ
</button>
</button>
<button
type=
"button"
class=
"ti-btn ti-btn-success"
mat-button
[
mat-dialog-close
]="
true
"
<button
type=
"button"
class=
"ti-btn ti-btn-success"
mat-button
(
click
)="
addCompany
()
"
[
class
.
ti-btn-disabled
]="!
dataSelect
.
code
||!
dataSelect
.
tdesc
||(
modalStatus=
='add'&&checkPrimary())"
[
class
.
ti-btn-disabled
]="!
dataSelect
.
code
||!
dataSelect
.
tdesc
||(
modalStatus=
='add'&&checkPrimary())"
[
disabled
]="!
dataSelect
.
code
||!
dataSelect
.
tdesc
||(
modalStatus=
='add'&&checkPrimary())"
>
[
disabled
]="!
dataSelect
.
code
||!
dataSelect
.
tdesc
||(
modalStatus=
='add'&&checkPrimary())"
>
บันทึกข้อมูล
บันทึกข้อมูล
</button>
</button>
</mat-dialog-actions>
</mat-dialog-actions>
</ng-template>
</ng-template>
...
@@ -297,10 +298,10 @@
...
@@ -297,10 +298,10 @@
data-hs-overlay=
"#company-registration-page-modal"
>
data-hs-overlay=
"#company-registration-page-modal"
>
ย้อนกลับ
ย้อนกลับ
</button>
</button>
<a
class=
"ti-btn ti-btn-success"
href=
"javascript:void(0);"
<
!-- <
a class="ti-btn ti-btn-success" href="javascript:void(0);"
data-hs-overlay="#company-registration-page-alert-modal" (click)="addCompany()">
data-hs-overlay="#company-registration-page-alert-modal" (click)="addCompany()">
บันทึกข้อมูล
บันทึกข้อมูล
</a>
</a>
-->
</ng-container>
</ng-container>
<ng-container
*
ngIf=
"modalStatus=='delete'||modalStatus=='deleteGroup'"
>
<ng-container
*
ngIf=
"modalStatus=='delete'||modalStatus=='deleteGroup'"
>
<button
type=
"button"
<button
type=
"button"
...
...
src/app/components/company-components/company-registration/company-registration-page/company-registration-page.component.ts
View file @
26cc0a8a
...
@@ -34,6 +34,7 @@ export class CompanyRegistrationPageComponent {
...
@@ -34,6 +34,7 @@ export class CompanyRegistrationPageComponent {
selectedFile
:
File
|
null
=
null
;
selectedFile
:
File
|
null
=
null
;
selectedFileName
:
string
=
'กรุณาเลือกไฟล์'
;
selectedFileName
:
string
=
'กรุณาเลือกไฟล์'
;
dialogRef
:
any
constructor
(
private
toastr
:
ToastrService
,
constructor
(
private
toastr
:
ToastrService
,
private
companyService
:
CompanyService
,
private
companyService
:
CompanyService
,
private
cdr
:
ChangeDetectorRef
,
private
cdr
:
ChangeDetectorRef
,
...
@@ -95,20 +96,21 @@ export class CompanyRegistrationPageComponent {
...
@@ -95,20 +96,21 @@ export class CompanyRegistrationPageComponent {
if
(
response
.
success
)
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
this
.
showAlert
(
response
.
message
,
'success'
)
this
.
getCompanyList
()
this
.
getCompanyList
()
this
.
closeDialog
();
}
else
{
}
else
{
this
.
showAlert
(
response
.
message
,
'error'
)
this
.
showAlert
(
response
.
message
,
'error'
)
this
.
dataLoading
=
false
this
.
dataLoading
=
false
this
.
closeDialog
();
this
.
cdr
.
detectChanges
()
this
.
cdr
.
detectChanges
()
}
}
},
error
:
error
=>
{
},
error
:
error
=>
{
this
.
showAlert
(
error
.
message
,
'error'
)
this
.
showAlert
(
error
.
message
,
'error'
)
this
.
cdr
.
detectChanges
()
this
.
cdr
.
detectChanges
()
this
.
closeDialog
();
this
.
dataLoading
=
false
this
.
dataLoading
=
false
}
}
})
})
}
else
if
(
result
.
dismiss
===
Swal
.
DismissReason
.
cancel
)
{
}
this
.
openDialog
();
}
});
});
}
}
...
@@ -246,15 +248,14 @@ export class CompanyRegistrationPageComponent {
...
@@ -246,15 +248,14 @@ export class CompanyRegistrationPageComponent {
}
}
openDialog
()
{
openDialog
()
{
const
dialogRef
=
this
.
dialog
.
open
(
this
.
registrationModal
,
{
this
.
dialogRef
=
this
.
dialog
.
open
(
this
.
registrationModal
,
{
width
:
'500px'
,
width
:
'500px'
,
disableClose
:
false
,
disableClose
:
false
,
});
});
dialogRef
.
afterClosed
().
subscribe
(
result
=>
{
console
.
log
(
"🚀 ~ CompanyRegistrationPageComponent ~ openDialog ~ this.dialogRef:"
,
this
.
dialogRef
)
console
.
log
(
"🚀 ~ CompanyRegistrationPageComponent ~ dialogRef.afterClosed ~ result:"
,
result
)
if
(
result
){
}
this
.
addCompany
();
closeDialog
()
{
}
this
.
dialogRef
.
close
()
});
}
}
}
}
src/styles.scss
View file @
26cc0a8a
...
@@ -406,4 +406,10 @@ ngx-dropzone {
...
@@ -406,4 +406,10 @@ ngx-dropzone {
.mdc-dialog__actions
{
.mdc-dialog__actions
{
border-top-width
:
1px
!
important
;
border-top-width
:
1px
!
important
;
border-top-color
:
rgb
(
226
,
232
,
240
)
!
important
;
border-top-color
:
rgb
(
226
,
232
,
240
)
!
important
;
}
.mat-mdc-dialog-content
{
max-height
:
80vh
!
important
;
}
.mat-mdc-dialog-container
.mdc-dialog__content
{
padding-top
:
10px
!
important
;
}
}
\ No newline at end of file
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