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 2131b959
authored
10 months ago
by
Tu Nombre
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Finalizacion perproductivo
1 parent
6e4561b3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
6 deletions
main.py
pruebas.py
static/src/pdf2.js
templates/form.html
main.py
View file @
2131b95
...
...
@@ -322,15 +322,17 @@ def readdata(s, r):
r
[
'frenos'
][
"totalFzaDer"
]
=
PuntoComa
(
s
.
traerTextDiv
(
f
"divTotalFuerzaDer"
))
r
[
'frenos'
][
"totalEficacia"
]
=
PuntoComa
(
s
.
traerTextDiv
(
f
"divTotalEficiencia"
))
.
replace
(
"
%
"
,
""
)
# freno trasero
r
[
'trasero'
][
'peso_estatico'
]
=
P
untoComa
(
_e2q
(
_attempt
(
reach
(
f
"pesoBasculaEst-0"
),
"?"
)(
s
)))
# freno trasero
(Freno de mano)
PsoEstaFrM
=
PuntoComa
(
_e2q
(
_attempt
(
reach
(
f
"pesoBasculaEst-0"
),
"?"
)(
s
)))
r
[
'trasero'
][
'peso_estatico'
]
=
P
soEstaFrM
r
[
'trasero'
][
'fuerza_izquierda'
]
=
PuntoComa
(
_e2q
(
_attempt
(
reach
(
f
"fuerzaIzqEst-0"
),
"?"
)(
s
)))
r
[
'trasero'
][
'fuerza_derecha'
]
=
PuntoComa
(
_e2q
(
_attempt
(
reach
(
f
"fuerzaDerEst-0"
),
"?"
)(
s
)))
r
[
'trasero'
][
'eje'
]
=
PuntoComa
(
_e2q
(
_attempt
(
reach
(
f
"nroEjeEst-0"
),
"?"
)(
s
)))
r
[
"trasero"
][
f
'eficacia_freno_mano'
]
=
PuntoComa
(
s
.
traerTextDiv
(
f
"remotoDivEficienciaEst-0"
))
r
[
"trasero"
][
f
'diferencia_freno_mano'
]
=
PuntoComa
(
s
.
traerTextDiv
(
f
"remotoDivDiferenciaEst-0"
))
#########################################CALCULADO##############################################
r
[
'trasero'
][
'peso_izquierda'
]
=
DividirPeso
(
PsoEstaFrM
)
r
[
'trasero'
][
'peso_derecha'
]
=
DividirPeso
(
PsoEstaFrM
)
# gases y humos
r
[
'gaseshumos'
][
'opacidad_logaritmica'
]
=
PuntoComa
(
_e2q
(
_attempt
(
reach
(
f
"opacidadLogaritmica"
),
"?"
)(
s
)))
...
...
This diff is collapsed.
Click to expand it.
pruebas.py
View file @
2131b95
...
...
@@ -52,6 +52,8 @@ report = {
'fuerza_derecha'
:
'9,02'
,
'eje'
:
'2'
,
'eficacia_freno_mano'
:
'37,60'
,
'peso_izquierda'
:
"2444"
,
'peso_derecha'
:
"2444"
,
'diferencia_freno_mano'
:
'0,11'
},
'gaseshumos'
:
{
'opacidad_logaritmica'
:
'?'
,
...
...
This diff is collapsed.
Click to expand it.
static/src/pdf2.js
View file @
2131b95
...
...
@@ -221,11 +221,11 @@ class PDF2 {
new
Text
(
`
${
this
.
Dominio
}
- Diagnóstico de Frenos - Eje Trasero - Frenos de Mano`
,
new
Vector
(
Pos
.
beg
,
Pos
.
third
-
25
,
),
this
.
font
),
new
Text
(
"Peso Lado Izquierdo"
,
new
Vector
(
Pos
.
beg_margin
,
Pos
.
quarter
),
this
.
font
),
new
Text
(
`
${
data
[
'peso_
estatico
'
]}
Kg`
,
new
Vector
(
Pos
.
beg_margin
+
3
,
Pos
.
quarter
+
15
),
this
.
font
),
new
Text
(
`
${
data
[
'peso_
izquierda
'
]}
Kg`
,
new
Vector
(
Pos
.
beg_margin
+
3
,
Pos
.
quarter
+
15
),
this
.
font
),
new
Text
(
"Peso del Eje "
,
new
Vector
(
Pos
.
middle
-
10
,
Pos
.
quarter
),
this
.
font
),
new
Text
(
`
${
data
[
'peso_estatico'
]}
Kg`
,
new
Vector
(
Pos
.
middle
-
5
,
Pos
.
quarter
+
15
),
this
.
font
),
new
Text
(
"Peso Lado Derecho"
,
new
Vector
(
Pos
.
three_quarters
,
Pos
.
quarter
),
this
.
font
),
new
Text
(
`
${
data
[
'peso_
estatico
'
]}
KG`
,
new
Vector
(
Pos
.
three_quarters
+
3
,
Pos
.
quarter
+
15
),
this
.
font
),
new
Text
(
`
${
data
[
'peso_
derecha
'
]}
KG`
,
new
Vector
(
Pos
.
three_quarters
+
3
,
Pos
.
quarter
+
15
),
this
.
font
),
new
Text
(
"Fuerza IZ"
,
new
Vector
(
Pos
.
beg_margin
,
Pos
.
middle
+
5
),
this
.
font
),
new
Text
(
`
${
data
[
'fuerza_izquierda'
]}
KN`
,
new
Vector
(
Pos
.
beg_margin
+
3
,
Pos
.
middle
+
20
),
this
.
font
),
...
...
This diff is collapsed.
Click to expand it.
templates/form.html
View file @
2131b95
...
...
@@ -119,6 +119,10 @@
<!--Peso Total hidden-->
Peso Total
<input
sub=
"trasero"
type=
"text"
name=
"peso_estatico"
id=
"peso_estatico_freno_mano"
>
<br>
Peso Izq
<input
sub=
"trasero"
type=
"text"
name=
"peso_izquierda"
id=
"peso_izquierda_freno_mano"
>
<br>
Peso Der
<input
sub=
"trasero"
type=
"text"
name=
"peso_derecha"
id=
"peso_derecho_freno_mano"
>
<br>
<h1>
Gases y Humos
</h1>
Gases
<input
sub=
"gaseshumos"
type=
"text"
name=
"opacidad_logaritmica"
>
...
...
This diff is collapsed.
Click to expand it.
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