Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mySkill-x
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
mySkill-x
Commits
dcd55187
Commit
dcd55187
authored
Apr 02, 2025
by
Nattana Chaiyamat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ทะเบียนพนักงาน แก้ select option
parent
0cfe742a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
sub-employee-registration.component.html
...yee-registration/sub-employee-registration.component.html
+5
-3
sub-employee-registration.component.ts
...loyee-registration/sub-employee-registration.component.ts
+4
-0
No files found.
src/app/components/company-components/employee-registration/sub-employee-registration/sub-employee-registration.component.html
View file @
dcd55187
...
@@ -200,8 +200,9 @@
...
@@ -200,8 +200,9 @@
<label
class=
"col-span-3 ti-form-label text-primary mt-2 align-center"
>
สถานภาพพนักงาน
<span
<label
class=
"col-span-3 ti-form-label text-primary mt-2 align-center"
>
สถานภาพพนักงาน
<span
class=
"text-danger"
>
*
</span></label>
class=
"text-danger"
>
*
</span></label>
<div
class=
"col-span-4 "
>
<div
class=
"col-span-4 "
>
<select
class=
"ti-form-select"
[(
ngModel
)]="
employee
.
select
.
status
"
>
<select
class=
"ti-form-select"
[(
ngModel
)]="
employee
.
select
.
status
.
statusCode
"
<option
*
ngFor=
"let item of empStatus.dataList"
[
value
]="
item
"
>
{{item.tdesc}}
</option>
(
ngModelChange
)="
selectStatus
()"
>
<option
*
ngFor=
"let item of empStatus.dataList"
[
ngValue
]="
item
.
statusCode
"
>
{{item.tdesc}}
</option>
</select>
</select>
</div>
</div>
</div>
</div>
...
@@ -590,7 +591,8 @@
...
@@ -590,7 +591,8 @@
ย้อนกลับ
ย้อนกลับ
</button>
</button>
<button
type=
"button"
class=
"ti-btn ti-btn-success"
<button
type=
"button"
class=
"ti-btn ti-btn-success"
data-hs-overlay=
"#sub-employee-registration-alert-add-modal"
[
class
.
ti-btn-disabled
]="
checkEmployeeModel
()||(
modalType=
='add'&&checkPrimary())"
data-hs-overlay=
"#sub-employee-registration-alert-add-modal"
[
class
.
ti-btn-disabled
]="
checkEmployeeModel
()||(
modalType=
='add'&&checkPrimary())"
[
disabled
]="
checkEmployeeModel
()||(
modalType=
='add'&&checkPrimary())"
>
[
disabled
]="
checkEmployeeModel
()||(
modalType=
='add'&&checkPrimary())"
>
บันทึกข้อมูล
บันทึกข้อมูล
</button>
</button>
...
...
src/app/components/company-components/employee-registration/sub-employee-registration/sub-employee-registration.component.ts
View file @
dcd55187
...
@@ -608,6 +608,10 @@ export class SubEmployeeRegistrationComponent {
...
@@ -608,6 +608,10 @@ export class SubEmployeeRegistrationComponent {
selectBoss
(
data
:
any
)
{
selectBoss
(
data
:
any
)
{
this
.
employee
.
select
.
boss
=
new
MyBossModel
({
...
data
,
empType
:
data
.
empType
.
codeId
})
this
.
employee
.
select
.
boss
=
new
MyBossModel
({
...
data
,
empType
:
data
.
empType
.
codeId
})
}
}
selectStatus
()
{
this
.
employee
.
select
.
status
=
new
MyStatusModel
(
this
.
empStatus
.
dataList
.
find
(
x
=>
x
.
statusCode
==
this
.
employee
.
select
.
status
.
statusCode
)
||
{})
}
changeDate
(
target
:
{
[
key
:
string
]:
any
},
field
:
string
,
dateIso
:
string
)
{
changeDate
(
target
:
{
[
key
:
string
]:
any
},
field
:
string
,
dateIso
:
string
)
{
target
[
field
]
=
this
.
toYYYYMMDD
(
dateIso
)
target
[
field
]
=
this
.
toYYYYMMDD
(
dateIso
)
}
}
...
...
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