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
5ca2be2d
Commit
5ca2be2d
authored
Aug 01, 2025
by
sawit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
เพิ่ม model chinaName แต่ยังไม่มี component
parent
6a7d699b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
15 deletions
+24
-15
languages.model.ts
src/app/DPU/models/languages.model.ts
+9
-6
marital-status.model.ts
src/app/DPU/models/marital-status.model.ts
+6
-3
religion.model.ts
src/app/DPU/models/religion.model.ts
+9
-6
No files found.
src/app/DPU/models/languages.model.ts
View file @
5ca2be2d
...
...
@@ -2,20 +2,23 @@ import { TranslateService } from "@ngx-translate/core";
import
{
BaseModel
,
checkData
,
baseGetName
}
from
"./base.model"
;
export
interface
LanguagesModel
{
engName
:
string
languagesId
:
string
thName
:
string
languagesId
:
string
,
thName
:
string
,
engName
:
string
,
chinaName
:
string
}
export
class
LanguagesModel
extends
BaseModel
implements
LanguagesModel
{
engName
:
string
languagesId
:
string
thName
:
string
languagesId
:
string
;
thName
:
string
;
engName
:
string
;
chinaName
:
string
;
constructor
(
data
?:
Partial
<
LanguagesModel
>
,
translateService
?:
TranslateService
)
{
super
(
data
,
translateService
)
this
.
languagesId
=
checkData
(
data
?.
languagesId
)
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/models/marital-status.model.ts
View file @
5ca2be2d
...
...
@@ -2,20 +2,23 @@ import { TranslateService } from "@ngx-translate/core";
import
{
BaseModel
,
baseGetName
,
checkData
}
from
"./base.model"
;
export
interface
MaritalStatusModel
{
engName
:
string
statusId
:
string
thName
:
string
statusId
:
string
,
thName
:
string
,
engName
:
string
,
chinaName
:
string
}
export
class
MaritalStatusModel
extends
BaseModel
implements
MaritalStatusModel
{
statusId
:
string
;
thName
:
string
;
engName
:
string
;
chinaName
:
string
;
constructor
(
data
?:
Partial
<
MaritalStatusModel
>
,
translateService
?:
TranslateService
)
{
super
(
data
,
translateService
)
this
.
statusId
=
checkData
(
data
?.
statusId
)
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/models/religion.model.ts
View file @
5ca2be2d
import
{
TranslateService
}
from
"@ngx-translate/core"
;
import
{
BaseModel
,
baseGetName
,
checkData
}
from
"./base.model"
;
export
interface
ReligionModel
{
engName
:
string
religionId
:
string
thName
:
string
religionId
:
string
,
thName
:
string
,
engName
:
string
,
chinaName
:
string
}
export
class
ReligionModel
extends
BaseModel
implements
ReligionModel
{
engName
:
string
religionId
:
string
thName
:
string
religionId
:
string
;
thName
:
string
;
engName
:
string
;
chinaName
:
string
;
constructor
(
data
?:
Partial
<
ReligionModel
>
,
translateService
?:
TranslateService
)
{
super
(
data
,
translateService
)
this
.
religionId
=
checkData
(
data
?.
religionId
)
this
.
thName
=
checkData
(
data
?.
thName
)
this
.
engName
=
checkData
(
data
?.
engName
)
this
.
chinaName
=
checkData
(
data
?.
chinaName
)
}
getName
()
{
...
...
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