Commit d75fa993 by Your Name

recuadros en celdas

1 parent bc471426
......@@ -31,7 +31,7 @@ class NegroReport():
def ConfiguracionExecl(self):
"""configuro la clase que genera el excel y almaseno el nombre del archivo"""
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.Excel.archivo = self.Archivo
string = ""
......
......@@ -25,9 +25,11 @@ class Reporte():
def __escribir_linea__(self, datos, linea):
formato = self.Libro.add_format({'bg_color': '#e6ffff'})
formato.set_border()
mod = linea % 2
if mod > 0:
formato = self.Libro.add_format({'bg_color': '#ffe6ff'})
formato.set_border()
n = 0
for dato in datos:
celda = Reporte.COLUMNA[n] + str(linea)
......
......@@ -26,6 +26,7 @@ class indice(Resource):
def acciones(self, content):
rep = NegroReport()
rep.ConfiguradorDB(content["DBconf"])
rep.Encabezado(content)
rep.DB.SELECT = content["select"]
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!