|
|
@ -1,5 +1,3 @@ |
|
|
|
from sapl.utils import create_barcode_128_as_base64_png |
|
|
|
|
|
|
|
from datetime import date, datetime |
|
|
|
from re import sub |
|
|
|
|
|
|
@ -19,6 +17,7 @@ from vanilla import GenericView |
|
|
|
import sapl |
|
|
|
from materia.models import Proposicao, TipoMateriaLegislativa |
|
|
|
from sapl.crud import build_crud |
|
|
|
from sapl.utils import create_barcode_128_as_base64_png |
|
|
|
|
|
|
|
from .forms import (AnularProcoloAdmForm, DocumentoAcessorioAdministrativoForm, |
|
|
|
ProposicaoSimpleForm, ProtocoloDocumentForm, ProtocoloForm, |
|
|
@ -328,7 +327,8 @@ class ComprovanteProtocoloView(TemplateView): |
|
|
|
base64_data = create_barcode_128_as_base64_png(numero.zfill(6)) |
|
|
|
barcode = 'data:image/png;base64,{0}'.format(base64_data) |
|
|
|
|
|
|
|
return self.render_to_response({"protocolo": protocolo, "barcode": barcode}) |
|
|
|
return self.render_to_response({"protocolo": protocolo, |
|
|
|
"barcode": barcode}) |
|
|
|
|
|
|
|
|
|
|
|
class ProtocoloMateriaView(FormMixin, GenericView): |
|
|
|