added generate report in pdf format

This commit is contained in:
2019-03-23 16:44:38 +01:00
parent 84357ce48d
commit e288e2e39c
513 changed files with 63908 additions and 24 deletions

View File

@@ -173,7 +173,7 @@ def insert_dossier_attaches(request, nodossier, norapport, filename, filesize, u
nochantier = int(nodossier[3:])
# enregistrer dans la table dossier_attaches
query = """INSERT INTO dossier_attaches (nomrep, societe, nochantier, nodossier, nomfichier, taillefichier, cree_le, usermaj)
query = """REPLACE INTO dossier_attaches (nomrep, societe, nochantier, nodossier, nomfichier, taillefichier, cree_le, usermaj)
VALUES('DOCS_ATTACHES',:societe,:nochantier,:norapport,:filename,:filesize,NOW(),:user);"""
execute_query(request, query, {'societe': societe, 'nochantier': nochantier, 'norapport': norapport, 'filename': filename, 'filesize': filesize, 'user': user})