Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Juan
/
asw_motor_reportes
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 2257e717
authored
2020-02-23 23:02:37 -0300
by
Juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
psql pruebas
1 parent
39cfaaff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
Libmod/reporte.py
main.py
Libmod/reporte.py
View file @
2257e71
...
...
@@ -8,6 +8,7 @@ class Reporte():
self
.
fecha
=
time
.
strftime
(
"
%
y
%
m
%
d"
)
self
.
archivo
=
"tmp/reporte"
+
self
.
fecha
+
".xlsx"
self
.
QUERY
=
[]
self
.
Encabesado
=
[]
def
NombreArchivo
(
self
,
nombre
):
self
.
archivo
=
"tmp/"
+
nombre
+
self
.
fecha
+
".xlsx"
...
...
@@ -30,6 +31,13 @@ class Reporte():
self
.
__escribir_linea__
(
query
,
str
(
n
))
n
=
n
+
1
def
__encabesado__
(
self
):
n
=
0
for
celda
in
self
.
Encabesado
:
celda
=
Reporte
.
COLUMNA
[
n
]
+
"1"
self
.
Hoja1
.
write
(
celda
,
str
(
celda
))
n
=
n
+
1
def
ArmarLibro
(
self
,
estado
=
"1"
):
self
.
__generarLibro__
()
self
.
__escribir_global
()
...
...
main.py
View file @
2257e71
...
...
@@ -22,4 +22,5 @@ db.Leer()
#query = db.resultado
repo
.
QUERY
=
db
.
resultado
repo
.
Encabesado
=
[
"DOMINIO"
,
"DATETIME"
,
"FECHA"
,
"CLENTE"
,
"CALLE"
,
"CALLE2"
,
"LOCALIDAD"
,
"PROBINCIA"
,
"COD POSTAL"
,
"PAIS"
,
"DOMICILIO"
]
repo
.
ArmarLibro
()
\ No newline at end of file
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