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 67867f63
authored
2024-11-11 13:28:32 -0300
by
Tu Nombre
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Reporte M2
1 parent
e0c79644
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
10 deletions
data/reportesGAS_OIL.json
data/reportesNAFTA.json
static/src/report.js
data/reportesGAS_OIL.json
View file @
67867f6
{
{
"1"
:{
"1"
:{
"N1"
:{
"N1"
:{
"2"
:
"/home/administrador/complatsa/(T)_
REPORTE_4
.docx"
,
"2"
:
"/home/administrador/complatsa/(T)_
CONPLAT_liviano_2_ejes_CVA_linea_1_v0
.docx"
,
"3"
:
""
"3"
:
""
},
},
"M1"
:{
"M1"
:{
...
@@ -9,15 +9,15 @@
...
@@ -9,15 +9,15 @@
"3"
:
""
"3"
:
""
},
},
"N2"
:{
"N2"
:{
"2"
:
"/home/administrador/complatsa/(T)_
REPORTE_4
.docx"
,
"2"
:
"/home/administrador/complatsa/(T)_
CONPLAT_liviano_2_ejes_CVA_linea_1_v0
.docx"
,
"3"
:
"/home/administrador/complatsa/(T)_REPORTE_4.docx"
"3"
:
"/home/administrador/complatsa/(T)_REPORTE_4.docx"
},
},
"M2"
:{
"M2"
:{
"2"
:
""
,
"2"
:
"
/home/administrador/complatsa/(T)_CONPLAT_liviano_2_ejes_CVA_linea_1_v0.docx
"
,
"3"
:
""
"3"
:
"
/home/administrador/complatsa/(T)_REPORTE_4.docx
"
},
},
"N3"
:{
"N3"
:{
"2"
:
"/home/administrador/complatsa/(T)_
REPORTE_4
.docx"
,
"2"
:
"/home/administrador/complatsa/(T)_
CONPLAT_liviano_2_ejes_CVA_linea_1_v0
.docx"
,
"3"
:
""
"3"
:
""
},
},
"M3"
:{
"M3"
:{
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
"4"
:
""
"4"
:
""
},
},
"UP"
:{
"UP"
:{
"2"
:
"/home/administrador/complatsa/(T)_CONPLAT_
pesado_2_ejes_CVA_linea_1
.docx"
,
"2"
:
"/home/administrador/complatsa/(T)_CONPLAT_
liviano_2_ejes_CVA_linea_1_v0
.docx"
,
"3"
:
""
,
"3"
:
""
,
"4"
:
""
"4"
:
""
}
}
...
...
data/reportesNAFTA.json
View file @
67867f6
...
@@ -9,15 +9,15 @@
...
@@ -9,15 +9,15 @@
"3"
:
""
"3"
:
""
},
},
"N2"
:{
"N2"
:{
"2"
:
"/home/administrador/complatsa/(T)_
REPORTE_4
.docx"
,
"2"
:
"/home/administrador/complatsa/(T)_
CONPLAT_liviano_2_ejes_CVA_linea_1_v0
.docx"
,
"3"
:
"/home/administrador/complatsa/(T)_REPORTE_4.docx"
"3"
:
"/home/administrador/complatsa/(T)_REPORTE_4.docx"
},
},
"M2"
:{
"M2"
:{
"2"
:
""
,
"2"
:
"
/home/administrador/complatsa/(T)_CONPLAT_liviano_2_ejes_CVA_linea_1_v0.docx
"
,
"3"
:
""
"3"
:
""
},
},
"N3"
:{
"N3"
:{
"2"
:
"/home/administrador/complatsa/(T)_
REPORTE_4
.docx"
,
"2"
:
"/home/administrador/complatsa/(T)_
CONPLAT_liviano_2_ejes_CVA_linea_1_v0
.docx"
,
"3"
:
""
"3"
:
""
},
},
"M3"
:{
"M3"
:{
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
"4"
:
""
"4"
:
""
},
},
"UP"
:{
"UP"
:{
"2"
:
"/home/administrador/complatsa/(T)_CONPLAT_
pesado_2_ejes_CVA_linea_1
.docx"
,
"2"
:
"/home/administrador/complatsa/(T)_CONPLAT_
liviano_2_ejes_CVA_linea_1_v0
.docx"
,
"3"
:
""
,
"3"
:
""
,
"4"
:
""
"4"
:
""
}
}
...
...
static/src/report.js
View file @
67867f6
// script.js
// script.js
function
agregarCampoAObjeto
(
nombreCampo
,
reportCampo
,
objeto
)
{
function
agregarCampoAObjeto
(
nombreCampo
,
reportCampo
,
objeto
)
{
try
{
var
valor
=
document
.
getElementsByName
(
nombreCampo
)[
0
].
value
;
var
valor
=
document
.
getElementsByName
(
nombreCampo
)[
0
].
value
;
if
(
valor
!==
''
)
{
if
(
valor
!==
''
)
{
objeto
[
reportCampo
]
=
String
(
valor
).
replace
(
"."
,
","
);;
objeto
[
reportCampo
]
=
String
(
valor
).
replace
(
"."
,
","
);;
...
@@ -7,6 +8,11 @@ function agregarCampoAObjeto(nombreCampo,reportCampo, objeto) {
...
@@ -7,6 +8,11 @@ function agregarCampoAObjeto(nombreCampo,reportCampo, objeto) {
var
valor
=
document
.
getElementById
(
"defectovalor"
).
value
;
var
valor
=
document
.
getElementById
(
"defectovalor"
).
value
;
objeto
[
reportCampo
]
=
valor
;
objeto
[
reportCampo
]
=
valor
;
}
}
}
catch
(
error
)
{
console
.
log
(
error
);
// Expected output: ReferenceError: nonExistentFunction is not defined
// (Note: the exact output may be browser-dependent)
}
}
}
function
agregarCampoAObjetoID
(
nombreCampo
,
reportCampo
,
objeto
)
{
function
agregarCampoAObjetoID
(
nombreCampo
,
reportCampo
,
objeto
)
{
...
...
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