Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
myhr-portal
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
myhr-portal
Commits
be9e4148
Commit
be9e4148
authored
Jul 15, 2025
by
Nattana Chaiyamat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
แก้ไข รายงาน Excel แก้ตัวส่งวันที่ yyyy-mm-dd
parent
07b87fd0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
excel-list.component.ts
src/app/apps/excel-list/excel-list.component.ts
+6
-2
excel-report-toggle.component.ts
...apps/excel-report-toggle/excel-report-toggle.component.ts
+6
-2
No files found.
src/app/apps/excel-list/excel-list.component.ts
View file @
be9e4148
...
...
@@ -579,8 +579,10 @@ export class ExcelListComponent implements OnInit {
const
data
=
this
.
variableSheet
.
map
((
item
:
any
)
=>
{
if
(
item
.
type
==
'help'
)
{
return
"__"
+
item
.
key
+
"="
+
item
.
value
.
id
}
else
if
(
item
.
type
==
'
calendar'
||
item
.
type
==
'
list'
||
item
.
type
==
'radio'
||
item
.
type
==
'text'
)
{
}
else
if
(
item
.
type
==
'list'
||
item
.
type
==
'radio'
||
item
.
type
==
'text'
)
{
return
"__"
+
item
.
key
+
"="
+
item
.
value
}
else
if
(
item
.
type
==
'calendar'
)
{
return
"__"
+
item
.
key
+
"="
+
item
.
value
.
split
(
'-'
).
reverse
().
join
(
'-'
)
}
return
""
}).
join
(
'|'
)
...
...
@@ -702,8 +704,10 @@ export class ExcelListComponent implements OnInit {
body
[
`key
${
i
}
`
]
=
item
.
key
;
if
(
item
.
type
==
'help'
)
{
body
[
`val
${
i
}
`
]
=
item
.
value
.
id
}
else
if
(
item
.
type
==
'
calendar'
||
item
.
type
==
'
list'
||
item
.
type
==
'radio'
||
item
.
type
==
'text'
)
{
}
else
if
(
item
.
type
==
'list'
||
item
.
type
==
'radio'
||
item
.
type
==
'text'
)
{
body
[
`val
${
i
}
`
]
=
item
.
value
}
else
if
(
item
.
type
==
'calendar'
)
{
body
[
`val
${
i
}
`
]
=
item
.
value
.
split
(
'-'
).
reverse
().
join
(
'-'
)
}
});
forkJoin
({
...
...
src/app/apps/excel-report-toggle/excel-report-toggle.component.ts
View file @
be9e4148
...
...
@@ -288,8 +288,10 @@ export class ExcelReportToggleComponent implements OnInit {
const
data
=
this
.
variableSheet
.
map
((
item
:
any
)
=>
{
if
(
item
.
type
==
'help'
)
{
return
"__"
+
item
.
key
+
"="
+
item
.
value
.
id
}
else
if
(
item
.
type
==
'
calendar'
||
item
.
type
==
'
list'
||
item
.
type
==
'radio'
||
item
.
type
==
'text'
)
{
}
else
if
(
item
.
type
==
'list'
||
item
.
type
==
'radio'
||
item
.
type
==
'text'
)
{
return
"__"
+
item
.
key
+
"="
+
item
.
value
}
else
if
(
item
.
type
==
'calendar'
)
{
return
"__"
+
item
.
key
+
"="
+
item
.
value
.
split
(
'-'
).
reverse
().
join
(
'-'
)
}
return
""
}).
join
(
'|'
)
...
...
@@ -382,8 +384,10 @@ export class ExcelReportToggleComponent implements OnInit {
body
[
`key
${
i
}
`
]
=
item
.
key
;
if
(
item
.
type
==
'help'
)
{
body
[
`val
${
i
}
`
]
=
item
.
value
.
id
}
else
if
(
item
.
type
==
'
calendar'
||
item
.
type
==
'
list'
||
item
.
type
==
'radio'
||
item
.
type
==
'text'
)
{
}
else
if
(
item
.
type
==
'list'
||
item
.
type
==
'radio'
||
item
.
type
==
'text'
)
{
body
[
`val
${
i
}
`
]
=
item
.
value
}
else
if
(
item
.
type
==
'calendar'
)
{
body
[
`val
${
i
}
`
]
=
item
.
value
.
split
(
'-'
).
reverse
().
join
(
'-'
)
}
});
forkJoin
({
...
...
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