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 40903b22
authored
2024-11-06 10:28:49 -0300
by
Tu Nombre
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Base de datos para nuevos reportes
1 parent
807690ba
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
10 deletions
data/reportes.json
reportes.py
static/src/carbone.js
templates/form.html
data/reportes.json
View file @
40903b2
...
...
@@ -35,14 +35,14 @@
"4"
:
""
},
"O3"
:{
"2"
:
""
,
"3"
:
""
,
"4"
:
""
"2"
:
"
/home/administrador/reporte_interfor/Template/O3-O4-4EJES - T E S T.docx
"
,
"3"
:
"
/home/administrador/reporte_interfor/Template/O3-O4-4EJES - T E S T.docx
"
,
"4"
:
"
/home/administrador/reporte_interfor/Template/O3-O4-4EJES - T E S T.docx
"
},
"O4"
:{
"2"
:
""
,
"3"
:
""
,
"4"
:
""
"2"
:
"
/home/administrador/reporte_interfor/Template/O3-O4-4EJES - T E S T.docx
"
,
"3"
:
"
/home/administrador/reporte_interfor/Template/O3-O4-4EJES - T E S T.docx
"
,
"4"
:
"
/home/administrador/reporte_interfor/Template/O3-O4-4EJES - T E S T.docx
"
},
"UP"
:{
"2"
:
""
,
...
...
reportes.py
View file @
40903b2
...
...
@@ -5,8 +5,9 @@ def BuscarReporteDefecto(linea,tipo,cantidadEjes=2,combustible=""):
cantidadEjes
=
str
(
cantidadEjes
)
tipo
=
str
(
tipo
)
.
upper
()
combustible
=
combustible
.
upper
()
.
replace
(
" "
,
"_"
)
print
(
f
"reporte defecto linea: {linea}, tipo: {tipo}, ejes {cantidadEjes},combustible {combustible}"
)
with
open
(
f
"data/reportes{combustible}.json"
,
'r'
)
as
f
:
archivo
=
f
"data/reportes{combustible}.json"
print
(
f
"reporte defecto linea: {linea}, tipo: {tipo}, ejes {cantidadEjes},json: {archivo}"
)
with
open
(
archivo
,
'r'
)
as
f
:
data
=
json
.
load
(
f
)
try
:
rta
=
data
[
linea
][
tipo
][
cantidadEjes
]
...
...
@@ -14,7 +15,7 @@ def BuscarReporteDefecto(linea,tipo,cantidadEjes=2,combustible=""):
rta
=
configuracion
.
reporte_defecto
[
cantidadEjes
]
if
rta
in
[
""
,
False
]:
rta
=
configuracion
.
reporte_defecto
[
cantidadEjes
]
#
print(rta)
print
(
rta
)
return
rta
static/src/carbone.js
View file @
40903b2
This diff is collapsed.
Click to expand it.
templates/form.html
View file @
40903b2
...
...
@@ -61,13 +61,18 @@
<br>
Eje Delantero
<input
sub=
"alineador"
type=
"text"
name=
"eje_delantero"
>
<br>
Tipo
<select
type=
"text"
sub=
"alineador"
name=
"eje_delantero_tipo"
>
<option
value=
"Convergente"
selected
>
Convergente
</option>
<option
value=
"Divergente"
>
Divergente
</option>
</select>
<br>
Eje Trazero
<input
sub=
"alineador"
type=
"text"
name=
"eje_trazero"
>
<br>
<h1>
Suspensión
</h1>
{% for eje in range(
2
) %}
{% for eje in range(
3
) %}
<h3>
Eje {{ eje + 1 }}
</h3>
Titulo Eje
<input
readonly=
"1"
sub=
"suspension"
type=
"text"
name=
"titulo_eje_{{ eje + 1 }}"
>
...
...
@@ -76,8 +81,20 @@
<br>
Rend. Derecho
<input
sub=
"suspension"
type=
"text"
name=
"rendimiento_derecho_{{ eje + 1 }}"
>
<br>
Rend. Derecho
<input
sub=
"suspension"
type=
"text"
name=
"rendimiento_diferencia_{{ eje + 1 }}"
>
<br>
Peso Total
<input
sub=
"suspension"
type=
"text"
name=
"peso_estatico_{{ eje + 1 }}"
id=
"peso_estatico_{{ eje + 1 }}"
>
<br>
Amp. Izquerdo
<input
sub=
"suspension"
type=
"text"
name=
"amp_izquierdo_{{ eje + 1 }}"
>
<br>
Amp. Derecha
<input
sub=
"suspension"
type=
"text"
name=
"amp_derecho_{{ eje + 1 }}"
>
<br>
Dif. Amp.
<input
sub=
"suspension"
type=
"text"
name=
"amp_dif_{{ eje + 1 }}"
>
<br>
Freq. Izquerdo
<input
sub=
"suspension"
type=
"text"
name=
"freq_izquierdo_{{ eje + 1 }}"
>
<br>
Freq. Derecha
<input
sub=
"suspension"
type=
"text"
name=
"freq_derecha_{{ eje + 1 }}"
>
<br>
<br>
{% endfor %}
...
...
@@ -149,6 +166,10 @@
<br>
HC
<input
sub=
"gaseshumos"
type=
"text"
name=
"hc"
>
<br>
O2
<input
sub=
"gaseshumos"
type=
"text"
name=
"o2"
>
<br>
CO2
<input
sub=
"gaseshumos"
type=
"text"
name=
"co2"
>
<br>
<h1>
Ruido
</h1>
dbA
<input
sub=
"ruido"
type=
"text"
name=
"nivelsonoro"
id=
"ruido_dba_id"
>
<br>
...
...
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