Conjunto e214583 en seiven


Ignorar:
Fecha y hora:
08/08/2017 14:17:35 (hace 7 años)
Autor:
Luis Barrios <nikeven@…>
Branches:
master
Children:
c58882c
Parents:
c079de3
Mensaje:

modificada descarga de archivo para precios

Ficheros:
2 editados

Leyenda

No modificado
Añadido
Eliminado
  • economico/models.py

    rc079de3 re214583  
    157157                                aux1=lolo+tmp
    158158                            aux=aux+1
    159                             fields.append([ {'tag': str(_(str(aux1)))}, {'tag': str(_(str(a)))}])
     159                            fields.append([ {'tag': str(_(str(aux1))),'cabecera': True}, {'tag': str(_(str(a))),'cabecera': True}])
    160160
    161161            else:
     
    187187                            for q in range(0,11):
    188188                                if lst1[q] == 'Caracas':
    189                                     fields.append([ {'tag': str(_(str(aux1))),'combine_row':11 }, {'tag': str(_(str(a))), 'combine_row1':11},{'tag': str(_(str(lst1[q])))}])
     189                                    fields.append([ {'tag': str(_(str(aux1))),'combine_row':11 ,'cabecera': True}, {'tag': str(_(str(a))), 'combine_row1':11,'cabecera': True},{'tag': str(_(str(lst1[q]))),'cabecera': True}])
    190190                                else:
    191                                     fields.append([{'tag':''},{'tag':''},{'tag': str(_(str(lst1[q])))}])
     191                                    fields.append([{'tag':''},{'tag':''},{'tag': str(_(str(lst1[q]))),'cabecera': True}])
    192192
    193193
  • gestion_informacion/ajax.py

    rc079de3 re214583  
    8787                font_bold = xlwt.easyxf(style)
    8888                sheet.write(i, index_col, cabecera['tag'], font_bold)
    89                 sheet.set_shrink()
    9089               
    9190                if 'cabecera' in cabecera:
    92                     sheet.col(i).width = int (333 * (len(cabecera['tag']) + 1))
     91                    sheet.col(i).width = int (250 * (len(cabecera['tag']) + 1))
    9392               
    9493                if 'combine' in cabecera and cabecera['combine'] > 0:
    9594                    sheet.merge(i, i, index_col, (index_col + (cabecera['combine']-1)), font_bold)
    96                     index_col = cabecera['combine'] + index_col
     95                    index_col = cabecera['combine'] + index_col-1
    9796
    9897                if 'dominio'in cabecera:
Nota: Vea TracChangeset para ayuda en el uso del visor de conjuntos de cambios.