Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Luciano Barletta
/
Pruebas-RTO
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 88660eea
authored
2024-03-24 11:48:15 -0300
by
Juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Agrego sogundo repurte
1 parent
57e9a4c3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
static/src/report.js
templates/form.html
static/src/report.js
View file @
88660ee
...
...
@@ -165,7 +165,18 @@ function calcularResultadoSub(num) {
}
document
.
getElementById
(
'boton_pdf_maha_reporte2'
).
addEventListener
(
'click'
,
function
()
{
document
.
getElementById
(
'boton_pdf_maha_reporte2'
).
addEventListener
(
'click'
,
reporteLinea1
);
document
.
getElementById
(
'boton_pdf_maha_reporte'
).
addEventListener
(
'click'
,
reporteLinea2
);
function
reporteLinea1
()
{
generarReporteTemplate
(
'/home/administrador/repo_laika_hgt/uploads/Reporte MAHA Vertical105_V02.docx'
)
}
function
reporteLinea2
()
{
generarReporteTemplate
(
'/home/administrador/repo_laika_hgt/uploads/Reporte_MAHA_V04.docx'
)
}
function
generarReporteTemplate
(
template
)
{
//REPORTE VIA CARBONE
var
solicitud
=
{
...
...
@@ -236,7 +247,7 @@ document.getElementById('boton_pdf_maha_reporte2').addEventListener('click', fun
var
datos
=
{
solicitud
:
solicitud
,
template
:
'/home/administrador/repo_laika_hgt/uploads/Reporte MAHA Vertical105_V02.docx'
,
template
:
template
,
salida
:
'test_maha_2.pdf'
,
'convert_pdf'
:
true
};
...
...
@@ -258,4 +269,4 @@ document.getElementById('boton_pdf_maha_reporte2').addEventListener('click', fun
.
catch
(
error
=>
{
console
.
error
(
'Error:'
,
error
);
});
}
);
}
templates/form.html
View file @
88660ee
...
...
@@ -132,13 +132,11 @@
</div>
<div
class=
"PDFButtonContainerFixed"
>
<!--
<button
class=
"PDFButton"
id=
"boton_pdf_maha_reporte"
>
Linea 1
</button>
-->
<button
class=
"PDFButton"
id=
"boton_pdf_maha_reporte2"
>
Linea
1
Linea
2
</button>
<!--
<button class="PDFButton" onclick=
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment