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
6e853dbf
Commit
6e853dbf
authored
Apr 11, 2025
by
Nattana Chaiyamat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ส่วนย่อย1
parent
7c9e1e0e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
29 deletions
+3
-29
sub-department-one.component.html
...unit/sub-department-one/sub-department-one.component.html
+3
-29
No files found.
src/app/components/company-components/company-registration/branch-business-unit/sub-department-one/sub-department-one.component.html
View file @
6e853dbf
...
@@ -120,8 +120,7 @@
...
@@ -120,8 +120,7 @@
</span>
</span>
</label>
</label>
<div
class=
"relative flex rounded-md w-1/2"
>
<div
class=
"relative flex rounded-md w-1/2"
>
<input
type=
"text"
class=
"ti-form-input"
<input
type=
"text"
class=
"ti-form-input"
[
class
.!
border-red
]="
currentModal=
='add'&&checkPrimary()"
[
class
.!
border-red
]="
currentModal=
='add'&&checkPrimary()"
[
class
.!
bg-input-readonly
]="
currentModal=
='edit'"
[
readonly
]="
currentModal=
='edit'"
[
class
.!
bg-input-readonly
]="
currentModal=
='edit'"
[
readonly
]="
currentModal=
='edit'"
[(
ngModel
)]="
bu4
.
select
.
bu4id
"
>
[(
ngModel
)]="
bu4
.
select
.
bu4id
"
>
</div>
</div>
...
@@ -156,18 +155,12 @@
...
@@ -156,18 +155,12 @@
ข้อมูลทะเบียนส่วน
ข้อมูลทะเบียนส่วน
</h3>
</h3>
<div
class=
"flex justify-end"
>
<div
class=
"flex justify-end"
>
<button
*
ngIf=
"currentModal=='add'"
type=
"button"
<button
type=
"button"
class=
"hs-dropdown-toggle ti-modal-clode-btn text-danger"
class=
"hs-dropdown-toggle ti-modal-clode-btn text-danger"
data-hs-overlay=
"#sub-department-one-modal"
>
data-hs-overlay=
"#sub-department-one-modal"
>
<span
class=
"sr-only"
>
Close
</span>
<span
class=
"sr-only"
>
Close
</span>
<i
class=
"ti ti-circle-x fs-xxl"
></i>
<i
class=
"ti ti-circle-x fs-xxl"
></i>
</button>
</button>
<button
*
ngIf=
"currentModal=='edit'"
type=
"button"
class=
"hs-dropdown-toggle ti-modal-clode-btn text-danger"
data-hs-overlay=
"#sub-department-one-modal-edit"
>
<span
class=
"sr-only"
>
Close
</span>
<i
class=
"ti ti-circle-x fs-xxl"
></i>
</button>
</div>
</div>
</div>
</div>
<div
class=
"ti-modal-body"
>
<div
class=
"ti-modal-body"
>
...
@@ -209,7 +202,6 @@
...
@@ -209,7 +202,6 @@
</tr>
</tr>
</tbody>
</tbody>
<tbody
*
ngIf=
"filterBu3Modal().length"
>
<tbody
*
ngIf=
"filterBu3Modal().length"
>
<ng-container
*
ngIf=
"currentModal=='add'"
>
<tr
*
ngFor=
"let item of filterBu3Modal() | slice:((bu3Modal.currentPage-1) * bu3Modal.pageSize) : (((bu3Modal.currentPage-1) * bu3Modal.pageSize) + bu3Modal.pageSize);let i = index"
<tr
*
ngFor=
"let item of filterBu3Modal() | slice:((bu3Modal.currentPage-1) * bu3Modal.pageSize) : (((bu3Modal.currentPage-1) * bu3Modal.pageSize) + bu3Modal.pageSize);let i = index"
class=
"cursor-pointer"
(
click
)="
selectBu3
(
item
)"
class=
"cursor-pointer"
(
click
)="
selectBu3
(
item
)"
data-hs-overlay=
"#sub-department-one-modal"
>
data-hs-overlay=
"#sub-department-one-modal"
>
...
@@ -220,19 +212,6 @@
...
@@ -220,19 +212,6 @@
<td>
{{item.tdesc}}
</td>
<td>
{{item.tdesc}}
</td>
<td>
{{item.edesc}}
</td>
<td>
{{item.edesc}}
</td>
</tr>
</tr>
</ng-container>
<ng-container
*
ngIf=
"currentModal=='edit'"
>
<tr
*
ngFor=
"let item of filterBu3Modal() | slice:((bu3Modal.currentPage-1) * bu3Modal.pageSize) : (((bu3Modal.currentPage-1) * bu3Modal.pageSize) + bu3Modal.pageSize);let i = index"
class=
"cursor-pointer"
(
click
)="
selectBu3
(
item
)"
data-hs-overlay=
"#sub-department-one-modal-edit"
>
<td
class=
"flex justify-center"
>
{{((bu3Modal.currentPage-1) * bu3Modal.pageSize)+(i+1)}}
</td>
<td>
{{item.bu3id}}
</td>
<td>
{{item.tdesc}}
</td>
<td>
{{item.edesc}}
</td>
</tr>
</ng-container>
</tbody>
</tbody>
</table>
</table>
</div>
</div>
...
@@ -240,16 +219,11 @@
...
@@ -240,16 +219,11 @@
(
pageChange
)="
bu3Modal
.
currentPage =
$event"
(
pageChange
)="
bu3Modal
.
currentPage =
$event"
(
pageSizeChange
)="
bu3Modal
.
pageSize =
$event;bu3Modal.currentPage
=
1
"
></app-pagination>
(
pageSizeChange
)="
bu3Modal
.
pageSize =
$event;bu3Modal.currentPage
=
1
"
></app-pagination>
<div
class=
"flex justify-end mt-2rem mb-1rem space-x-4"
>
<div
class=
"flex justify-end mt-2rem mb-1rem space-x-4"
>
<button
type=
"button"
*
ngIf=
"currentModal=='add'"
<button
type=
"button"
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"
data-hs-overlay=
"#sub-department-one-modal"
>
data-hs-overlay=
"#sub-department-one-modal"
>
ย้อนกลับ
ย้อนกลับ
</button>
</button>
<button
type=
"button"
*
ngIf=
"currentModal=='edit'"
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"
data-hs-overlay=
"#sub-department-one-modal-edit"
>
ย้อนกลับ
</button>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
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