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
6706f14f
Commit
6706f14f
authored
Jul 31, 2025
by
sawit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
เพิ่มช่อง Description(CHINA) company-category
parent
79ce6e7b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
3 deletions
+20
-3
category.model.ts
src/app/DPU/models/category.model.ts
+3
-0
category-company.component.html
...partment/category-company/category-company.component.html
+15
-2
category-company.component.ts
...department/category-company/category-company.component.ts
+2
-1
No files found.
src/app/DPU/models/category.model.ts
View file @
6706f14f
...
...
@@ -5,17 +5,20 @@ export interface CategoryModel {
categoryId
:
string
thName
:
string
engName
:
string
chinaName
:
string
}
export
class
CategoryModel
extends
BaseModel
implements
CategoryModel
{
categoryId
:
string
thName
:
string
engName
:
string
chinaName
:
string
constructor
(
data
?:
Partial
<
CategoryModel
>
,
translateService
?:
TranslateService
)
{
super
(
data
,
translateService
)
this
.
categoryId
=
checkData
(
data
?.
categoryId
)
this
.
thName
=
checkData
(
data
?.
thName
)
this
.
engName
=
checkData
(
data
?.
engName
)
this
.
chinaName
=
checkData
(
data
?.
chinaName
)
}
getName
()
{
return
baseGetName
(
this
.
thName
,
this
.
engName
,
this
.
translateService
?.
currentLang
)
...
...
src/app/DPU/myjob/company-department/category-company/category-company.component.html
View file @
6706f14f
...
...
@@ -37,6 +37,7 @@
<th
scope=
"col"
class=
"text-start"
>
{{ 'Category ID' | 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(CHINA)' | translate}}
</th>
<th
scope=
"col"
class=
"text-start"
>
{{ 'Action' | translate}}
</th>
<th
scope=
"col"
class=
"text-start"
></th>
</tr>
...
...
@@ -65,6 +66,11 @@
<span>
{{item.engName}}
</span>
</div>
</td>
<td>
<div>
<span>
{{item.chinaName}}
</span>
</div>
</td>
<td>
<div
class=
"flex flex-row items-center !gap-2 "
>
...
...
@@ -182,6 +188,13 @@
{{'Please fill in information' | translate}}
</div>
</div>
<div
class=
"xl:col-span-6 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
)]="
category
.
chinaName
"
>
<div
class=
"text-danger"
*
ngIf=
"!category.chinaName"
>
{{'Please fill in information' | translate}}
</div>
</div>
</div>
</div>
<div
class=
"ti-modal-footer"
>
...
...
@@ -189,8 +202,8 @@
data-hs-overlay=
"#modal-detail"
>
{{'Cancel' | translate}}
</button>
<button
type=
"button"
(
click
)="
save
()"
[
class
.
ti-btn-disabled
]="!
category
.
categoryId
||!
category
.
thName
||!
category
.
engName
"
[
disabled
]="!
category
.
categoryId
||!
category
.
thName
||!
category
.
engName
"
class=
"ti-btn bg-primary text-white !font-medium"
>
{{'Save' |
<button
type=
"button"
(
click
)="
save
()"
[
class
.
ti-btn-disabled
]="!
category
.
categoryId
||!
category
.
thName
||!
category
.
engName
||!
category
.
chinaName
"
[
disabled
]="!
category
.
categoryId
||!
category
.
thName
||!
category
.
engName
||!
category
.
chinaName
"
class=
"ti-btn bg-primary text-white !font-medium"
>
{{'Save' |
translate}}
</button>
</div>
</div>
...
...
src/app/DPU/myjob/company-department/category-company/category-company.component.ts
View file @
6706f14f
...
...
@@ -76,7 +76,8 @@ export class CategoryCompanyComponent implements OnInit {
(
x
)
=>
x
.
categoryId
?.
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
);
}
...
...
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