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
66a640a4
Commit
66a640a4
authored
Jul 31, 2025
by
sawit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
เพิ่มช่อง Description(CHINA) country-registration
parent
acddd10d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
4 deletions
+21
-4
country.model.ts
src/app/DPU/models/country.model.ts
+3
-0
country-registration.component.html
.../country-registration/country-registration.component.html
+16
-3
country-registration.component.ts
...nt/country-registration/country-registration.component.ts
+2
-1
No files found.
src/app/DPU/models/country.model.ts
View file @
66a640a4
...
@@ -5,16 +5,19 @@ export interface CountryModel {
...
@@ -5,16 +5,19 @@ export interface CountryModel {
countryId
:
string
countryId
:
string
thName
:
string
thName
:
string
engName
:
string
engName
:
string
chinaName
:
string
}
}
export
class
CountryModel
extends
BaseModel
implements
CountryModel
{
export
class
CountryModel
extends
BaseModel
implements
CountryModel
{
countryId
:
string
countryId
:
string
thName
:
string
thName
:
string
engName
:
string
engName
:
string
chinaName
:
string
constructor
(
data
?:
Partial
<
CountryModel
>
,
translateService
?:
TranslateService
)
{
constructor
(
data
?:
Partial
<
CountryModel
>
,
translateService
?:
TranslateService
)
{
super
(
data
,
translateService
)
super
(
data
,
translateService
)
this
.
countryId
=
checkData
(
data
?.
countryId
)
this
.
countryId
=
checkData
(
data
?.
countryId
)
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
)
}
}
getName
()
{
getName
()
{
...
...
src/app/DPU/myjob/company-department/country-registration/country-registration.component.html
View file @
66a640a4
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
</div>
</div>
<div
class=
"flex flex-wrap gap-2"
>
<div
class=
"flex flex-wrap gap-2"
>
<a
href=
"javascript:void(0);"
class=
"hs-dropdown-toggle ti-btn ti-btn-primary-full me-2"
(
click
)="
new
()"
<a
href=
"javascript:void(0);"
class=
"hs-dropdown-toggle ti-btn ti-btn-primary-full me-2"
(
click
)="
new
()"
data-hs-overlay=
"#modal-detail"
><i
class=
"ri-add-line font-semibold align-middle"
></i>
{{ '
Add
' |
data-hs-overlay=
"#modal-detail"
><i
class=
"ri-add-line font-semibold align-middle"
></i>
{{ '
Create
' |
translate}}
translate}}
</a>
</a>
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
<th
scope=
"col"
class=
"text-start"
>
{{ 'Country ID' | translate}}
</th>
<th
scope=
"col"
class=
"text-start"
>
{{ 'Country 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"
>
{{ 'Action' | translate}}
</th>
<th
scope=
"col"
class=
"text-start"
>
{{ 'Action' | translate}}
</th>
<th
scope=
"col"
class=
"text-start"
></th>
<th
scope=
"col"
class=
"text-start"
></th>
</tr>
</tr>
...
@@ -65,6 +66,11 @@
...
@@ -65,6 +66,11 @@
<span>
{{item.engName}}
</span>
<span>
{{item.engName}}
</span>
</div>
</div>
</td>
</td>
<td>
<div>
<span>
{{item.chinaName}}
</span>
</div>
</td>
<td>
<td>
<div
class=
"flex flex-row items-center !gap-2 "
>
<div
class=
"flex flex-row items-center !gap-2 "
>
...
@@ -182,6 +188,13 @@
...
@@ -182,6 +188,13 @@
{{'Please fill in information' | translate}}
{{'Please fill in information' | translate}}
</div>
</div>
</div>
</div>
<div
class=
"xl:col-span-6 col-span-12"
>
<label
for=
"deal-title"
class=
"form-label"
>
{{'Description(ENG)' | translate}}
</label>
<input
type=
"text"
class=
"form-control"
id=
"deal-title"
placeholder=
""
[(
ngModel
)]="
country
.
chinaName
"
>
<div
class=
"text-danger"
*
ngIf=
"!country.chinaName"
>
{{'Please fill in information' | translate}}
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"ti-modal-footer"
>
<div
class=
"ti-modal-footer"
>
...
@@ -189,8 +202,8 @@
...
@@ -189,8 +202,8 @@
data-hs-overlay=
"#modal-detail"
>
data-hs-overlay=
"#modal-detail"
>
{{'Cancel' | translate}}
{{'Cancel' | translate}}
</button>
</button>
<button
type=
"button"
(
click
)="
save
()"
[
class
.
ti-btn-disabled
]="!
country
.
countryId
||!
country
.
thName
||!
country
.
engName
"
<button
type=
"button"
(
click
)="
save
()"
[
class
.
ti-btn-disabled
]="!
country
.
countryId
||!
country
.
thName
||!
country
.
engName
||!
country
.
chinaName
"
[
disabled
]="!
country
.
countryId
||!
country
.
thName
||!
country
.
engName
"
class=
"ti-btn bg-primary text-white !font-medium"
>
{{'Save' |
[
disabled
]="!
country
.
countryId
||!
country
.
thName
||!
country
.
engName
||!
country
.
chinaName
"
class=
"ti-btn bg-primary text-white !font-medium"
>
{{'Save' |
translate}}
</button>
translate}}
</button>
</div>
</div>
</div>
</div>
...
...
src/app/DPU/myjob/company-department/country-registration/country-registration.component.ts
View file @
66a640a4
...
@@ -79,7 +79,8 @@ export class CountryRegistrationComponent {
...
@@ -79,7 +79,8 @@ export class CountryRegistrationComponent {
(
x
)
=>
(
x
)
=>
x
.
countryId
?.
toLowerCase
().
indexOf
(
v
.
toLowerCase
())
!==
-
1
||
x
.
countryId
?.
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
);
);
}
}
...
...
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