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
86f3cb2f
Commit
86f3cb2f
authored
Nov 03, 2025
by
Nattana Chaiyamat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
time attendance
parent
254c435d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
13 deletions
+48
-13
time-attendance-wizard.component.html
...e-attendance-wizard/time-attendance-wizard.component.html
+11
-11
time-attendance-wizard.component.ts
...ime-attendance-wizard/time-attendance-wizard.component.ts
+37
-2
No files found.
src/app/components/time-attendance-wizard/time-attendance-wizard.component.html
View file @
86f3cb2f
...
...
@@ -88,36 +88,36 @@
</tr>
</thead>
<tbody>
<tr
style=
"align-items: start"
>
<tr
style=
"align-items: start"
*
ngFor=
"let item of pmsWorkingTime.dataList;let i = index"
>
<td
style=
"vertical-align: top;"
class=
"text-center"
>
-
{{i+1}}
</td>
<td
style=
"vertical-align: top;"
class=
"text-center"
>
-
{{translateText(item.tdesc,item.edesc)}}
</td>
<td
style=
"vertical-align: top;"
class=
"text-center"
>
-
{{item.performanceTargets}}
</td>
<td
style=
"vertical-align: top;"
class=
"text-center"
>
-
{{item.detailUnit}}
</td>
<td
style=
"vertical-align: top;"
class=
"text-center"
>
-
{{item.weight}}
</td>
<td
style=
"vertical-align: top;"
class=
"text-center"
>
-
{{item.targetADetail}}
</td>
<td
style=
"vertical-align: top;"
class=
"text-center"
>
-
{{item.targetBDetail}}
</td>
<td
style=
"vertical-align: top;"
class=
"text-center"
>
-
{{item.targetCDetail}}
</td>
<td
style=
"vertical-align: top;"
class=
"text-center"
>
-
{{item.targetDDetail}}
</td>
<td
style=
"vertical-align: top;"
class=
"text-center"
>
-
{{item.targetEDetail}}
</td>
</tr>
</tbody>
...
...
src/app/components/time-attendance-wizard/time-attendance-wizard.component.ts
View file @
86f3cb2f
...
...
@@ -5,6 +5,8 @@ import { DocumentManagerModel, MyDocumentManagerModel } from 'src/app/shared/mod
import
{
DocumentManagerService
}
from
'src/app/shared/services/documents.service'
;
import
{
FileService
}
from
'src/app/shared/services/file.service'
;
import
Swal
from
'sweetalert2'
;
import
{
PmsWorkingTimeService
}
from
'src/app/shared/services/pms-working-time.service'
;
import
{
MyPmsWorkingTimeModel
,
PmsWorkingTimeModel
}
from
'src/app/shared/model/pms-working-time.model'
;
interface
SubModule
{
title
:
SafeHtml
;
route
?:
string
;
...
...
@@ -16,4 +18,37 @@ interface SubModule {
templateUrl
:
'./time-attendance-wizard.component.html'
,
styleUrls
:
[
'./time-attendance-wizard.component.scss'
]
})
export
class
TimeAttendanceWizardComponent
{}
\ No newline at end of file
export
class
TimeAttendanceWizardComponent
{
pmsWorkingTime
:
{
loading
:
boolean
,
select
:
PmsWorkingTimeModel
,
dataList
:
PmsWorkingTimeModel
[]
}
=
{
loading
:
false
,
select
:
new
MyPmsWorkingTimeModel
(),
dataList
:
[]
}
constructor
(
private
pmsWorkingTimeService
:
PmsWorkingTimeService
,
private
cdr
:
ChangeDetectorRef
,
private
translateService
:
TranslateService
)
{
}
ngOnInit
():
void
{
this
.
getPmsWorkingTimeList
()
}
getPmsWorkingTimeList
()
{
this
.
pmsWorkingTime
.
loading
=
true
this
.
pmsWorkingTimeService
.
getList
().
subscribe
({
next
:
response
=>
{
this
.
pmsWorkingTime
.
dataList
=
response
.
map
(
x
=>
{
return
new
MyPmsWorkingTimeModel
(
x
)
})
this
.
cdr
.
detectChanges
();
},
error
:
error
=>
{
this
.
pmsWorkingTime
.
loading
=
false
this
.
cdr
.
detectChanges
()
}
})
}
translateText
(
th
?:
string
,
en
?:
string
)
{
return
this
.
translateService
.
getCurrentLang
()
==
'th'
?
(
th
||
''
)
:
(
en
||
''
)
}
}
\ No newline at end of file
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