Commit d75fa993 by Your Name

recuadros en celdas

1 parent bc471426
...@@ -31,7 +31,7 @@ class NegroReport(): ...@@ -31,7 +31,7 @@ class NegroReport():
def ConfiguracionExecl(self): def ConfiguracionExecl(self):
"""configuro la clase que genera el excel y almaseno el nombre del archivo""" """configuro la clase que genera el excel y almaseno el nombre del archivo"""
self.Excel = Reporte() self.Excel = Reporte()
string = time.strftime("%y%m%d%H%M%S") string = time.strftime("%y-%m-%d-%H-%M-%S")
self.Archivo = "tmp/reporte{}.xlsx".format(string) self.Archivo = "tmp/reporte{}.xlsx".format(string)
self.Excel.archivo = self.Archivo self.Excel.archivo = self.Archivo
string = "" string = ""
......
...@@ -25,9 +25,11 @@ class Reporte(): ...@@ -25,9 +25,11 @@ class Reporte():
def __escribir_linea__(self, datos, linea): def __escribir_linea__(self, datos, linea):
formato = self.Libro.add_format({'bg_color': '#e6ffff'}) formato = self.Libro.add_format({'bg_color': '#e6ffff'})
formato.set_border()
mod = linea % 2 mod = linea % 2
if mod > 0: if mod > 0:
formato = self.Libro.add_format({'bg_color': '#ffe6ff'}) formato = self.Libro.add_format({'bg_color': '#ffe6ff'})
formato.set_border()
n = 0 n = 0
for dato in datos: for dato in datos:
celda = Reporte.COLUMNA[n] + str(linea) celda = Reporte.COLUMNA[n] + str(linea)
......
...@@ -26,6 +26,7 @@ class indice(Resource): ...@@ -26,6 +26,7 @@ class indice(Resource):
def acciones(self, content): def acciones(self, content):
rep = NegroReport() rep = NegroReport()
rep.ConfiguradorDB(content["DBconf"]) rep.ConfiguradorDB(content["DBconf"])
rep.Encabezado(content) rep.Encabezado(content)
rep.DB.SELECT = content["select"] rep.DB.SELECT = content["select"]
retorno = rep.Generador() retorno = rep.Generador()
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!