Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
portal-apps-manage
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
portal-apps-manage
Commits
acddd10d
Commit
acddd10d
authored
Jul 31, 2025
by
sawit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
เพิ่มช่อง Description(CHINA) career-cluster
parent
1f2dbdb6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
11 deletions
+31
-11
career-cluster.model.ts
src/app/DPU/models/career-cluster.model.ts
+3
-0
career-cluster.component.html
...y-department/career-cluster/career-cluster.component.html
+26
-11
career-cluster.component.ts
...any-department/career-cluster/career-cluster.component.ts
+2
-0
No files found.
src/app/DPU/models/career-cluster.model.ts
View file @
acddd10d
...
@@ -5,6 +5,7 @@ export interface CareerClusterModel {
...
@@ -5,6 +5,7 @@ export interface CareerClusterModel {
careerClusterId
:
string
careerClusterId
:
string
thName
:
string
thName
:
string
engName
:
string
engName
:
string
chinaName
:
string
remark
:
string
remark
:
string
}
}
...
@@ -12,12 +13,14 @@ export class CareerClusterModel extends BaseModel implements CareerClusterModel
...
@@ -12,12 +13,14 @@ export class CareerClusterModel extends BaseModel implements CareerClusterModel
careerClusterId
:
string
careerClusterId
:
string
thName
:
string
thName
:
string
engName
:
string
engName
:
string
chinaName
:
string
remark
:
string
;
remark
:
string
;
constructor
(
data
?:
Partial
<
CareerClusterModel
>
,
translateService
?:
TranslateService
)
{
constructor
(
data
?:
Partial
<
CareerClusterModel
>
,
translateService
?:
TranslateService
)
{
super
(
data
,
translateService
)
super
(
data
,
translateService
)
this
.
careerClusterId
=
checkData
(
data
?.
careerClusterId
)
this
.
careerClusterId
=
checkData
(
data
?.
careerClusterId
)
this
.
thName
=
checkData
(
data
?.
thName
)
this
.
thName
=
checkData
(
data
?.
thName
)
this
.
engName
=
checkData
(
data
?.
engName
)
this
.
engName
=
checkData
(
data
?.
engName
)
this
.
chinaName
=
checkData
(
data
?.
chinaName
)
this
.
remark
=
checkData
(
data
?.
remark
)
this
.
remark
=
checkData
(
data
?.
remark
)
}
}
getName
()
{
getName
()
{
...
...
src/app/DPU/myjob/company-department/career-cluster/career-cluster.component.html
View file @
acddd10d
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
<th
scope=
"col"
class=
"text-start"
>
{{ 'Career Cluster ID' | translate}}
</th>
<th
scope=
"col"
class=
"text-start"
>
{{ 'Career Cluster ID' | translate}}
</th>
<th
scope=
"col"
class=
"text-start"
>
{{ 'Description(TH)' | translate}}
</th>
<th
scope=
"col"
class=
"text-start"
>
{{ 'Description(TH)' | translate}}
</th>
<th
scope=
"col"
class=
"text-start"
>
{{ 'Description(ENG)' | translate}}
</th>
<th
scope=
"col"
class=
"text-start"
>
{{ 'Description(ENG)' | translate}}
</th>
<th
scope=
"col"
class=
"text-start"
>
{{ 'Description(CHINA)' | translate}}
</th>
<th
scope=
"col"
class=
"text-start"
>
{{ 'Remark' | translate}}
</th>
<th
scope=
"col"
class=
"text-start"
>
{{ 'Remark' | translate}}
</th>
<th
scope=
"col"
class=
"text-start"
>
{{ 'Action' | translate}}
</th>
<th
scope=
"col"
class=
"text-start"
>
{{ 'Action' | translate}}
</th>
</tr>
</tr>
...
@@ -69,6 +70,13 @@
...
@@ -69,6 +70,13 @@
<td>
<td>
<div>
<div>
<span
class=
"block mb-1"
>
<span
class=
"block mb-1"
>
{{item.chinaName}}
</span>
</div>
</td>
<td>
<div>
<span
class=
"block mb-1"
>
{{item.remark}}
{{item.remark}}
</span>
</span>
</div>
</div>
...
@@ -152,7 +160,7 @@
...
@@ -152,7 +160,7 @@
<div
class=
"ti-modal-content"
>
<div
class=
"ti-modal-content"
>
<div
class=
"ti-modal-header"
>
<div
class=
"ti-modal-header"
>
<h6
class=
"modal-title text-[1rem] font-semibold text-defaulttextcolor"
id=
"mail-ComposeLabel"
>
<h6
class=
"modal-title text-[1rem] font-semibold text-defaulttextcolor"
id=
"mail-ComposeLabel"
>
{{ (
modalStatus
== 'add' ? ('Create' | translate) : ('Edit' | translate)) + ' ' + ('Career Cluster Information' | translate) }}
{{ (
action
== 'add' ? ('Create' | translate) : ('Edit' | translate)) + ' ' + ('Career Cluster Information' | translate) }}
</h6>
</h6>
<button
type=
"button"
class=
"hs-dropdown-toggle !text-[1rem] !font-semibold !text-defaulttextcolor"
<button
type=
"button"
class=
"hs-dropdown-toggle !text-[1rem] !font-semibold !text-defaulttextcolor"
...
@@ -164,16 +172,16 @@
...
@@ -164,16 +172,16 @@
<div
class=
"ti-modal-body px-4"
>
<div
class=
"ti-modal-body px-4"
>
<div
class=
"grid grid-cols-12 gap-4"
>
<div
class=
"grid grid-cols-12 gap-4"
>
<div
class=
"xl:col-span-12 col-span-12"
>
<div
class=
"xl:col-span-12 col-span-12"
*
ngIf=
"action == 'edit'"
>
<label
for=
"deal-title"
class=
"form-label"
>
{{'Career Cluster ID' | translate}}
</label>
<label
for=
"deal-title"
class=
"form-label"
>
{{'Career Cluster ID' | translate}}
</label>
<input
type=
"text"
class=
"form-control
"
[
ngClass
]="{
'!
bg-input-readonly
'
:
action =
==
'
edit
'
}"
<input
type=
"text"
class=
"form-control
!bg-input-readonly"
id=
"deal-title"
placeholder=
""
id=
"deal-title"
placeholder=
""
[(
ngModel
)]="
selectModel
.
careerClusterId
"
[
readonly
]="
action =
==
'
edit
'"
>
[(
ngModel
)]="
selectModel
.
careerClusterId
"
[
disabled
]="
action =
==
'
edit
'"
>
<div
class=
"text-danger"
*
ngIf=
"!selectModel.careerClusterId"
>
<
!-- <
div class="text-danger" *ngIf="!selectModel.careerClusterId">
{{'Please fill in information' | translate}}
{{'Please fill in information' | translate}}
</div>
</div>
-->
</div>
</div>
<div
class=
"xl:col-span-12 col-span-12"
*
ngIf=
"modalStatus=='add'"
>
<div
class=
"xl:col-span-12 col-span-12"
>
<label
for=
"deal-title"
class=
"form-label"
>
{{ 'Description(TH)' | translate}}
</label>
<label
for=
"deal-title"
class=
"form-label"
>
{{ 'Description(TH)' | translate}}
</label>
<input
type=
"text"
class=
"form-control"
id=
"deal-title"
placeholder=
""
<input
type=
"text"
class=
"form-control"
id=
"deal-title"
placeholder=
""
[(
ngModel
)]="
selectModel
.
thName
"
>
[(
ngModel
)]="
selectModel
.
thName
"
>
...
@@ -181,14 +189,21 @@
...
@@ -181,14 +189,21 @@
{{'Please fill in information' | translate}}
{{'Please fill in information' | translate}}
</div>
</div>
</div>
</div>
<div
class=
"xl:col-span-12 col-span-12"
*
ngIf=
"modalStatus=='add'"
>
<div
class=
"xl:col-span-12 col-span-12"
>
<label
for=
"deal-title"
class=
"form-label"
>
{{ 'Description(ENG)' | translate}}
</label>
<label
for=
"deal-title"
class=
"form-label"
>
{{ 'Description(ENG)' | translate}}
</label>
<input
type=
"text"
class=
"form-control"
id=
"deal-title"
placeholder=
""
[(
ngModel
)]="
selectModel
.
engName
"
>
<input
type=
"text"
class=
"form-control"
id=
"deal-title"
placeholder=
""
[(
ngModel
)]="
selectModel
.
engName
"
>
<div
class=
"text-danger"
*
ngIf=
"!selectModel.engName"
>
<div
class=
"text-danger"
*
ngIf=
"!selectModel.engName"
>
{{'Please fill in information' | translate}}
{{'Please fill in information' | translate}}
</div>
</div>
</div>
</div>
<div
class=
"xl:col-span-12 col-span-12"
*
ngIf=
"modalStatus=='add'"
>
<div
class=
"xl:col-span-12 col-span-12"
>
<label
for=
"deal-title"
class=
"form-label"
>
{{ 'Description(CHINA)' | translate}}
</label>
<input
type=
"text"
class=
"form-control"
id=
"deal-title"
placeholder=
""
[(
ngModel
)]="
selectModel
.
chinaName
"
>
<div
class=
"text-danger"
*
ngIf=
"!selectModel.chinaName"
>
{{'Please fill in information' | translate}}
</div>
</div>
<div
class=
"xl:col-span-12 col-span-12"
>
<label
for=
"deal-title"
class=
"form-label"
>
{{ 'Remark' | translate}}
</label>
<label
for=
"deal-title"
class=
"form-label"
>
{{ 'Remark' | translate}}
</label>
<input
type=
"text"
class=
"form-control"
id=
"deal-title"
placeholder=
""
<input
type=
"text"
class=
"form-control"
id=
"deal-title"
placeholder=
""
[(
ngModel
)]="
selectModel
.
remark
"
>
[(
ngModel
)]="
selectModel
.
remark
"
>
...
@@ -205,8 +220,8 @@
...
@@ -205,8 +220,8 @@
{{'Cancel' | translate}}
{{'Cancel' | translate}}
</button>
</button>
<button
type=
"button"
(
click
)="
save
()"
class=
"ti-btn bg-primary text-white !font-medium"
<button
type=
"button"
(
click
)="
save
()"
class=
"ti-btn bg-primary text-white !font-medium"
[
class
.
ti-btn-disabled
]="!
selectModel
.
careerClusterId
||!
selectModel
.
thName
||!
selectModel
.
eng
Name
"
[
class
.
ti-btn-disabled
]="!
selectModel
.
thName
||!
selectModel
.
engName
||!
selectModel
.
china
Name
"
[
disabled
]="!
selectModel
.
careerClusterId
||!
selectModel
.
thName
||!
selectModel
.
eng
Name
"
>
{{'Save' | translate}}
</button>
[
disabled
]="!
selectModel
.
thName
||!
selectModel
.
engName
||!
selectModel
.
china
Name
"
>
{{'Save' | translate}}
</button>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
src/app/DPU/myjob/company-department/career-cluster/career-cluster.component.ts
View file @
acddd10d
...
@@ -130,6 +130,7 @@ export class CareerClusterComponent {
...
@@ -130,6 +130,7 @@ export class CareerClusterComponent {
x
.
careerClusterId
?.
toLowerCase
().
indexOf
(
v
.
toLowerCase
())
!==
-
1
||
x
.
careerClusterId
?.
toLowerCase
().
indexOf
(
v
.
toLowerCase
())
!==
-
1
||
x
.
thName
?.
toLowerCase
().
indexOf
(
v
.
toLowerCase
())
!==
-
1
||
x
.
thName
?.
toLowerCase
().
indexOf
(
v
.
toLowerCase
())
!==
-
1
||
x
.
engName
?.
toLowerCase
().
indexOf
(
v
.
toLowerCase
())
!==
-
1
||
x
.
engName
?.
toLowerCase
().
indexOf
(
v
.
toLowerCase
())
!==
-
1
||
x
.
chinaName
?.
toLowerCase
().
indexOf
(
v
.
toLowerCase
())
!==
-
1
||
x
.
remark
?.
toLowerCase
().
indexOf
(
v
.
toLowerCase
())
!==
-
1
x
.
remark
?.
toLowerCase
().
indexOf
(
v
.
toLowerCase
())
!==
-
1
// x.getStatus().toLowerCase().indexOf(v.toLowerCase()) !== -1
// x.getStatus().toLowerCase().indexOf(v.toLowerCase()) !== -1
);
);
...
@@ -164,6 +165,7 @@ export class CareerClusterComponent {
...
@@ -164,6 +165,7 @@ export class CareerClusterComponent {
this
.
selectModel
.
careerClusterId
=
""
;
this
.
selectModel
.
careerClusterId
=
""
;
this
.
selectModel
.
thName
=
""
;
this
.
selectModel
.
thName
=
""
;
this
.
selectModel
.
engName
=
""
;
this
.
selectModel
.
engName
=
""
;
this
.
selectModel
.
chinaName
=
""
;
this
.
selectModel
.
remark
=
""
;
this
.
selectModel
.
remark
=
""
;
}
}
...
...
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