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
6a7d699b
Commit
6a7d699b
authored
Aug 01, 2025
by
sawit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
เพิ่มช่อง Description(CHINA) degree
parent
c2ec3cb7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
22 deletions
+33
-22
degree.model.ts
src/app/DPU/models/degree.model.ts
+12
-9
degree-manage.component.html
...any-department/degree-manage/degree-manage.component.html
+19
-12
degree-manage.component.ts
...mpany-department/degree-manage/degree-manage.component.ts
+2
-1
No files found.
src/app/DPU/models/degree.model.ts
View file @
6a7d699b
...
...
@@ -2,23 +2,26 @@ import { TranslateService } from "@ngx-translate/core";
import
{
BaseModel
,
baseGetName
,
checkData
}
from
"./base.model"
;
export
interface
DegreeModel
{
degreeId
:
string
engName
:
string
higher
:
string
thName
:
string
degreeId
:
string
,
higher
:
string
,
thName
:
string
,
engName
:
string
,
chinaName
:
string
}
export
class
DegreeModel
extends
BaseModel
implements
DegreeModel
{
degreeId
:
string
engName
:
string
higher
:
string
thName
:
string
degreeId
:
string
;
higher
:
string
;
thName
:
string
;
engName
:
string
;
chinaName
:
string
;
constructor
(
data
?:
Partial
<
DegreeModel
>
,
translateService
?:
TranslateService
)
{
super
(
data
,
translateService
)
this
.
degreeId
=
checkData
(
data
?.
degreeId
)
this
.
engName
=
checkData
(
data
?.
engName
)
this
.
higher
=
checkData
(
data
?.
higher
)
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/degree-manage/degree-manage.component.html
View file @
6a7d699b
...
...
@@ -37,7 +37,7 @@
<th
scope=
"col"
class=
"text-start"
>
{{ 'Degree 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">{{ 'Higher' | 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>
...
...
@@ -66,11 +66,11 @@
<span>
{{item.engName}}
</span>
</div>
</td>
<
!-- <
td>
<td>
<div>
<span>{{item.
higher
}}</span>
<span>
{{item.
chinaName
}}
</span>
</div>
</td>
-->
</td>
<td>
<div
class=
"flex flex-row items-center !gap-2 "
>
...
...
@@ -165,29 +165,36 @@
<div
class=
"grid grid-cols-12 gap-4"
>
<div
class=
"xl:col-span-12 col-span-12"
>
<label
for=
"de
al-title
"
class=
"form-label"
>
{{'Degree ID' | translate}}
</label>
<label
for=
"de
greeId
"
class=
"form-label"
>
{{'Degree ID' | translate}}
</label>
<input
type=
"text"
class=
"form-control"
[
ngClass
]="{
'!
bg-input-readonly
'
:
modalStatus =
==
'
edit
'
}"
id=
"de
al-title
"
placeholder=
""
[(
ngModel
)]="
degree
.
degreeId
"
[
readonly
]="
modalStatus =
==
'
edit
'"
>
id=
"de
greeId
"
placeholder=
""
[(
ngModel
)]="
degree
.
degreeId
"
[
readonly
]="
modalStatus =
==
'
edit
'"
>
<div
class=
"text-danger"
*
ngIf=
"!degree.degreeId"
>
{{'Please fill in information' | translate}}
</div>
</div>
<div
class=
"xl:col-span-6 col-span-12"
>
<label
for=
"
deal-titl
e"
class=
"form-label"
>
{{'Description(TH)' | translate}}
</label>
<input
type=
"text"
class=
"form-control"
id=
"
deal-titl
e"
placeholder=
""
<label
for=
"
thNam
e"
class=
"form-label"
>
{{'Description(TH)' | translate}}
</label>
<input
type=
"text"
class=
"form-control"
id=
"
thNam
e"
placeholder=
""
[(
ngModel
)]="
degree
.
thName
"
>
<div
class=
"text-danger"
*
ngIf=
"!degree.thName"
>
{{'Please fill in information' | translate}}
</div>
</div>
<div
class=
"xl:col-span-6 col-span-12"
>
<label
for=
"
deal-titl
e"
class=
"form-label"
>
{{'Description(ENG)' | translate}}
</label>
<input
type=
"text"
class=
"form-control"
id=
"
deal-titl
e"
placeholder=
""
[(
ngModel
)]="
degree
.
engName
"
>
<label
for=
"
engNam
e"
class=
"form-label"
>
{{'Description(ENG)' | translate}}
</label>
<input
type=
"text"
class=
"form-control"
id=
"
engNam
e"
placeholder=
""
[(
ngModel
)]="
degree
.
engName
"
>
<div
class=
"text-danger"
*
ngIf=
"!degree.engName"
>
{{'Please fill in information' | translate}}
</div>
</div>
<div
class=
"xl:col-span-6 col-span-12"
>
<label
for=
"chinaName"
class=
"form-label"
>
{{'Description(CHINA)' | translate}}
</label>
<input
type=
"text"
class=
"form-control"
id=
"chinaName"
placeholder=
""
[(
ngModel
)]="
degree
.
chinaName
"
>
<div
class=
"text-danger"
*
ngIf=
"!degree.chinaName"
>
{{'Please fill in information' | translate}}
</div>
</div>
</div>
</div>
<div
class=
"ti-modal-footer"
>
...
...
@@ -195,8 +202,8 @@
data-hs-overlay=
"#modal-detail"
>
{{'Cancel' | translate}}
</button>
<button
type=
"button"
(
click
)="
save
()"
[
class
.
ti-btn-disabled
]="!
degree
.
degreeId
||!
degree
.
thName
||!
degree
.
engName
"
[
disabled
]="!
degree
.
degreeId
||!
degree
.
thName
||!
degree
.
engName
"
class=
"ti-btn bg-primary text-white !font-medium"
>
{{'Save' |
<button
type=
"button"
(
click
)="
save
()"
[
class
.
ti-btn-disabled
]="!
degree
.
degreeId
||!
degree
.
thName
||!
degree
.
engName
||!
degree
.
chinaName
"
[
disabled
]="!
degree
.
degreeId
||!
degree
.
thName
||!
degree
.
engName
||!
degree
.
chinaName
"
class=
"ti-btn bg-primary text-white !font-medium"
>
{{'Save' |
translate}}
</button>
</div>
</div>
...
...
src/app/DPU/myjob/company-department/degree-manage/degree-manage.component.ts
View file @
6a7d699b
...
...
@@ -80,7 +80,8 @@ export class DegreeManageComponent {
x
.
degreeId
?.
toLowerCase
().
indexOf
(
v
.
toLowerCase
())
!==
-
1
||
x
.
thName
?.
toLowerCase
().
indexOf
(
v
.
toLowerCase
())
!==
-
1
||
x
.
engName
?.
toLowerCase
().
indexOf
(
v
.
toLowerCase
())
!==
-
1
||
x
.
higher
?.
toLowerCase
().
indexOf
(
v
.
toLowerCase
())
!==
-
1
x
.
higher
?.
toLowerCase
().
indexOf
(
v
.
toLowerCase
())
!==
-
1
||
x
.
chinaName
?.
toLocaleLowerCase
().
indexOf
(
v
.
toLocaleLowerCase
())
!==
-
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