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
f048227e
Project 'angular/myAppraisal' was moved to 'angular/mySkill-x'. Please update any links and bookmarks that may still have the old path.
Commit
f048227e
authored
Apr 11, 2025
by
Nattana Chaiyamat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ทะเบียนฝ่าย
parent
58b2b6c9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
65 deletions
+35
-65
department-register.component.ts
...unit/department-register/department-register.component.ts
+2
-0
sub-department-one.component.html
...unit/sub-department-one/sub-department-one.component.html
+33
-65
No files found.
src/app/components/company-components/company-registration/branch-business-unit/department-register/department-register.component.ts
View file @
f048227e
...
@@ -155,6 +155,7 @@ export class DepartmentRegisterComponent implements OnInit {
...
@@ -155,6 +155,7 @@ export class DepartmentRegisterComponent implements OnInit {
if
(
response
.
success
)
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
this
.
showAlert
(
response
.
message
,
'success'
)
this
.
getBu1List
()
this
.
getBu1List
()
this
.
closeDialog
()
}
else
{
}
else
{
this
.
showAlert
(
response
.
message
,
'error'
)
this
.
showAlert
(
response
.
message
,
'error'
)
this
.
bu1
.
loading
=
false
this
.
bu1
.
loading
=
false
...
@@ -190,6 +191,7 @@ export class DepartmentRegisterComponent implements OnInit {
...
@@ -190,6 +191,7 @@ export class DepartmentRegisterComponent implements OnInit {
if
(
response
.
success
)
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
this
.
showAlert
(
response
.
message
,
'success'
)
this
.
getBu1List
()
this
.
getBu1List
()
this
.
closeDialog
()
}
else
{
}
else
{
this
.
showAlert
(
response
.
message
,
'error'
)
this
.
showAlert
(
response
.
message
,
'error'
)
this
.
bu1
.
loading
=
false
this
.
bu1
.
loading
=
false
...
...
src/app/components/company-components/company-registration/branch-business-unit/sub-department-one/sub-department-one.component.html
View file @
f048227e
<div
class=
"w-full min-height-50px mb-10px justify-between items-center"
>
<div
class=
"w-full min-height-50px mb-10px justify-between items-center"
>
<div
class=
"flex justify-between"
>
<div
class=
"flex justify-end"
>
<div
class=
"flex"
>
<div
class=
"px-1"
>
<div
class=
"flex items-center"
>
<div
class=
"relative shadow-md"
>
<input
type=
"checkbox"
class=
"ti-form-checkbox pointer-events-none"
id=
"hs-default-checkbox"
<input
type=
"text"
id=
"hs-leading-icon"
name=
"hs-leading-icon"
[(
ngModel
)]="
isDataListChecked
"
>
class=
"ti-form-input ltr:pl-11 rtl:pr-11 focus:z-10 "
placeholder=
"Search by No. or Name"
<label
for=
"hs-default-checkbox"
class=
"text-sm text-gray-500 mx-2 pointer-events-none"
>
[(
ngModel
)]="
bu4Table
.
search
"
(
ngModelChange
)="
onBu4TableSearchChange
()"
>
{{numDataListChecked}} Selected
</label>
<div
</div>
class=
"absolute inset-y-0 ltr:left-0 rtl:right-0 flex items-center pointer-events-none z-20 ltr:pl-4 rtl:pr-4"
>
<div
class=
"mx-1 flex items-center"
>
<i
class=
"ri-search-line text-gray"
></i>
<button
(
click
)="
isDataListCheckedAll =
!isDataListCheckedAll;dataListCheckAll()"
id=
'check-boxall'
class=
"focus:ring-2 focus:ring-primary rounded-sm flex item-center"
>
<i
class=
"fs-l transition-all duration-200"
[
ngClass
]="{'
ri-checkbox-multiple-line
text-gray-500
'
:
!
isDataListCheckedAll
,
'
ri-checkbox-multiple-fill
text-primary
'
:
isDataListCheckedAll
}"
></i>
</button>
<label
class=
"text-sm text-gray-500 ml-2"
for=
"check-boxall"
>
Select All
</label>
</div>
</div>
<div
class=
"flex justify-end"
>
<div
class=
"px-1"
>
<div
class=
"relative shadow-md"
>
<input
type=
"text"
id=
"hs-leading-icon"
name=
"hs-leading-icon"
class=
"ti-form-input ltr:pl-11 rtl:pr-11 focus:z-10 "
placeholder=
"Search by No. or Name"
[(
ngModel
)]="
bu4Table
.
search
"
(
ngModelChange
)="
onBu4TableSearchChange
()"
>
<div
class=
"absolute inset-y-0 ltr:left-0 rtl:right-0 flex items-center pointer-events-none z-20 ltr:pl-4 rtl:pr-4"
>
<i
class=
"ri-search-line text-gray"
></i>
</div>
</div>
</div>
</div>
</div>
<div
class=
"px-1"
>
</div>
<button
type=
"button"
<div
class=
"px-1"
>
class=
" h-45px ti-btn ti-btn bg-pink-500/10 text-pink-500 hover:text-white hover:bg-pink-500 ring-offset-white focus:ring-pink-500 dark:focus:ring-offset-white/10 h-10 m-0 shadow-md"
<button
type=
"button"
data-hs-overlay=
"#sub-department-one-upload-modal"
class=
" h-45px ti-btn ti-btn bg-pink-500/10 text-pink-500 hover:text-white hover:bg-pink-500 ring-offset-white focus:ring-pink-500 dark:focus:ring-offset-white/10 h-10 m-0 shadow-md"
(
click
)="
fileInput
.
value =
''
;
selectedFile=
null;selectedFileName
=
'กรุณาเลือกไฟล์'"
>
data-hs-overlay=
"#sub-department-one-upload-modal"
<i
class=
"ti ti-file-plus"
></i>
(
click
)="
fileInput
.
value =
''
;
selectedFile=
null;selectedFileName
=
'กรุณาเลือกไฟล์'"
>
import
<i
class=
"ti ti-file-plus"
></i>
</button>
import
</div>
</button>
<div
class=
"px-1"
>
</div>
<button
type=
"button"
class=
"ti-btn ti-btn-soft-secondary h-45px m-0 shadow-md"
<div
class=
"px-1"
>
(
click
)="
currentModal=
'add'
;
selectBu3
();
selectBu4
()"
<button
type=
"button"
class=
"ti-btn ti-btn-soft-secondary h-45px m-0 shadow-md"
data-hs-overlay=
"#sub-department-one-modal-add"
>
(
click
)="
currentModal=
'add'
;
selectBu3
();
selectBu4
()"
data-hs-overlay=
"#sub-department-one-modal-add"
>
<i
class=
"ri-add-line"
></i>
<i
class=
"ri-add-line"
></i>
Add
Add
</button>
</button>
</div>
</div>
<!-- <div class="px-1">
<div
class=
"px-1"
>
<button href="javascript:void(0);" class="ti-btn ti-btn-soft-info h-45px m-0 shadow-md">
<button
href=
"javascript:void(0);"
class=
"ti-btn ti-btn-soft-danger h-45px m-0 shadow-md"
<i class="ri-printer-line"></i>
data-hs-overlay=
"#sub-department-one-alert-delete-modal"
>
Print
<i
class=
"ri-delete-bin-6-line"
></i>
</button>
Delete
</div> -->
</button>
<div
class=
"px-1"
>
<button
href=
"javascript:void(0);"
class=
"ti-btn ti-btn-soft-danger h-45px m-0 shadow-md"
data-hs-overlay=
"#sub-department-one-alert-delete-modal"
>
<i
class=
"ri-delete-bin-6-line"
></i>
Delete
</button>
</div>
<!-- <div class="px-1">
<button href="javascript:void(0);" class="ti-btn ti-btn-soft-warning h-45px m-0 shadow-md">
<i class="ti ti-book fs-l"></i>
Help
</button>
</div> -->
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -199,7 +167,7 @@
...
@@ -199,7 +167,7 @@
</div>
</div>
</div>
</div>
<label
class=
"ti-form-label mt-2rem"
>
ส่วนย่อย1
<label
class=
"ti-form-label mt-2rem"
>
ส่วนย่อย1
<span
class=
"text-danger"
>
*
<span
class=
"text-danger"
>
*
<ng-container
*
ngIf=
"currentModal=='add'&&checkPrimary()"
>
<ng-container
*
ngIf=
"currentModal=='add'&&checkPrimary()"
>
ส่วนย่อย1ซ้ำ
ส่วนย่อย1ซ้ำ
</ng-container>
</ng-container>
...
...
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