diff --git a/sigi/apps/casas/__init__.py b/sigi/apps/casas/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sigi/apps/casas/admin.py b/sigi/apps/casas/admin.py new file mode 100644 index 0000000..b820245 --- /dev/null +++ b/sigi/apps/casas/admin.py @@ -0,0 +1,243 @@ +# -*- coding: utf-8 -*- +from django.contrib import admin +from django.contrib.contenttypes import generic +from django.http import HttpResponse, HttpResponseRedirect + +from geraldo.generators import PDFGenerator + +from sigi.apps.casas.forms import CasaLegislativaForm +from sigi.apps.casas.models import CasaLegislativa, Presidente, Funcionario, TipoCasaLegislativa +from sigi.apps.casas.reports import CasasLegislativasLabels, CasasLegislativasReport +from sigi.apps.casas.views import report_complete, labels_report, export_csv, \ + labels_report_sem_presidente, report, \ + adicionar_casas_carrinho +from sigi.apps.utils import queryset_ascii +from sigi.apps.contatos.models import Telefone +from sigi.apps.convenios.models import Projeto, Convenio, EquipamentoPrevisto, Anexo +from sigi.apps.mesas.models import Legislatura +from sigi.apps.diagnosticos.models import Diagnostico +from sigi.apps.inventario.models import Bem +from sigi.apps.servicos.models import Servico +from sigi.apps.metas.models import PlanoDiretor +from sigi.apps.ocorrencias.models import Ocorrencia + +class TelefonesInline(generic.GenericTabularInline): + model = Telefone + readonly_fields = ('ult_alteracao',) + extra = 1 + +class PresidenteInline(admin.StackedInline): + model = Presidente + exclude = ['cargo','funcao'] + readonly_fields = ('ult_alteracao',) + extra = 1 + max_num = 1 + inlines = (TelefonesInline) + +class FuncionariosInline(admin.StackedInline): + model = Funcionario + fieldsets = ((None, { + 'fields': (('nome', 'sexo', 'nota', 'email'), ('cargo', 'funcao', 'setor', 'tempo_de_servico'), 'ult_alteracao') + }),) + readonly_fields = ('ult_alteracao',) + extra = 1 + inlines = (TelefonesInline,) + def queryset(self, request): + return self.model.objects.exclude(cargo="Presidente") + +class ConveniosInline(admin.StackedInline): + model = Convenio + fieldsets = ( + (None, {'fields': (('link_convenio', 'num_processo_sf','num_convenio','projeto','observacao'), + ('data_adesao', 'data_retorno_assinatura', 'data_termo_aceite', 'data_pub_diario', 'data_devolucao_via', 'data_postagem_correio'), + ('data_devolucao_sem_assinatura','data_retorno_sem_assinatura',), + ('get_tramitacoes', 'get_anexos', 'get_equipamentos',), + )} + ), + ) + readonly_fields = ['get_tramitacoes', 'get_anexos', 'get_equipamentos', 'link_convenio',] + extra = 0 + def get_tramitacoes(self, obj): + return '
'.join([t.__unicode__() for t in obj.tramitacao_set.all()]) + get_tramitacoes.short_description = 'Tramitações' + get_tramitacoes.allow_tags = True + + def get_anexos(self, obj): + return '
'.join(['%s' % (a.arquivo.url, a.__unicode__()) for a in obj.anexo_set.all()]) + get_anexos.short_description = 'Anexos' + get_anexos.allow_tags = True + + def get_equipamentos(self, obj): + return '
'.join([e.__unicode__() for e in obj.equipamentoprevisto_set.all()]) + get_equipamentos.short_description = 'Equipamentos previstos' + get_equipamentos.allow_tags = True + + def link_convenio(self, obj): + if obj.pk is None: + return "" + from django.core.urlresolvers import reverse + url = reverse('admin:%s_%s_change' %(obj._meta.app_label, obj._meta.module_name), args=[obj.pk] ) + url = url + '?_popup=1' + return """ + + Editar + """ % (obj.pk, obj.pk, url) + + link_convenio.short_description = 'Editar convenio' + link_convenio.allow_tags = True + +class LegislaturaInline(admin.TabularInline): + model = Legislatura + fields = ['numero', 'data_inicio', 'data_fim', 'data_eleicao', 'total_parlamentares', 'link_parlamentares',] + readonly_fields = ['link_parlamentares',] + + def link_parlamentares(self, obj): + if obj.pk is None: + return "" + from django.core.urlresolvers import reverse + url = reverse('admin:%s_%s_change' %(obj._meta.app_label, obj._meta.module_name), args=[obj.pk] ) + url = url + '?_popup=1' + return """ + + Editar + """ % (obj.pk, obj.pk, url) + + link_parlamentares.short_description = 'Parlamentares' + link_parlamentares.allow_tags = True + +class DiagnosticoInline(admin.TabularInline): + model = Diagnostico + fields = ['data_visita_inicio', 'data_visita_fim', 'publicado', 'data_publicacao', 'responsavel', 'link_diagnostico',] + readonly_fields = ['data_visita_inicio', 'data_visita_fim', 'publicado', 'data_publicacao', 'responsavel', 'link_diagnostico',] + extra = 0 + max_num = 0 + can_delete = False + + def link_diagnostico(self, obj): + if obj.pk is None: + return "" + from django.core.urlresolvers import reverse + url = reverse('admin:%s_%s_change' %(obj._meta.app_label, obj._meta.module_name), args=["%s.pdf" % obj.pk] ) + return """ + + Abrir PDF + """ % (obj.pk, obj.pk, url) + + link_diagnostico.short_description = 'Ver PDF' + link_diagnostico.allow_tags = True + +class BemInline(admin.TabularInline): + model = Bem + +class ServicoInline(admin.TabularInline): + model = Servico + fields = ['url', 'contato_tecnico', 'contato_administrativo', 'hospedagem_interlegis', 'data_ativacao', 'data_alteracao', 'data_desativacao'] + readonly_fields = ['url', 'contato_tecnico', 'contato_administrativo', 'hospedagem_interlegis', 'data_ativacao', 'data_alteracao', 'data_desativacao'] + extra = 0 + max_num = 0 + can_delete = False + +class PlanoDiretorInline(admin.TabularInline): + model = PlanoDiretor + +class OcorrenciaInline(admin.TabularInline): + model = Ocorrencia + fields = ('data_criacao', 'assunto', 'prioridade', 'status', 'data_modificacao', 'setor_responsavel',) + readonly_fields = ('data_criacao', 'assunto', 'prioridade', 'status', 'data_modificacao', 'setor_responsavel',) + extra = 0 + max_num = 0 + can_delete = False + +class CasaLegislativaAdmin(admin.ModelAdmin): + form = CasaLegislativaForm + change_form_template = 'casas/change_form.html' + change_list_template = 'casas/change_list.html' + actions = ['adicionar_casas',] + inlines = (TelefonesInline, PresidenteInline, FuncionariosInline, ConveniosInline, LegislaturaInline, + DiagnosticoInline, BemInline, ServicoInline, PlanoDiretorInline, OcorrenciaInline, ) + list_display = ('nome','municipio','logradouro', 'ult_alt_endereco', 'get_convenios') + list_display_links = ('nome',) + list_filter = ('tipo', 'municipio', 'search_text') + ordering = ('nome','municipio__uf') + queyrset = queryset_ascii + fieldsets = ( + (None, { + 'fields': ('tipo', 'nome', 'cnpj', 'num_parlamentares') + }), + ('Endereço', { + 'fields': ('data_instalacao', 'logradouro', 'bairro', + 'municipio', 'cep', 'pagina_web','email', 'ult_alt_endereco'), + }), + ('Outras informações', { + 'classes': ('collapse',), + 'fields': ('observacoes', 'foto'), + }), + ) + raw_id_fields = ('municipio',) + readonly_fields = ['num_parlamentares',] + search_fields = ('search_text','cnpj', 'bairro', 'logradouro', + 'cep', 'municipio__nome', 'municipio__uf__nome', + 'municipio__codigo_ibge', 'pagina_web', 'observacoes') + + def get_convenios(self, obj): + return '' + get_convenios.short_description = u'Convênios' + get_convenios.allow_tags= True + + def changelist_view(self, request, extra_context=None): + return super(CasaLegislativaAdmin, self).changelist_view( + request, + extra_context={'query_str': '?' + request.META['QUERY_STRING']} + ) + + def lookup_allowed(self, lookup, value): + return super(CasaLegislativaAdmin, self).lookup_allowed(lookup, value) or \ + lookup in ['municipio__uf__codigo_ibge__exact', 'convenio__projeto__id__exact'] + + + def etiqueta(self,request,queryset): + return labels_report(request,queryset=queryset) + etiqueta.short_description = "Gerar etiqueta(s) da(s) casa(s) selecionada(s)" + + def etiqueta_sem_presidente(self,request,queryset): + return labels_report_sem_presidente(request,queryset=queryset) + etiqueta_sem_presidente.short_description = "Gerar etiqueta(s) sem presidente da(s) casa(s) selecionada(s)" + + def relatorio(self,request,queryset): + return report(request,queryset=queryset) + relatorio.short_description = u"Exportar a(s) casa(s) selecionada(s) para PDF" + + def relatorio_completo(self,request,queryset): + return report_complete(request,queryset=queryset) + relatorio_completo.short_description = u"Gerar relatório completo da(s) casa(s) selecionada(s)" + + def relatorio_csv(self,request,queryset): + return export_csv(request) + relatorio_csv.short_description = u"Exportar casa(s) selecionada(s) para CSV" + + def adicionar_casas(self, request, queryset): + if 'carrinho_casas' in request.session: + #if request.session.has_key('carrinho_casas'): + q1 = len(request.session['carrinho_casas']) + else: + q1 = 0 + response = adicionar_casas_carrinho(request,queryset=queryset) + q2 = len(request.session['carrinho_casas']) + quant = q2 - q1 + if quant: + self.message_user(request,str(q2-q1)+" Casas Legislativas adicionadas no carrinho" ) + else: + self.message_user(request,"As Casas Legislativas selecionadas já foram adicionadas anteriormente" ) + return HttpResponseRedirect('.') + + adicionar_casas.short_description = u"Armazenar casas no carrinho para exportar" + + + def get_actions(self, request): + actions = super(CasaLegislativaAdmin, self).get_actions(request) + if 'delete_selected' in actions: + del actions['delete_selected'] + return actions + +admin.site.register(CasaLegislativa, CasaLegislativaAdmin) +admin.site.register(TipoCasaLegislativa) diff --git a/sigi/apps/casas/forms.py b/sigi/apps/casas/forms.py new file mode 100644 index 0000000..5f25195 --- /dev/null +++ b/sigi/apps/casas/forms.py @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- +from django import forms +from localflavor.br.forms import BRZipCodeField +from sigi.apps.casas.models import CasaLegislativa + + +class CasaLegislativaForm(forms.ModelForm): + #cnpj = BRCNPJField( + # label='CNPJ', + # required=False, + # help_text='Utilize o formato XX.XXX.XXX/XXXX-XX ou ' + # 'insira apenas os dígitos.' + #) + cep = BRZipCodeField(label='CEP', help_text='Formato: XXXXX-XXX.') + + class Meta: + model = CasaLegislativa diff --git a/sigi/apps/casas/models.py b/sigi/apps/casas/models.py new file mode 100644 index 0000000..b8d5fd1 --- /dev/null +++ b/sigi/apps/casas/models.py @@ -0,0 +1,303 @@ +# -*- coding: utf-8 -*- +from django.db import models +from django.contrib.contenttypes import generic +from sigi.apps.parlamentares.models import Parlamentar +from sigi.apps.utils import SearchField +from datetime import datetime +import random +from unicodedata import normalize +from sigi.apps.contatos.models import Municipio + +class TipoCasaLegislativa(models.Model): + """ Modelo para representar o tipo da Casa Legislativa + + Geralmente: Câmara Municipal, Assembléia Legislativa, + Câmara Distrital ou Legislativo Federal + """ + + sigla = models.CharField( + max_length=5 + ) + nome = models.CharField( + max_length=100 + ) + def __unicode__(self): + return self.nome + + +class CasaLegislativa(models.Model): + """ Modelo para representar uma Casa Legislativa + """ + nome = models.CharField( + max_length=60, + help_text='Exemplo: Câmara Municipal de Pains.' + ) + + # Guarda um campo para ser usado em buscas em caixa baixa e sem acento + search_text = SearchField(field_names=['nome']) + search_text.projeto_filter = True + tipo = models.ForeignKey(TipoCasaLegislativa, verbose_name="Tipo") + cnpj = models.CharField('CNPJ', max_length=32, blank=True) + observacoes = models.TextField(u'observações', blank=True) +# num_parlamentares = models.PositiveIntegerField('Número de parlamentares') + codigo_interlegis = models.CharField('Código Interlegis', max_length=3, blank=True) + codigo_interlegis.ts_filter = True + + # Informações de contato + logradouro = models.CharField( + max_length=100, + help_text='Avenida, rua, praça, jardim, parque...' + ) + bairro = models.CharField(max_length=100, blank=True) + municipio = models.ForeignKey( + 'contatos.Municipio', + verbose_name='município' + ) + municipio.uf_filter = True + cep = models.CharField(max_length=32) + email = models.EmailField('e-mail', max_length=128, blank=True) + pagina_web = models.URLField( + u'página web', + help_text='Exemplo: http://www.camarapains.mg.gov.br.', + blank=True, + ) + ult_alt_endereco = models.DateTimeField(u'Última alteração do endereço', null=True, blank=True, editable=True) + telefones = generic.GenericRelation('contatos.Telefone') + + foto = models.ImageField( + upload_to='imagens/casas', + width_field='foto_largura', + height_field='foto_altura', + blank=True + ) + foto_largura = models.SmallIntegerField(editable=False, null=True) + foto_altura = models.SmallIntegerField(editable=False, null=True) + data_instalacao = models.DateField(u'Data de instalação da Casa Legislativa', null=True, blank=True) + + + class Meta: + ordering = ('nome',) + unique_together = ('municipio', 'tipo') + verbose_name = 'Casa Legislativa' + verbose_name_plural = 'Casas Legislativas' + + @property + def num_parlamentares(self): + if not self.legislatura_set.exists(): + return 0 + return self.legislatura_set.latest('data_inicio').total_parlamentares + + @property + def telefone(self): + """ Link para acessar diretamente o primeiro telefone cadastrado da casa + Util para relatorios antigos + """ + telefones = self.telefones.all() + if telefones: + return telefones[0] + return None + + @property + def presidente(self): + """ Link para acessar diretamente o contato do presidente da casa + Util para relatorios antigos + """ + try: + if self.funcionario_set.filter(setor='presidente').count() > 1: + return self.funcionario_set.filter(setor='presidente')[0] + else: + return self.funcionario_set.get(setor='presidente') + except Funcionario.DoesNotExist: + return None + + @property + def total_parlamentares(self): + """ + Calcula o total de parlamentares atual da Casa: + - O total de parlamentares da mesas.legislatura mais recente, ou + - num_parlamentares ou + - 0 se não tiver nenhuma das informações + """ + + if self.legislatura_set.exists(): + return self.legislatura_set.all()[0].total_parlamentares + + if self.num_parlamentares is not None: + return self.num_parlamentares + + return 0 + + def gerarCodigoInterlegis(self): + codigo = self.codigo_interlegis + + if codigo == '': + if self.tipo.sigla == 'AL': # Assembléias são tratadas a parte + codigo = 'A' + self.municipio.uf.sigla + if CasaLegislativa.objects.filter(codigo_interlegis=codigo).count() <= 0: + # Só grava o código se ele for inédito + self.codigo_interlegis = codigo + self.save() + return codigo + # Se já existe, então trata a Assembleia como uma Casa qualquer. + + cityName = normalize('NFKD', unicode(self.municipio.nome)).encode('ascii','ignore') + cityName = cityName.upper().strip() + cityName = cityName.replace(' DA ',' ') + cityName = cityName.replace(' DE ',' ') + cityName = cityName.replace(' DO ',' ') + + # estratégia 1 - Pegar as 1ª letra de cada nome da cidade + codigo = ''.join([x[0] for x in cityName.split(' ')[:3]]) + + # Se o código ficou com menos que três letras, pegar as 2 primeiras + if len(codigo) < 3: + codigo = ''.join([x[0:2] for x in cityName.split(' ')[:3]])[:3] + + # Se ainda ficou com menos de três letras, então o nome da cidade só + # tem uma palavra. Pegue as três primeiras letras da palavra + if len(codigo) < 3: + codigo = cityName[:3] + + # Se o código já existir, substituir a última letra do código pela + # última letra do nome da cidade, e ir recuando, letra a letra, + # até achar um novo código. + + cityName = cityName.replace(' ', '') + ultima = len(cityName) + + while CasaLegislativa.objects.filter(codigo_interlegis=codigo). \ + count() > 0 and ultima > 0: + codigo = codigo[:2] + cityName[ultima - 1: ultima] + ultima -= 1 + + # Se usou todas as letras do nome na última posição e ainda assim + # não gerou um código único, então vamos compor o nome usando as + # três primeiras consoantes. + + if CasaLegislativa.objects.filter(codigo_interlegis=codigo).count() > 0: + codigo_cons = cityName.replace('A','').replace('E','').\ + replace('I','').replace('O','').replace('U','')[:3] + if len(codigo_cons) == 3 and \ + CasaLegislativa.objects.filter(codigo_interlegis=codigo).count() > 0: + codigo = codigo_cons + + # Se ainda não gerou um nome único, vamos colocar dígitos no + # último caractere, de A a Z + + i = 'A' + + while CasaLegislativa.objects.filter(codigo_interlegis=codigo). \ + count() > 0 and i <= 'Z': + codigo = codigo[:2] + str(i) + i = chr(ord(i) + 1) + + # Se não encontrou, comece a gerar strings com 3 letras aleatórias + # tiradas do nome da cidade, até gerar uma que não existe. Tentar + # 100 vezes apenas + + i = 0 + + while CasaLegislativa.objects.filter(codigo_interlegis=codigo). \ + count() > 0 and i < 100: + codigo = random.choice(cityName) + random.choice(cityName) + \ + random.choice(cityName) + i += 1 + + # Caramba! Só resta então gerar o código com 3 letras aleatórias + # quaisquer do alfabeto! + + i = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' + + while CasaLegislativa.objects.filter(codigo_interlegis=codigo). \ + count() > 0: + codigo = random.choice(i) + random.choice(i) + \ + random.choice(i) + + self.codigo_interlegis = codigo + self.save() + + return codigo + + def __unicode__(self): + return self.nome + + def save(self, *args, **kwargs): + address_changed = False + + if self.pk is not None: + original = CasaLegislativa.objects.get(pk=self.pk) + if (self.logradouro != original.logradouro or + self.bairro != original.bairro or + self.municipio != original.municipio or + self.cep != original.cep): + address_changed = True + else: + address_changed = True + + if address_changed: + self.ult_alt_endereco = datetime.now() + + return super(CasaLegislativa, self).save(*args, **kwargs) + +class Funcionario(models.Model): + """ Modelo para registrar contatos vinculados às + Casas Legislativas + """ + + SETOR_CHOICES = [ + ("presidente","Presidente"), + ("contato_interlegis","Contato Interlegis"), + ("infraestrutura_fisica","Infraestrutura Física"), + ("estrutura_de_ti","Estrutura de TI"), + ("organizacao_do_processo_legislativo","Organização do Processo Legislativo"), + ("producao_legislativa","Produção Legislativa"), + ("estrutura_de_comunicacao_social","Estrutura de Comunicação Social"), + ("estrutura_de_recursos_humanos","Estrutura de Recursos Humanos"), + ("gestao","Gestão"), + ("outros","Outros"), + ] + SEXO_CHOICES = [ + ("M", "Masculino"), + ("F", "Feminino") + ] + + casa_legislativa = models.ForeignKey(CasaLegislativa) + nome = models.CharField('nome completo', max_length=60, blank=False) + nome.alphabetic_filter = True + sexo = models.CharField(max_length=1, choices=SEXO_CHOICES, default="M") + nota = models.CharField(max_length=70, null=True, blank=True) + email = models.CharField('e-mail', max_length=75, blank=True) + telefones = generic.GenericRelation('contatos.Telefone') + endereco = generic.GenericRelation('contatos.Endereco') + cargo = models.CharField(max_length=100, null=True, blank=True) + funcao = models.CharField(u'função', max_length=100, null=True, blank=True) + setor = models.CharField(max_length=100, choices = SETOR_CHOICES, default="outros") + tempo_de_servico = models.CharField(u'tempo de serviço', max_length=50, null=True, blank=True) + ult_alteracao = models.DateTimeField(u'Última alteração', null=True, blank=True, editable=True, auto_now=False) + + class Meta: + ordering = ('nome',) + verbose_name = 'contato Casa Legislativa' + verbose_name_plural = 'contatos Casas Legislativa' + + def __unicode__(self): + return self.nome + +class PresidenteManager(models.Manager): + def get_query_set(self): + qs = super(PresidenteManager, self).get_query_set() + qs = qs.filter(setor='presidente') + return qs + +class Presidente(Funcionario): + class Meta: + proxy = True + + objects = PresidenteManager() + + def save(self, *args, **kwargs): + self.setor = 'presidente' + self.cargo = 'Presidente' + self.funcao = 'Presidente' + return super(Presidente, self).save(*args, **kwargs) + diff --git a/sigi/apps/casas/reports.py b/sigi/apps/casas/reports.py new file mode 100644 index 0000000..58f3edd --- /dev/null +++ b/sigi/apps/casas/reports.py @@ -0,0 +1,574 @@ +# -*- coding: utf-8 -*- +from reportlab.lib.pagesizes import A4 +from reportlab.lib.units import cm +from reportlab.lib.enums import TA_CENTER, TA_RIGHT +from geraldo import Report, DetailBand, Label, ObjectValue, ManyElements, \ + ReportGroup, ReportBand, landscape, SubReport, BAND_WIDTH,SystemField + +from sigi.apps.relatorios.reports import ReportDefault + +from geraldo.graphics import Image + +def string_to_cm(texto): + tamanho = 0 + minEspeciais = { + 'f':0.1, + 'i':0.05, + 'j':0.05, + 'l':0.05, + 'm':0.2, + 'r':0.1, + 't':0.15, + } + maiuEspeciais = { + 'I':0.05, + 'J':0.15, + 'L':0.15, + 'P':0.15, + } + for c in texto: + if c > 'a' and c<'z': + if c in minEspeciais: + tamanho += minEspeciais[c] + else: + tamanho += 0.17 + else: + if c in maiuEspeciais: + tamanho += maiuEspeciais[c] + else: + tamanho += 0.2 + return tamanho + + + +class CasasLegislativasLabels(Report): + """ + Usage example:: + + >>> from geraldo.generators import PDFGenerator + >>> queryset = CasaLegislativa.objects.filter(municipio__uf__sigla='MG') + >>> report = LabelsReport(queryset) + >>> report.generate_by(PDFGenerator, filename='./inline-detail-report.pdf') + + """ + formato = '' + label_margin_top = 0.6 + label_margin_left = 0.2 + label_margin_right = 0.2 + largura_etiqueta = 6.9 + altura_etiqueta = 3.25 + tamanho_fonte = 6 + delta = start = 0.5 + + def __init__(self, queryset, formato): + super(CasasLegislativasLabels, self).__init__(queryset=queryset) + self.formato = formato + self.page_size = A4 + + if formato == '3x9_etiqueta': + self.margin_top = 0.25*cm + self.margin_bottom = 0.0*cm + self.margin_left = 0.2*cm + self.margin_right = 0.0*cm + self.delta = 0.3 + self.start = 0 + self.label_margin_top = 0.35 + self.label_margin_left = 0.4 + self.label_margin_right = 0.2 + else: + self.margin_top = 0.8*cm + self.margin_bottom = 0.8*cm + self.margin_left = 0.4*cm + self.margin_right = 0.4*cm + self.largura_etiqueta = 9.9 + self.altura_etiqueta = 5.6 + self.tamanho_fonte = 11 + self.label_margin_top = 0.5 + self.label_margin_left = 0.5 + self.label_margin_right = 0.5 + + calc_width = (self.largura_etiqueta-self.label_margin_left-self.label_margin_right)*cm + calc_height = lambda rows: (self.delta*rows)*cm + calc_top = lambda row: (self.label_margin_top+row*self.delta)*cm + calc_left = self.label_margin_left*cm + + my_elements = [ + Label( + text='A Sua Excelência o(a) Senhor(a):', + top=calc_top(0), left=calc_left, width=calc_width, + ), + ObjectValue( + attribute_name='presidente', + top=calc_top(1), left=calc_left, width=calc_width, + get_value=lambda instance: + unicode(instance.presidente or "").upper() + ), + ObjectValue( + attribute_name='nome', + top=calc_top(2), left=calc_left, width=calc_width, height=calc_height(2), + get_value=lambda instance: + ("Presidente da %s" % instance.nome) + ), + ObjectValue( + attribute_name='logradouro', + top=calc_top(4), left=calc_left, width=calc_width, height=calc_height(2), + get_value=lambda instance: + "%s - %s - %s." % (instance.logradouro, instance.bairro, instance.municipio), + ), + + ObjectValue( + attribute_name='cep', + top=calc_top(8), left=calc_left, width=calc_width, + get_value=lambda instance: + "CEP: %s" % instance.cep + ), + ] + self.band_detail = DetailBand( + width=(self.largura_etiqueta)*cm, + height=(self.altura_etiqueta)*cm, + elements=my_elements, + display_inline=True, + default_style={'fontName': 'Helvetica', 'fontSize': self.tamanho_fonte}) + + +class CasasLegislativasLabelsSemPresidente(CasasLegislativasLabels): + def __init__(self, queryset, formato): + super(CasasLegislativasLabelsSemPresidente, self).__init__(queryset=queryset, formato=formato) + + calc_width = (self.largura_etiqueta-self.label_margin_left-self.label_margin_right)*cm + calc_height = lambda rows: (self.delta*rows)*cm + calc_top = lambda row: (self.label_margin_top+row*self.delta)*cm + calc_left = self.label_margin_left*cm + + my_elements = [ + Label( + text='A Sua Excelência o(a) Senhor(a):', + top=calc_top(0), left=calc_left, width=calc_width, + ), + ObjectValue( + attribute_name='nome', + top=calc_top(1), left=calc_left, width=calc_width, height=calc_height(2), + get_value=lambda instance: + ("Presidente da %s" % instance.nome) + ), + ObjectValue( + attribute_name='logradouro', + top=calc_top(3), left=calc_left, width=calc_width, height=calc_height(2), + get_value=lambda instance: + "%s - %s - %s." % (instance.logradouro, instance.bairro, instance.municipio), + ), + + ObjectValue( + attribute_name='cep', + top=calc_top(8), left=calc_left, width=calc_width, + get_value=lambda instance: + "CEP: %s" % instance.cep + ), + ] + self.band_detail = DetailBand( + width=(self.largura_etiqueta)*cm, + height=(self.altura_etiqueta)*cm, + elements=my_elements, + display_inline=True, + default_style={'fontName': 'Helvetica', 'fontSize': self.tamanho_fonte}) + + +class CasasLegislativasReport(ReportDefault): + title = u'Relatório de Casas Legislativas' + height = 80*cm + page_size = landscape(A4) + + class band_page_header(ReportDefault.band_page_header): + + label_top = ReportDefault.band_page_header.label_top + label_left = [0.3,1,5.5,11,17,22] + elements = list(ReportDefault.band_page_header.elements) + + elements = [ + Image(filename= ReportDefault.band_page_header.BASE_DIR + '/media/images/logo-interlegis.jpg', + left=23.5*cm,right=1*cm,top=0.1*cm,bottom=1*cm, + width=4.2*cm,height=3*cm, + ), + Image(filename= ReportDefault.band_page_header.BASE_DIR + '/media/images/logo-senado.png', + left=1*cm,right=1*cm,top=0.1*cm,bottom=1*cm, + width=3*cm,height=3*cm, + ), + Label(text="SENADO FEDERAL",top=1*cm,left=0,width=BAND_WIDTH, + style={'fontName': 'Helvetica-Bold','fontSize':14, 'alignment': TA_CENTER} + ), + Label(text="SINTER - Secretaria Especial do Interlegis",top=1.5*cm,left=0,width=BAND_WIDTH, + style={'fontName': 'Helvetica-Bold','fontSize':13, 'alignment': TA_CENTER} + ), + SystemField( + expression='%(report_title)s',top=2.5*cm,left=0,width=BAND_WIDTH, + style={'fontName': 'Helvetica-Bold','fontSize':14, 'alignment': TA_CENTER} + ), + Label( + text="UF", + left=label_left[0]*cm, + top=label_top, + ), + Label( + text="Municipio", + left=label_left[1]*cm, + top=label_top, + ), + Label( + text="Presidente", + left=label_left[2]*cm, + top=label_top, + ), + Label( + text="Endereço", + left=label_left[3]*cm, + top=label_top, + ), + Label( + text="Endereço na Internet", + left=label_left[4]*cm, + top=label_top, + ), + Label( + text="Email", + left=label_left[5]*cm, + top=label_top, + ), + + + ] + + + + class band_page_footer(ReportDefault.band_page_footer): + pass + + class band_detail(ReportDefault.band_detail): + + label_left = [0.3,1,5.5,11,17,22] + + elements=[ + ObjectValue( + attribute_name='municipio.uf.sigla', + left=label_left[0]*cm, + width=1*cm, + ), + ObjectValue( + attribute_name='municipio.nome', + left=label_left[1]*cm, + ), + ObjectValue( + attribute_name='presidente', + left=label_left[2]*cm, + ), + ObjectValue( + attribute_name='logradouro', + left=label_left[3]*cm, + get_value=lambda instance: instance.logradouro + ' - '+ instance.bairro, + ), + ObjectValue( + attribute_name='pagina_web', + left=label_left[4]*cm, + ), + ObjectValue( + attribute_name='email', + left=label_left[5]*cm, + ), + + ] + + groups = [ + ReportGroup(attribute_name='municipio.uf', + band_header=ReportBand( + height=0.7*cm, + elements= [ + ObjectValue(attribute_name='municipio.uf') + ], + borders={'top': True}, + ) + ) + ] + + +class CasasSemConvenioReport(CasasLegislativasReport): + title = u'Relatório de Casas Legislativas sem Convênio' + +class InfoCasaLegislativa(ReportDefault): + title = u'Casa legislativa' + class band_summary(ReportBand): + pass + class band_page_footer(ReportBand): + height = 1*cm + + elements = [ + SystemField(expression=u'%(now:%d/%m/%Y)s às %(now:%H:%M)s', top=0.3*cm), + ] + + class band_detail(ReportDefault.band_detail): + + posicao_left = [ + 0,1.3, #Tipo + 0,1.8, #Regiao + 5.5,6.8, #U.F. + 0,2.3, #Municipio + 0,2.4, #Endereco + 0,1.6, #Bairro + 0,1.3, #CEP + 0,1.6, #CNPJ + 0,2.3, #Telefone + 0,2.7, #Presidente + ] + posicao_top = [ + 0.5, #Tipo + 1.3, #Regiao + 1.3, #U.F. + 2.1, #Municipio + 2.9, #Logradouro + 3.7, #Bairro + 4.5, #CEP + 5.3, #CNPJ + 6.1, #Telefone + 6.9, #Presidente + ] + + height=30*cm + + display_inline = True + default_style = {'fontName': 'Helvetica', 'fontSize':14} + + elements = [ + + Label( + text="Tipo: ", + left=posicao_left[0]*cm, + top=posicao_top[0]*cm, + ), + ObjectValue( + attribute_name='tipo.nome', + left=posicao_left[1]*cm, + top=posicao_top[0]*cm, + width=6*cm, + ), + Label( + text="Região: ", + left=posicao_left[2]*cm, + top=posicao_top[1]*cm, + ), + ObjectValue( + attribute_name='municipio.uf.regiao', + left=posicao_left[3]*cm, + top=posicao_top[1]*cm, + get_value=lambda instance: + {'SL': 'Sul','SD': 'Sudeste','CO': 'Centro-Oeste','NE': 'Nordeste','NO': 'Norte',} + [instance.municipio.uf.regiao] + ), + Label( + text="U.F.: ", + left=posicao_left[4]*cm, + top=posicao_top[2]*cm, + ), + ObjectValue( + attribute_name='municipio.uf', + left=posicao_left[5]*cm, + top=posicao_top[2]*cm, + ), + Label( + text="Município: ", + left=posicao_left[6]*cm, + top=posicao_top[3]*cm, + ), + ObjectValue( + attribute_name='municipio.nome', + left=posicao_left[7]*cm, + top=posicao_top[3]*cm, + width=20*cm, + ), + # Linha 3 + Label( + text="Endereço: ", + left=posicao_left[8]*cm, + top=posicao_top[4]*cm, + ), + ObjectValue( + attribute_name='logradouro', + left=posicao_left[9]*cm, + top=posicao_top[4]*cm, + width=20*cm, + ), + Label( + text="Bairro: ", + left=posicao_left[10]*cm, + top=posicao_top[5]*cm, + ), + ObjectValue( + attribute_name='bairro', + left=posicao_left[11]*cm, + top=posicao_top[5]*cm, + ), + Label( + text="CEP: ", + left=posicao_left[12]*cm, + top=posicao_top[6]*cm, + ), + ObjectValue( + attribute_name='cep', + left=posicao_left[13]*cm, + top=posicao_top[6]*cm, + ), + Label( + text="CNPJ: ", + left=posicao_left[14]*cm, + top=posicao_top[7]*cm, + ), + ObjectValue( + attribute_name='cnpj', + left=posicao_left[15]*cm, + top=posicao_top[7]*cm, + ), + Label( + text="Telefone: ", + left=posicao_left[16]*cm, + top=posicao_top[8]*cm, + ), + ObjectValue( + attribute_name='telefone', + left=posicao_left[17]*cm, + top=posicao_top[8]*cm, + ), + Label( + text="Presidente: ", + left=posicao_left[18]*cm, + top=posicao_top[9]*cm, + ), + ObjectValue( + attribute_name='presidente', + left=posicao_left[19]*cm, + top=posicao_top[9]*cm, + width=20*cm, + ), + ] + # Telefones + tel_top = 2*cm + tel_left = [0,3,5] + # Contato + cont_top = 2*cm + cont_left = [0,6,9] + # Convenios + convenio_top = 2*cm + convenio_left = [0,1.8,4.5,8,10.5,13,15.5,18] + subreports = [ + # Telefones + SubReport( + queryset_string = '%(object)s.telefones.all()', + band_header = ReportBand( + default_style = {'fontName': 'Helvetica', 'fontSize':12 }, + height=2.5*cm, + elements = [ + Label( + text="Telefone(s)", + style = {'fontSize':14,'alignment': TA_CENTER}, + width=BAND_WIDTH, + top=1*cm, + ), + Label(text="Número",left=tel_left[0]*cm,top=tel_top), + Label(text="Tipo",left=tel_left[1]*cm,top=tel_top), + Label(text="Nota",left=tel_left[2]*cm,top=tel_top), + ], + borders = {'bottom': True}, + ), + band_detail = ReportBand( + default_style = {'fontName': 'Helvetica', 'fontSize':11}, + height=0.5*cm, + elements= [ + ObjectValue(attribute_name='__unicode__',left=tel_left[0]*cm), + ObjectValue(attribute_name='tipo',left=tel_left[1]*cm, + get_value = lambda instance: + {'F':'Fixo','M':u'Móvel','X':'Fax','I':'Indefinido'}[instance.tipo], + ), + ObjectValue(attribute_name='nota',left=tel_left[2]*cm), + ], + #borders = {'all':True}, + ), + ), + #Contatos + SubReport( + queryset_string = '%(object)s.funcionario_set.all()', + band_header = ReportBand( + default_style = {'fontName': 'Helvetica', 'fontSize':12 }, + height=2.5*cm, + elements = [ + Label( + text="Contato(s)", + style = {'fontSize':14,'alignment': TA_CENTER}, + width=BAND_WIDTH, + top=1*cm, + ), + Label(text="Nome",left=cont_left[0]*cm,top=cont_top), + Label(text="Nota",left=cont_left[1]*cm,top=cont_top), + Label(text="E-mail",left=cont_left[2]*cm,top=cont_top), + ], + borders = {'bottom': True,'top':True}, + ), + band_detail = ReportBand( + default_style = {'fontName': 'Helvetica', 'fontSize':11}, + height=0.5*cm, + elements= [ + ObjectValue(attribute_name='nome',left=cont_left[0]*cm), + ObjectValue(attribute_name='nota',left=cont_left[1]*cm), + ObjectValue(attribute_name='email',left=cont_left[2]*cm), + ], + #borders = {'all':True}, + ), + ), + #Convenios + SubReport( + queryset_string = '%(object)s.convenio_set.all()', + band_header = ReportBand( + default_style = {'fontName': 'Helvetica', 'fontSize':12 }, + height=2.5*cm, + elements=[ + Label( + text="Convênio(s)", + style = {'fontSize':14,'alignment': TA_CENTER}, + width=BAND_WIDTH, + top=1*cm, + ), + Label(text="Projeto",left=convenio_left[0]*cm,top=convenio_top), + Label(text="Nº Convenio",left=convenio_left[1]*cm,top=convenio_top), + Label(text="Nº Processo SF",left=convenio_left[2]*cm,top=convenio_top), + Label(text="Adesão",left=convenio_left[3]*cm,top=convenio_top), + Label(text="Convênio",left=convenio_left[4]*cm,top=convenio_top), + Label(text="Equipada",left=convenio_left[5]*cm,top=convenio_top), + Label(text="Data D.O.",left=convenio_left[6]*cm,top=convenio_top), + ], + borders = {'bottom': True} + ), + band_detail = ReportBand( + default_style = {'fontName': 'Helvetica', 'fontSize':11}, + height=0.5*cm, + elements=[ + ObjectValue(attribute_name='projeto.sigla',left=convenio_left[0]*cm), + ObjectValue(attribute_name='num_convenio',left=convenio_left[1]*cm), + ObjectValue(attribute_name='num_processo_sf',left=convenio_left[2]*cm), + ObjectValue(attribute_name='data_adesao',left=convenio_left[3]*cm, + get_value=lambda instance: + instance.data_adesao.strftime('%d/%m/%Y') if instance.data_adesao != None else '-' + ), + ObjectValue(attribute_name='data_retorno_assinatura',left=convenio_left[4]*cm, + get_value=lambda instance: + instance.data_retorno_assinatura.strftime('%d/%m/%Y') if instance.data_retorno_assinatura != None else '-' + ), + ObjectValue(attribute_name='data_termo_aceite',left=convenio_left[5]*cm, + get_value=lambda instance: + instance.data_termo_aceite.strftime('%d/%m/%Y') if instance.data_termo_aceite != None else '-' + ), + ObjectValue(attribute_name='data_pub_diario',left=convenio_left[6]*cm, + get_value=lambda instance: + instance.data_pub_diario.strftime('%d/%m/%Y') if instance.data_pub_diario != None else '-' + ), + ], + #borders = {'all':True}, + ), + ) + ] + + diff --git a/sigi/apps/casas/templates/casas/carrinho.html b/sigi/apps/casas/templates/casas/carrinho.html new file mode 100644 index 0000000..9c2ff84 --- /dev/null +++ b/sigi/apps/casas/templates/casas/carrinho.html @@ -0,0 +1,234 @@ +{% extends "admin/carrinho.html" %} +{% load admin_list i18n %} +{% block extrastyle %} + {{ block.super }} + {% include "admin/tabs_style.html" %} + + +{% endblock %} + +{% block title %}Casas legislativas no Carrinho | SIGI{% endblock %} +{% block content_title %}

Casas Legislativas no Carrinho

{% endblock %} + +{% block mensagem%} + +{% endblock %} + +{% block action %}deleta_itens_carrinho{% endblock %} + +{% block tabela %} + + + + {%if not carIsEmpty%} + + {% endif %} + + + + + + + + {% for casa in paginas.object_list %} + + {%if not carIsEmpty%} + + {% endif %} + + + + + + {% endfor %} + +
+ NomeMunicípioPresidenteEndereço
{{casa.nome}}{{casa.municipio}}{{casa.presidente|default_if_none:""}}{{casa.logradouro}}
+{% endblock %} + +{% block botoes %} +
+ + +
+
+
Tipo de etiqueta +
    +
  • +
  • +
  • +
+
+
Formato da Etiqueta +
    +
  • +
  • + +
+
+
    +
  • +
+
+ +
+
+
+
Tipo de relatório +
    +
  • +
  • +
+
+
    +
  • +
+
+
+
+
+
Escolha os atributos para exportar +
    +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
+
+ +
Contato Interlegis +
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
+
+
    +
  • +
+
+
+
+
+
Formato da Etiqueta +
    +
  • +
  • +
+
+
    +
  • +
+
+ +
+
+ +{% endblock %} diff --git a/sigi/apps/casas/templates/casas/change_form.html b/sigi/apps/casas/templates/casas/change_form.html new file mode 100644 index 0000000..b59cb99 --- /dev/null +++ b/sigi/apps/casas/templates/casas/change_form.html @@ -0,0 +1,14 @@ +{% extends "admin/change_form.html" %} +{% load i18n reporting_tags %} + +{% block object-tools %} +{% if change %}{% if not is_popup %} + +{% endif %}{% endif %} +{% endblock %} diff --git a/sigi/apps/casas/templates/casas/change_list.html b/sigi/apps/casas/templates/casas/change_list.html new file mode 100644 index 0000000..5f90262 --- /dev/null +++ b/sigi/apps/casas/templates/casas/change_list.html @@ -0,0 +1,15 @@ +{% extends "admin/change_list.html" %} +{% load admin_list i18n reporting_tags %} + +{% block object-tools %} + + +{% endblock %} diff --git a/sigi/apps/casas/views.py b/sigi/apps/casas/views.py new file mode 100644 index 0000000..d900f91 --- /dev/null +++ b/sigi/apps/casas/views.py @@ -0,0 +1,377 @@ +# -*- coding: utf-8 -*- +from django.http import HttpResponse, HttpResponseRedirect +from django.shortcuts import render_to_response +from geraldo.generators import PDFGenerator + +from sigi.apps.casas.models import CasaLegislativa, Funcionario +from sigi.apps.casas.reports import CasasLegislativasLabels +from sigi.apps.casas.reports import CasasLegislativasLabelsSemPresidente +from sigi.apps.casas.reports import CasasLegislativasReport +from sigi.apps.casas.reports import CasasSemConvenioReport +from sigi.apps.casas.reports import InfoCasaLegislativa +from sigi.apps.parlamentares.models import Parlamentar +from sigi.apps.parlamentares.reports import ParlamentaresLabels + +from django.core.paginator import Paginator, InvalidPage, EmptyPage + +from django.conf import settings + +import csv + +def query_ordena(qs,o,ot): + list_display = ('nome','municipio','logradouro') + + aux = list_display[(int(o)-1)] + if ot =='asc': + qs = qs.order_by(aux) + else: + qs = qs.order_by("-"+aux) + return qs + +def get_for_qs(get,qs): + """ + Verifica atributos do GET e retorna queryset correspondente + """ + kwargs = {} + for k,v in get.iteritems(): + if not (k == 'page' or k == 'pop' or k == 'q'): + if not k == 'o': + if k == "ot": + qs = query_ordena(qs,get["o"],get["ot"]) + else: + kwargs[str(k)] = v + qs = qs.filter(**kwargs) + return qs + +def carrinhoOrGet_for_qs(request): + """ + Verifica se existe casas na sessão se não verifica get e retorna qs correspondente. + """ + if request.session.has_key('carrinho_casas'): + ids = request.session['carrinho_casas'] + qs = CasaLegislativa.objects.filter(pk__in=ids) + else: + qs = CasaLegislativa.objects.all() + if request.GET: + qs = get_for_qs(request.GET,qs) + return qs + +def adicionar_casas_carrinho(request,queryset=None,id=None): + if request.method == 'POST': + ids_selecionados = request.POST.getlist('_selected_action') + if not request.session.has_key('carrinho_casas'): + request.session['carrinho_casas'] = ids_selecionados + else: + lista = request.session['carrinho_casas'] + # Verifica se id já não está adicionado + for id in ids_selecionados: + if not id in lista: + lista.append(id) + request.session['carrinho_casas'] = lista + + + +def visualizar_carrinho(request): + + qs = carrinhoOrGet_for_qs(request) + + paginator = Paginator(qs, 100) + + # Make sure page request is an int. If not, deliver first page. + # Esteja certo de que o `page request` é um inteiro. Se não, mostre a primeira página. + try: + page = int(request.GET.get('page', '1')) + except ValueError: + page = 1 + + # Se o page request (9999) está fora da lista, mostre a última página. + try: + paginas = paginator.page(page) + except (EmptyPage, InvalidPage): + paginas = paginator.page(paginator.num_pages) + + carrinhoIsEmpty = not(request.session.has_key('carrinho_casas')) + + return render_to_response( + 'casas/carrinho.html', + { + "ADMIN_MEDIA_PREFIX":settings.ADMIN_MEDIA_PREFIX, + 'MEDIA_URL':settings.MEDIA_URL, + 'carIsEmpty':carrinhoIsEmpty, + 'paginas':paginas, + 'query_str':'?'+request.META['QUERY_STRING'] + } + ) + +def excluir_carrinho(request): + if request.session.has_key('carrinho_casas'): + del request.session['carrinho_casas'] + return HttpResponseRedirect('.') + +def deleta_itens_carrinho(request): + if request.method == 'POST': + ids_selecionados = request.POST.getlist('_selected_action') + if request.session.has_key('carrinho_casas'): + lista = request.session['carrinho_casas'] + for item in ids_selecionados: + lista.remove(item) + if lista: + request.session['carrinho_casas'] = lista + else: + del lista; + del request.session['carrinho_casas'] + + return HttpResponseRedirect('.') + + + + +def labels_report(request, id=None, tipo=None, formato='3x9_etiqueta'): + """ TODO: adicionar suporte para resultado de pesquisa do admin. + """ + + if request.POST: + if request.POST.has_key('tipo_etiqueta'): + tipo = request.POST['tipo_etiqueta'] + if request.POST.has_key('tamanho_etiqueta'): + formato = request.POST['tamanho_etiqueta'] + + if tipo =='sem_presidente': + return labels_report_sem_presidente(request, id, formato) + + if id: + qs = CasaLegislativa.objects.filter(pk=id) + else: + qs = carrinhoOrGet_for_qs(request) + + if not qs: + return HttpResponseRedirect('../') + + response = HttpResponse(mimetype='application/pdf') + response['Content-Disposition'] = 'attachment; filename=casas.pdf' + report = CasasLegislativasLabels(queryset=qs, formato=formato) + report.generate_by(PDFGenerator, filename=response) + + return response + +def labels_report_parlamentar(request, id=None, formato='3x9_etiqueta'): + """ TODO: adicionar suporte para resultado de pesquisa do admin. + """ + + if request.POST: + if request.POST.has_key('tamanho_etiqueta'): + formato = request.POST['tamanho_etiqueta'] + + + if id: + legislaturas = [c.legislatura_set.latest('data_inicio') for c in CasaLegislativa.objects.filter(pk__in=id, legislatura__id__isnull=False).distinct()] + mandatos = reduce(lambda x, y: x | y, [l.mandato_set.all() for l in legislaturas]) + parlamentares = [m.parlamentar for m in mandatos] + qs = parlamentares + + else: + qs = carrinhoOrGet_for_parlamentar_qs(request) + + if not qs: + return HttpResponseRedirect('../') + + response = HttpResponse(mimetype='application/pdf') + response['Content-Disposition'] = 'attachment; filename=casas.pdf' + report = ParlamentaresLabels(queryset=qs, formato=formato) + report.generate_by(PDFGenerator, filename=response) + + return response + +def carrinhoOrGet_for_parlamentar_qs(request): + """ + Verifica se existe parlamentares na sessão se não verifica get e retorna qs correspondente. + """ + if request.session.has_key('carrinho_casas'): + ids = request.session['carrinho_casas'] + legislaturas = [c.legislatura_set.latest('data_inicio') for c in CasaLegislativa.objects.filter(pk__in=ids, legislatura__id__isnull=False).distinct()] + mandatos = reduce(lambda x, y: x | y, [l.mandato_set.all() for l in legislaturas]) + parlamentares = [m.parlamentar for m in mandatos] + qs = parlamentares + else: + legislaturas = [c.legislatura_set.latest('data_inicio') for c in CasaLegislativa.objects.all().distinct()] + mandatos = reduce(lambda x, y: x | y, [l.mandato_set.all() for l in legislaturas]) + parlamentares = [m.parlamentar for m in mandatos] + qs = parlamentares + if request.GET: + qs = get_for_qs(request.GET,qs) + return qs + +def labels_report_sem_presidente(request, id=None, formato='2x5_etiqueta'): + """ TODO: adicionar suporte para resultado de pesquisa do admin. + """ + + if id: + qs = CasaLegislativa.objects.filter(pk=id) + else: + qs = carrinhoOrGet_for_qs(request) + + if not qs: + return HttpResponseRedirect('../') + + response = HttpResponse(mimetype='application/pdf') + response['Content-Disposition'] = 'attachment; filename=casas.pdf' + report = CasasLegislativasLabelsSemPresidente(queryset=qs, formato=formato) + report.generate_by(PDFGenerator, filename=response) + + return response + + +def report(request, id=None,tipo=None): + + if request.POST: + if request.POST.has_key('tipo_relatorio'): + tipo = request.POST['tipo_relatorio'] + + if tipo =='completo': + return report_complete(request, id) + + + if id: + qs = CasaLegislativa.objects.filter(pk=id) + else: + qs = carrinhoOrGet_for_qs(request) + + if not qs: + return HttpResponseRedirect('../') + + #qs.order_by('municipio__uf','nome') + response = HttpResponse(mimetype='application/pdf') + response['Content-Disposition'] = 'attachment; filename=casas.pdf' + report = CasasLegislativasReport(queryset=qs) + report.generate_by(PDFGenerator, filename=response) + return response + +def report_complete(request,id=None): + + if id: + qs = CasaLegislativa.objects.filter(pk=id) + else: + qs = carrinhoOrGet_for_qs(request) + + if not qs: + return HttpResponseRedirect('../') + + response = HttpResponse(mimetype='application/pdf') + response['Content-Disposition'] = 'attachment; filename=casas.pdf' + + # Gera um relatorio para cada casa e concatena os relatorios + cont = 0 + canvas = None + quant = qs.count() + if quant > 1: + for i in qs: + cont += 1 + #queryset deve ser uma lista + lista = (i,) + if cont == 1: + report = InfoCasaLegislativa(queryset=lista) + canvas = report.generate_by(PDFGenerator, return_canvas=True,filename=response,) + else: + report = InfoCasaLegislativa(queryset=lista) + if cont == quant: + report.generate_by(PDFGenerator, canvas=canvas) + else: + canvas = report.generate_by(PDFGenerator, canvas=canvas, return_canvas=True) + else: + report = InfoCasaLegislativa(queryset=qs) + report.generate_by(PDFGenerator,filename=response) + + return response + +def casas_sem_convenio_report(request): + qs = CasaLegislativa.objects.filter(convenio=None).order_by('municipio__uf','nome') + + if request.GET: + qs = get_for_qs(request.GET,qs) + if not qs: + return HttpResponseRedirect('../') + + response = HttpResponse(mimetype='application/pdf') + report = CasasSemConvenioReport(queryset=qs) + report.generate_by(PDFGenerator, filename=response) + return response + + + +def export_csv(request): + response = HttpResponse(mimetype='text/csv') + response['Content-Disposition'] = 'attachment; filename=casas.csv' + + writer = csv.writer(response) + + casas = carrinhoOrGet_for_qs(request) + if not casas or not request.POST: + return HttpResponseRedirect('../') + + atributos = request.POST.getlist("itens_csv_selected") + atributos2 = [s.encode("utf-8") for s in atributos] + + try: + atributos2.insert(atributos2.index('Município'), u'UF') + except ValueError: + pass + + writer.writerow(atributos2) + + for casa in casas: + lista = [] + contatos = casa.funcionario_set.filter(setor="contato_interlegis") + for atributo in atributos: + if u"CNPJ" == atributo: + lista.append(casa.cnpj.encode("utf-8")) + elif u"Código IBGE" == atributo: + lista.append(str(casa.municipio.codigo_ibge).encode("utf-8")) + elif u"Código TSE" == atributo: + lista.append(str(casa.municipio.codigo_tse).encode("utf-8")) + elif u"Nome" == atributo: + lista.append(casa.nome.encode("utf-8")) + elif u"Município" == atributo: + lista.append(unicode(casa.municipio.uf.sigla).encode("utf-8")) + lista.append(unicode(casa.municipio.nome).encode("utf-8")) + elif u"Presidente" == atributo: + #TODO: Esse encode deu erro em 25/04/2012. Comentei para que o usuário pudesse continuar seu trabalho + # É preciso descobrir o porque do erro e fazer a correção definitiva. +# lista.append(str(casa.presidente or "").encode("utf-8")) + lista.append(str(casa.presidente or "")) + elif u"Logradouro" == atributo: + lista.append(casa.logradouro.encode("utf-8")) + elif u"Bairro" == atributo: + lista.append(casa.bairro.encode("utf-8")) + elif u"CEP" == atributo: + lista.append(casa.cep.encode("utf-8")) + elif u"Telefone" == atributo: + lista.append(str(casa.telefone or "")) + elif u"Página web" == atributo: + lista.append(casa.pagina_web.encode("utf-8")) + elif u"Email" == atributo: + lista.append(casa.email.encode("utf-8")) + elif u"Número de parlamentares" == atributo: + lista.append(casa.total_parlamentares) + elif u"Última alteração de endereco" == atributo: + lista.append(casa.ult_alt_endereco) + elif u"Nome contato" == atributo: + if contatos and contatos[0].nome: + lista.append(contatos[0].nome.encode("utf-8")) + else: + lista.append('') + elif u"Cargo contato" == atributo: + if contatos and contatos[0].cargo: + lista.append(contatos[0].cargo.encode("utf-8")) + else: + lista.append('') + elif u"Email contato" == atributo: + if contatos and contatos[0].email: + lista.append(contatos[0].email.encode("utf-8")) + else: + lista.append('') + else: + pass + + writer.writerow(lista) + + return response diff --git a/sigi/apps/convenios/__init__.py b/sigi/apps/convenios/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sigi/apps/convenios/admin.py b/sigi/apps/convenios/admin.py new file mode 100644 index 0000000..b66d7ce --- /dev/null +++ b/sigi/apps/convenios/admin.py @@ -0,0 +1,139 @@ +# -*- coding: utf-8 -*- +from django.contrib import admin +from django.contrib.admin.views.main import ChangeList +from sigi.apps.convenios.models import Projeto, Convenio, EquipamentoPrevisto, Anexo, Tramitacao, UnidadeAdministrativa +from sigi.apps.casas.models import CasaLegislativa +from sigi.apps.servicos.models import Servico +from django.http import HttpResponse, HttpResponseRedirect +from sigi.apps.convenios.reports import ConvenioReport +from sigi.apps.utils import queryset_ascii +from geraldo.generators import PDFGenerator + +from sigi.apps.convenios.views import adicionar_convenios_carrinho + +class TramitacaoInline(admin.TabularInline): + model = Tramitacao + extra = 1 + +class AnexosInline(admin.TabularInline): + model = Anexo + extra = 2 + exclude = ['data_pub',] + +class EquipamentoPrevistoInline(admin.TabularInline): + model = EquipamentoPrevisto + extra = 2 + raw_id_fields = ('equipamento',) + +class AnexoAdmin(admin.ModelAdmin): + date_hierarchy = 'data_pub' + exclude = ['data_pub',] + list_display = ('arquivo', 'descricao', 'data_pub', 'convenio') + raw_id_fields = ('convenio',) + search_fields = ('descricao', 'convenio__id', 'arquivo', + 'convenio__casa_legislativa__nome') + +class ConvenioAdmin(admin.ModelAdmin): + change_list_template = 'convenios/change_list.html' + fieldsets = ( + (None, + {'fields': ('casa_legislativa', 'num_processo_sf','num_convenio','projeto','observacao')} + ), + ('Datas', + {'fields': ('data_adesao', 'data_retorno_assinatura', + 'data_termo_aceite', 'data_pub_diario', + 'data_devolucao_via', 'data_postagem_correio')} + ), + ('Datas - Convenio sem assinatura', + {'fields': ('data_devolucao_sem_assinatura','data_retorno_sem_assinatura',)} + ), + ) + actions = ['adicionar_convenios'] + inlines = (TramitacaoInline, AnexosInline, EquipamentoPrevistoInline) + list_display = ('num_convenio', 'casa_legislativa', 'get_uf', + 'data_adesao','data_retorno_assinatura','data_pub_diario','data_termo_aceite', + 'projeto', + ) + list_display_links = ('num_convenio','casa_legislativa',) + list_filter = ('projeto','casa_legislativa','conveniada', 'equipada') + #date_hierarchy = 'data_adesao' + ordering = ('casa_legislativa__tipo__sigla','casa_legislativa__municipio__uf','casa_legislativa') + raw_id_fields = ('casa_legislativa',) + queryset = queryset_ascii + search_fields = ('id', 'search_text',#'casa_legislativa__nome', + 'num_processo_sf','num_convenio') + + def get_uf(self, obj): + return obj.casa_legislativa.municipio.uf.sigla + get_uf.short_description = 'UF' + get_uf.admin_order_field = 'casa_legislativa__municipio__uf__sigla' + + def changelist_view(self, request, extra_context=None): + import re + request.GET._mutable=True + if 'data_retorno_assinatura__gte' in request.GET: + value = request.GET.get('data_retorno_assinatura__gte','') + if value == '': + del request.GET['data_retorno_assinatura__gte'] + elif re.match('^\d*$', value): # Year only + request.GET['data_retorno_assinatura__gte'] = "%s-01-01" % value #Complete with january 1st + elif re.match('^\d*\D\d*$', value): # Year and month + request.GET['data_retorno_assinatura__gte'] = '%s-01' % value #Complete with 1st day of month + if 'data_retorno_assinatura__lte' in request.GET: + value = request.GET.get('data_retorno_assinatura__lte','') + if value == '': + del request.GET['data_retorno_assinatura__lte'] + elif re.match('^\d*$', value): # Year only + request.GET['data_retorno_assinatura__lte'] = "%s-01-01" % value #Complete with january 1st + elif re.match('^\d*\D\d*$', value): # Year and month + request.GET['data_retorno_assinatura__lte'] = '%s-01' % value #Complete with 1st day of month + request.GET._mutable=False + + return super(ConvenioAdmin, self).changelist_view( + request, + extra_context={'query_str': '?' + request.META['QUERY_STRING']} + ) + def relatorio(self, request, queryset): + #queryset.order_by('casa_legislativa__municipio__uf') + response = HttpResponse(mimetype='application/pdf') + report = ConvenioReport(queryset=queryset) + report.generate_by(PDFGenerator, filename=response) + return response + relatorio.short_description = u'Exportar convênios selecionados para PDF' + + def adicionar_convenios(self, request, queryset): + if request.session.has_key('carrinho_convenios'): + q1 = len(request.session['carrinho_convenios']) + else: + q1 = 0 + adicionar_convenios_carrinho(request,queryset=queryset) + q2 = len(request.session['carrinho_convenios']) + quant = q2 - q1 + if quant: + self.message_user(request,str(q2-q1)+" Convênios adicionados no carrinho" ) + else: + self.message_user(request,"Os Convênios selecionados já foram adicionadas anteriormente" ) + return HttpResponseRedirect('.') + adicionar_convenios.short_description = u"Armazenar convênios no carrinho para exportar" + + def get_actions(self, request): + actions = super(ConvenioAdmin, self).get_actions(request) + del actions['delete_selected'] + return actions + + def lookup_allowed(self, lookup, value): + return super(ConvenioAdmin, self).lookup_allowed(lookup, value) or \ + lookup in ['casa_legislativa__municipio__uf__codigo_ibge__exact'] + +class EquipamentoPrevistoAdmin(admin.ModelAdmin): + list_display = ('convenio', 'equipamento', 'quantidade') + list_display_links = ('convenio', 'equipamento') + ordering = ('convenio', 'equipamento') + raw_id_fields = ('convenio', 'equipamento') + search_fields = ('convenio__id', 'equipamento__fabricante__nome', + 'equipamento__modelo__modelo', 'equipamento__modelo__tipo__tipo') + +#admin.site.register(Projeto) +admin.site.register(Convenio, ConvenioAdmin) +#admin.site.register(CasaLegislativa) +admin.site.register(EquipamentoPrevisto, EquipamentoPrevistoAdmin) diff --git a/sigi/apps/convenios/models.py b/sigi/apps/convenios/models.py new file mode 100644 index 0000000..f89ce49 --- /dev/null +++ b/sigi/apps/convenios/models.py @@ -0,0 +1,188 @@ +# -*- coding: utf-8 -*- +from datetime import datetime +from django.db import models +from django.contrib.contenttypes import generic +from sigi.apps.utils import SearchField + +class Projeto(models.Model): + """ Modelo para representar os projetos do programa + Interlegis + """ + nome = models.CharField(max_length=50) + sigla = models.CharField(max_length=10) + + def __unicode__(self): + return self.sigla + +class Convenio(models.Model): + """ Modelo que representa um convênio do Interlegis + com uma Casa Legislativa. + + Uma Casa Legislativa pode não ter um convênio e sim + apenas uma adesão com o Interlegis, isto é, + não tem compromissos direto com o Interlegis apenas + um pacto de colaboração entre as partes + """ + casa_legislativa = models.ForeignKey( + 'casas.CasaLegislativa', + verbose_name='Casa Legislativa' + ) + # campo de busca em caixa baixa e sem acentos + search_text = SearchField(field_names=['casa_legislativa']) + casa_legislativa.convenio_uf_filter = True + casa_legislativa.convenio_cl_tipo_filter = True + projeto = models.ForeignKey( + Projeto + ) + # numero designado pelo Senado Federal para o convênio + num_processo_sf = models.CharField( + 'número do processo SF (Senado Federal)', + max_length=20, + blank=True, + help_text='Formatos:
Antigo: XXXXXX/XX-X.
SIGAD: XXXXX.XXXXXX/XXXX-XX' + ) + num_convenio = models.CharField( + 'número do convênio', + max_length=10, + blank=True + ) + data_adesao = models.DateField( + 'Aderidas', + null=True, + blank=True, + ) + data_retorno_assinatura = models.DateField( + 'Conveniadas', + null=True, + blank=True, + help_text='Convênio firmado.' + ) + data_pub_diario = models.DateField( + 'data da publicação no Diário Oficial', + null=True, + blank=True + ) + data_termo_aceite = models.DateField( + 'Equipadas', + null=True, + blank=True, + help_text='Equipamentos recebidos.' + ) + data_devolucao_via = models.DateField( + 'data de devolução da via', + null=True, + blank=True, + help_text=u'Data de devolução da via do convênio à Câmara Municipal.' + ) + data_postagem_correio = models.DateField( + 'data postagem correio', + null=True, + blank=True, + ) + data_devolucao_sem_assinatura = models.DateField( + 'data de devolução por falta de assinatura', + null=True, + blank=True, + help_text=u'Data de devolução por falta de assinatura', + ) + data_retorno_sem_assinatura = models.DateField( + 'data do retorno sem assinatura', + null=True, + blank=True, + help_text=u'Data do retorno do convênio sem assinatura', + ) + observacao = models.CharField( + null=True, + blank=True, + max_length=100, + ) + conveniada = models.BooleanField() + equipada = models.BooleanField() + + def save(self, *args, **kwargs): + self.conveniada = self.data_retorno_assinatura!=None + self.equipada = self.data_termo_aceite!=None + super(Convenio, self).save(*args, **kwargs) + + + class Meta: + get_latest_by = 'id' + ordering = ('id',) + verbose_name = u'convênio' + + def __unicode__(self): + if self.data_retorno_assinatura != None: + return u"Convênio nº %s - projeto %s, em %s" % (self.num_convenio, self.projeto.sigla, self.data_retorno_assinatura) + else: + return u"Adesão ao projeto %s, em %s" % (self.projeto.sigla, self.data_adesao) + +class EquipamentoPrevisto(models.Model): + """ Modelo utilizado para registrar os equipamentos + disponibilizados para as Casas Legislativas + (foi usado na prmeira etapa do programa) + """ + convenio = models.ForeignKey(Convenio, verbose_name=u'convênio') + equipamento = models.ForeignKey('inventario.Equipamento') + quantidade = models.PositiveSmallIntegerField(default=1) + + class Meta: + verbose_name = 'equipamento previsto' + verbose_name_plural = 'equipamentos previstos' + + def __unicode__(self): + return u'%s %s(s)' % (self.quantidade, self.equipamento) + +class Anexo(models.Model): + """ Modelo para giardar os documentos gerados + no processo de convênio + """ + convenio = models.ForeignKey(Convenio, verbose_name=u'convênio') + # caminho no sistema para o documento anexo + arquivo = models.FileField(upload_to='apps/convenios/anexo/arquivo',) + descricao = models.CharField('descrição', max_length='70') + data_pub = models.DateTimeField( + 'data da publicação do anexo', + default=datetime.now + ) + + class Meta: + ordering = ('-data_pub',) + + def __unicode__(self): + return unicode("%s publicado em %s" % (self.descricao, self.data_pub)) + +class UnidadeAdministrativa(models.Model): + """ Modelo para representar uma Unidade Administrativa + que pode ser um servivo do próprio Interlegis, assim como + uma unidade do Senado Federal + """ + sigla = models.CharField(max_length='10') + nome = models.CharField(max_length='100') + + def __unicode__(self): + return unicode(self.sigla) + + +class Tramitacao(models.Model): + """ Modelo para registrar as vias do processo de convênio e a Unidade + responsável pelo tramite (ex. colher assinaturas do secretário do senado) + """ + convenio = models.ForeignKey(Convenio, verbose_name=u'convênio') + unid_admin = models.ForeignKey(UnidadeAdministrativa, verbose_name=u'Unidade Administrativa') + data = models.DateField() + observacao = models.CharField( + 'observação', + max_length='512', + null=True, + blank=True, + ) + + class Meta: + verbose_name_plural = u'Tramitações' + + def __unicode__(self): + if self.observacao: + return unicode("%s em %s (%s)" % (self.unid_admin, self.data, self.observacao)) + else: + return unicode("%s em %s" % (self.unid_admin, self.data)) + diff --git a/sigi/apps/convenios/reports.py b/sigi/apps/convenios/reports.py new file mode 100644 index 0000000..36dd7a4 --- /dev/null +++ b/sigi/apps/convenios/reports.py @@ -0,0 +1,316 @@ +# -*- coding: utf-8 -*- +import os +from ctypes import alignment +from operator import attrgetter +from geraldo import Report, ReportBand, ObjectValue, DetailBand, Label, \ + landscape,SystemField, BAND_WIDTH,ReportGroup, \ + FIELD_ACTION_SUM, FIELD_ACTION_COUNT, FIELD_ACTION_AVG +from geraldo.graphics import Image + +from reportlab.lib.units import cm +from reportlab.lib.pagesizes import A4 +from reportlab.lib.enums import TA_CENTER, TA_RIGHT + +from sigi.apps.relatorios.reports import ReportDefault + +#from abc import ABCMeta + +class CasasAderidasReport(object): + pass + +class CasasNaoAderidasReport(object): + pass + +class CasasComEquipamentosReport(object): + pass + +class SemEquipamentosReport(object): + pass + +class ConvenioReport(ReportDefault): + title = u'Relatório de Convênios' + + class band_page_header(ReportDefault.band_page_header): + + label_top = ReportDefault.band_page_header.label_top + label_left = [0,1.5,7,9,11,13,15,17] + elements = list(ReportDefault.band_page_header.elements) + height = 4.7*cm + + elements += [ + Label( + text="UF", + left=label_left[0]*cm, + top=label_top + 0.4*cm, + ), + Label( + text="Municipio", + left=label_left[1]*cm, + top=label_top + 0.4*cm, + ), + Label( + text="Data de Adesão", + left=label_left[2]*cm, + top=label_top, + width=2*cm, + ), + Label( + text="Número do Convênio", + left=label_left[3]*cm, + top=label_top, + width=2*cm, + ), + Label( + text="Data do Convênio", + left=label_left[4]*cm, + top=label_top, + width=2*cm, + ), + Label( + text="Data de Publicação", + left=label_left[5]*cm, + top=label_top, + width=2*cm, + ), + Label( + text="Data de Aceite", + left=label_left[6]*cm, + top=label_top, + width=2*cm, + ), + Label( + text="Projeto", + left=label_left[7]*cm, + top=label_top + 0.4*cm, + width=2*cm, + ), + ] + + + + class band_page_footer(ReportDefault.band_page_footer): + pass + + class band_detail(ReportDefault.band_detail): + + label_left = [0,1.5,7,9,11,13,15,17] + + elements=[ + ObjectValue( + attribute_name='casa_legislativa.municipio.uf.sigla', + left=label_left[0]*cm + ), + ObjectValue( + attribute_name='casa_legislativa.municipio.nome', + left=label_left[1]*cm + ), + ObjectValue( + attribute_name='data_adesao', + left=label_left[2]*cm, + get_value=lambda instance: + instance.data_adesao.strftime('%d/%m/%Y') if instance.data_adesao != None else '-' + ), + ObjectValue( + attribute_name='num_convenio', + left=label_left[3]*cm + ), + ObjectValue( + attribute_name='data_retorno_assinatura', + left=label_left[4]*cm, + get_value=lambda instance: + instance.data_retorno_assinatura.strftime('%d/%m/%Y') if instance.data_retorno_assinatura != None else '-' + ), + ObjectValue( + attribute_name='data_pub_diario', + left=label_left[5]*cm, + get_value=lambda instance: + instance.data_pub_diario.strftime('%d/%m/%Y') if instance.data_pub_diario != None else '-' + ), + ObjectValue( + attribute_name='data_termo_aceite', + left=label_left[6]*cm, + get_value=lambda instance: + instance.data_termo_aceite.strftime('%d/%m/%Y') if instance.data_termo_aceite != None else '-' + ), + ObjectValue( + attribute_name='projeto.sigla', + left=label_left[7]*cm + ), + ] + + groups = [ + ReportGroup(attribute_name='casa_legislativa.municipio.uf', + band_header=ReportBand( + height=0.7*cm, + elements= [ + ObjectValue(attribute_name='casa_legislativa.municipio.uf', + get_Value= lambda instance: 'CasaLegislativa: '+ (instance.casa_legislativa.uf) + ) + ], + borders={'top': True}, + ) + ) + ] + +class ConvenioReportSemAceite(ConvenioReport): + class band_page_header(ReportDefault.band_page_header): + + label_top = ReportDefault.band_page_header.label_top + label_left = [0,1.5,7,9,11,13,15,17] + elements = list(ReportDefault.band_page_header.elements) + height = 4.7*cm + + elements += [ + Label( + text="UF", + left=label_left[0]*cm, + top=label_top + 0.4*cm, + ), + Label( + text="Município", + left=label_left[1]*cm, + top=label_top + 0.4*cm, + ), + Label( + text="Data de Adesão", + left=label_left[3]*cm, + top=label_top, + width=2*cm, + ), + Label( + text="Número do Convênio", + left=label_left[4]*cm, + top=label_top, + width=2*cm, + ), + Label( + text="Data do Convênio", + left=label_left[5]*cm, + top=label_top, + width=2*cm, + ), + Label( + text="Data de Publicação", + left=label_left[6]*cm, + top=label_top, + width=2*cm, + ), + Label( + text="Projeto", + left=label_left[7]*cm, + top=label_top + 0.4*cm, + width=2*cm, + ), + ] + + + class band_detail(ReportDefault.band_detail): + + label_left = [0,1.5,7,9,11,13,15,17] + + elements=[ + ObjectValue( + attribute_name='casa_legislativa.municipio.uf.sigla', + left=label_left[0]*cm + ), + ObjectValue( + attribute_name='casa_legislativa.municipio.nome', + left=label_left[1]*cm + ), + ObjectValue( + attribute_name='data_adesao', + left=label_left[3]*cm, + get_value=lambda instance: + instance.data_adesao.strftime('%d/%m/%Y') if instance.data_adesao != None else '-' + ), + ObjectValue( + attribute_name='num_convenio', + left=label_left[4]*cm + ), + ObjectValue( + attribute_name='data_retorno_assinatura', + left=label_left[5]*cm, + get_value=lambda instance: + instance.data_retorno_assinatura.strftime('%d/%m/%Y') if instance.data_retorno_assinatura != None else '-' + ), + ObjectValue( + attribute_name='data_pub_diario', + left=label_left[6]*cm, + get_value=lambda instance: + instance.data_pub_diario.strftime('%d/%m/%Y') if instance.data_pub_diario != None else '-' + ), + ObjectValue( + attribute_name='projeto.sigla', + left=label_left[7]*cm + ), + ] + + + + + +float_duas_casas = lambda instance: '%.2f' % (instance) +class ConvenioReportRegiao(ReportDefault): + title = u'Relatório de Convênios por Região' + + class band_page_header(ReportDefault.band_page_header): + label_top = ReportDefault.band_page_header.label_top + label_left = [0.5,6,8,10,12,14] + map(lambda x:x-0.4,label_left) + + elements = list(ReportDefault.band_page_header.elements) + + elements += [ + Label(text="UF", left=label_left[0]*cm,top=label_top,), + Label(text="Total", left=label_left[1]*cm,top=label_top,), + Label(text="Aderidas", left=label_left[2]*cm,top=label_top,), + Label(text="%", left=label_left[3]*cm,top=label_top), + Label(text="Ñ Aderidas", left=label_left[4]*cm,top=label_top,), + Label(text="%", left=label_left[5]*cm,top=label_top), + ] + class band_detail(ReportDefault.band_detail): + label_left = [0.5,6,8,10,12,14] + display_inline = True + float_duas_casas = lambda instance: '%.2f' % (instance.porc_casas_aderidas) + default_style = {'fontName': 'Helvetica', 'fontSize': 11} + + elements=[ + ObjectValue(attribute_name='estado', left=label_left[0]*cm, ), + ObjectValue(attribute_name='quant_casas', left=label_left[1]*cm,), + ObjectValue(attribute_name='quant_casas_aderidas', left=label_left[2]*cm), + ObjectValue(attribute_name='porc_casas_aderidas', left=label_left[3]*cm), + ObjectValue(attribute_name='quant_casas_nao_aderidas', left=label_left[4]*cm), + ObjectValue(attribute_name='porc_casas_nao_aderidas', left=label_left[5]*cm,), + ] + + class band_summary(ReportBand): + label_left = [0.5,6,8,10,12,14] + elements = [ + Label(text="Total", top=0.1*cm, left=label_left[0]*cm), + ObjectValue(attribute_name='quant_casas', action=FIELD_ACTION_SUM, left=label_left[1]*cm, ), + ObjectValue(attribute_name='quant_casas_aderidas', action=FIELD_ACTION_SUM, left=label_left[2]*cm), +# ObjectValue(attribute_name='porc_casas_aderidas', action=FIELD_ACTION_AVG, left=label_left[3]*cm, +# #get_value= lambda instance : lambda instance: '%.2f' % (instance.porc_casas_aderidas), +# ), + ObjectValue(attribute_name='quant_casas_nao_aderidas', action=FIELD_ACTION_SUM, left=label_left[4]*cm), +# ObjectValue(attribute_name='porc_casas_nao_aderidas', left=label_left[5]*cm, +# get_value=lambda x: teste(), +# ), + ] + borders = {'top':True} + + + + + +class ConvenioPorCMReport(ConvenioReport): + title = u'Relatório de Convênios por Câmara Municipal' + +class ConvenioPorALReport(ConvenioReport): + title = u'Relatório de Convênios por Assembléia Legislativa' + +class ConvenioReportSemAceiteCM(ConvenioReportSemAceite): + title = u'Relatório de Convênios por Câmara Municipal' + +class ConvenioReportSemAceiteAL(ConvenioReportSemAceite): + title = u'Relatório de Convênios por Assembléia Legislativa' \ No newline at end of file diff --git a/sigi/apps/convenios/templates/convenios/carrinho.html b/sigi/apps/convenios/templates/convenios/carrinho.html new file mode 100644 index 0000000..620421d --- /dev/null +++ b/sigi/apps/convenios/templates/convenios/carrinho.html @@ -0,0 +1,158 @@ +{% extends "admin/carrinho.html" %} +{% load adminmedia admin_list i18n %} +{% block extrastyle %} + {{ block.super }} + {% include "admin/tabs_style.html" %} +{% endblock %} + +{% block title %}Convênios no Carrinho | SIGI{% endblock %} +{% block content_title %}

Convênios no Carrinho

{% endblock %} + +{% block mensagem%} + +{% endblock %} + +{% block action %}deleta_itens_carrinho{% endblock %} + +{% block tabela %} + + + + {%if not carIsEmpty%} + + {% endif %} + + + + + + + + + + {% for convenio in paginas.object_list %} + + {%if not carIsEmpty%} + + {% endif %} + + + + + + + + {% endfor %} + +
+ Numero do convênioCasa LegislativaAderidasConvêniadasEquipadasProjeto
{{convenio.num_convenio}}{{convenio.casa_legislativa}}{{convenio.data_adesao}}{{convenio.data_retorno_assinatura}}{{convenio.data_termo_aceite}}{{convenio.projeto}}
+{% endblock %} + +{% block botoes %} +
+ + +
+
+
+ Relatório por +
    +
  • + + +
  • +
  • + + +
  • +
+
+
+ Com data de aceite? (Equipada) +
    +
  • + + +
  • +
  • + + +
  • +
+
+
    +
  • +
+
+
+
+
+
Escolha os atributos para exportar +
    +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
+
+
    +
  • +
+
+
+
+ {% endblock %} \ No newline at end of file diff --git a/sigi/apps/convenios/templates/convenios/change_list.html b/sigi/apps/convenios/templates/convenios/change_list.html new file mode 100644 index 0000000..a3ea917 --- /dev/null +++ b/sigi/apps/convenios/templates/convenios/change_list.html @@ -0,0 +1,40 @@ +{% extends "admin/change_list.html" %} +{% load i18n reporting_tags admin_list %} + +{% block extrastyle %} + {{ block.super }} + {% include "admin/tabs_style.html" %} + +{% endblock %} + +{% block object-tools %} + {% if has_add_permission %} + + + + {% endif %} +{% endblock %} + +{% block search %} +
+ +
+{% endblock %} diff --git a/sigi/apps/convenios/templates/convenios/tabela_regiao.html b/sigi/apps/convenios/templates/convenios/tabela_regiao.html new file mode 100644 index 0000000..b112863 --- /dev/null +++ b/sigi/apps/convenios/templates/convenios/tabela_regiao.html @@ -0,0 +1,145 @@ + + + Relatório por Região + + + + +
+ + + + + + +
Logo SenadoSENADO FEDERAL
SINTER - Secretaria Especial do Interlegis
Logo Interlegis
+

{{regiao}}

+
+
+ {% for tabela in tabelas %} + + + + + {%for item in tabela.cabecalho%} + + {%endfor%} + + + + {% for linha in tabela.linhas %} + + + {% for item in linha.lista %} + + {% endfor %} + + {% endfor %} + + + {% for item in tabela.sumario %} + + {% endfor %} + + +
{{tabela.projeto}} - {{regiao}}
{{item}}
{{linha.estado}}{{item}}
Total{{item}}
+
+ {% endfor %} +
+
+ + + + + +
{{data}} às {{hora}}Página
+
+ + + \ No newline at end of file diff --git a/sigi/apps/convenios/views.py b/sigi/apps/convenios/views.py new file mode 100644 index 0000000..2f2a6d7 --- /dev/null +++ b/sigi/apps/convenios/views.py @@ -0,0 +1,345 @@ +#-*- coding:utf-8 -*- +from django.http import HttpResponse, HttpResponseRedirect +from django.shortcuts import render_to_response, get_list_or_404 +from geraldo.generators import PDFGenerator +from sigi.apps.convenios.models import Convenio, Projeto +from sigi.apps.convenios.reports import ConvenioReport \ + ,ConvenioPorCMReport \ + ,ConvenioPorALReport \ + ,ConvenioReportSemAceiteAL \ + ,ConvenioReportSemAceiteCM +from sigi.apps.casas.models import CasaLegislativa +from sigi.apps.contatos.models import UnidadeFederativa + +import ho.pisa as pisa +from django.template import Context, loader + +from django.core.paginator import Paginator, InvalidPage, EmptyPage + +from django.conf import settings + +import datetime + +import csv + +def query_ordena(qs,o,ot): + list_display = ('num_convenio', 'casa_legislativa', + 'data_adesao','data_retorno_assinatura','data_termo_aceite', + 'projeto', + ) + + aux = list_display[(int(o)-1)] + if ot =='asc': + qs = qs.order_by(aux) + else: + qs = qs.order_by("-"+aux) + return qs + +def get_for_qs(get,qs): + kwargs = {} + ids = 0 + for k,v in get.iteritems(): + if not (k == 'page' or k == 'pop' or k == 'q'): + if not k == 'o': + if k == "ot": + qs = query_ordena(qs,get["o"],get["ot"]) + else: + kwargs[str(k)] = v + if(str(k)=='ids'): + ids = 1 + break + qs = qs.filter(**kwargs) + + if ids: + query = 'id IN ('+ kwargs['ids'].__str__()+')' + qs = Convenio.objects.extra(where=[query]) + return qs + +def carrinhoOrGet_for_qs(request): + """ + Verifica se existe convênios na sessão se não verifica get e retorna qs correspondente. + """ + if request.session.has_key('carrinho_convenios'): + ids = request.session['carrinho_convenios'] + qs = Convenio.objects.filter(pk__in=ids) + else: + qs = Convenio.objects.all() + if request.GET: + qs = qs.order_by("casa_legislativa__municipio__uf","casa_legislativa__municipio") + qs = get_for_qs(request.GET,qs) + return qs + +def adicionar_convenios_carrinho(request,queryset=None,id=None): + if request.method == 'POST': + ids_selecionados = request.POST.getlist('_selected_action') + if not request.session.has_key('carrinho_convenios'): + request.session['carrinho_convenios'] = ids_selecionados + else: + lista = request.session['carrinho_convenios'] + # Verifica se id já não está adicionado + for id in ids_selecionados: + if not id in lista: + lista.append(id) + request.session['carrinho_convenios'] = lista + +def excluir_carrinho(request): + if request.session.has_key('carrinho_convenios'): + del request.session['carrinho_convenios'] + return HttpResponseRedirect('.') + +def deleta_itens_carrinho(request): + if request.method == 'POST': + ids_selecionados = request.POST.getlist('_selected_action') + if request.session.has_key('carrinho_convenios'): + lista = request.session['carrinho_convenios'] + for item in ids_selecionados: + lista.remove(item) + if lista: + request.session['carrinho_convenios'] = lista + else: + del lista; + del request.session['carrinho_convenios'] + + return HttpResponseRedirect('.') + +def visualizar_carrinho(request): + + qs = carrinhoOrGet_for_qs(request) + + paginator = Paginator(qs, 100) + + # Make sure page request is an int. If not, deliver first page. + # Esteja certo de que o `page request` é um inteiro. Se não, mostre a primeira página. + try: + page = int(request.GET.get('page', '1')) + except ValueError: + page = 1 + + # Se o page request (9999) está fora da lista, mostre a última página. + try: + paginas = paginator.page(page) + except (EmptyPage, InvalidPage): + paginas = paginator.page(paginator.num_pages) + + carrinhoIsEmpty = not(request.session.has_key('carrinho_convenios')) + + return render_to_response( + 'convenios/carrinho.html', + { + "ADMIN_MEDIA_PREFIX":settings.ADMIN_MEDIA_PREFIX, + 'MEDIA_URL':settings.MEDIA_URL, + 'carIsEmpty':carrinhoIsEmpty, + 'paginas':paginas, + 'query_str':'?'+request.META['QUERY_STRING'] + } + ) + +def report(request, id=None): + + if id: + qs = Convenio.objects.filter(pk=id) + else: + qs = carrinhoOrGet_for_qs(request) + + if not qs: + return HttpResponseRedirect('../') + + tipo = '' + data_aceite_has = '' + report = None + if request.POST: + if request.POST.has_key('filtro_casa'): + tipo = request.POST['filtro_casa'] + if request.POST.has_key('data_aceite'): + data_aceite_has = request.POST['data_aceite'] + # Verifica filtro se é por Assembleia + if tipo == 'al': + qs = qs.filter(casa_legislativa__tipo__sigla='AL') + # Verifica se é com data de aceite + if data_aceite_has == 'nao': + report = ConvenioReportSemAceiteAL(queryset=qs) + else: + report = ConvenioPorALReport(queryset=qs) + else: + qs = qs.filter(casa_legislativa__tipo__sigla='CM') + if data_aceite_has == 'nao': + report = ConvenioReportSemAceiteCM(queryset=qs) + else: + report = ConvenioPorCMReport(queryset=qs) + + + response = HttpResponse(mimetype='application/pdf') + if report: + report.generate_by(PDFGenerator, filename=response) + else: + return HttpResponseRedirect('../') + return response + +def casas_estado_to_tabela(casas,convenios,regiao): + + + estados = get_list_or_404(UnidadeFederativa,regiao=regiao) + + class LinhaEstado(): + pass + + lista = [] + + for estado in estados: + linha = LinhaEstado() + + convenios_est = convenios.filter(casa_legislativa__municipio__uf=estado) + convenios_est_publicados = convenios_est.exclude(data_pub_diario=None) + convenios_est_equipados = convenios_est.exclude(data_termo_aceite=None) + + casas_est = casas.filter(municipio__uf=estado) + casas_est_nao_aderidas = casas_est.exclude(convenio__in=convenios_est).distinct() + casas_est_aderidas = casas_est.filter(convenio__in=convenios_est).distinct() + casas_est_conveniadas = casas_est.filter(convenio__in=convenios_est_publicados).distinct() + casas_est_equipadas = casas_est.filter(convenio__in=convenios_est_equipados).distinct() + + linha.lista = ( + casas_est.count(), + casas_est_nao_aderidas.count(), + casas_est_aderidas.count(), + casas_est_conveniadas.count(), + casas_est_equipadas.count(), + ) + + linha.estado = estado + + lista.append(linha) + + casas_regiao = casas.filter(municipio__uf__regiao=regiao) + convenios_regiao = convenios.filter(casa_legislativa__municipio__uf__regiao=regiao) + convenios_regiao_publicados = convenios_regiao.exclude(data_pub_diario=None) + convenios_regiao_equipados = convenios_regiao.exclude(data_termo_aceite=None) + sumario = ( + casas_regiao.count(), + casas_regiao.exclude(convenio__in=convenios_regiao).distinct().count(), + casas_regiao.filter(convenio__in=convenios_regiao).distinct().count(), + casas_regiao.filter(convenio__in=convenios_regiao_publicados).distinct().count(), + casas_regiao.filter(convenio__in=convenios_regiao_equipados).distinct().count(), + ) + + cabecalho_topo = ( + u'UF', + u'Câmaras municipais', + u'Não Aderidas', + u'Aderidas', + u'Conveniadas', + u'Equipadas' + ) + + return { + "linhas":lista, + "cabecalho":cabecalho_topo, + "sumario":sumario, + } + +def report_regiao(request,regiao='NE'): + + if request.POST: + if request.POST.has_key('regiao'): + regiao = request.POST['regiao'] + + REGIAO_CHOICES = { + 'SL': 'Sul', + 'SD': 'Sudeste', + 'CO': 'Centro-Oeste', + 'NE': 'Nordeste', + 'NO': 'Norte', + } + + projetos = Projeto.objects.all() + + camaras = CasaLegislativa.objects.filter(tipo__sigla='CM') + + tabelas = list() + # Geral + convenios = Convenio.objects.filter(casa_legislativa__tipo__sigla='CM') + tabela = casas_estado_to_tabela(camaras,convenios,regiao) + tabela["projeto"] = "Geral" + + tabelas.append(tabela) + + for projeto in projetos: + convenios_proj = convenios.filter(projeto=projeto) + tabela = casas_estado_to_tabela(camaras, convenios_proj,regiao) + tabela["projeto"] = projeto.nome + tabelas.append(tabela) + + data = datetime.datetime.now().strftime('%d/%m/%Y') + hora = datetime.datetime.now().strftime('%H:%M') + pisa.showLogging() + response = HttpResponse(mimetype='application/pdf') + response['Content-Disposition'] = 'attachment; filename=RelatorioRegiao_' + regiao + '.pdf' + #tabelas = ({'projeto':"PI"},{'projeto':"PML"},) + t = loader.get_template('convenios/tabela_regiao.html') + c = Context({'tabelas':tabelas,'regiao':REGIAO_CHOICES[regiao],'data':data,'hora':hora}) + pdf = pisa.CreatePDF(t.render(c),response) + if not pdf.err: + pisa.startViewer(response) + + return response + +def export_csv(request): + response = HttpResponse(mimetype='text/csv') + response['Content-Disposition'] = 'attachment; filename=convenios.csv' + + csv_writer = csv.writer(response) + convenios = carrinhoOrGet_for_qs(request) + if not convenios: + return HttpResponseRedirect('../') + + atributos = [ u"No. Processo", u"No. Convênio", u"Projeto", u"Casa Legislativa", u"Data de Adesão", u"Data de Convênio", + u"Data da Publicacao no D.O.", u"Data Equipada", ] + + if request.POST: + atributos = request.POST.getlist("itens_csv_selected") + + col_titles = atributos + if u"Casa Legislativa" in col_titles: + pos = col_titles.index(u"Casa Legislativa") + 1 + col_titles.insert(pos, u"uf") + csv_writer.writerow([s.encode("utf-8") for s in col_titles]) + + for convenio in convenios: + lista = [] + for atributo in atributos: + if u"No. Processo" == atributo: + lista.append(convenio.num_processo_sf.encode("utf-8")) + elif u"No. Convênio" == atributo: + lista.append(convenio.num_convenio.encode("utf-8")) + elif u"Projeto" == atributo: + lista.append(convenio.projeto.nome.encode("utf-8")) + elif u"Casa Legislativa" == atributo: + lista.append(convenio.casa_legislativa.nome.encode("utf-8")) + lista.append(convenio.casa_legislativa.municipio.uf.sigla.encode("utf-8")) + elif u"Data de Adesão" == atributo: + data = '' + if convenio.data_adesao: + data = convenio.data_adesao.strftime("%d/%m/%Y") + lista.append(data.encode("utf-8")) + elif u"Data de Convênio" == atributo: + data = '' + if convenio.data_retorno_assinatura: + data = convenio.data_retorno_assinatura.strftime("%d/%m/%Y") + lista.append(data.encode("utf-8")) + elif u"Data da Publicacao no D.O." == atributo: + data = '' + if convenio.data_pub_diario: + data = convenio.data_pub_diario.strftime("%d/%m/%Y") + lista.append(data.encode("utf-8")) + data = '' + elif u"Data Equipada" == atributo: + if convenio.data_termo_aceite: + data = convenio.data_termo_aceite.strftime("%d/%m/%Y") + lista.append(data.encode("utf-8")) + else: + pass + + csv_writer.writerow(lista) + + return response + diff --git a/sigi/apps/diagnosticos/__init__.py b/sigi/apps/diagnosticos/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sigi/apps/diagnosticos/admin.py b/sigi/apps/diagnosticos/admin.py new file mode 100644 index 0000000..034f3a1 --- /dev/null +++ b/sigi/apps/diagnosticos/admin.py @@ -0,0 +1,129 @@ +# -*- coding: utf-8 -*- +from datetime import datetime +from django.contrib import admin +from eav.admin import BaseEntityAdmin, BaseSchemaAdmin +from sigi.apps.diagnosticos.models import Diagnostico, Pergunta, Escolha, Equipe, Anexo, Categoria +from sigi.apps.diagnosticos.forms import DiagnosticoForm +from sigi.apps.contatos.models import UnidadeFederativa + +def publicar_diagnostico(self, request, queryset): + for registro in queryset: + diagnostico = Diagnostico.objects.get(pk=registro.id) + diagnostico.publicado = True + diagnostico.data_publicacao= datetime.now() + diagnostico.save() + + # Enviando o email avisando que o diagnóstico foi publicado + email = diagnostico.responsavel.user.email + if email: + diagnostico.email_diagnostico_publicado(email, request.get_host()) + self.message_user(request, "Diagnóstico(s) publicado(s) com sucesso!") +publicar_diagnostico.short_description = u""" + Definir diagnósticos como publicado""" + + +def despublicar_diagnostico(self, request, queryset): + queryset.update(publicado=False) +despublicar_diagnostico.short_description = u""" + Definir diagnósticos como não publicado""" + +class EquipeInline(admin.TabularInline): + model = Equipe + +class AnexosInline(admin.TabularInline): + model = Anexo + extra = 2 + exclude = ['data_pub', ] + +class AnexoAdmin(admin.ModelAdmin): + date_hierarchy = 'data_pub' + exclude = ['data_pub', ] + list_display = ('arquivo', 'descricao', 'data_pub', 'diagnostico') + raw_id_fields = ('diagnostico',) + search_fields = ('descricao', 'diagnostico__id', 'arquivo', + 'diagnostico__casa_legislativa__nome') + +class DiagnosticoAdmin(BaseEntityAdmin): + form = DiagnosticoForm + actions = [publicar_diagnostico, despublicar_diagnostico] + inlines = (EquipeInline, AnexosInline) + search_fields = ('casa_legislativa__nome',) + list_display = ('casa_legislativa','get_uf', 'data_visita_inicio', 'data_visita_fim', 'responsavel', 'publicado') + list_filter = ('publicado', 'casa_legislativa', 'data_publicacao', 'data_visita_inicio', 'data_visita_fim') + raw_id_fields = ('casa_legislativa',) + ordering = ('casa_legislativa',) + + eav_fieldsets = [ + (u'00. Identificação do Diagnóstico', {'fields': ('responsavel', 'data_visita_inicio', 'data_visita_fim',)}), + (u'01. Identificação da Casa Legislativa', {'fields': ('casa_legislativa',)}), + (u'02. Identificação de Competências da Casa Legislativa', {'fields': ()}) + ] + + # popula o eav fieldsets ordenando as categorias e as perguntas + # para serem exibidas no admin + for categoria in Categoria.objects.all(): + # ordena as perguntas pelo title e utiliza o name no fieldset + perguntas_by_title = [(p.title, p.name) for p in categoria.perguntas.all()] + perguntas = [pergunta[1] for pergunta in sorted(perguntas_by_title)] + + eav_fieldsets.append((categoria, { + 'fields': tuple(perguntas), + 'classes': ['collapse'] + })) + + def get_uf(self, obj): + return '%s' % (obj.casa_legislativa.municipio.uf) + get_uf.short_description = 'UF' + get_uf.admin_order_field = 'casa_legislativa__municipio__uf__nome' + + def lookup_allowed(self, lookup, value): + return super(DiagnosticoAdmin, self).lookup_allowed(lookup, value) or \ + lookup in ['casa_legislativa__municipio__uf__codigo_ibge__exact'] + + def changelist_view(self, request, extra_context=None): + import re + request.GET._mutable=True + if 'data_visita_inicio__gte' in request.GET: + value = request.GET.get('data_visita_inicio__gte','') + if value == '': + del request.GET['data_visita_inicio__gte'] + elif re.match('^\d*$', value): # Year only + request.GET['data_visita_inicio__gte'] = "%s-01-01" % value #Complete with january 1st + elif re.match('^\d*\D\d*$', value): # Year and month + request.GET['data_visita_inicio__gte'] = '%s-01' % value #Complete with 1st day of month + if 'data_visita_inicio__lte' in request.GET: + value = request.GET.get('data_visita_inicio__lte','') + if value == '': + del request.GET['data_visita_inicio__lte'] + elif re.match('^\d*$', value): # Year only + request.GET['data_visita_inicio__lte'] = "%s-01-01" % value #Complete with january 1st + elif re.match('^\d*\D\d*$', value): # Year and month + request.GET['data_visita_inicio__lte'] = '%s-01' % value #Complete with 1st day of month + request.GET._mutable=False + + return super(DiagnosticoAdmin, self).changelist_view(request, extra_context) + +class EscolhaAdmin(admin.ModelAdmin): + search_fields = ('title',) + list_display = ('title', 'schema', 'schema_to_open') + raw_id_fields = ('schema', 'schema_to_open') + ordering = ('schema', 'title') + +class EscolhaInline(admin.TabularInline): + model = Escolha + fk_name = 'schema' + raw_id_fields = ('schema_to_open',) + verbose_name = 'Escolhas (apenas para choices ou multiple choices)' + extra = 0 + +class PerguntaAdmin (BaseSchemaAdmin): + search_fields = ('title', 'help_text', 'name',) + list_display = ('title', 'categoria', 'datatype', 'help_text', 'required') + list_filter = ('datatype', 'categoria', 'required') + inlines = (EscolhaInline,) + +admin.site.register(Diagnostico, DiagnosticoAdmin) +admin.site.register(Pergunta, PerguntaAdmin) +admin.site.register(Escolha, EscolhaAdmin) +admin.site.register(Anexo, AnexoAdmin) +admin.site.register(Categoria) diff --git a/sigi/apps/diagnosticos/decorators.py b/sigi/apps/diagnosticos/decorators.py new file mode 100644 index 0000000..f568ea7 --- /dev/null +++ b/sigi/apps/diagnosticos/decorators.py @@ -0,0 +1,23 @@ +# -*- coding: utf8 -*- + +from django.template import RequestContext +from django.shortcuts import render_to_response +from sigi.apps.diagnosticos.models import Diagnostico + +def validate_diagnostico(func): + def decorator(request, id_diagnostico, *args, **kwargs): + """ Retorna 404 caso o diagnostico esteja publicado + ou o usuario nao seja um membro da equipe + """ + try: + diagnostico = Diagnostico.objects.filter(publicado=False).get(pk=id_diagnostico) + if (request.user.servidor in diagnostico.membros): + # continua o processamento normal da view + return func(request, id_diagnostico, *args, **kwargs) + except Diagnostico.DoesNotExist: + pass + + # renderiza a pagina de 404 + context = RequestContext(request, {}) + return render_to_response('mobile/404.html', context) + return decorator diff --git a/sigi/apps/diagnosticos/fixtures/initial_data.json b/sigi/apps/diagnosticos/fixtures/initial_data.json new file mode 100644 index 0000000..95c4f13 --- /dev/null +++ b/sigi/apps/diagnosticos/fixtures/initial_data.json @@ -0,0 +1,32502 @@ +[ + { + "pk": 17, + "model": "diagnosticos.diagnostico", + "fields": { + "data_visita_inicio": "2012-02-09", + "search_text": "Camara Municipal de Governador Valadares", + "casa_legislativa": 1705, + "data_publicacao": null, + "responsavel": 527, + "publicado": false, + "data_visita_fim": "2012-02-11" + } + }, + { + "pk": 18, + "model": "diagnosticos.diagnostico", + "fields": { + "data_visita_inicio": "2012-02-11", + "search_text": "Camara Municipal de Ouro Preto", + "casa_legislativa": 1933, + "data_publicacao": null, + "responsavel": 527, + "publicado": false, + "data_visita_fim": "2012-02-13" + } + }, + { + "pk": 19, + "model": "diagnosticos.diagnostico", + "fields": { + "data_visita_inicio": "2012-02-13", + "search_text": "Camara Municipal de Mariana", + "casa_legislativa": 1932, + "data_publicacao": null, + "responsavel": 527, + "publicado": false, + "data_visita_fim": "2012-02-14" + } + }, + { + "pk": 20, + "model": "diagnosticos.diagnostico", + "fields": { + "data_visita_inicio": "2012-02-14", + "search_text": "Camara Municipal de Sao Joao Del Rei", + "casa_legislativa": 2072, + "data_publicacao": null, + "responsavel": 527, + "publicado": false, + "data_visita_fim": "2012-02-15" + } + }, + { + "pk": 21, + "model": "diagnosticos.diagnostico", + "fields": { + "data_visita_inicio": "2012-02-15", + "search_text": "Camara Municipal de Barbacena", + "casa_legislativa": 1253, + "data_publicacao": null, + "responsavel": 527, + "publicado": false, + "data_visita_fim": "2012-02-16" + } + }, + { + "pk": 22, + "model": "diagnosticos.diagnostico", + "fields": { + "data_visita_inicio": "2012-02-16", + "search_text": "Camara Municipal de Juiz de Fora", + "casa_legislativa": 1654, + "data_publicacao": null, + "responsavel": 527, + "publicado": false, + "data_visita_fim": "2012-02-18" + } + }, + { + "pk": 1, + "model": "diagnosticos.diagnostico", + "fields": { + "data_visita_inicio": "2011-12-01", + "search_text": "Assembleia Legislativa de Minas Gerais", + "casa_legislativa": 23, + "data_publicacao": null, + "responsavel": 470, + "publicado": false, + "data_visita_fim": "2011-12-13" + } + }, + { + "pk": 23, + "model": "diagnosticos.diagnostico", + "fields": { + "data_visita_inicio": "2012-02-06", + "search_text": "Camara Municipal de Jundiai", + "casa_legislativa": 5147, + "data_publicacao": null, + "responsavel": 6, + "publicado": false, + "data_visita_fim": "2012-02-07" + } + }, + { + "pk": 9, + "model": "diagnosticos.diagnostico", + "fields": { + "data_visita_inicio": "2012-02-13", + "search_text": "Camara Municipal de Osasco", + "casa_legislativa": 5218, + "data_publicacao": null, + "responsavel": 6, + "publicado": false, + "data_visita_fim": "2012-02-15" + } + }, + { + "pk": 25, + "model": "diagnosticos.diagnostico", + "fields": { + "data_visita_inicio": "2012-02-16", + "search_text": "Camara Municipal de Louveira", + "casa_legislativa": 5148, + "data_publicacao": null, + "responsavel": 6, + "publicado": false, + "data_visita_fim": "2012-02-17" + } + }, + { + "pk": 13, + "model": "diagnosticos.diagnostico", + "fields": { + "data_visita_inicio": "2012-02-09", + "search_text": "Camara Municipal de Beberibe", + "casa_legislativa": 424, + "data_publicacao": null, + "responsavel": 3, + "publicado": false, + "data_visita_fim": "2012-02-11" + } + }, + { + "pk": 12, + "model": "diagnosticos.diagnostico", + "fields": { + "data_visita_inicio": "2012-02-08", + "search_text": "Camara Municipal de Aracati", + "casa_legislativa": 769, + "data_publicacao": null, + "responsavel": 3, + "publicado": false, + "data_visita_fim": "2012-02-09" + } + }, + { + "pk": 16, + "model": "diagnosticos.diagnostico", + "fields": { + "data_visita_inicio": "2012-02-08", + "search_text": "Camara Municipal de Maragogi", + "casa_legislativa": 284, + "data_publicacao": null, + "responsavel": 7, + "publicado": false, + "data_visita_fim": "2012-02-10" + } + }, + { + "pk": 11, + "model": "diagnosticos.diagnostico", + "fields": { + "data_visita_inicio": "2012-02-05", + "search_text": "Camara Municipal de Sobral", + "casa_legislativa": 866, + "data_publicacao": null, + "responsavel": 3, + "publicado": false, + "data_visita_fim": "2012-02-07" + } + }, + { + "pk": 15, + "model": "diagnosticos.diagnostico", + "fields": { + "data_visita_inicio": "2012-02-07", + "search_text": "Camara Municipal de Marechal Deodoro", + "casa_legislativa": 292, + "data_publicacao": null, + "responsavel": 7, + "publicado": false, + "data_visita_fim": "2012-02-08" + } + }, + { + "pk": 14, + "model": "diagnosticos.diagnostico", + "fields": { + "data_visita_inicio": "2012-02-05", + "search_text": "Camara Municipal de Penedo", + "casa_legislativa": 181, + "data_publicacao": null, + "responsavel": 7, + "publicado": false, + "data_visita_fim": "2012-02-07" + } + }, + { + "pk": 4, + "model": "diagnosticos.diagnostico", + "fields": { + "data_visita_inicio": "2012-02-06", + "search_text": "Camara Municipal de Montes Claros", + "casa_legislativa": 1855, + "data_publicacao": null, + "responsavel": 527, + "publicado": false, + "data_visita_fim": "2012-02-07" + } + }, + { + "pk": 5, + "model": "diagnosticos.diagnostico", + "fields": { + "data_visita_inicio": "2012-02-08", + "search_text": "Camara Municipal de Teofilo Otoni", + "casa_legislativa": 2138, + "data_publicacao": null, + "responsavel": 527, + "publicado": false, + "data_visita_fim": "2012-02-09" + } + }, + { + "pk": 8, + "model": "diagnosticos.diagnostico", + "fields": { + "data_visita_inicio": "2012-02-09", + "search_text": "Camara Municipal de Votorantim", + "casa_legislativa": 5376, + "data_publicacao": null, + "responsavel": 6, + "publicado": false, + "data_visita_fim": "2012-02-11" + } + }, + { + "pk": 10, + "model": "diagnosticos.diagnostico", + "fields": { + "data_visita_inicio": "2012-02-15", + "search_text": "Camara Municipal de Santos", + "casa_legislativa": 5317, + "data_publicacao": null, + "responsavel": 6, + "publicado": false, + "data_visita_fim": "2012-02-18" + } + }, + { + "pk": 3, + "model": "diagnosticos.categoria", + "fields": { + "nome": "03. Levantamento de Infraestrutura F\u00edsica" + } + }, + { + "pk": 4, + "model": "diagnosticos.categoria", + "fields": { + "nome": "04. Levantamento de Estrutura de TI" + } + }, + { + "pk": 5, + "model": "diagnosticos.categoria", + "fields": { + "nome": "05. Organiza\u00e7\u00e3o do Processo Legislativo" + } + }, + { + "pk": 6, + "model": "diagnosticos.categoria", + "fields": { + "nome": "06. Estrutura de Comunica\u00e7\u00e3o" + } + }, + { + "pk": 7, + "model": "diagnosticos.categoria", + "fields": { + "nome": "07. Estrutura de Recursos Humanos" + } + }, + { + "pk": 8, + "model": "diagnosticos.categoria", + "fields": { + "nome": "08. An\u00e1lise da Produ\u00e7\u00e3o Legislativa" + } + }, + { + "pk": 9, + "model": "diagnosticos.categoria", + "fields": { + "nome": "09. Levantamento de Ferramentas de Gest\u00e3o" + } + }, + { + "pk": 10, + "model": "diagnosticos.categoria", + "fields": { + "nome": "10. Considera\u00e7\u00f5es e Sugest\u00f5es" + } + }, + { + "pk": 165, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 5, + "sortable": false, + "name": "cite_eles", + "title": "01.1 Cite eles.", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 3, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 3, + "sortable": false, + "name": "se_a_sede_da_camara_municipal_e_cedida_especifique", + "title": "01.1. Se a sede da C\u00e2mara Municipal \u00e9 cedida, especifique:", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 89, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 8, + "sortable": false, + "name": "se_sim_com_quantos_servidores", + "title": "01.1. Se sim, com quantos servidores?", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 10, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 4, + "sortable": false, + "name": "a_camara_municipal_deseja_receber_consultoria_do_interlegis_para_a_implantacao_eou_atualizacao_de_uma_rede_local", + "title": "01. A C\u00e2mara Municipal deseja receber consultoria do Interlegis para a implanta\u00e7\u00e3o e/ou atualiza\u00e7\u00e3o de uma rede local?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 95, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 9, + "sortable": false, + "name": "a_camara_municipal_possui", + "title": "01. A C\u00e2mara Municipal possui:", + "datatype": "many", + "required": false, + "searched": false, + "help_text": "anexar os documentos impressos e em meio eletr\u00f4nico, necessita exemplar impresso ou digital", + "filtered": false + } + }, + { + "pk": 48, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 6, + "sortable": false, + "name": "a_camara_municipal_possui_area_estruturada_de_comunicacao", + "title": "01. A C\u00e2mara Municipal possui \u00e1rea ESTRUTURADA de comunica\u00e7\u00e3o? ", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 88, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 8, + "sortable": false, + "name": "a_camara_municipal_possui_um_quadro_de_pessoal_definido_para_auxiliar_os_trabalhos_da_mesa_diretora", + "title": "01. A C\u00e2mara Municipal possui um quadro de pessoal definido para auxiliar os trabalhos da Mesa Diretora? ", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 2, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 3, + "sortable": false, + "name": "a_sede_da_camara_municipal_e", + "title": "01. A sede da C\u00e2mara Municipal \u00e9:", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 96, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 10, + "sortable": false, + "name": "consideracoes_gerais", + "title": "01. Considera\u00e7\u00f5es Gerais:", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 27, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 5, + "sortable": false, + "name": "onde_se_inicia_o_registro_do_processo_legislativo_na_camara_municipal", + "title": "01. Onde se inicia o registro do Processo Legislativo na C\u00e2mara Municipal?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 101, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "qual_o_numero_total_de_servidores_da_camara_municipal", + "title": "01. Qual o n\u00famero total de servidores da C\u00e2mara Municipal?", + "datatype": "float", + "required": false, + "searched": false, + "help_text": "efetivos, comissionados, tempor\u00e1rios e celetistas, n\u00e3o incluir parlamentares, empregados terceirizados e estagi\u00e1rios", + "filtered": false + } + }, + { + "pk": 141, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "quantos_parlamentares_possuem_nivel_fundamental_antigo_1_grau", + "title": "02.1.1. Quantos Parlamentares possuem n\u00edvel fundamental (antigo 1\u00ba grau)?", + "datatype": "float", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 142, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "quantos_parlamentares_possuem_nivel_medio_antigo_2_grau", + "title": "02.1.2. Quantos Parlamentares possuem n\u00edvel m\u00e9dio (antigo 2\u00ba grau)?", + "datatype": "float", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 143, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "quantos_parlamentares_possuem_nivel_superior_ou_de_pos_graduacao", + "title": "02.1.3. Quantos Parlamentares possuem n\u00edvel superior ou de p\u00f3s-gradua\u00e7\u00e3o?", + "datatype": "float", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 180, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "camara_possui_informacao_sobre_escolaridade_dos_parlamentares", + "title": "02.1. A C\u00e2mara possui informa\u00e7\u00e3o sobre a escolaridade dos PARLAMENTARES?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 156, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 6, + "sortable": false, + "name": "destas_pessoas_quantas_possuem_formacao_especifica_na_area_de_comunicacao", + "title": "02.1. Destas pessoas quantas possuem forma\u00e7\u00e3o especifica na \u00e1rea de comunica\u00e7\u00e3o?", + "datatype": "float", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 12, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 4, + "sortable": false, + "name": "escreva_um_exemplo_de_e_mail_corporativo", + "title": "02.1. Escreva um exemplo de e-mail corporativo:", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 29, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 5, + "sortable": false, + "name": "se_possui_alguma_quais_sao_elas", + "title": "02.1 Se possui alguma, quais s\u00e3o elas?", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 13, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 4, + "sortable": false, + "name": "se_nao_a_camara_municipal_deseja_receber_orientacao_do_interlegis_para_implantar_e_mail_corporativo", + "title": "02.2. Se n\u00e3o, a C\u00e2mara Municipal deseja receber orienta\u00e7\u00e3o do Interlegis para implantar e-mail corporativo?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 11, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 4, + "sortable": false, + "name": "a_camara_municipal_disponibiliza_e_mail_corporativo_para_parlamentares_servidores", + "title": "02. A C\u00e2mara Municipal disponibiliza e-mail CORPORATIVO, para parlamentares servidores?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 4, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 3, + "sortable": false, + "name": "o_imovel_onde_funciona_a_camara_municipal_e_tombado_pelo_patrimonio_historico", + "title": "02. O im\u00f3vel onde funciona a C\u00e2mara Municipal \u00e9 tombado pelo patrim\u00f4nio hist\u00f3rico?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 90, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 8, + "sortable": false, + "name": "qual_a_periodicidade_de_mudanca_da_mesa_diretora", + "title": "02. Qual a periodicidade de mudan\u00e7a da Mesa Diretora?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 102, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "qual_o_numero_total_de_parlamentares_da_camara_municipal", + "title": "02. Qual o n\u00famero total de parlamentares da C\u00e2mara Municipal?", + "datatype": "float", + "required": false, + "searched": false, + "help_text": "n\u00e3o incluir servidores de qualquer tipo, empregados terceirizados e estagi\u00e1rios", + "filtered": false + } + }, + { + "pk": 28, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 5, + "sortable": false, + "name": "quantas_comissoes_permanentes_a_camara_municipal_possui", + "title": "02. Quantas Comiss\u00f5es Permanentes a C\u00e2mara Municipal possui?", + "datatype": "float", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 49, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 6, + "sortable": false, + "name": "quantas_pessoas_trabalham_na_area_de_comunicacao_na_camara_municipal", + "title": "02. Quantas pessoas trabalham na \u00e1rea de comunica\u00e7\u00e3o na C\u00e2mara Municipal? ", + "datatype": "float", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 97, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 10, + "sortable": false, + "name": "sugestoes_para_a_area_de_ti", + "title": "02. Sugest\u00f5es para a \u00c1rea de TI:", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 144, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "quantos_servidores_possuem_nivel_fundamental_antigo1", + "title": "03.1.1. Quantos servidores efetivos possuem n\u00edvel fundamental (antigo 1\u00ba grau)?", + "datatype": "float", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 145, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "quantos_servidores_possuem_nivel_medio_antigo_2", + "title": "03.1.2. Quantos servidores efetivos possuem n\u00edvel m\u00e9dio (antigo 2\u00ba grau)?", + "datatype": "float", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 146, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "quantos_servidores_possuem_nivel_superior_ou_de_pos_graduacao", + "title": "03.1.3. Quantos servidores possuem n\u00edvel superior ou de p\u00f3s-gradua\u00e7\u00e3o?", + "datatype": "float", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 181, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "camara_possui_informacao_sobre_escolaridade_dos_efetivos", + "title": "03.1. A C\u00e2mara possui informa\u00e7\u00e3o sobre a escolaridade dos servidores EFETIVOS?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 92, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 8, + "sortable": false, + "name": "em_quais_datas_sao_realizadas_as_sessoes_da_camara_municipal", + "title": "03.1. Em quais datas s\u00e3o realizadas as sess\u00f5es da C\u00e2mara Municipal?", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "dias da semana ou determinadas data do m\u00eas, todo dia 10, as quartas feiras, etc.", + "filtered": false + } + }, + { + "pk": 7, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 3, + "sortable": false, + "name": "se_sim_especifique_quais_sao_as_restricoes_a_obras_civis_no_imovel_onde_esta_instalada_a_camara_municipal", + "title": "03.1. Se sim, especifique quais s\u00e3o as restri\u00e7\u00f5es a obras civis no im\u00f3vel onde est\u00e1 instalada a C\u00e2mara Municipal?", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 30, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 5, + "sortable": false, + "name": "a_camara_municipal_possui_comissoes_ou_conselhos_para_debater_os_seguintes_temas", + "title": "03. A C\u00e2mara Municipal possui Comiss\u00f5es ou Conselhos para debater os seguintes temas:", + "datatype": "many", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 126, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 6, + "sortable": false, + "name": "destas_pessoas_quantas_possuem_formacao_especifica_na_area_de_comunicacao", + "title": "03. Destas pessoas, quantas possuem forma\u00e7\u00e3o espec\u00edfica na \u00e1rea de comunica\u00e7\u00e3o?", + "datatype": "float", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 5, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 3, + "sortable": false, + "name": "existem_restricoes_a_obras_civis_no_imovel_onde_esta_instalada_a_camara_municipal", + "title": "03. Existem restri\u00e7\u00f5es a obras civis no im\u00f3vel onde est\u00e1 instalada a C\u00e2mara Municipal?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 91, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 8, + "sortable": false, + "name": "qual_a_periodicidade_das_sessoes_da_camara_municipal", + "title": "03. Qual a periodicidade das sess\u00f5es da C\u00e2mara Municipal?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 104, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "qual_o_numero_total_de_servidores_efetivos_da_camara_municipal", + "title": "03. Qual o n\u00famero total de servidores efetivos da C\u00e2mara Municipal?", + "datatype": "float", + "required": false, + "searched": false, + "help_text": "empossados ap\u00f3s concurso p\u00fablico", + "filtered": false + } + }, + { + "pk": 14, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 4, + "sortable": false, + "name": "quantos_servidores_de_rede_possui_a_camara_municipal", + "title": "03. Quantos servidores de rede possui a C\u00e2mara Municipal?", + "datatype": "float", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 98, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 10, + "sortable": false, + "name": "sugestoes_para_a_area_de_comunicacao", + "title": "03. Sugest\u00f5es para a \u00c1rea de Comunica\u00e7\u00e3o:", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 108, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "caso_os_parlamentares_possam_nomear_servidores_comissionados_qual_e_o_limite_por_parlamentar", + "title": "04.1.1. Caso os parlamentares possam nomear servidores comissionados, qual \u00e9 o limite por parlamentar?", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 107, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "caso_exista_servidores_comissionados_quem_tem_poder_para_nomealos", + "title": "04.1. Caso exista servidores comissionados quem tem poder para nome\u00e1los?", + "datatype": "many", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 94, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 8, + "sortable": false, + "name": "caso_sejam_outros_meios_para_auxiliar_especifique", + "title": "04.1. Caso sejam outros meios para auxiliar, especifique:", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 9, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 3, + "sortable": false, + "name": "onde_sera_a_nova_sede_da_camara_municipal", + "title": "04.1. Onde ser\u00e1 a nova sede da C\u00e2mara Municipal?", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 44, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 5, + "sortable": false, + "name": "o_registro_de_tramitacao_e", + "title": "04.1. O registro de tramita\u00e7\u00e3o \u00e9:", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 128, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 6, + "sortable": false, + "name": "se_sim_selecione_os_meios_de_comunicacao_interna_utilizados_pela_camara", + "title": "04.1 Se sim, selecione os meios de comunica\u00e7\u00e3o INTERNA utilizados pela C\u00e2mara", + "datatype": "many", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 147, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "quantos_servidores_comissionados_nomeado_possuem_nivel_fundamentall_antilgo_1_grau", + "title": "04.2.1. Quantos servidores comissionados (nomeado) possuem n\u00edvel fundamental (antigo 1\u00ba grau )?", + "datatype": "float", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 148, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "quantos_servidores_comissionados_nomeado_possuem_nivel_medio_antiigo_2", + "title": "04.2.2. Quantos servidores comissionados (nomeado) possuem n\u00edvel m\u00e9dio (antigo 2\u00ba grau )?", + "datatype": "float", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 149, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "quantos_servidores_comissionados_nomeado_possuem_nivel_superior_ou_de_pos_graduacao", + "title": "04.2.3. Quantos servidores comissionados (nomeado) possuem n\u00edvel superior ou de p\u00f3s-gradua\u00e7\u00e3o?", + "datatype": "float", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 182, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "camara_possui_informacao_sobre_escolaridade_dos_servidores_comissionados", + "title": "04.2 A C\u00e2mara possui informa\u00e7\u00e3o sobre a escolaridade dos servidores COMISSIONADOS?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 157, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 6, + "sortable": false, + "name": "camara_possui_comunicacao_interna", + "title": "04. A C\u00e2mara executa a\u00e7\u00f5es de comunica\u00e7\u00e3o INTERNA?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 31, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 5, + "sortable": false, + "name": "e_mantido_registro_da_tramitacao_das_proposicoes_legislativas", + "title": "04. \u00c9 mantido registro da tramita\u00e7\u00e3o das proposi\u00e7\u00f5es legislativas?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "encaminhamentos, vota\u00e7\u00f5es, discuss\u00f5es, emendas etc.", + "filtered": false + } + }, + { + "pk": 8, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 3, + "sortable": false, + "name": "existe_projeto_em_tramitacao_ou_decisao_para_a_mudanca_de_sede_da_camara_municipal_nos_proximos_5_anos", + "title": "04. Existe projeto (em tramita\u00e7\u00e3o) ou decis\u00e3o para a mudan\u00e7a de sede da C\u00e2mara Municipal nos pr\u00f3ximos 5 anos?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 106, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "qual_o_numero_total_de_servidores_comissionados_nomeados", + "title": "04. Qual o n\u00famero total de servidores COMISSIONADOS (nomeados)?", + "datatype": "float", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 15, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 4, + "sortable": false, + "name": "quantas_estacoes_de_trabalho_computadores_possui_a_camara_municipal", + "title": "04. Quantas esta\u00e7\u00f5es de trabalho (computadores) possui a C\u00e2mara Municipal?", + "datatype": "float", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 93, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 8, + "sortable": false, + "name": "que_meios_auxiliam_os_parlamentares_da_camara_municipal_na_fiscalizacao_e_controle_das_acoes_do_executivo_quanto_a_execucao_orcamentaria", + "title": "04. Que meios auxiliam os parlamentares da C\u00e2mara Municipal na fiscaliza\u00e7\u00e3o e controle das a\u00e7\u00f5es do executivo quanto \u00e0 execu\u00e7\u00e3o or\u00e7amentaria?", + "datatype": "many", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 99, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 10, + "sortable": false, + "name": "sugestoes_para_a_area_de_capacitacao", + "title": "04. Sugest\u00f5es para a \u00c1rea de Capacita\u00e7\u00e3o:", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 132, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 6, + "sortable": false, + "name": "se_outros_especifique_quais_sao_os_meios_de_comunicacao_proprios", + "title": "05.1.1 Se outros, especifique quais s\u00e3o os meios de comunica\u00e7\u00e3o PR\u00d3PRIOS:", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 45, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 5, + "sortable": false, + "name": "a_organizacao_do_arquivo_e", + "title": "05.1. A organiza\u00e7\u00e3o do arquivo \u00e9:", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 131, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 6, + "sortable": false, + "name": "se_sim_selecione_os_meios_de_comunicacao_proprios_da_camara_com_comunidade", + "title": "05.1 Se sim, selecione os meios de comunica\u00e7\u00e3o PR\u00d3PRIOS da C\u00e2mara com a POPULA\u00c7\u00c3O (VE\u00cdCULOS PERTENCENTES \u00c0 C\u00c2MARA)", + "datatype": "many", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 32, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 5, + "sortable": false, + "name": "a_camara_municipal_conta_com_uma_area_especifica_de_arquivo", + "title": "05. A C\u00e2mara Municipal conta com uma \u00e1rea espec\u00edfica de arquivo?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 130, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 6, + "sortable": false, + "name": "camara_possui_comunicacao_com_comunidade_sn", + "title": "05. A C\u00e2mara TEM meios PR\u00d3PRIOS de comunica\u00e7\u00e3o com a POPULA\u00c7\u00c3O", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 110, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "qual_o_numero_total_de_servidores_temporarios_da_camara_municipal", + "title": "05. Qual o n\u00famero total de servidores TEMPOR\u00c1RIOS (cedidos) da C\u00e2mara Municipal?", + "datatype": "float", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 16, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 4, + "sortable": false, + "name": "quantos_notebooks_possui_a_camara_municipal", + "title": "05. Quantos notebook\u2019s possui a C\u00e2mara Municipal?", + "datatype": "float", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 100, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 10, + "sortable": false, + "name": "sugestoes_para_a_area_de_informacao", + "title": "05. Sugest\u00f5es para a \u00c1rea de Informa\u00e7\u00e3o:", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 135, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 6, + "sortable": false, + "name": "se_outros_especifique_quais_sao_os_meios_de_comunicacao_com_a_comunidade", + "title": "06.1.1 Se outros, especifique quais s\u00e3o os meios de comunica\u00e7\u00e3o EXTERNOS utilizados pela C\u00e2mara para Comunica\u00e7\u00e3o/Relacionamento com a POPULA\u00c7\u00c3O::", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 134, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 6, + "sortable": false, + "name": "se_sim_selecione_os_meios_de_comunicacao_com_comunidade_utilizados_pela_camara", + "title": "06.1 Se sim, selecione os meios de comunica\u00e7\u00e3o EXTERNOS utilizados pela C\u00e2mara para Comunica\u00e7\u00e3o/Relacionamento com a POPULA\u00c7\u00c3O", + "datatype": "many", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 133, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 6, + "sortable": false, + "name": "camara_desenvolve_alguma_acao_de_comunicacao_ou_relacionamento_com_comunidade", + "title": "06. A C\u00e2mara utiliza algum meio de comunica\u00e7\u00e3o EXTERNO para Comunica\u00e7\u00e3o/Relacionamento com a POPULA\u00c7\u00c3O?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 33, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 5, + "sortable": false, + "name": "ha_quadro_de_pessoal_especifico_para_trabalhos_do_arquivo", + "title": "06. H\u00e1 quadro de pessoal espec\u00edfico para trabalhos do arquivo?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 150, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 10, + "sortable": false, + "name": "inscricoes_para_lista_gitec", + "title": "06. Inscri\u00e7\u00f5es para a lista GITEC:", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "e-mails separados por v\u00edrgula", + "filtered": false + } + }, + { + "pk": 111, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "qual_o_numero_total_de_empregados_celetistas_da_camara_municipal", + "title": "06. Qual o n\u00famero total de empregados celetistas da C\u00e2mara Municipal?", + "datatype": "float", + "required": false, + "searched": false, + "help_text": "regidos pela Consolida\u00e7\u00e3o das Leis do Trabalho", + "filtered": false + } + }, + { + "pk": 18, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 4, + "sortable": false, + "name": "quantos_tablets_possui_a_camara_municipal", + "title": "06. Quantos tablet\u2019s possui a C\u00e2mara Municipal?", + "datatype": "float", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 46, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 5, + "sortable": false, + "name": "a_organizacao_da_biblioteca_legislativa_e", + "title": "07.1. A organiza\u00e7\u00e3o da Biblioteca Legislativa \u00e9:", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 113, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "caso_exista_empregados_terceirizados_quais_funcoes_eles_desempenham", + "title": "07.1. Caso exista empregados terceirizados quais fun\u00e7\u00f5es eles desempenham?", + "datatype": "many", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 184, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 6, + "sortable": false, + "name": "se_sim_selecione_forma_de_contato_desenvolvido_pela_camara_com_os_meios_de_comunicacao", + "title": "07.1. Se sim, selecione a forma de contato desenvolvido pela C\u00e2mara com os meios de comunica\u00e7\u00e3o:", + "datatype": "many", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 19, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 4, + "sortable": false, + "name": "a_camara_municipal_possui_conexao_de_banda_larga_com_a_internet", + "title": "07. A C\u00e2mara Municipal possui conex\u00e3o de banda larga com a internet?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 183, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 6, + "sortable": false, + "name": "camara_possui_assessoria_de_imprensa", + "title": "07. A C\u00e2mara possui Assessoria de Imprensa?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 34, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 5, + "sortable": false, + "name": "a_camara_possui_uma_biblioteca_legislativa", + "title": "07. A C\u00e2mara possui uma Biblioteca Legislativa?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 151, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 10, + "sortable": false, + "name": "inscricoes_para_lista_gial", + "title": "07. Inscri\u00e7\u00f5es para a lista GIAL:", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "e-mails separados por v\u00edrgula", + "filtered": false + } + }, + { + "pk": 112, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "qual_o_numero_total_de_empregados_terceirizados_da_camara_municipal", + "title": "07. Qual o n\u00famero total de empregados terceirizados da C\u00e2mara Municipal?", + "datatype": "float", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 22, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 4, + "sortable": false, + "name": "se_a_camara_faz_uso_de_outro_sistema_de_apoio_ao_processo_legislativo_especifique", + "title": "08.1.2 Se a C\u00e2mara faz uso de outro sistema de apoio ao Processo Legislativo, especifique:", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 21, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 4, + "sortable": false, + "name": "o_sistema_pode_ser_acessado_via_internet_por_qualquer_cidadao", + "title": "08.1. O sistema pode ser acessado via internet por qualquer cidad\u00e3o?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 186, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 6, + "sortable": false, + "name": "se_outros_especifique_os_meios_de_comunicacao_de_maior_alcance_no_municipio", + "title": "08.1. Se outros, especifique os meios de comunica\u00e7\u00e3o de MAIOR ALCANCE no munic\u00edpio?", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 114, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "a_camara_municipal_possui_escola_do_legislativo", + "title": "08. A C\u00e2mara Municipal possui \u201cEscola do Legislativo\u201d?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 20, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 4, + "sortable": false, + "name": "a_camara_utiliza_um_sistema_de_apoio_ao_processo_legislativo", + "title": "08. A C\u00e2mara utiliza um sistema de apoio ao Processo Legislativo?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 35, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 5, + "sortable": false, + "name": "ha_quadro_de_pessoal_especifico_para_trabalhos_da_biblioteca_legislativa", + "title": "08. H\u00e1 quadro de pessoal espec\u00edfico para trabalhos da biblioteca legislativa?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 152, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 10, + "sortable": false, + "name": "inscricoes_para_lista_gicom", + "title": "08. Inscri\u00e7\u00f5es para a lista GICOM:", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "e-mails separados por v\u00edrgula", + "filtered": false + } + }, + { + "pk": 185, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 6, + "sortable": false, + "name": "quais_os_meios_de_comunicacao_de_maior_alcance_no_municipio", + "title": "08. Quais os meios de comunica\u00e7\u00e3o de MAIOR ALCANCE no munic\u00edpio?", + "datatype": "many", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 189, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 6, + "sortable": false, + "name": "se_outros_especifique_como_cm_transmite_suas_sessoes", + "title": "09.1.2. Se outros, especifique como a CM transmite suas sess\u00f5es:", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 24, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 4, + "sortable": false, + "name": "qual_o_endereco_do_portal", + "title": "09.1. Qual o endere\u00e7o do portal?", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 188, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 6, + "sortable": false, + "name": "se_sim_especifique_de_que_forma_cm_transmite_suas_sessoes", + "title": "09.1. Se sim, especifique de que forma a CM transmite suas sess\u00f5es:", + "datatype": "many", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 23, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 4, + "sortable": false, + "name": "a_camara_municipal_possui_portal_de_internet", + "title": "09. A C\u00e2mara Municipal possui portal de internet?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 117, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "a_camara_municipal_possui_setor_especifico_de_treinamento", + "title": "09. A C\u00e2mara Municipal possui setor espec\u00edfico de treinamento?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 187, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 6, + "sortable": false, + "name": "camara_transmite_sessoes_plenarias", + "title": "09. A C\u00e2mara transmite as Sess\u00f5es Plen\u00e1rias?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 36, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 5, + "sortable": false, + "name": "qual_a_data_da_ultima_atualizacao_da_lei_organica_municial_da_camara_municipal", + "title": "09. Qual a data da \u00faltima atualiza\u00e7\u00e3o da LEI ORG\u00c2NICA MUNICIAL da C\u00e2mara Municipal? ", + "datatype": "date", + "required": false, + "searched": false, + "help_text": "Solicitar exemplar impresso ou digital", + "filtered": false + } + }, + { + "pk": 192, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 6, + "sortable": false, + "name": "se_outros_especifique_os_mecanismos_junto_populacao_fim_de_responder_perguntas_ou_ouvir_criticas_e_sugestoes", + "title": "10.1.2. Se outros, especifique os mecanismos junto a popula\u00e7\u00e3o a fim de responder perguntas ou ouvir cr\u00edticas e sugest\u00f5es:", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 116, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "como_sao_realizados_o_planejamento_ou_execucao_de_acoes_de_treinamento", + "title": "10.1. Como \u00e9 realizado o planejamento e/ou execu\u00e7\u00e3o de a\u00e7\u00f5es de treinamento?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 26, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 4, + "sortable": false, + "name": "se_a_camara_faz_uso_de_outro_sistema_de_apoio_a_atividade_parlamentar_especifique", + "title": "10.1. Se a C\u00e2mara faz uso de outro sistema de apoio \u00e0 Atividade Parlamentar, especifique:", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 191, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 6, + "sortable": false, + "name": "se_sim_que_mecanismos_camara_oferece_populacao_fim_de_responder_perguntas_ou_ouvir_sugestoes", + "title": "10.1 Se sim, que mecanismos a C\u00e2mara oferece a popula\u00e7\u00e3o a fim de responder perguntas ou ouvir sugest\u00f5es?", + "datatype": "many", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 190, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 6, + "sortable": false, + "name": "camara_oferece_algum_mecanismo_junto_populacao_fim_de_responder_perguntas_ou_ouvir_criticas_e_sugestoes", + "title": "10. A C\u00e2mara oferece algum mecanismo junto a popula\u00e7\u00e3o a fim de responder perguntas ou ouvir cr\u00edticas e sugest\u00f5es?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 25, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 4, + "sortable": false, + "name": "a_camara_utiliza_um_sistema_de_apoio_a_atividade_parlamentar", + "title": "10. A C\u00e2mara utiliza um sistema de apoio \u00e0 Atividade Parlamentar?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 115, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "ha_planejamento_ou_execucao_permanente_de_acoes_de_treinamento", + "title": "10. H\u00e1 planejamento ou execu\u00e7\u00e3o permanente de a\u00e7\u00f5es de treinamento?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 37, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 5, + "sortable": false, + "name": "qual_a_data_da_ultima_atualizacao_do_regimento_interno_da_camara_municipal", + "title": "10. Qual a data da \u00faltima atualiza\u00e7\u00e3o do REGIMENTO INTERNO da C\u00e2mara Municipal?", + "datatype": "date", + "required": false, + "searched": false, + "help_text": "Solicitar exemplar impresso ou digital", + "filtered": false + } + }, + { + "pk": 125, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 4, + "sortable": false, + "name": "se_camara_faz_uso_de_outro_sistema_de_protocolo_de_documentos_especifique", + "title": "11.1. Se a C\u00e2mara faz uso de outro sistema de Protocolo de Documentos, especifique:", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 194, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 6, + "sortable": false, + "name": "se_sim_qual_norma_que_rege_o_cerimonial", + "title": "11.1 Se sim, qual a norma que rege o cerimonial?", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 118, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "como_a_camara_municipal_proporciona_atividades_de_treinamento_presencial_para_seus_servidores", + "title": "11. A C\u00e2mara Municipal proporciona atividades de treinamento PRESENCIAL para seus servidores?", + "datatype": "many", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 124, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 4, + "sortable": false, + "name": "camara_utiliza_um_sistema_de_protocolo_de_documentos", + "title": "11. A C\u00e2mara utiliza um sistema de Protocolo de Documentos?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 193, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 6, + "sortable": false, + "name": "atividades_de_eventos_e_cerimonial_da_camara_estao_normatizados_por_ato_resolucao_regimento_interno_portaria_etc", + "title": "11. As atividades de eventos e cerimonial da C\u00e2mara est\u00e3o normatizados?: (por ato, resolu\u00e7\u00e3o, regimento interno, portaria etc.)", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 38, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 5, + "sortable": false, + "name": "de_que_forma_a_camara_resolve_duvidas_na_aplicacao_do_regimento_interno", + "title": "11. De que forma a C\u00e2mara resolve d\u00favidas na aplica\u00e7\u00e3o do Regimento Interno:", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 119, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "a_camara_municipal_proporciona_atividades_de_treinamento_a_distancia_para_seus_servidores", + "title": "12. A C\u00e2mara Municipal proporciona atividades de treinamento A DIST\u00c2NCIA para seus servidores?", + "datatype": "many", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 39, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 5, + "sortable": false, + "name": "de_que_forma_a_camara_resolve_duvidas_na_aplicacao_da_lei_organica_do_municipio", + "title": "12. De que forma a C\u00e2mara resolve d\u00favidas na aplica\u00e7\u00e3o da Lei Org\u00e2nica do Munic\u00edpio:", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 40, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 5, + "sortable": false, + "name": "a_camara_municipal_deseja_receber_consultoria_do_interlegis_para_a_revisaoatualizacao_do_regimento_interno", + "title": "13. A C\u00e2mara Municipal deseja receber consultoria do Interlegis para a revis\u00e3o/atualiza\u00e7\u00e3o do Regimento Interno?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 120, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "parlamentares_da_camara_ja_participaram_de_cursos_via_internet", + "title": "13. Parlamentares da C\u00e2mara j\u00e1 participaram de cursos via internet?", + "datatype": "many", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 47, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 5, + "sortable": false, + "name": "a_camara_municipal_deseja_receber_consultoria_do_interlegis_para_a_revisaoatualizacao_da_lei_organica_do_municipio", + "title": "14. A C\u00e2mara Municipal deseja receber consultoria do Interlegis para a revis\u00e3o/atualiza\u00e7\u00e3o da Lei Org\u00e2nica do Munic\u00edpio?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 121, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "servidores_da_camara_ja_participaram_de_cursos_via_internet", + "title": "14. Servidores da C\u00e2mara j\u00e1 participaram de cursos via internet?", + "datatype": "many", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 122, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "descreva_5_cursos_prioritarios_para_treinamento_de_parlamentares_da_camara_municipal", + "title": "15. Descreva 05 cursos priorit\u00e1rios para treinamento de PARLAMENTARES da C\u00e2mara Municipal:", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "Digitar um por linha", + "filtered": false + } + }, + { + "pk": 41, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 5, + "sortable": false, + "name": "os_vereadores_possuem_gabinetes_proprios_e_privativos", + "title": "15. Os vereadores possuem gabinetes individuais?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 123, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 7, + "sortable": false, + "name": "descreva_5_cursos_prioritarios_para_treinamento_de_servidores_da_camara_municipal", + "title": "16. Descreva 05 cursos priorit\u00e1rios para treinamento de SERVIDORES da C\u00e2mara Municipal:", + "datatype": "text", + "required": false, + "searched": false, + "help_text": "Digitar um por linha", + "filtered": false + } + }, + { + "pk": 42, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 5, + "sortable": false, + "name": "o_processo_de_aprovacao_e_de_fiscalizacao_do_orcamento_municipal_e_normatizado", + "title": "16. O processo de aprova\u00e7\u00e3o e de fiscaliza\u00e7\u00e3o do or\u00e7amento municipal \u00e9 normatizado?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 163, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 5, + "sortable": false, + "name": "camara_realiza_sessoes_intinerantes", + "title": "17. A C\u00e2mara realiza Sess\u00f5es Itinerantes?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 164, + "model": "diagnosticos.pergunta", + "fields": { + "categoria": 5, + "sortable": false, + "name": "camara_realiza_audiencias_publicas", + "title": "18. A C\u00e2mara realiza Audi\u00eancias P\u00fablicas?", + "datatype": "one", + "required": false, + "searched": false, + "help_text": "", + "filtered": false + } + }, + { + "pk": 14, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 10, + "schema_to_open": null, + "title": "Sim" + } + }, + { + "pk": 15, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 10, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 294, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 95, + "schema_to_open": null, + "title": "Bras\u00e3o ou logotipo oficial" + } + }, + { + "pk": 287, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 95, + "schema_to_open": null, + "title": "Organograma" + } + }, + { + "pk": 293, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 3, + "schema": 95, + "schema_to_open": null, + "title": "C\u00f3digo de \u00c9tica" + } + }, + { + "pk": 291, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 4, + "schema": 95, + "schema_to_open": null, + "title": "Controle de Protocolo" + } + }, + { + "pk": 289, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 5, + "schema": 95, + "schema_to_open": null, + "title": "Norma de Gest\u00e3o Patrimonial" + } + }, + { + "pk": 286, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 6, + "schema": 95, + "schema_to_open": null, + "title": "Plano de Carreira" + } + }, + { + "pk": 284, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 7, + "schema": 95, + "schema_to_open": null, + "title": "Previs\u00e3o Or\u00e7ament\u00e1ria" + } + }, + { + "pk": 285, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 8, + "schema": 95, + "schema_to_open": null, + "title": "Planejamento Estrat\u00e9gico" + } + }, + { + "pk": 288, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 8, + "schema": 95, + "schema_to_open": null, + "title": "Regulamento Administrativo" + } + }, + { + "pk": 290, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 9, + "schema": 95, + "schema_to_open": null, + "title": "Norma de Gest\u00e3o de Documentos" + } + }, + { + "pk": 292, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 10, + "schema": 95, + "schema_to_open": null, + "title": "Manuais de Procedimentos" + } + }, + { + "pk": 81, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 48, + "schema_to_open": null, + "title": "Sim" + } + }, + { + "pk": 82, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 48, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 272, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 88, + "schema_to_open": 89, + "title": "Sim" + } + }, + { + "pk": 273, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 88, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 3, + "model": "diagnosticos.escolha", + "fields": { + "ordem": null, + "schema": 2, + "schema_to_open": null, + "title": "Pr\u00f3pria" + } + }, + { + "pk": 4, + "model": "diagnosticos.escolha", + "fields": { + "ordem": null, + "schema": 2, + "schema_to_open": null, + "title": "Alugada" + } + }, + { + "pk": 5, + "model": "diagnosticos.escolha", + "fields": { + "ordem": null, + "schema": 2, + "schema_to_open": 3, + "title": "Cedida por \u00f3rg\u00e3o P\u00fablico" + } + }, + { + "pk": 6, + "model": "diagnosticos.escolha", + "fields": { + "ordem": null, + "schema": 2, + "schema_to_open": 3, + "title": "Cedida por \u00f3rg\u00e3o Particular" + } + }, + { + "pk": 33, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 27, + "schema_to_open": null, + "title": "Protocolo Legislativo manual" + } + }, + { + "pk": 34, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 27, + "schema_to_open": null, + "title": "Protocolo Legislativo informatizado" + } + }, + { + "pk": 35, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 3, + "schema": 27, + "schema_to_open": null, + "title": "Secretaria-Geral da Mesa" + } + }, + { + "pk": 36, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 4, + "schema": 27, + "schema_to_open": null, + "title": "Gabinete da Presid\u00eancia" + } + }, + { + "pk": 37, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 5, + "schema": 27, + "schema_to_open": null, + "title": "Livro de expediente" + } + }, + { + "pk": 38, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 6, + "schema": 27, + "schema_to_open": 165, + "title": "Outro" + } + }, + { + "pk": 448, + "model": "diagnosticos.escolha", + "fields": { + "ordem": null, + "schema": 180, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 447, + "model": "diagnosticos.escolha", + "fields": { + "ordem": null, + "schema": 180, + "schema_to_open": null, + "title": "Sim" + } + }, + { + "pk": 18, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 13, + "schema_to_open": null, + "title": "Sim" + } + }, + { + "pk": 19, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 13, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 16, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 11, + "schema_to_open": 12, + "title": "Sim" + } + }, + { + "pk": 17, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 11, + "schema_to_open": 13, + "title": "N\u00e3o" + } + }, + { + "pk": 7, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 4, + "schema_to_open": null, + "title": "Sim" + } + }, + { + "pk": 8, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 4, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 274, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 90, + "schema_to_open": null, + "title": "Anual" + } + }, + { + "pk": 275, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 90, + "schema_to_open": null, + "title": "Bianual" + } + }, + { + "pk": 450, + "model": "diagnosticos.escolha", + "fields": { + "ordem": null, + "schema": 181, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 449, + "model": "diagnosticos.escolha", + "fields": { + "ordem": null, + "schema": 181, + "schema_to_open": null, + "title": "Sim" + } + }, + { + "pk": 39, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 30, + "schema_to_open": null, + "title": "Constitucionalidade" + } + }, + { + "pk": 40, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 30, + "schema_to_open": null, + "title": "Or\u00e7amento e Finan\u00e7as" + } + }, + { + "pk": 41, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 3, + "schema": 30, + "schema_to_open": null, + "title": "Fiscaliza\u00e7\u00e3o" + } + }, + { + "pk": 42, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 4, + "schema": 30, + "schema_to_open": null, + "title": "\u00c9tica" + } + }, + { + "pk": 43, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 5, + "schema": 30, + "schema_to_open": null, + "title": "N\u00e3o possui" + } + }, + { + "pk": 9, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 5, + "schema_to_open": 7, + "title": "Sim" + } + }, + { + "pk": 10, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 5, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 276, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 91, + "schema_to_open": 92, + "title": "Di\u00e1ria" + } + }, + { + "pk": 277, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 91, + "schema_to_open": 92, + "title": "Semanal" + } + }, + { + "pk": 278, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 3, + "schema": 91, + "schema_to_open": 92, + "title": "Quinzenal" + } + }, + { + "pk": 279, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 4, + "schema": 91, + "schema_to_open": 92, + "title": "Mensal" + } + }, + { + "pk": 280, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 5, + "schema": 91, + "schema_to_open": 92, + "title": "Outra" + } + }, + { + "pk": 305, + "model": "diagnosticos.escolha", + "fields": { + "ordem": null, + "schema": 107, + "schema_to_open": null, + "title": "A Mesa Diretora" + } + }, + { + "pk": 304, + "model": "diagnosticos.escolha", + "fields": { + "ordem": null, + "schema": 107, + "schema_to_open": null, + "title": "O Presidente da C\u00e2mara" + } + }, + { + "pk": 303, + "model": "diagnosticos.escolha", + "fields": { + "ordem": null, + "schema": 107, + "schema_to_open": 108, + "title": "Os Parlamentares" + } + }, + { + "pk": 71, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 44, + "schema_to_open": null, + "title": "Manual" + } + }, + { + "pk": 72, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 44, + "schema_to_open": null, + "title": "Informatizado" + } + }, + { + "pk": 359, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 128, + "schema_to_open": null, + "title": "Jornal" + } + }, + { + "pk": 360, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 128, + "schema_to_open": null, + "title": "Revista" + } + }, + { + "pk": 361, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 3, + "schema": 128, + "schema_to_open": null, + "title": "E-mail" + } + }, + { + "pk": 362, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 4, + "schema": 128, + "schema_to_open": null, + "title": "Quadro de avisos" + } + }, + { + "pk": 363, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 5, + "schema": 128, + "schema_to_open": null, + "title": "Boletim impresso" + } + }, + { + "pk": 364, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 6, + "schema": 128, + "schema_to_open": null, + "title": "Intranet" + } + }, + { + "pk": 451, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 182, + "schema_to_open": null, + "title": "Sim" + } + }, + { + "pk": 452, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 182, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 357, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 157, + "schema_to_open": 128, + "title": "Sim" + } + }, + { + "pk": 358, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 157, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 44, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 31, + "schema_to_open": 44, + "title": "Sim" + } + }, + { + "pk": 46, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 31, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 12, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 8, + "schema_to_open": 9, + "title": "Sim" + } + }, + { + "pk": 13, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 8, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 282, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 93, + "schema_to_open": null, + "title": "SIAFI" + } + }, + { + "pk": 281, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 93, + "schema_to_open": null, + "title": "Relat\u00f3rios do Tribunal de Contas" + } + }, + { + "pk": 283, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 3, + "schema": 93, + "schema_to_open": 94, + "title": "Outros" + } + }, + { + "pk": 73, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 45, + "schema_to_open": null, + "title": "Manual" + } + }, + { + "pk": 74, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 45, + "schema_to_open": null, + "title": "Parcialmente informatizada" + } + }, + { + "pk": 481, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 3, + "schema": 45, + "schema_to_open": null, + "title": "Totalmente informatizada" + } + }, + { + "pk": 75, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 4, + "schema": 45, + "schema_to_open": null, + "title": "Inexistente" + } + }, + { + "pk": 368, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 131, + "schema_to_open": null, + "title": "Informativo" + } + }, + { + "pk": 369, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 131, + "schema_to_open": null, + "title": "Jornal" + } + }, + { + "pk": 370, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 3, + "schema": 131, + "schema_to_open": null, + "title": "Revista" + } + }, + { + "pk": 371, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 4, + "schema": 131, + "schema_to_open": null, + "title": "R\u00e1dio" + } + }, + { + "pk": 372, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 5, + "schema": 131, + "schema_to_open": null, + "title": "R\u00e1dio Web" + } + }, + { + "pk": 373, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 6, + "schema": 131, + "schema_to_open": null, + "title": "TV" + } + }, + { + "pk": 374, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 7, + "schema": 131, + "schema_to_open": null, + "title": "TV Web" + } + }, + { + "pk": 375, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 8, + "schema": 131, + "schema_to_open": 132, + "title": "Outros" + } + }, + { + "pk": 47, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 32, + "schema_to_open": 45, + "title": "Sim" + } + }, + { + "pk": 50, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 32, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 366, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 130, + "schema_to_open": 131, + "title": "Sim" + } + }, + { + "pk": 367, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 130, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 378, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 134, + "schema_to_open": null, + "title": "Informativo" + } + }, + { + "pk": 379, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 134, + "schema_to_open": null, + "title": "Jornal" + } + }, + { + "pk": 380, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 3, + "schema": 134, + "schema_to_open": null, + "title": "Revista" + } + }, + { + "pk": 381, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 4, + "schema": 134, + "schema_to_open": null, + "title": "R\u00e1dio" + } + }, + { + "pk": 382, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 5, + "schema": 134, + "schema_to_open": null, + "title": "R\u00e1dio Web" + } + }, + { + "pk": 383, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 6, + "schema": 134, + "schema_to_open": null, + "title": "TV" + } + }, + { + "pk": 384, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 7, + "schema": 134, + "schema_to_open": null, + "title": "TV Web" + } + }, + { + "pk": 385, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 8, + "schema": 134, + "schema_to_open": 135, + "title": "Outros" + } + }, + { + "pk": 376, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 133, + "schema_to_open": 134, + "title": "Sim" + } + }, + { + "pk": 377, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 133, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 51, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 33, + "schema_to_open": null, + "title": "Sim" + } + }, + { + "pk": 52, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 33, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 76, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 46, + "schema_to_open": null, + "title": "Manual" + } + }, + { + "pk": 77, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 46, + "schema_to_open": null, + "title": "Informatizada" + } + }, + { + "pk": 78, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 3, + "schema": 46, + "schema_to_open": null, + "title": "Inexistente" + } + }, + { + "pk": 315, + "model": "diagnosticos.escolha", + "fields": { + "ordem": null, + "schema": 113, + "schema_to_open": null, + "title": "Apoio administrativo em geral" + } + }, + { + "pk": 314, + "model": "diagnosticos.escolha", + "fields": { + "ordem": null, + "schema": 113, + "schema_to_open": null, + "title": "Setor de inform\u00e1tica" + } + }, + { + "pk": 313, + "model": "diagnosticos.escolha", + "fields": { + "ordem": null, + "schema": 113, + "schema_to_open": null, + "title": "Setor de vigil\u00e2ncia" + } + }, + { + "pk": 312, + "model": "diagnosticos.escolha", + "fields": { + "ordem": null, + "schema": 113, + "schema_to_open": null, + "title": "Apoio aos parlamentares (secret\u00e1rias e afins)" + } + }, + { + "pk": 311, + "model": "diagnosticos.escolha", + "fields": { + "ordem": null, + "schema": 113, + "schema_to_open": null, + "title": "Apoio aos gabinetes (copeiros, cont\u00ednuos)" + } + }, + { + "pk": 310, + "model": "diagnosticos.escolha", + "fields": { + "ordem": null, + "schema": 113, + "schema_to_open": null, + "title": "Servi\u00e7os gerais" + } + }, + { + "pk": 455, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 184, + "schema_to_open": null, + "title": "Texto" + } + }, + { + "pk": 456, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 184, + "schema_to_open": null, + "title": "Foto" + } + }, + { + "pk": 457, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 3, + "schema": 184, + "schema_to_open": null, + "title": "V\u00eddeo" + } + }, + { + "pk": 458, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 4, + "schema": 184, + "schema_to_open": null, + "title": "\u00c1udio" + } + }, + { + "pk": 20, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 19, + "schema_to_open": null, + "title": "Sim" + } + }, + { + "pk": 21, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 19, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 453, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 183, + "schema_to_open": 184, + "title": "Sim" + } + }, + { + "pk": 454, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 183, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 53, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 34, + "schema_to_open": 46, + "title": "Sim" + } + }, + { + "pk": 56, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 34, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 25, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 21, + "schema_to_open": 22, + "title": "Sim" + } + }, + { + "pk": 26, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 21, + "schema_to_open": 22, + "title": "N\u00e3o" + } + }, + { + "pk": 316, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 114, + "schema_to_open": null, + "title": "Sim" + } + }, + { + "pk": 317, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 114, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 22, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 20, + "schema_to_open": 21, + "title": "Sim, utilizando o SAPL do Interlegis" + } + }, + { + "pk": 23, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 20, + "schema_to_open": 21, + "title": "Sim, utilizando outro sistema" + } + }, + { + "pk": 24, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 3, + "schema": 20, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 57, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 35, + "schema_to_open": null, + "title": "Sim" + } + }, + { + "pk": 58, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 35, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 459, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 185, + "schema_to_open": null, + "title": "R\u00e1dio" + } + }, + { + "pk": 460, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 185, + "schema_to_open": null, + "title": "TV" + } + }, + { + "pk": 461, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 3, + "schema": 185, + "schema_to_open": null, + "title": "Jornal" + } + }, + { + "pk": 462, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 4, + "schema": 185, + "schema_to_open": null, + "title": "Carro de som" + } + }, + { + "pk": 463, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 5, + "schema": 185, + "schema_to_open": null, + "title": "Faixas, outdoors, cartazes, placas" + } + }, + { + "pk": 464, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 6, + "schema": 185, + "schema_to_open": 186, + "title": "Outros" + } + }, + { + "pk": 467, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 188, + "schema_to_open": null, + "title": "R\u00e1dio" + } + }, + { + "pk": 468, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 188, + "schema_to_open": null, + "title": "TV aberta" + } + }, + { + "pk": 469, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 3, + "schema": 188, + "schema_to_open": null, + "title": "TV a Cabo" + } + }, + { + "pk": 470, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 4, + "schema": 188, + "schema_to_open": null, + "title": "Internet" + } + }, + { + "pk": 471, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 5, + "schema": 188, + "schema_to_open": 189, + "title": "Outros" + } + }, + { + "pk": 27, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 23, + "schema_to_open": 24, + "title": "Sim, utilizando o Portal Modelo do Interlegis" + } + }, + { + "pk": 28, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 23, + "schema_to_open": 24, + "title": "Sim, utilizando outra ferramenta" + } + }, + { + "pk": 29, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 3, + "schema": 23, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 322, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 117, + "schema_to_open": null, + "title": "Sim" + } + }, + { + "pk": 323, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 117, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 465, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 187, + "schema_to_open": 188, + "title": "Sim" + } + }, + { + "pk": 466, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 187, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 320, + "model": "diagnosticos.escolha", + "fields": { + "ordem": null, + "schema": 116, + "schema_to_open": null, + "title": "Em conjunto com as a\u00e7\u00f5es da Escola do Legislativo" + } + }, + { + "pk": 321, + "model": "diagnosticos.escolha", + "fields": { + "ordem": null, + "schema": 116, + "schema_to_open": null, + "title": "Independentes das a\u00e7\u00f5es da Escola do Legislativo" + } + }, + { + "pk": 474, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 191, + "schema_to_open": null, + "title": "Ouvidoria" + } + }, + { + "pk": 475, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 191, + "schema_to_open": null, + "title": "E-mail \"Fale Conosco\"" + } + }, + { + "pk": 476, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 3, + "schema": 191, + "schema_to_open": null, + "title": "Central de Atendimento" + } + }, + { + "pk": 477, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 4, + "schema": 191, + "schema_to_open": null, + "title": "Caixa de Sugest\u00f5es" + } + }, + { + "pk": 478, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 5, + "schema": 191, + "schema_to_open": 192, + "title": "Outros" + } + }, + { + "pk": 472, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 190, + "schema_to_open": 191, + "title": "Sim" + } + }, + { + "pk": 473, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 190, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 30, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 25, + "schema_to_open": null, + "title": "Sim, utilizando o SAAP do Interlegis" + } + }, + { + "pk": 31, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 25, + "schema_to_open": 26, + "title": "Sim, utilizando outro sistema" + } + }, + { + "pk": 32, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 3, + "schema": 25, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 318, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 115, + "schema_to_open": 116, + "title": "Sim" + } + }, + { + "pk": 319, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 115, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 324, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 118, + "schema_to_open": null, + "title": "Sim, em local apropriado na pr\u00f3pria C\u00e2mara" + } + }, + { + "pk": 325, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 118, + "schema_to_open": null, + "title": "Sim, em local improvisado na pr\u00f3pria C\u00e2mara" + } + }, + { + "pk": 326, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 3, + "schema": 118, + "schema_to_open": null, + "title": "Sim, em local externo" + } + }, + { + "pk": 327, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 4, + "schema": 118, + "schema_to_open": null, + "title": "N\u00e3o proporciona" + } + }, + { + "pk": 343, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 124, + "schema_to_open": null, + "title": "Sim, utilizando o SPDO do Interlegis" + } + }, + { + "pk": 342, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 124, + "schema_to_open": 125, + "title": "Sim, utilizando outro sistema" + } + }, + { + "pk": 341, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 3, + "schema": 124, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 479, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 193, + "schema_to_open": 194, + "title": "Sim" + } + }, + { + "pk": 480, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 193, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 59, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 38, + "schema_to_open": null, + "title": "Decide internamente" + } + }, + { + "pk": 60, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 38, + "schema_to_open": null, + "title": "Realiza consulta externa ou Recorre a \u00f3rg\u00e3o externo" + } + }, + { + "pk": 340, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 3, + "schema": 38, + "schema_to_open": null, + "title": "Ambos" + } + }, + { + "pk": 328, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 119, + "schema_to_open": null, + "title": "Sim, em local apropriado na pr\u00f3pria C\u00e2mara" + } + }, + { + "pk": 329, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 119, + "schema_to_open": null, + "title": "Sim, em local improvisado na pr\u00f3pria C\u00e2mara" + } + }, + { + "pk": 330, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 3, + "schema": 119, + "schema_to_open": null, + "title": "Sim, cada servidor utiliza os mesmos computadores que usam para trabalhar" + } + }, + { + "pk": 331, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 4, + "schema": 119, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 61, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 39, + "schema_to_open": null, + "title": "Decide internamente" + } + }, + { + "pk": 62, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 39, + "schema_to_open": null, + "title": "Realiza consulta externa ou Recorre a \u00f3rg\u00e3o externo" + } + }, + { + "pk": 356, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 3, + "schema": 39, + "schema_to_open": null, + "title": "Ambos" + } + }, + { + "pk": 63, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 40, + "schema_to_open": null, + "title": "Sim" + } + }, + { + "pk": 66, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 40, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 332, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 120, + "schema_to_open": null, + "title": "Sim, via ILB/Senado" + } + }, + { + "pk": 333, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 120, + "schema_to_open": null, + "title": "Sim, via Interlegis/Senado" + } + }, + { + "pk": 334, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 3, + "schema": 120, + "schema_to_open": null, + "title": "Sim, por meio de outras institui\u00e7\u00f5es" + } + }, + { + "pk": 335, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 4, + "schema": 120, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 79, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 47, + "schema_to_open": null, + "title": "Sim" + } + }, + { + "pk": 80, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 47, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 336, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 121, + "schema_to_open": null, + "title": "Sim, via ILB/Senado" + } + }, + { + "pk": 337, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 121, + "schema_to_open": null, + "title": "Sim, via Interlegis/Senado" + } + }, + { + "pk": 338, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 3, + "schema": 121, + "schema_to_open": null, + "title": "Sim, por meio de outras institui\u00e7\u00f5es" + } + }, + { + "pk": 339, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 4, + "schema": 121, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 67, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 41, + "schema_to_open": null, + "title": "Sim" + } + }, + { + "pk": 68, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 41, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 69, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 42, + "schema_to_open": null, + "title": "Sim" + } + }, + { + "pk": 70, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 42, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 398, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 163, + "schema_to_open": null, + "title": "Sim" + } + }, + { + "pk": 399, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 163, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 400, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 1, + "schema": 164, + "schema_to_open": null, + "title": "Sim" + } + }, + { + "pk": 401, + "model": "diagnosticos.escolha", + "fields": { + "ordem": 2, + "schema": 164, + "schema_to_open": null, + "title": "N\u00e3o" + } + }, + { + "pk": 2, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 89 + } + }, + { + "pk": 3, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 96 + } + }, + { + "pk": 4, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 12 + } + }, + { + "pk": 5, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 29 + } + }, + { + "pk": 6, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 97 + } + }, + { + "pk": 7, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 92 + } + }, + { + "pk": 8, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 7 + } + }, + { + "pk": 10, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 98 + } + }, + { + "pk": 11, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 108 + } + }, + { + "pk": 12, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 94 + } + }, + { + "pk": 13, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 9 + } + }, + { + "pk": 15, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 99 + } + }, + { + "pk": 17, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 100 + } + }, + { + "pk": 21, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 22 + } + }, + { + "pk": 22, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 24 + } + }, + { + "pk": 23, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 26 + } + }, + { + "pk": 25, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 122 + } + }, + { + "pk": 26, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 123 + } + }, + { + "pk": 1, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 3 + } + }, + { + "pk": 70, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 1, + "value_float": 3.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 14 + } + }, + { + "pk": 75, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 1, + "value_float": 94.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 15 + } + }, + { + "pk": 80, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 1, + "value_float": 9.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 16 + } + }, + { + "pk": 94, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 1, + "value_float": 5.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 18 + } + }, + { + "pk": 6739, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 125 + } + }, + { + "pk": 6850, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 135 + } + }, + { + "pk": 6852, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 125 + } + }, + { + "pk": 2979, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 14 + } + }, + { + "pk": 6861, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 132 + } + }, + { + "pk": 18706, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "cpd@camarasobral.ce.gov.br", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 12 + } + }, + { + "pk": 6952, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 132 + } + }, + { + "pk": 181, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 28 + } + }, + { + "pk": 284, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 3 + } + }, + { + "pk": 285, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 89 + } + }, + { + "pk": 286, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 96 + } + }, + { + "pk": 287, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 12 + } + }, + { + "pk": 288, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 29 + } + }, + { + "pk": 289, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 97 + } + }, + { + "pk": 290, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 92 + } + }, + { + "pk": 291, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 7 + } + }, + { + "pk": 293, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 98 + } + }, + { + "pk": 294, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 108 + } + }, + { + "pk": 295, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 94 + } + }, + { + "pk": 296, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 9 + } + }, + { + "pk": 298, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 99 + } + }, + { + "pk": 300, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 100 + } + }, + { + "pk": 304, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 22 + } + }, + { + "pk": 305, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 24 + } + }, + { + "pk": 306, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 26 + } + }, + { + "pk": 309, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 123 + } + }, + { + "pk": 349, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 108 + } + }, + { + "pk": 339, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 3 + } + }, + { + "pk": 340, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 89 + } + }, + { + "pk": 341, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 96 + } + }, + { + "pk": 342, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 12 + } + }, + { + "pk": 343, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 29 + } + }, + { + "pk": 344, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 97 + } + }, + { + "pk": 345, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 92 + } + }, + { + "pk": 346, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 7 + } + }, + { + "pk": 348, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 98 + } + }, + { + "pk": 350, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 94 + } + }, + { + "pk": 351, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 9 + } + }, + { + "pk": 353, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 99 + } + }, + { + "pk": 355, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 100 + } + }, + { + "pk": 359, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 22 + } + }, + { + "pk": 360, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 24 + } + }, + { + "pk": 361, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 26 + } + }, + { + "pk": 364, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 123 + } + }, + { + "pk": 363, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "ggfgu", + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 122 + } + }, + { + "pk": 6894, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 284, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 6895, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 81, + "value_range_min": null, + "schema": 48 + } + }, + { + "pk": 6896, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 272, + "value_range_min": null, + "schema": 88 + } + }, + { + "pk": 6897, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 4, + "value_range_min": null, + "schema": 2 + } + }, + { + "pk": 6898, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 38, + "value_range_min": null, + "schema": 27 + } + }, + { + "pk": 6899, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 7, + "value_range_min": null, + "schema": 4 + } + }, + { + "pk": 6900, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 274, + "value_range_min": null, + "schema": 90 + } + }, + { + "pk": 6901, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 43, + "value_range_min": null, + "schema": 30 + } + }, + { + "pk": 6902, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 276, + "value_range_min": null, + "schema": 91 + } + }, + { + "pk": 6903, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 303, + "value_range_min": null, + "schema": 107 + } + }, + { + "pk": 6904, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 46, + "value_range_min": null, + "schema": 31 + } + }, + { + "pk": 6905, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 13, + "value_range_min": null, + "schema": 8 + } + }, + { + "pk": 6906, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 47, + "value_range_min": null, + "schema": 32 + } + }, + { + "pk": 6907, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 51, + "value_range_min": null, + "schema": 33 + } + }, + { + "pk": 6908, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 315, + "value_range_min": null, + "schema": 113 + } + }, + { + "pk": 6909, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 314, + "value_range_min": null, + "schema": 113 + } + }, + { + "pk": 6910, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 313, + "value_range_min": null, + "schema": 113 + } + }, + { + "pk": 6911, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 311, + "value_range_min": null, + "schema": 113 + } + }, + { + "pk": 6912, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 310, + "value_range_min": null, + "schema": 113 + } + }, + { + "pk": 6914, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 316, + "value_range_min": null, + "schema": 114 + } + }, + { + "pk": 6916, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 57, + "value_range_min": null, + "schema": 35 + } + }, + { + "pk": 6917, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 23, + "value_range_min": null, + "schema": 20 + } + }, + { + "pk": 6918, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 318, + "value_range_min": null, + "schema": 115 + } + }, + { + "pk": 6919, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 59, + "value_range_min": null, + "schema": 38 + } + }, + { + "pk": 6920, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 63, + "value_range_min": null, + "schema": 40 + } + }, + { + "pk": 6921, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 69, + "value_range_min": null, + "schema": 42 + } + }, + { + "pk": 6927, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 135 + } + }, + { + "pk": 6928, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 125 + } + }, + { + "pk": 4037, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 3, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 102 + } + }, + { + "pk": 6931, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 132 + } + }, + { + "pk": 19656, + "model": "diagnosticos.resposta", + "fields": { + "value_date": "2010-01-08", + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 37 + } + }, + { + "pk": 7092, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 150 + } + }, + { + "pk": 7093, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 151 + } + }, + { + "pk": 7094, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 152 + } + }, + { + "pk": 18703, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 3 + } + }, + { + "pk": 18708, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Auxiliar na implanta\u00e7\u00e3o do SPDO", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 97 + } + }, + { + "pk": 18712, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "N/A", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 108 + } + }, + { + "pk": 18730, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "N/A", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 122 + } + }, + { + "pk": 18711, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Coloc\u00e1-los como clientes dos produtos de comunica\u00e7\u00e3o", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 98 + } + }, + { + "pk": 18731, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Organiza\u00e7\u00e3o de Arquivo; Atendimento a Ouvidoria; T\u00e9cnica Legislativa (prioridade); Cerimonial; Organiza\u00e7\u00e3o da \u00c1rea de Comunica\u00e7\u00e3o.", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 123 + } + }, + { + "pk": 18716, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Organizar a \u00e1rea de arquivo e biblioteca legislativa.", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 100 + } + }, + { + "pk": 18714, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 9 + } + }, + { + "pk": 18718, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 150 + } + }, + { + "pk": 18704, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "12", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 89 + } + }, + { + "pk": 18720, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 151 + } + }, + { + "pk": 18722, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 22 + } + }, + { + "pk": 18723, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 152 + } + }, + { + "pk": 18725, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 26 + } + }, + { + "pk": 20665, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": 15.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 106 + } + }, + { + "pk": 20892, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": 3.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 149 + } + }, + { + "pk": 18732, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 3 + } + }, + { + "pk": 18733, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 89 + } + }, + { + "pk": 18734, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 96 + } + }, + { + "pk": 18735, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 12 + } + }, + { + "pk": 18736, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 29 + } + }, + { + "pk": 18737, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 97 + } + }, + { + "pk": 18738, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 92 + } + }, + { + "pk": 18739, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 7 + } + }, + { + "pk": 18740, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 98 + } + }, + { + "pk": 18741, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 108 + } + }, + { + "pk": 18742, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 94 + } + }, + { + "pk": 18743, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 9 + } + }, + { + "pk": 18744, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 99 + } + }, + { + "pk": 18745, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 100 + } + }, + { + "pk": 18747, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 150 + } + }, + { + "pk": 18748, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 132 + } + }, + { + "pk": 18749, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 151 + } + }, + { + "pk": 18750, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 135 + } + }, + { + "pk": 18751, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 22 + } + }, + { + "pk": 18752, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 152 + } + }, + { + "pk": 18753, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 24 + } + }, + { + "pk": 18754, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 26 + } + }, + { + "pk": 18756, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 125 + } + }, + { + "pk": 18759, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 122 + } + }, + { + "pk": 18760, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 123 + } + }, + { + "pk": 20206, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": 10.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 102 + } + }, + { + "pk": 18761, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 3 + } + }, + { + "pk": 18762, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 89 + } + }, + { + "pk": 18763, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 96 + } + }, + { + "pk": 18764, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 12 + } + }, + { + "pk": 18765, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 29 + } + }, + { + "pk": 18766, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 97 + } + }, + { + "pk": 18767, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 92 + } + }, + { + "pk": 18768, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 7 + } + }, + { + "pk": 18769, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 98 + } + }, + { + "pk": 18770, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 108 + } + }, + { + "pk": 18771, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 94 + } + }, + { + "pk": 18772, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 9 + } + }, + { + "pk": 18773, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 99 + } + }, + { + "pk": 18774, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 100 + } + }, + { + "pk": 18776, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 150 + } + }, + { + "pk": 18777, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 132 + } + }, + { + "pk": 18778, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 151 + } + }, + { + "pk": 18779, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 135 + } + }, + { + "pk": 18780, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 22 + } + }, + { + "pk": 18781, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 152 + } + }, + { + "pk": 18782, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 24 + } + }, + { + "pk": 18783, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 26 + } + }, + { + "pk": 18785, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 125 + } + }, + { + "pk": 18788, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 122 + } + }, + { + "pk": 18789, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 123 + } + }, + { + "pk": 19176, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 165 + } + }, + { + "pk": 18796, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Quinta-feira 15:30", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 92 + } + }, + { + "pk": 18805, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "ffabiosantana@hotmail.com.br", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 150 + } + }, + { + "pk": 18807, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "toninhocostaborges@hotmail.com, marcia.ninha2010@hotmail.com", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 151 + } + }, + { + "pk": 18821, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "A C\u00e2mara Municipal de Marechal Deodoro tem como sede um pr\u00e9dio cedido pela prefeitura e tombado pelo IPHAN, existem gabinetes para todos os vereadores, por\u00e9m, haver\u00e1 aumento no n\u00famero de parlamentares para o pleito de 2012, e a Casa ainda n\u00e3o sabe como vai proceder em rela\u00e7\u00e3o aos gabinetes para os novos parlamentares. Conta com recep\u00e7\u00e3o, Plen\u00e1rio, gabinete da presid\u00eancia, sala de reuni\u00f5es, secretarias, \u00e1reas de arquivo e almoxarifado e copa. Passou por algumas reformas recentemente. No dia em que foi apresentado o PML, faltou energia na Casa e em algumas ruas da cidade, a energia el\u00e9trica oscila muito.", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 96 + } + }, + { + "pk": 18824, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "A Casa conta com apenas 5 esta\u00e7\u00f5es de trabalho, e n\u00e3o possui em sua estrutura servidores de rede. N\u00e3o possui e-mail corporativo para vereadores nem funcion\u00e1rios. Ainda n\u00e3o conta com sistemas de protocolo nem organizacional, e n\u00e3o possui portal na internet.\r\n\u00c9 preciso melhorar e criar os servi\u00e7os de tecnologia para atender as tramita\u00e7\u00f5es dos projetos na Casa. Criar uma p\u00e1gina usando o Portal Modelo e hospedado no servidor do Interlegis ser\u00e1 de grande import\u00e2ncia. Capacita\u00e7\u00e3o de servidores em t\u00e9cnicas em TI, Portal Modelo, SAPL, SAAP e SPDO.", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 97 + } + }, + { + "pk": 19762, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": 1.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 49 + } + }, + { + "pk": 20241, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": 23.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 101 + } + }, + { + "pk": 18810, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "valdifernando@hotmail.com", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 152 + } + }, + { + "pk": 18790, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 3 + } + }, + { + "pk": 18792, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 96 + } + }, + { + "pk": 18793, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 12 + } + }, + { + "pk": 18795, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 97 + } + }, + { + "pk": 18798, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 98 + } + }, + { + "pk": 18800, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 94 + } + }, + { + "pk": 18802, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 99 + } + }, + { + "pk": 18803, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 100 + } + }, + { + "pk": 18809, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 22 + } + }, + { + "pk": 18812, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 26 + } + }, + { + "pk": 18814, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 125 + } + }, + { + "pk": 18801, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Provavelmente ser\u00e1 anexada uma casa ao lado da atual sede.", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 9 + } + }, + { + "pk": 18811, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "camaramunicipaldepenedo.com.br", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 24 + } + }, + { + "pk": 19196, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": 3.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 28 + } + }, + { + "pk": 18794, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Justi\u00e7a; Finan\u00e7as; Fiscaliza\u00e7\u00e3o", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 29 + } + }, + { + "pk": 20279, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": 1.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 141 + } + }, + { + "pk": 18820, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "2", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 89 + } + }, + { + "pk": 18797, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Fachada tombada", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 7 + } + }, + { + "pk": 18822, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 12 + } + }, + { + "pk": 18825, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Sexta-feira", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 92 + } + }, + { + "pk": 18828, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "1", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 108 + } + }, + { + "pk": 18852, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Educa\u00e7\u00e3o, Sa\u00fade e Assist\u00eancia; Legisla\u00e7\u00e3o, Justi\u00e7a e Reda\u00e7\u00e3o Final; Finan\u00e7as e Or\u00e7amento ; Obras e Servi\u00e7os P\u00fablicos", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 29 + } + }, + { + "pk": 18830, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 9 + } + }, + { + "pk": 18860, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Existe apenas o Plen\u00e1rio da Casa como \u00e1rea para capacita\u00e7\u00e3o, por\u00e9m, havendo necessidade, a CM poder\u00e1 solicitar outros espa\u00e7os no munic\u00edpio. Existe grande interesse em realizar cursos presenciais para vereadores e servidores, podendo estender o curso para vereadores e servidores de cidades da regi\u00e3o.", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 99 + } + }, + { + "pk": 18488, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "J\u00e1 possuem o SAPL instalado falta capacita\u00e7\u00e3o. Pretendem migrar para o Portal Modelo, utilizar o SPDO e o SAAP.", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 97 + } + }, + { + "pk": 18838, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 22 + } + }, + { + "pk": 18495, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Curso urgente de SAPL e Portal Modelo.", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 99 + } + }, + { + "pk": 18840, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 24 + } + }, + { + "pk": 18841, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 26 + } + }, + { + "pk": 18843, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 125 + } + }, + { + "pk": 18500, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "nelsonmocmg@gmail.com", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 151 + } + }, + { + "pk": 18513, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "2", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 89 + } + }, + { + "pk": 18439, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 15, + "value_range_min": null, + "schema": 10 + } + }, + { + "pk": 18440, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 284, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 18441, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 81, + "value_range_min": null, + "schema": 48 + } + }, + { + "pk": 18442, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 272, + "value_range_min": null, + "schema": 88 + } + }, + { + "pk": 18443, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 3, + "value_range_min": null, + "schema": 2 + } + }, + { + "pk": 18444, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 34, + "value_range_min": null, + "schema": 27 + } + }, + { + "pk": 18445, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 17, + "value_range_min": null, + "schema": 11 + } + }, + { + "pk": 18446, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 8, + "value_range_min": null, + "schema": 4 + } + }, + { + "pk": 18447, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 10, + "value_range_min": null, + "schema": 5 + } + }, + { + "pk": 18448, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 46, + "value_range_min": null, + "schema": 31 + } + }, + { + "pk": 18449, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 13, + "value_range_min": null, + "schema": 8 + } + }, + { + "pk": 18450, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 283, + "value_range_min": null, + "schema": 93 + } + }, + { + "pk": 18451, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 50, + "value_range_min": null, + "schema": 32 + } + }, + { + "pk": 18453, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 357, + "value_range_min": null, + "schema": 157 + } + }, + { + "pk": 18454, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 51, + "value_range_min": null, + "schema": 33 + } + }, + { + "pk": 18455, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 375, + "value_range_min": null, + "schema": 131 + } + }, + { + "pk": 18456, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 20, + "value_range_min": null, + "schema": 19 + } + }, + { + "pk": 18457, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 56, + "value_range_min": null, + "schema": 34 + } + }, + { + "pk": 18458, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 366, + "value_range_min": null, + "schema": 130 + } + }, + { + "pk": 18459, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 25, + "value_range_min": null, + "schema": 21 + } + }, + { + "pk": 18460, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 385, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 18461, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 316, + "value_range_min": null, + "schema": 114 + } + }, + { + "pk": 18462, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 376, + "value_range_min": null, + "schema": 133 + } + }, + { + "pk": 18463, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 23, + "value_range_min": null, + "schema": 20 + } + }, + { + "pk": 18464, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 58, + "value_range_min": null, + "schema": 35 + } + }, + { + "pk": 18465, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 29, + "value_range_min": null, + "schema": 23 + } + }, + { + "pk": 18467, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 318, + "value_range_min": null, + "schema": 115 + } + }, + { + "pk": 18468, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 31, + "value_range_min": null, + "schema": 25 + } + }, + { + "pk": 18469, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 320, + "value_range_min": null, + "schema": 116 + } + }, + { + "pk": 18471, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 322, + "value_range_min": null, + "schema": 117 + } + }, + { + "pk": 18472, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 342, + "value_range_min": null, + "schema": 124 + } + }, + { + "pk": 18473, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 340, + "value_range_min": null, + "schema": 38 + } + }, + { + "pk": 18475, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 62, + "value_range_min": null, + "schema": 39 + } + }, + { + "pk": 18477, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 66, + "value_range_min": null, + "schema": 40 + } + }, + { + "pk": 18478, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 329, + "value_range_min": null, + "schema": 119 + } + }, + { + "pk": 18480, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 80, + "value_range_min": null, + "schema": 47 + } + }, + { + "pk": 18481, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 67, + "value_range_min": null, + "schema": 41 + } + }, + { + "pk": 18482, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 70, + "value_range_min": null, + "schema": 42 + } + }, + { + "pk": 18848, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 3 + } + }, + { + "pk": 18826, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Fachada", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 7 + } + }, + { + "pk": 18851, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 12 + } + }, + { + "pk": 18857, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "2", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 108 + } + }, + { + "pk": 18835, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Audi\u00eancias P\u00fablicas; C\u00e2mara Itinerante; Espa\u00e7o Cidad\u00e3o; Convite; Eventos.", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 132 + } + }, + { + "pk": 18855, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 7 + } + }, + { + "pk": 18837, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Audi\u00eancias P\u00fablicas; C\u00e2mara Itinerante; Espa\u00e7o Cidad\u00e3o; Convite; Eventos.", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 135 + } + }, + { + "pk": 18847, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "T\u00e9cnicas em TICerimonialArquivo e ProtocoloProcesso LegislativoLicita\u00e7\u00f5es e Contratos.", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 123 + } + }, + { + "pk": 18859, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 9 + } + }, + { + "pk": 18864, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 132 + } + }, + { + "pk": 18866, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 135 + } + }, + { + "pk": 18867, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 22 + } + }, + { + "pk": 18869, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 24 + } + }, + { + "pk": 18870, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 26 + } + }, + { + "pk": 18872, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 125 + } + }, + { + "pk": 20318, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": 6.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 143 + } + }, + { + "pk": 18485, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 96 + } + }, + { + "pk": 18849, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "5", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 89 + } + }, + { + "pk": 18490, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 7 + } + }, + { + "pk": 18491, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 98 + } + }, + { + "pk": 18492, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 108 + } + }, + { + "pk": 18494, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 9 + } + }, + { + "pk": 18496, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 100 + } + }, + { + "pk": 18498, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 150 + } + }, + { + "pk": 18501, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 135 + } + }, + { + "pk": 18502, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 22 + } + }, + { + "pk": 18503, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 152 + } + }, + { + "pk": 18505, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 26 + } + }, + { + "pk": 18507, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 125 + } + }, + { + "pk": 18877, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 17, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 3 + } + }, + { + "pk": 18878, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 17, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 89 + } + }, + { + "pk": 18879, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 17, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 96 + } + }, + { + "pk": 18880, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 17, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 12 + } + }, + { + "pk": 18881, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 17, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 29 + } + }, + { + "pk": 18882, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 17, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 97 + } + }, + { + "pk": 18883, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 17, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 92 + } + }, + { + "pk": 18884, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 17, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 7 + } + }, + { + "pk": 18885, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 17, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 98 + } + }, + { + "pk": 18886, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 17, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 108 + } + }, + { + "pk": 18887, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 17, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 94 + } + }, + { + "pk": 18888, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 17, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 9 + } + }, + { + "pk": 18889, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 17, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 99 + } + }, + { + "pk": 18890, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 17, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 100 + } + }, + { + "pk": 18892, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 17, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 150 + } + }, + { + "pk": 18893, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 17, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 132 + } + }, + { + "pk": 18894, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 17, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 151 + } + }, + { + "pk": 18895, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 17, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 135 + } + }, + { + "pk": 18896, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 17, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 22 + } + }, + { + "pk": 18897, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 17, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 152 + } + }, + { + "pk": 18898, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 17, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 24 + } + }, + { + "pk": 18899, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 17, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 26 + } + }, + { + "pk": 18901, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 17, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 125 + } + }, + { + "pk": 18904, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 17, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 122 + } + }, + { + "pk": 18905, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 17, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 123 + } + }, + { + "pk": 20355, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": 3.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 142 + } + }, + { + "pk": 18512, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 3 + } + }, + { + "pk": 18514, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 96 + } + }, + { + "pk": 18516, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 29 + } + }, + { + "pk": 18517, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 97 + } + }, + { + "pk": 18520, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 98 + } + }, + { + "pk": 18523, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 9 + } + }, + { + "pk": 18524, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 99 + } + }, + { + "pk": 18525, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 100 + } + }, + { + "pk": 18530, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 135 + } + }, + { + "pk": 18531, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 22 + } + }, + { + "pk": 18532, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 152 + } + }, + { + "pk": 18534, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 26 + } + }, + { + "pk": 18536, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 125 + } + }, + { + "pk": 18906, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 18, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 3 + } + }, + { + "pk": 18907, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 18, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 89 + } + }, + { + "pk": 18908, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 18, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 96 + } + }, + { + "pk": 18909, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 18, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 12 + } + }, + { + "pk": 18910, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 18, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 29 + } + }, + { + "pk": 18911, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 18, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 97 + } + }, + { + "pk": 18912, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 18, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 92 + } + }, + { + "pk": 18913, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 18, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 7 + } + }, + { + "pk": 18914, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 18, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 98 + } + }, + { + "pk": 18915, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 18, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 108 + } + }, + { + "pk": 18916, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 18, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 94 + } + }, + { + "pk": 18917, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 18, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 9 + } + }, + { + "pk": 18918, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 18, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 99 + } + }, + { + "pk": 18919, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 18, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 100 + } + }, + { + "pk": 18921, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 18, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 150 + } + }, + { + "pk": 18922, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 18, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 132 + } + }, + { + "pk": 18923, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 18, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 151 + } + }, + { + "pk": 18924, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 18, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 135 + } + }, + { + "pk": 18925, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 18, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 22 + } + }, + { + "pk": 18926, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 18, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 152 + } + }, + { + "pk": 18927, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 18, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 24 + } + }, + { + "pk": 18928, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 18, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 26 + } + }, + { + "pk": 18930, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 18, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 125 + } + }, + { + "pk": 18933, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 18, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 122 + } + }, + { + "pk": 18934, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 18, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 123 + } + }, + { + "pk": 19087, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": 0.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 14 + } + }, + { + "pk": 19089, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": 16.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 15 + } + }, + { + "pk": 19090, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": 2.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 16 + } + }, + { + "pk": 18515, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "soraia@cmto.mg.gov.br", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 12 + } + }, + { + "pk": 308, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 122 + } + }, + { + "pk": 18541, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 3 + } + }, + { + "pk": 18542, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 89 + } + }, + { + "pk": 18543, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 96 + } + }, + { + "pk": 18544, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 12 + } + }, + { + "pk": 18545, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 29 + } + }, + { + "pk": 18546, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 97 + } + }, + { + "pk": 18547, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 92 + } + }, + { + "pk": 18548, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 7 + } + }, + { + "pk": 18549, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 98 + } + }, + { + "pk": 18550, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 108 + } + }, + { + "pk": 18551, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 94 + } + }, + { + "pk": 18552, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 9 + } + }, + { + "pk": 18553, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 99 + } + }, + { + "pk": 18554, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 100 + } + }, + { + "pk": 18556, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 150 + } + }, + { + "pk": 18557, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 132 + } + }, + { + "pk": 18558, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 151 + } + }, + { + "pk": 18559, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 135 + } + }, + { + "pk": 18560, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 22 + } + }, + { + "pk": 18561, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 152 + } + }, + { + "pk": 18562, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 24 + } + }, + { + "pk": 18563, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 26 + } + }, + { + "pk": 18565, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 125 + } + }, + { + "pk": 18568, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 122 + } + }, + { + "pk": 18569, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 123 + } + }, + { + "pk": 18935, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 19, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 3 + } + }, + { + "pk": 18936, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 19, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 89 + } + }, + { + "pk": 18937, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 19, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 96 + } + }, + { + "pk": 18938, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 19, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 12 + } + }, + { + "pk": 18939, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 19, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 29 + } + }, + { + "pk": 18940, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 19, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 97 + } + }, + { + "pk": 18941, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 19, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 92 + } + }, + { + "pk": 18942, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 19, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 7 + } + }, + { + "pk": 18943, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 19, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 98 + } + }, + { + "pk": 18944, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 19, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 108 + } + }, + { + "pk": 18945, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 19, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 94 + } + }, + { + "pk": 18946, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 19, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 9 + } + }, + { + "pk": 18947, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 19, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 99 + } + }, + { + "pk": 18948, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 19, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 100 + } + }, + { + "pk": 18950, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 19, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 150 + } + }, + { + "pk": 18951, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 19, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 132 + } + }, + { + "pk": 18952, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 19, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 151 + } + }, + { + "pk": 18953, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 19, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 135 + } + }, + { + "pk": 18954, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 19, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 22 + } + }, + { + "pk": 18955, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 19, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 152 + } + }, + { + "pk": 18956, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 19, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 24 + } + }, + { + "pk": 18957, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 19, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 26 + } + }, + { + "pk": 18959, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 19, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 125 + } + }, + { + "pk": 18962, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 19, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 122 + } + }, + { + "pk": 18963, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 19, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 123 + } + }, + { + "pk": 23469, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 272, + "value_range_min": null, + "schema": 88 + } + }, + { + "pk": 23470, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 6, + "value_range_min": null, + "schema": 2 + } + }, + { + "pk": 23471, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 448, + "value_range_min": null, + "schema": 180 + } + }, + { + "pk": 23472, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 9, + "value_range_min": null, + "schema": 5 + } + }, + { + "pk": 23473, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 280, + "value_range_min": null, + "schema": 91 + } + }, + { + "pk": 23474, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 358, + "value_range_min": null, + "schema": 157 + } + }, + { + "pk": 23475, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 44, + "value_range_min": null, + "schema": 31 + } + }, + { + "pk": 23476, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 283, + "value_range_min": null, + "schema": 93 + } + }, + { + "pk": 23477, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 47, + "value_range_min": null, + "schema": 32 + } + }, + { + "pk": 23478, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 367, + "value_range_min": null, + "schema": 130 + } + }, + { + "pk": 23479, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 377, + "value_range_min": null, + "schema": 133 + } + }, + { + "pk": 23480, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 454, + "value_range_min": null, + "schema": 183 + } + }, + { + "pk": 23481, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 53, + "value_range_min": null, + "schema": 34 + } + }, + { + "pk": 23482, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 465, + "value_range_min": null, + "schema": 187 + } + }, + { + "pk": 23483, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 318, + "value_range_min": null, + "schema": 115 + } + }, + { + "pk": 23484, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 69, + "value_range_min": null, + "schema": 42 + } + }, + { + "pk": 18570, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 7, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 3 + } + }, + { + "pk": 18571, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 7, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 89 + } + }, + { + "pk": 18572, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 7, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 96 + } + }, + { + "pk": 18573, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 7, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 12 + } + }, + { + "pk": 18574, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 7, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 29 + } + }, + { + "pk": 18575, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 7, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 97 + } + }, + { + "pk": 18576, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 7, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 92 + } + }, + { + "pk": 18577, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 7, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 7 + } + }, + { + "pk": 18578, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 7, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 98 + } + }, + { + "pk": 18579, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 7, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 108 + } + }, + { + "pk": 18580, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 7, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 94 + } + }, + { + "pk": 18581, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 7, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 9 + } + }, + { + "pk": 18582, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 7, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 99 + } + }, + { + "pk": 18583, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 7, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 100 + } + }, + { + "pk": 18585, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 7, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 150 + } + }, + { + "pk": 18586, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 7, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 132 + } + }, + { + "pk": 18587, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 7, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 151 + } + }, + { + "pk": 18588, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 7, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 135 + } + }, + { + "pk": 18589, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 7, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 22 + } + }, + { + "pk": 18590, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 7, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 152 + } + }, + { + "pk": 18591, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 7, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 24 + } + }, + { + "pk": 18592, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 7, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 26 + } + }, + { + "pk": 18594, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 7, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 125 + } + }, + { + "pk": 18597, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 7, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 122 + } + }, + { + "pk": 18598, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 7, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 123 + } + }, + { + "pk": 18964, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 20, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 3 + } + }, + { + "pk": 18965, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 20, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 89 + } + }, + { + "pk": 18966, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 20, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 96 + } + }, + { + "pk": 18967, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 20, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 12 + } + }, + { + "pk": 18968, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 20, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 29 + } + }, + { + "pk": 18969, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 20, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 97 + } + }, + { + "pk": 18970, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 20, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 92 + } + }, + { + "pk": 18971, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 20, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 7 + } + }, + { + "pk": 18972, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 20, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 98 + } + }, + { + "pk": 18973, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 20, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 108 + } + }, + { + "pk": 18974, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 20, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 94 + } + }, + { + "pk": 18975, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 20, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 9 + } + }, + { + "pk": 18976, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 20, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 99 + } + }, + { + "pk": 18977, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 20, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 100 + } + }, + { + "pk": 18979, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 20, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 150 + } + }, + { + "pk": 18980, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 20, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 132 + } + }, + { + "pk": 18981, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 20, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 151 + } + }, + { + "pk": 18982, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 20, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 135 + } + }, + { + "pk": 18983, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 20, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 22 + } + }, + { + "pk": 18984, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 20, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 152 + } + }, + { + "pk": 18985, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 20, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 24 + } + }, + { + "pk": 18986, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 20, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 26 + } + }, + { + "pk": 20473, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": 8.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 104 + } + }, + { + "pk": 18988, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 20, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 125 + } + }, + { + "pk": 18991, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 20, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 122 + } + }, + { + "pk": 18992, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 20, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 123 + } + }, + { + "pk": 18599, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 3 + } + }, + { + "pk": 18600, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 89 + } + }, + { + "pk": 18617, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Portal dA CM", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 135 + } + }, + { + "pk": 18627, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Oratoria\r\nTecnicas Legislativas\r\nComunica\u00e7\u00e3o Institucional\r\nCeromonial\r\n", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 123 + } + }, + { + "pk": 18606, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 7 + } + }, + { + "pk": 18608, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 108 + } + }, + { + "pk": 18609, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 94 + } + }, + { + "pk": 18626, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "O Papel do Vereador\r\nTecnicas Legislativas\r\nConstitucionalidade", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 122 + } + }, + { + "pk": 18604, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "A Camara j\u00e1 utiliza as ferramentas do Interlegis desde 2005 com a implanta\u00e7\u00e3o do PPM. Solicita a implementa\u00e7\u00e3o do SPDO.", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 97 + } + }, + { + "pk": 18612, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 100 + } + }, + { + "pk": 18614, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 150 + } + }, + { + "pk": 18615, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 132 + } + }, + { + "pk": 18616, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 151 + } + }, + { + "pk": 18618, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 22 + } + }, + { + "pk": 18619, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 152 + } + }, + { + "pk": 18621, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 26 + } + }, + { + "pk": 18623, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 125 + } + }, + { + "pk": 18993, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 21, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 3 + } + }, + { + "pk": 18994, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 21, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 89 + } + }, + { + "pk": 18995, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 21, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 96 + } + }, + { + "pk": 18996, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 21, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 12 + } + }, + { + "pk": 18997, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 21, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 29 + } + }, + { + "pk": 18998, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 21, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 97 + } + }, + { + "pk": 18999, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 21, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 92 + } + }, + { + "pk": 19000, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 21, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 7 + } + }, + { + "pk": 19001, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 21, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 98 + } + }, + { + "pk": 19002, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 21, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 108 + } + }, + { + "pk": 19003, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 21, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 94 + } + }, + { + "pk": 19004, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 21, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 9 + } + }, + { + "pk": 19005, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 21, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 99 + } + }, + { + "pk": 19006, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 21, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 100 + } + }, + { + "pk": 19008, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 21, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 150 + } + }, + { + "pk": 19009, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 21, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 132 + } + }, + { + "pk": 19010, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 21, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 151 + } + }, + { + "pk": 19011, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 21, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 135 + } + }, + { + "pk": 19012, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 21, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 22 + } + }, + { + "pk": 19013, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 21, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 152 + } + }, + { + "pk": 19014, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 21, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 24 + } + }, + { + "pk": 19015, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 21, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 26 + } + }, + { + "pk": 19017, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 21, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 125 + } + }, + { + "pk": 19020, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 21, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 122 + } + }, + { + "pk": 19021, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 21, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 123 + } + }, + { + "pk": 18610, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "sem destina\u00e7\u00e3o ", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 9 + } + }, + { + "pk": 18628, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 3 + } + }, + { + "pk": 18637, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "20", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 108 + } + }, + { + "pk": 18602, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "@camaravotorantim.sp.gov.br", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 12 + } + }, + { + "pk": 18636, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "A Camara possui uma boa estrutura de comunica\u00e7\u00e3o, mas precisa otimizar a utiliza\u00e7\u00e3o dos seus recursos.", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 98 + } + }, + { + "pk": 18655, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Processo Legislativo\r\n", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 122 + } + }, + { + "pk": 20508, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": 0.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 146 + } + }, + { + "pk": 18656, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Estrutura de RH\r\nReciclagem em Inform\u00e1tica\r\nProcesso Legislativo para servidores de gabinetes\r\nCerimonial\r\n", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 123 + } + }, + { + "pk": 18635, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 7 + } + }, + { + "pk": 18620, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "www.camaravotorantim.sp.gov.br", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 24 + } + }, + { + "pk": 18638, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 94 + } + }, + { + "pk": 18605, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "segundas feiras - 18 as 22 hs", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 92 + } + }, + { + "pk": 18643, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 150 + } + }, + { + "pk": 18645, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 151 + } + }, + { + "pk": 18646, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 135 + } + }, + { + "pk": 18648, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 152 + } + }, + { + "pk": 18650, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 26 + } + }, + { + "pk": 18652, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 125 + } + }, + { + "pk": 20546, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": 1.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 144 + } + }, + { + "pk": 19022, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 3 + } + }, + { + "pk": 19023, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 89 + } + }, + { + "pk": 19024, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 96 + } + }, + { + "pk": 19025, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 12 + } + }, + { + "pk": 19026, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 29 + } + }, + { + "pk": 19027, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 97 + } + }, + { + "pk": 19028, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 92 + } + }, + { + "pk": 19029, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 7 + } + }, + { + "pk": 19030, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 98 + } + }, + { + "pk": 19031, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 108 + } + }, + { + "pk": 19032, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 94 + } + }, + { + "pk": 19033, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 9 + } + }, + { + "pk": 19034, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 99 + } + }, + { + "pk": 19035, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 100 + } + }, + { + "pk": 19037, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 150 + } + }, + { + "pk": 19038, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 132 + } + }, + { + "pk": 19039, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 151 + } + }, + { + "pk": 19040, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 135 + } + }, + { + "pk": 19041, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 22 + } + }, + { + "pk": 19042, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 152 + } + }, + { + "pk": 19043, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 24 + } + }, + { + "pk": 19044, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 26 + } + }, + { + "pk": 19046, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 125 + } + }, + { + "pk": 19049, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 122 + } + }, + { + "pk": 19050, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 123 + } + }, + { + "pk": 20853, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": 1.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 147 + } + }, + { + "pk": 23497, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 186 + } + }, + { + "pk": 23499, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 189 + } + }, + { + "pk": 15500, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 49 + } + }, + { + "pk": 23501, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 192 + } + }, + { + "pk": 23503, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 194 + } + }, + { + "pk": 18657, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 3 + } + }, + { + "pk": 18664, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "A restri\u00e7\u00e3o diz respeita a parte da CM denominada Castelinho que foi tombado pelo PH. Funcionava o corpo de bombeiros.", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 7 + } + }, + { + "pk": 18660, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "...@camarasantos.sp.gov.br", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 12 + } + }, + { + "pk": 18673, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Site", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 132 + } + }, + { + "pk": 18662, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "A CM utiliza sistemas propriet\u00e1rios e demonstrou muito interesse em migrar para os produtos Interlegis. Para isso, precisa de ajuda na migra\u00e7\u00e3o do banco de dados e treinamento nos nossos sistemas.", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 97 + } + }, + { + "pk": 21014, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": 0.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 111 + } + }, + { + "pk": 21056, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": 0.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 112 + } + }, + { + "pk": 18666, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 108 + } + }, + { + "pk": 18665, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "A CM passa por uma fase de mudan\u00e7a e toda a ajuda que puder ser dada nos diversos seguimentos da comunica\u00e7\u00e3o \u00e9 bem vindo.", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 98 + } + }, + { + "pk": 18668, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 9 + } + }, + { + "pk": 18817, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Licita\u00e7\u00f5es e Contratos\r\nOr\u00e7amento P\u00fablico\r\nLei de Responsabilidade Fiscal\r\nProcesso Legislativo\r\nPapel do Vereador", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 122 + } + }, + { + "pk": 18818, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "T\u00e9cnicas em TI (Portal Modelo; SAPL; SAAP)\r\nCerimonial\r\nProcesso Legislativo\r\nReda\u00e7\u00e3o Oficial\r\nLicita\u00e7\u00f5es e Contratos", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 123 + } + }, + { + "pk": 18672, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 150 + } + }, + { + "pk": 18674, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 151 + } + }, + { + "pk": 18675, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 135 + } + }, + { + "pk": 18677, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 152 + } + }, + { + "pk": 18679, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 26 + } + }, + { + "pk": 18670, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Nos foi informado que o Estado de S\u00e3o Paulo est\u00e1 no implementando uma nova diretriz de armazenamento e organiza\u00e7\u00e3o de arquivo. Sugerimos a pesquisa sobre esse assunto e um levantamento sobre o que seria necess\u00e1rio para treinarmos as CMs para atenderem a essas novas regras.", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 100 + } + }, + { + "pk": 19051, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 165 + } + }, + { + "pk": 19052, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 22, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 38, + "value_range_min": null, + "schema": 27 + } + }, + { + "pk": 20931, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": 11.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 148 + } + }, + { + "pk": 15530, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 156 + } + }, + { + "pk": 15532, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 2, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 126 + } + }, + { + "pk": 18694, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 150 + } + }, + { + "pk": 18696, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 151 + } + }, + { + "pk": 18698, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 152 + } + }, + { + "pk": 20621, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": 7.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 145 + } + }, + { + "pk": 19625, + "model": "diagnosticos.resposta", + "fields": { + "value_date": "2011-09-19", + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 36 + } + }, + { + "pk": 20973, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": 1.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 110 + } + }, + { + "pk": 18678, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "www.camarasantos.sp.gov.br", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 24 + } + }, + { + "pk": 18676, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "R4", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 22 + } + }, + { + "pk": 23558, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "1", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 89 + } + }, + { + "pk": 23557, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 3 + } + }, + { + "pk": 18681, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "R4", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 125 + } + }, + { + "pk": 18661, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "vide anexo", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 29 + } + }, + { + "pk": 23563, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Ter\u00e7as-feiras", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 92 + } + }, + { + "pk": 23561, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 29 + } + }, + { + "pk": 23569, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Os funcion\u00e1rios n\u00e3o t\u00eam permiss\u00e3o para participar de treinamentos fora do Estado. ", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 99 + } + }, + { + "pk": 23567, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "N\u00e3o souberam especificar", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 94 + } + }, + { + "pk": 23566, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 108 + } + }, + { + "pk": 23568, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 9 + } + }, + { + "pk": 23570, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 132 + } + }, + { + "pk": 23572, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 135 + } + }, + { + "pk": 23573, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 150 + } + }, + { + "pk": 23574, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 151 + } + }, + { + "pk": 23559, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "A CM tem uma boa estrutura f\u00edsica e tecnol\u00f3gica, por\u00e9m mostrou-se um pouco receosa com o compromisso formal, leia-se conv\u00eanio. Todas as informa\u00e7\u00f5es foram dadas e os funcion\u00e1rios se mostraram muito interessados, por\u00e9m n\u00e3o foi identificado muito apoio pol\u00edtico. O Presidente nos recebeu em seu gabinete por um curto espa\u00e7o de tempo e n\u00e3o quis que o setor de comunica\u00e7\u00e3o cobrisse nossa visita. O setor Jur\u00eddico prometeu analisar a minuta do conv\u00eanio e pediu um prazo para se manifestar. ", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 96 + } + }, + { + "pk": 23576, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 186 + } + }, + { + "pk": 23577, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 152 + } + }, + { + "pk": 23578, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 189 + } + }, + { + "pk": 23580, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 192 + } + }, + { + "pk": 23581, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 26 + } + }, + { + "pk": 23583, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 194 + } + }, + { + "pk": 23584, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 122 + } + }, + { + "pk": 23585, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 123 + } + }, + { + "pk": 23321, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 186 + } + }, + { + "pk": 23586, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 165 + } + }, + { + "pk": 23587, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 3 + } + }, + { + "pk": 23588, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 89 + } + }, + { + "pk": 23589, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 96 + } + }, + { + "pk": 23590, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 12 + } + }, + { + "pk": 23591, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 29 + } + }, + { + "pk": 23592, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 97 + } + }, + { + "pk": 23593, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 92 + } + }, + { + "pk": 23594, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 7 + } + }, + { + "pk": 23595, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 98 + } + }, + { + "pk": 23596, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 108 + } + }, + { + "pk": 23597, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 94 + } + }, + { + "pk": 23598, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 9 + } + }, + { + "pk": 23599, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 99 + } + }, + { + "pk": 23600, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 132 + } + }, + { + "pk": 23601, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 100 + } + }, + { + "pk": 23602, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 135 + } + }, + { + "pk": 23603, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 150 + } + }, + { + "pk": 23604, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 151 + } + }, + { + "pk": 23605, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 22 + } + }, + { + "pk": 23606, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 186 + } + }, + { + "pk": 23607, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 152 + } + }, + { + "pk": 23608, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 189 + } + }, + { + "pk": 23609, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 24 + } + }, + { + "pk": 23610, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 192 + } + }, + { + "pk": 23611, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 26 + } + }, + { + "pk": 23612, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 125 + } + }, + { + "pk": 23613, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 194 + } + }, + { + "pk": 23614, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 122 + } + }, + { + "pk": 23615, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 123 + } + }, + { + "pk": 23337, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 189 + } + }, + { + "pk": 22988, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 6, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 165 + } + }, + { + "pk": 18791, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "2", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 89 + } + }, + { + "pk": 58895, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": 45.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 101 + } + }, + { + "pk": 18853, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "A CM de Maragogi conta com apenas duas esta\u00e7\u00f5es de trabalho e n\u00e3o possui servidores de rede. N\u00e3o disponibiliza e-mail corporativo para vereadores nem funcion\u00e1rios. Ainda n\u00e3o conta com sistemas de protocolo nem organizacional e n\u00e3o possui portal na internet.\r\n\u00c9 preciso aumentar o n\u00famero de esta\u00e7\u00f5es de trabalho, melhorar e criar os servi\u00e7os de tecnologia para atender as tramita\u00e7\u00f5es dos projetos na Casa. Criar uma p\u00e1gina usando o Portal Modelo e hospedar no servidor do Interlegis \u00e9 de grande interesse. Capacita\u00e7\u00e3o de servidores em t\u00e9cnicas em TI, Portal Modelo, SAPL, SAAP e SPDO.", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 97 + } + }, + { + "pk": 43543, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 15, + "value_range_min": null, + "schema": 10 + } + }, + { + "pk": 43544, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 294, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 43545, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 286, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 43546, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 284, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 29862, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": 1.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 143 + } + }, + { + "pk": 43547, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 81, + "value_range_min": null, + "schema": 48 + } + }, + { + "pk": 43548, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 272, + "value_range_min": null, + "schema": 88 + } + }, + { + "pk": 43549, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 3, + "value_range_min": null, + "schema": 2 + } + }, + { + "pk": 43550, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 34, + "value_range_min": null, + "schema": 27 + } + }, + { + "pk": 43551, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 448, + "value_range_min": null, + "schema": 180 + } + }, + { + "pk": 43552, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 16, + "value_range_min": null, + "schema": 11 + } + }, + { + "pk": 43553, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 8, + "value_range_min": null, + "schema": 4 + } + }, + { + "pk": 43554, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 275, + "value_range_min": null, + "schema": 90 + } + }, + { + "pk": 43555, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 450, + "value_range_min": null, + "schema": 181 + } + }, + { + "pk": 43556, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 39, + "value_range_min": null, + "schema": 30 + } + }, + { + "pk": 43557, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 40, + "value_range_min": null, + "schema": 30 + } + }, + { + "pk": 43558, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 41, + "value_range_min": null, + "schema": 30 + } + }, + { + "pk": 43559, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 10, + "value_range_min": null, + "schema": 5 + } + }, + { + "pk": 43560, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 280, + "value_range_min": null, + "schema": 91 + } + }, + { + "pk": 43561, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 305, + "value_range_min": null, + "schema": 107 + } + }, + { + "pk": 43562, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 72, + "value_range_min": null, + "schema": 44 + } + }, + { + "pk": 43563, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 361, + "value_range_min": null, + "schema": 128 + } + }, + { + "pk": 43564, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 362, + "value_range_min": null, + "schema": 128 + } + }, + { + "pk": 43565, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 364, + "value_range_min": null, + "schema": 128 + } + }, + { + "pk": 43566, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 452, + "value_range_min": null, + "schema": 182 + } + }, + { + "pk": 43567, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 357, + "value_range_min": null, + "schema": 157 + } + }, + { + "pk": 43568, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 44, + "value_range_min": null, + "schema": 31 + } + }, + { + "pk": 43569, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 12, + "value_range_min": null, + "schema": 8 + } + }, + { + "pk": 43570, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 282, + "value_range_min": null, + "schema": 93 + } + }, + { + "pk": 43571, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 281, + "value_range_min": null, + "schema": 93 + } + }, + { + "pk": 43572, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 73, + "value_range_min": null, + "schema": 45 + } + }, + { + "pk": 43573, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 368, + "value_range_min": null, + "schema": 131 + } + }, + { + "pk": 43574, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 373, + "value_range_min": null, + "schema": 131 + } + }, + { + "pk": 43575, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 374, + "value_range_min": null, + "schema": 131 + } + }, + { + "pk": 43576, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 375, + "value_range_min": null, + "schema": 131 + } + }, + { + "pk": 43577, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 47, + "value_range_min": null, + "schema": 32 + } + }, + { + "pk": 43578, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 366, + "value_range_min": null, + "schema": 130 + } + }, + { + "pk": 18641, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "A CM ainda n\u00e3o possui um banco de dados eletronico pr\u00f3prio, utiliza a base da prefeitura. Bom arquivo f\u00edsico.", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 100 + } + }, + { + "pk": 43579, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 379, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 43580, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 383, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 43581, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 384, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 43582, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 376, + "value_range_min": null, + "schema": 133 + } + }, + { + "pk": 43583, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 52, + "value_range_min": null, + "schema": 33 + } + }, + { + "pk": 43584, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 310, + "value_range_min": null, + "schema": 113 + } + }, + { + "pk": 43585, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 314, + "value_range_min": null, + "schema": 113 + } + }, + { + "pk": 43586, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 455, + "value_range_min": null, + "schema": 184 + } + }, + { + "pk": 43587, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 456, + "value_range_min": null, + "schema": 184 + } + }, + { + "pk": 43588, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 20, + "value_range_min": null, + "schema": 19 + } + }, + { + "pk": 43589, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 453, + "value_range_min": null, + "schema": 183 + } + }, + { + "pk": 43590, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 56, + "value_range_min": null, + "schema": 34 + } + }, + { + "pk": 43591, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 26, + "value_range_min": null, + "schema": 21 + } + }, + { + "pk": 43592, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 317, + "value_range_min": null, + "schema": 114 + } + }, + { + "pk": 43593, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 23, + "value_range_min": null, + "schema": 20 + } + }, + { + "pk": 26623, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": 3.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 49 + } + }, + { + "pk": 43594, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 459, + "value_range_min": null, + "schema": 185 + } + }, + { + "pk": 43595, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 461, + "value_range_min": null, + "schema": 185 + } + }, + { + "pk": 28483, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 16 + } + }, + { + "pk": 43596, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 469, + "value_range_min": null, + "schema": 188 + } + }, + { + "pk": 43597, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 470, + "value_range_min": null, + "schema": 188 + } + }, + { + "pk": 43598, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 28, + "value_range_min": null, + "schema": 23 + } + }, + { + "pk": 43599, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 323, + "value_range_min": null, + "schema": 117 + } + }, + { + "pk": 43600, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 465, + "value_range_min": null, + "schema": 187 + } + }, + { + "pk": 43601, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 475, + "value_range_min": null, + "schema": 191 + } + }, + { + "pk": 43602, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 472, + "value_range_min": null, + "schema": 190 + } + }, + { + "pk": 43603, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 32, + "value_range_min": null, + "schema": 25 + } + }, + { + "pk": 43604, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 319, + "value_range_min": null, + "schema": 115 + } + }, + { + "pk": 43605, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 327, + "value_range_min": null, + "schema": 118 + } + }, + { + "pk": 43606, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 342, + "value_range_min": null, + "schema": 124 + } + }, + { + "pk": 43607, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 480, + "value_range_min": null, + "schema": 193 + } + }, + { + "pk": 43608, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 340, + "value_range_min": null, + "schema": 38 + } + }, + { + "pk": 43609, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 331, + "value_range_min": null, + "schema": 119 + } + }, + { + "pk": 43610, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 356, + "value_range_min": null, + "schema": 39 + } + }, + { + "pk": 43611, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 63, + "value_range_min": null, + "schema": 40 + } + }, + { + "pk": 43612, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 335, + "value_range_min": null, + "schema": 120 + } + }, + { + "pk": 43613, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 79, + "value_range_min": null, + "schema": 47 + } + }, + { + "pk": 43614, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 338, + "value_range_min": null, + "schema": 121 + } + }, + { + "pk": 43615, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 67, + "value_range_min": null, + "schema": 41 + } + }, + { + "pk": 43616, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 69, + "value_range_min": null, + "schema": 42 + } + }, + { + "pk": 43617, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 399, + "value_range_min": null, + "schema": 163 + } + }, + { + "pk": 43618, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 400, + "value_range_min": null, + "schema": 164 + } + }, + { + "pk": 43725, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": 24.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 16 + } + }, + { + "pk": 43878, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 165 + } + }, + { + "pk": 43879, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 186 + } + }, + { + "pk": 43880, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 189 + } + }, + { + "pk": 43881, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 192 + } + }, + { + "pk": 43882, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 13, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 194 + } + }, + { + "pk": 28491, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 18 + } + }, + { + "pk": 45040, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": 12.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 102 + } + }, + { + "pk": 18647, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "SECAM", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 22 + } + }, + { + "pk": 29909, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": 2.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 142 + } + }, + { + "pk": 26670, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": 3.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 156 + } + }, + { + "pk": 26677, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": 3.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 126 + } + }, + { + "pk": 45751, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": 8.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 147 + } + }, + { + "pk": 30662, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": 1.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 149 + } + }, + { + "pk": 18644, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Cartilhas", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 132 + } + }, + { + "pk": 23564, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "N\u00e3o \u00e9 permitido realizar obras no pr\u00e9dio principal", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 7 + } + }, + { + "pk": 29956, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": 6.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 141 + } + }, + { + "pk": 45798, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": 135.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 148 + } + }, + { + "pk": 30711, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": 6.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 148 + } + }, + { + "pk": 37146, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": 1.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 110 + } + }, + { + "pk": 6946, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Teste", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 135 + } + }, + { + "pk": 23560, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "evaldohc@camarajundiai.sp.gov.br", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 12 + } + }, + { + "pk": 24320, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": 5.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 14 + } + }, + { + "pk": 24328, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": 115.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 15 + } + }, + { + "pk": 24335, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": 23.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 16 + } + }, + { + "pk": 24342, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": 0.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 18 + } + }, + { + "pk": 30760, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": 13.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 147 + } + }, + { + "pk": 23575, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Siscam", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 22 + } + }, + { + "pk": 23579, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "www.camarajundiai.sp.gov.br", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 24 + } + }, + { + "pk": 23582, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Sistema desenvolvido na pr\u00f3pria Casa", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 125 + } + }, + { + "pk": 23556, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Setor especifico de protocolo (Secretaria)", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 165 + } + }, + { + "pk": 24480, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": 14.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 28 + } + }, + { + "pk": 29195, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 186 + } + }, + { + "pk": 29198, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 189 + } + }, + { + "pk": 29200, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 192 + } + }, + { + "pk": 29202, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 194 + } + }, + { + "pk": 28394, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 81, + "value_range_min": null, + "schema": 48 + } + }, + { + "pk": 28395, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 272, + "value_range_min": null, + "schema": 88 + } + }, + { + "pk": 28396, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 38, + "value_range_min": null, + "schema": 27 + } + }, + { + "pk": 28397, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 447, + "value_range_min": null, + "schema": 180 + } + }, + { + "pk": 28398, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 449, + "value_range_min": null, + "schema": 181 + } + }, + { + "pk": 28399, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 280, + "value_range_min": null, + "schema": 91 + } + }, + { + "pk": 28400, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 71, + "value_range_min": null, + "schema": 44 + } + }, + { + "pk": 28401, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 451, + "value_range_min": null, + "schema": 182 + } + }, + { + "pk": 28402, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 357, + "value_range_min": null, + "schema": 157 + } + }, + { + "pk": 28403, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 44, + "value_range_min": null, + "schema": 31 + } + }, + { + "pk": 28404, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 283, + "value_range_min": null, + "schema": 93 + } + }, + { + "pk": 28405, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 375, + "value_range_min": null, + "schema": 131 + } + }, + { + "pk": 28406, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 47, + "value_range_min": null, + "schema": 32 + } + }, + { + "pk": 28407, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 366, + "value_range_min": null, + "schema": 130 + } + }, + { + "pk": 28408, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 385, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 28409, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 376, + "value_range_min": null, + "schema": 133 + } + }, + { + "pk": 28410, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 51, + "value_range_min": null, + "schema": 33 + } + }, + { + "pk": 28411, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 453, + "value_range_min": null, + "schema": 183 + } + }, + { + "pk": 28412, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 53, + "value_range_min": null, + "schema": 34 + } + }, + { + "pk": 28413, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 316, + "value_range_min": null, + "schema": 114 + } + }, + { + "pk": 28414, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 57, + "value_range_min": null, + "schema": 35 + } + }, + { + "pk": 28415, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 464, + "value_range_min": null, + "schema": 185 + } + }, + { + "pk": 28416, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 471, + "value_range_min": null, + "schema": 188 + } + }, + { + "pk": 28417, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 322, + "value_range_min": null, + "schema": 117 + } + }, + { + "pk": 28418, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 465, + "value_range_min": null, + "schema": 187 + } + }, + { + "pk": 28419, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 478, + "value_range_min": null, + "schema": 191 + } + }, + { + "pk": 28420, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 472, + "value_range_min": null, + "schema": 190 + } + }, + { + "pk": 28421, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 318, + "value_range_min": null, + "schema": 115 + } + }, + { + "pk": 28422, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 479, + "value_range_min": null, + "schema": 193 + } + }, + { + "pk": 28423, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 63, + "value_range_min": null, + "schema": 40 + } + }, + { + "pk": 28424, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 79, + "value_range_min": null, + "schema": 47 + } + }, + { + "pk": 28425, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 67, + "value_range_min": null, + "schema": 41 + } + }, + { + "pk": 28426, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 69, + "value_range_min": null, + "schema": 42 + } + }, + { + "pk": 28427, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 398, + "value_range_min": null, + "schema": 163 + } + }, + { + "pk": 28428, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 24, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 400, + "value_range_min": null, + "schema": 164 + } + }, + { + "pk": 43619, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 165 + } + }, + { + "pk": 43620, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 3 + } + }, + { + "pk": 43621, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 89 + } + }, + { + "pk": 43622, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 96 + } + }, + { + "pk": 43623, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 12 + } + }, + { + "pk": 43624, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 29 + } + }, + { + "pk": 43625, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 97 + } + }, + { + "pk": 43626, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 92 + } + }, + { + "pk": 43627, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 7 + } + }, + { + "pk": 43628, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 98 + } + }, + { + "pk": 43629, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 108 + } + }, + { + "pk": 43630, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 94 + } + }, + { + "pk": 43631, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 9 + } + }, + { + "pk": 43632, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 99 + } + }, + { + "pk": 43633, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 132 + } + }, + { + "pk": 43634, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 100 + } + }, + { + "pk": 43635, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 135 + } + }, + { + "pk": 43636, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 150 + } + }, + { + "pk": 43637, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 151 + } + }, + { + "pk": 43638, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 22 + } + }, + { + "pk": 38693, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": 5.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 15 + } + }, + { + "pk": 43639, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 186 + } + }, + { + "pk": 43640, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 152 + } + }, + { + "pk": 43641, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 189 + } + }, + { + "pk": 43642, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 24 + } + }, + { + "pk": 43643, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 192 + } + }, + { + "pk": 43644, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 26 + } + }, + { + "pk": 43645, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 125 + } + }, + { + "pk": 43646, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 194 + } + }, + { + "pk": 43647, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 122 + } + }, + { + "pk": 43648, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 25, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 123 + } + }, + { + "pk": 43883, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 165 + } + }, + { + "pk": 43884, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 186 + } + }, + { + "pk": 43885, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 189 + } + }, + { + "pk": 43886, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 192 + } + }, + { + "pk": 43887, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 12, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 194 + } + }, + { + "pk": 43738, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 18 + } + }, + { + "pk": 40989, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": 6.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 147 + } + }, + { + "pk": 30921, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": 2.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 112 + } + }, + { + "pk": 38701, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 16 + } + }, + { + "pk": 30157, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": 15.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 104 + } + }, + { + "pk": 41044, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": 1.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 148 + } + }, + { + "pk": 28545, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 165 + } + }, + { + "pk": 45845, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": 25.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 149 + } + }, + { + "pk": 28842, + "model": "diagnosticos.resposta", + "fields": { + "value_date": "2006-12-07", + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 37 + } + }, + { + "pk": 24922, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 165 + } + }, + { + "pk": 38713, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 18 + } + }, + { + "pk": 30228, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": 2.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 146 + } + }, + { + "pk": 18649, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "www.camaraosasco.sp.gov.br", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 24 + } + }, + { + "pk": 41099, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": 5.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 149 + } + }, + { + "pk": 28865, + "model": "diagnosticos.resposta", + "fields": { + "value_date": "2006-11-30", + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 36 + } + }, + { + "pk": 18829, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Balancetes; Audi\u00eancias P\u00fablicas.", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 94 + } + }, + { + "pk": 25102, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": 37.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 104 + } + }, + { + "pk": 30275, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": 3.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 144 + } + }, + { + "pk": 24997, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": 16.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 102 + } + }, + { + "pk": 24962, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": 114.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 101 + } + }, + { + "pk": 39365, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 186 + } + }, + { + "pk": 39368, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 189 + } + }, + { + "pk": 39370, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 192 + } + }, + { + "pk": 39372, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 194 + } + }, + { + "pk": 25205, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": 37.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 106 + } + }, + { + "pk": 28591, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": 4.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 28 + } + }, + { + "pk": 40296, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": 14.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 101 + } + }, + { + "pk": 30322, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": 10.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 145 + } + }, + { + "pk": 45166, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": 0.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 141 + } + }, + { + "pk": 39389, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": 1.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 49 + } + }, + { + "pk": 45899, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": 0.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 110 + } + }, + { + "pk": 25334, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": 7.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 112 + } + }, + { + "pk": 37298, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": 0.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 111 + } + }, + { + "pk": 24939, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 36 + } + }, + { + "pk": 25490, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 82, + "value_range_min": null, + "schema": 48 + } + }, + { + "pk": 25491, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 4, + "value_range_min": null, + "schema": 2 + } + }, + { + "pk": 25492, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 18, + "value_range_min": null, + "schema": 13 + } + }, + { + "pk": 25493, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 17, + "value_range_min": null, + "schema": 11 + } + }, + { + "pk": 25494, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 357, + "value_range_min": null, + "schema": 157 + } + }, + { + "pk": 25495, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 44, + "value_range_min": null, + "schema": 31 + } + }, + { + "pk": 25496, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 375, + "value_range_min": null, + "schema": 131 + } + }, + { + "pk": 25497, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 47, + "value_range_min": null, + "schema": 32 + } + }, + { + "pk": 25498, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 366, + "value_range_min": null, + "schema": 130 + } + }, + { + "pk": 25499, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 382, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 25500, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 385, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 25501, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 376, + "value_range_min": null, + "schema": 133 + } + }, + { + "pk": 25502, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 20, + "value_range_min": null, + "schema": 19 + } + }, + { + "pk": 25503, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 453, + "value_range_min": null, + "schema": 183 + } + }, + { + "pk": 25504, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 23, + "value_range_min": null, + "schema": 20 + } + }, + { + "pk": 25505, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 29, + "value_range_min": null, + "schema": 23 + } + }, + { + "pk": 24957, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 37 + } + }, + { + "pk": 25506, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 1, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 342, + "value_range_min": null, + "schema": 124 + } + }, + { + "pk": 18659, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "A casa possui uma excelente estrutura f\u00edsica. Toda a fachada \u00e9 tombada pelo patrim\u00f4nio hist\u00f3rico, mas toda a parte interna \u00e9 rec\u00e9m constru\u00edda e absolutamente moderna. Possui sala de treinamento e um excelente plenario. O presidente nos recebeu em seu gabinete e ap\u00f3s exposi\u00e7\u00e3o sobre o Interlegis determinou aos seus funcion\u00e1rios que nos fossem dadas todas as informa\u00e7\u00f5es necess\u00e1rias para que a parceria fosse levada adiante. A minuta do conv\u00eanio foi levada pro jur\u00eddico e ap\u00f3s aprecia\u00e7\u00e3o ser\u00e1 enviado via e-mail.", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 96 + } + }, + { + "pk": 41218, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 110 + } + }, + { + "pk": 40351, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": 9.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 102 + } + }, + { + "pk": 30435, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": 20.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 106 + } + }, + { + "pk": 43895, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 186 + } + }, + { + "pk": 43897, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 189 + } + }, + { + "pk": 43899, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 192 + } + }, + { + "pk": 43901, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 194 + } + }, + { + "pk": 18856, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "A Casa n\u00e3o possui uma \u00e1rea de comunica\u00e7\u00e3o estruturada, a pr\u00f3pria presidente da CM \u00e9 a respons\u00e1vel pela divulga\u00e7\u00e3o dos atos do Legislativo a cada sess\u00e3o plen\u00e1ria. As a\u00e7\u00f5es de comunica\u00e7\u00e3o interna da C\u00e2mara s\u00e3o feitas atrav\u00e9s de um quadro de avisos e a comunica\u00e7\u00e3o com a comunidade \u00e9 realizada via programas de r\u00e1dio local. As sess\u00f5es n\u00e3o s\u00e3o transmitidas e n\u00e3o conta com servi\u00e7o de ouvidoria. \r\n\u00c9 preciso a cria\u00e7\u00e3o de um setor estruturado de comunica\u00e7\u00e3o para a Casa e melhorar a comunica\u00e7\u00e3o interna e externa.", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 98 + } + }, + { + "pk": 29723, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": 35.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 101 + } + }, + { + "pk": 57409, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": 11.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 102 + } + }, + { + "pk": 45949, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": 0.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 111 + } + }, + { + "pk": 41278, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 111 + } + }, + { + "pk": 28466, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 14 + } + }, + { + "pk": 25761, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": 0.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 110 + } + }, + { + "pk": 25768, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": 0.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 111 + } + }, + { + "pk": 25769, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 18 + } + }, + { + "pk": 29777, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": 9.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 102 + } + }, + { + "pk": 25712, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 165 + } + }, + { + "pk": 18483, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Pela Prefeitura", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 3 + } + }, + { + "pk": 18484, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "4", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 89 + } + }, + { + "pk": 25724, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": 186.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 101 + } + }, + { + "pk": 25725, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": 1.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 141 + } + }, + { + "pk": 25726, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": 8.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 142 + } + }, + { + "pk": 25727, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": 6.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 143 + } + }, + { + "pk": 18486, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "ricardoluis@cmmoc.mg.gov.br", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 12 + } + }, + { + "pk": 18487, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Legisla\u00e7\u00e3o, Justi\u00e7a e Reda\u00e7\u00e3o; Finan\u00e7as, Or\u00e7amento e Tomada de Contas; Servi\u00e7os P\u00fablicos Municipais; Denomina\u00e7\u00e3o de Vias e Logradouros P\u00fablicos; Sa\u00fade; Educa\u00e7\u00e3o; Seguran\u00e7a e Direitos Humanos; Licita\u00e7\u00e3o; \u00c9tica Parlamentar; Agricultura; Especial de Controle Interno da C\u00e2mara; Meio Ambiente; Esportes.", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 29 + } + }, + { + "pk": 25732, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": 15.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 102 + } + }, + { + "pk": 25733, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": 13.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 28 + } + }, + { + "pk": 25734, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": 8.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 49 + } + }, + { + "pk": 25735, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": 2.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 144 + } + }, + { + "pk": 25736, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": 4.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 145 + } + }, + { + "pk": 25737, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": 21.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 146 + } + }, + { + "pk": 18489, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "2 por semana", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 92 + } + }, + { + "pk": 25745, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": 27.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 104 + } + }, + { + "pk": 25746, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": 5.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 14 + } + }, + { + "pk": 18493, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Balancetes - 4 em 4 meses", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 94 + } + }, + { + "pk": 25753, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": 159.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 106 + } + }, + { + "pk": 25754, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": 70.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 15 + } + }, + { + "pk": 18499, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Site", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 132 + } + }, + { + "pk": 25762, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": 9.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 16 + } + }, + { + "pk": 25778, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 186 + } + }, + { + "pk": 25782, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 189 + } + }, + { + "pk": 18504, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "www.cmmoc.mg.gov.br", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 24 + } + }, + { + "pk": 25788, + "model": "diagnosticos.resposta", + "fields": { + "value_date": "2008-11-11", + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 36 + } + }, + { + "pk": 25789, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 192 + } + }, + { + "pk": 25794, + "model": "diagnosticos.resposta", + "fields": { + "value_date": "2008-11-11", + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 37 + } + }, + { + "pk": 25795, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Portaria e Resolu\u00e7\u00e3o", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 194 + } + }, + { + "pk": 18510, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Orat\u00f3ria; Processo Legislativo; Reda\u00e7\u00e3o Oficial; Administra\u00e7\u00e3o P\u00fablica; Papel do Vereador; Or\u00e7amento", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 122 + } + }, + { + "pk": 18511, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Atendimento; Gest\u00e3o de Pessoas; Reda\u00e7\u00e3o Oficial; Licita\u00e7\u00e3o e contratos; Controle Interno; Gest\u00e3o de documentos", + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 123 + } + }, + { + "pk": 25777, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 112 + } + }, + { + "pk": 28475, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": 2.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 15 + } + }, + { + "pk": 45253, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": 5.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 142 + } + }, + { + "pk": 58961, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": 3.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 141 + } + }, + { + "pk": 34170, + "model": "diagnosticos.resposta", + "fields": { + "value_date": "2009-03-10", + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 36 + } + }, + { + "pk": 46024, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": 0.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 112 + } + }, + { + "pk": 18684, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Gram\u00e1ticaReda\u00e7\u00e3o OficialProcesso LegislativoOrat\u00f3ria", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 122 + } + }, + { + "pk": 39419, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 156 + } + }, + { + "pk": 18639, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Local ainda n\u00e3o definido.", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 9 + } + }, + { + "pk": 33353, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 165 + } + }, + { + "pk": 39426, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 126 + } + }, + { + "pk": 34209, + "model": "diagnosticos.resposta", + "fields": { + "value_date": "2011-12-13", + "value_text": null, + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 37 + } + }, + { + "pk": 37379, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": 13.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 112 + } + }, + { + "pk": 45297, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": 7.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 143 + } + }, + { + "pk": 59027, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": 4.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 142 + } + }, + { + "pk": 33372, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": 8.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 28 + } + }, + { + "pk": 57513, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": 18.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 104 + } + }, + { + "pk": 60076, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 14, + "value_range_min": null, + "schema": 10 + } + }, + { + "pk": 60077, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 294, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 60078, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 284, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 60079, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 81, + "value_range_min": null, + "schema": 48 + } + }, + { + "pk": 60080, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 273, + "value_range_min": null, + "schema": 88 + } + }, + { + "pk": 60081, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 3, + "value_range_min": null, + "schema": 2 + } + }, + { + "pk": 18601, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "A C\u00e2mara possui boa estrutura f\u00edsica, nos recebeu muito bem. Foi disponibilizado o plen\u00e1rio para apresenta\u00e7\u00e3o aos funcionarios e alguns vereadores. Houve participa\u00e7\u00e3o ativa dos mesmos atraves de perguntas.", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 96 + } + }, + { + "pk": 60082, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 33, + "value_range_min": null, + "schema": 27 + } + }, + { + "pk": 60083, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 447, + "value_range_min": null, + "schema": 180 + } + }, + { + "pk": 60084, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 16, + "value_range_min": null, + "schema": 11 + } + }, + { + "pk": 60085, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 8, + "value_range_min": null, + "schema": 4 + } + }, + { + "pk": 60086, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 275, + "value_range_min": null, + "schema": 90 + } + }, + { + "pk": 60087, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 449, + "value_range_min": null, + "schema": 181 + } + }, + { + "pk": 60088, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 43, + "value_range_min": null, + "schema": 30 + } + }, + { + "pk": 60089, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 10, + "value_range_min": null, + "schema": 5 + } + }, + { + "pk": 60090, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 277, + "value_range_min": null, + "schema": 91 + } + }, + { + "pk": 60091, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 305, + "value_range_min": null, + "schema": 107 + } + }, + { + "pk": 60092, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 361, + "value_range_min": null, + "schema": 128 + } + }, + { + "pk": 60093, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 451, + "value_range_min": null, + "schema": 182 + } + }, + { + "pk": 60094, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 46, + "value_range_min": null, + "schema": 31 + } + }, + { + "pk": 60095, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 12, + "value_range_min": null, + "schema": 8 + } + }, + { + "pk": 60096, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 281, + "value_range_min": null, + "schema": 93 + } + }, + { + "pk": 60097, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 74, + "value_range_min": null, + "schema": 45 + } + }, + { + "pk": 60098, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 47, + "value_range_min": null, + "schema": 32 + } + }, + { + "pk": 60099, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 367, + "value_range_min": null, + "schema": 130 + } + }, + { + "pk": 60100, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 381, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 60101, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 383, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 60102, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 385, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 60103, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 376, + "value_range_min": null, + "schema": 133 + } + }, + { + "pk": 60104, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 51, + "value_range_min": null, + "schema": 33 + } + }, + { + "pk": 60105, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 310, + "value_range_min": null, + "schema": 113 + } + }, + { + "pk": 60106, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 313, + "value_range_min": null, + "schema": 113 + } + }, + { + "pk": 60107, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 315, + "value_range_min": null, + "schema": 113 + } + }, + { + "pk": 60108, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 456, + "value_range_min": null, + "schema": 184 + } + }, + { + "pk": 60109, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 458, + "value_range_min": null, + "schema": 184 + } + }, + { + "pk": 60110, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 455, + "value_range_min": null, + "schema": 184 + } + }, + { + "pk": 60111, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 20, + "value_range_min": null, + "schema": 19 + } + }, + { + "pk": 60112, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 453, + "value_range_min": null, + "schema": 183 + } + }, + { + "pk": 60113, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 56, + "value_range_min": null, + "schema": 34 + } + }, + { + "pk": 60114, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 25, + "value_range_min": null, + "schema": 21 + } + }, + { + "pk": 60115, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 317, + "value_range_min": null, + "schema": 114 + } + }, + { + "pk": 60116, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 22, + "value_range_min": null, + "schema": 20 + } + }, + { + "pk": 60117, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 58, + "value_range_min": null, + "schema": 35 + } + }, + { + "pk": 60118, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 461, + "value_range_min": null, + "schema": 185 + } + }, + { + "pk": 60119, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 459, + "value_range_min": null, + "schema": 185 + } + }, + { + "pk": 60120, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 460, + "value_range_min": null, + "schema": 185 + } + }, + { + "pk": 60121, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 469, + "value_range_min": null, + "schema": 188 + } + }, + { + "pk": 60122, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 27, + "value_range_min": null, + "schema": 23 + } + }, + { + "pk": 60123, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 323, + "value_range_min": null, + "schema": 117 + } + }, + { + "pk": 60124, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 465, + "value_range_min": null, + "schema": 187 + } + }, + { + "pk": 60125, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 473, + "value_range_min": null, + "schema": 190 + } + }, + { + "pk": 60126, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 32, + "value_range_min": null, + "schema": 25 + } + }, + { + "pk": 60127, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 319, + "value_range_min": null, + "schema": 115 + } + }, + { + "pk": 60128, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 327, + "value_range_min": null, + "schema": 118 + } + }, + { + "pk": 60129, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 341, + "value_range_min": null, + "schema": 124 + } + }, + { + "pk": 60130, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 480, + "value_range_min": null, + "schema": 193 + } + }, + { + "pk": 60131, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 59, + "value_range_min": null, + "schema": 38 + } + }, + { + "pk": 60132, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 330, + "value_range_min": null, + "schema": 119 + } + }, + { + "pk": 60133, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 356, + "value_range_min": null, + "schema": 39 + } + }, + { + "pk": 60134, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 63, + "value_range_min": null, + "schema": 40 + } + }, + { + "pk": 60135, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 335, + "value_range_min": null, + "schema": 120 + } + }, + { + "pk": 60136, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 79, + "value_range_min": null, + "schema": 47 + } + }, + { + "pk": 18632, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Constitui\u00e7\u00e3o e Justi\u00e7a Economia e Finan\u00e7as Pol\u00edtica Urbana, Meio Ambiente e Defesa dos Direitos do Consumidor de Servi\u00e7os P\u00fablicos Municipais Sa\u00fade e Promo\u00e7\u00e3o Social Educa\u00e7\u00e3o, Cultura e Esportes Obras e Administra\u00e7\u00e3o P\u00fablica Do Idoso, do Aposentado, do Pensionista e dos Portadores de Necessidade Especial Da Crian\u00e7a, do Adolescente, da Juventude e da Mulher", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 29 + } + }, + { + "pk": 33728, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 186 + } + }, + { + "pk": 33730, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 189 + } + }, + { + "pk": 33732, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 192 + } + }, + { + "pk": 33734, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 194 + } + }, + { + "pk": 41336, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 112 + } + }, + { + "pk": 18631, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "presidencia@camaraosasco.sp.gov.br", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 12 + } + }, + { + "pk": 33748, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": 3.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 49 + } + }, + { + "pk": 35768, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": 506.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 101 + } + }, + { + "pk": 43918, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": 4.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 28 + } + }, + { + "pk": 30816, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 110 + } + }, + { + "pk": 33255, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": 26.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 16 + } + }, + { + "pk": 45353, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": 19.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 104 + } + }, + { + "pk": 33776, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": 1.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 156 + } + }, + { + "pk": 33782, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": 1.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 126 + } + }, + { + "pk": 18707, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Defesa do Consumidor; Defesa dos Direitos das Crian\u00e7a e do Alolescente; Servi\u00e7os P\u00fablicos; Atividades Afins.", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 29 + } + }, + { + "pk": 18685, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Informatica B\u00e1sica Processo LegislativoReda\u00e7\u00e3o OficialCerimonial", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 123 + } + }, + { + "pk": 30868, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 111 + } + }, + { + "pk": 33262, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": 0.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 18 + } + }, + { + "pk": 18710, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Por ser tombado pelo patrim\u00f4nio hist\u00f3rico precisa \u00e9 necess\u00e1rio autoriza\u00e7\u00e3o para qualquer obra.", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 7 + } + }, + { + "pk": 18719, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "P\u00e1gina na Internet", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 132 + } + }, + { + "pk": 18721, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Empresa Contratada, imprensa e of\u00edcios.", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 135 + } + }, + { + "pk": 33269, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": 114.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 15 + } + }, + { + "pk": 40612, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": 2.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 104 + } + }, + { + "pk": 18724, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "www.camarasobral.ce.gov.br", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 24 + } + }, + { + "pk": 18819, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Prefeitura", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 3 + } + }, + { + "pk": 39041, + "model": "diagnosticos.resposta", + "fields": { + "value_date": "2004-07-02", + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 36 + } + }, + { + "pk": 18854, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Quinta-feira", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 92 + } + }, + { + "pk": 18669, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "\u00c9 de extrema import\u00e2ncia aproveitar a estrutura f\u00edsica da casa e a boa vontade pol\u00edtica do Presidente para utilizar a CM como centro de treinamento para os munic\u00edpios da regi\u00e3o. De imediato, sugerimos a oficina de Comunica\u00e7\u00e3o Legislativa e uma apresenta\u00e7\u00e3o mais aprofundada dos produtos Interlegis (PM, SAPL, SAAP E SPDO).", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 99 + } + }, + { + "pk": 33275, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": 5.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 14 + } + }, + { + "pk": 38761, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 165 + } + }, + { + "pk": 39066, + "model": "diagnosticos.resposta", + "fields": { + "value_date": "2004-07-02", + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 37 + } + }, + { + "pk": 40712, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": 2.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 144 + } + }, + { + "pk": 18727, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Manual", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 125 + } + }, + { + "pk": 18861, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "\u00c9 necess\u00e1rio uma maior divulga\u00e7\u00e3o dos trabalhos realizados na Casa, tanto para os servidores da C\u00e2mara, como para a comunidade e meios de comunica\u00e7\u00e3o local, criando m\u00e9todos para a divulga\u00e7\u00e3o interna e externa. ", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 100 + } + }, + { + "pk": 18658, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "5", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 89 + } + }, + { + "pk": 38781, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": 4.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 28 + } + }, + { + "pk": 45432, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": 19.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 144 + } + }, + { + "pk": 18823, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Justi\u00e7a e Reda\u00e7\u00e3o Final; Finan\u00e7as e Or\u00e7amento ; Obras e Servi\u00e7os P\u00fablicos; Cultura e Asist\u00eancia Social.", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 29 + } + }, + { + "pk": 18858, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Balancetes", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 94 + } + }, + { + "pk": 40777, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": 12.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 106 + } + }, + { + "pk": 18630, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Fomos muito bem recebidos pelo presidente e alguns vereadores. O corpo funcional j\u00e1 conhece bastante o trabalho do Interlegis e isso facilitou nossa exposi\u00e7\u00e3o. A estrutura f\u00edsica \u00e9 boa e a CM tem total interesse em ser um dos nossos p\u00f3los multiplicadores. Cidade de relev\u00e2ncia na regi\u00e3o e que merece nossa aten\u00e7\u00e3o. Quanto \u00e0 organiza\u00e7\u00e3o dos recursos humanos e dos procedimentos adotados, podemos ressaltar que a Casa precisa de muita ajuda, visto que \u00e9 muito dif\u00edcil identificar as compet\u00eancias.", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 96 + } + }, + { + "pk": 51348, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 186 + } + }, + { + "pk": 51352, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 189 + } + }, + { + "pk": 51355, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 192 + } + }, + { + "pk": 51358, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 194 + } + }, + { + "pk": 19790, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": 0.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 156 + } + }, + { + "pk": 19796, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": 0.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 126 + } + }, + { + "pk": 18663, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Duas vezes por semana. Segundas e quintas.", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 92 + } + }, + { + "pk": 23562, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "A infraestutura \u00e9 muito boa. A CM j\u00e1 tem portal e sistema de processo legislativo, mas os tecnicos demonstraram muito interesse em migrar para nossos produtos, desde que devidamente capacitados. O recurso humano \u00e9 bem reduzido na TI.", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 97 + } + }, + { + "pk": 23565, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "A CM possui uma boa estrutura de comunica\u00e7\u00e3o, mesmo com o pequeno n\u00famero de funcion\u00e1rios do setor. ", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 98 + } + }, + { + "pk": 45477, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": 131.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 145 + } + }, + { + "pk": 18629, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "04", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 89 + } + }, + { + "pk": 38391, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 14, + "value_range_min": null, + "schema": 10 + } + }, + { + "pk": 38392, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 287, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 38393, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 286, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 38394, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 284, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 38395, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 294, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 38396, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 81, + "value_range_min": null, + "schema": 48 + } + }, + { + "pk": 38397, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 272, + "value_range_min": null, + "schema": 88 + } + }, + { + "pk": 38398, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 3, + "value_range_min": null, + "schema": 2 + } + }, + { + "pk": 38399, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 16, + "value_range_min": null, + "schema": 11 + } + }, + { + "pk": 38400, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 7, + "value_range_min": null, + "schema": 4 + } + }, + { + "pk": 38401, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 275, + "value_range_min": null, + "schema": 90 + } + }, + { + "pk": 38402, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 449, + "value_range_min": null, + "schema": 181 + } + }, + { + "pk": 38403, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 41, + "value_range_min": null, + "schema": 30 + } + }, + { + "pk": 38404, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 42, + "value_range_min": null, + "schema": 30 + } + }, + { + "pk": 38405, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 9, + "value_range_min": null, + "schema": 5 + } + }, + { + "pk": 38406, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 277, + "value_range_min": null, + "schema": 91 + } + }, + { + "pk": 38407, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 305, + "value_range_min": null, + "schema": 107 + } + }, + { + "pk": 38408, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 72, + "value_range_min": null, + "schema": 44 + } + }, + { + "pk": 38409, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 361, + "value_range_min": null, + "schema": 128 + } + }, + { + "pk": 38410, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 362, + "value_range_min": null, + "schema": 128 + } + }, + { + "pk": 38411, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 451, + "value_range_min": null, + "schema": 182 + } + }, + { + "pk": 38412, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 357, + "value_range_min": null, + "schema": 157 + } + }, + { + "pk": 38413, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 44, + "value_range_min": null, + "schema": 31 + } + }, + { + "pk": 38414, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 13, + "value_range_min": null, + "schema": 8 + } + }, + { + "pk": 38415, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 281, + "value_range_min": null, + "schema": 93 + } + }, + { + "pk": 18634, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Duas vezes por semana - ter\u00e7as e quintas", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 92 + } + }, + { + "pk": 38416, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 283, + "value_range_min": null, + "schema": 93 + } + }, + { + "pk": 38417, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 282, + "value_range_min": null, + "schema": 93 + } + }, + { + "pk": 38418, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 73, + "value_range_min": null, + "schema": 45 + } + }, + { + "pk": 38419, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 373, + "value_range_min": null, + "schema": 131 + } + }, + { + "pk": 38420, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 374, + "value_range_min": null, + "schema": 131 + } + }, + { + "pk": 38421, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 47, + "value_range_min": null, + "schema": 32 + } + }, + { + "pk": 38422, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 366, + "value_range_min": null, + "schema": 130 + } + }, + { + "pk": 23571, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "O arquivo \u00e9 muito organizado, com sala adequada e mobili\u00e1rio especifico de arquivo. Falta sistema para organiza\u00e7\u00e3o informatizada.", + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 100 + } + }, + { + "pk": 38423, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 381, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 38424, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 376, + "value_range_min": null, + "schema": 133 + } + }, + { + "pk": 38425, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 51, + "value_range_min": null, + "schema": 33 + } + }, + { + "pk": 38426, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 310, + "value_range_min": null, + "schema": 113 + } + }, + { + "pk": 38427, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 455, + "value_range_min": null, + "schema": 184 + } + }, + { + "pk": 38428, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 456, + "value_range_min": null, + "schema": 184 + } + }, + { + "pk": 38429, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 20, + "value_range_min": null, + "schema": 19 + } + }, + { + "pk": 38430, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 453, + "value_range_min": null, + "schema": 183 + } + }, + { + "pk": 38431, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 25, + "value_range_min": null, + "schema": 21 + } + }, + { + "pk": 38432, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 317, + "value_range_min": null, + "schema": 114 + } + }, + { + "pk": 38433, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 23, + "value_range_min": null, + "schema": 20 + } + }, + { + "pk": 38434, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 58, + "value_range_min": null, + "schema": 35 + } + }, + { + "pk": 38435, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 459, + "value_range_min": null, + "schema": 185 + } + }, + { + "pk": 38436, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 467, + "value_range_min": null, + "schema": 188 + } + }, + { + "pk": 38437, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 469, + "value_range_min": null, + "schema": 188 + } + }, + { + "pk": 38438, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 470, + "value_range_min": null, + "schema": 188 + } + }, + { + "pk": 38439, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 28, + "value_range_min": null, + "schema": 23 + } + }, + { + "pk": 38440, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 322, + "value_range_min": null, + "schema": 117 + } + }, + { + "pk": 38441, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 465, + "value_range_min": null, + "schema": 187 + } + }, + { + "pk": 38442, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 321, + "value_range_min": null, + "schema": 116 + } + }, + { + "pk": 38443, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 475, + "value_range_min": null, + "schema": 191 + } + }, + { + "pk": 38444, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 472, + "value_range_min": null, + "schema": 190 + } + }, + { + "pk": 38445, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 32, + "value_range_min": null, + "schema": 25 + } + }, + { + "pk": 38446, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 318, + "value_range_min": null, + "schema": 115 + } + }, + { + "pk": 38447, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 324, + "value_range_min": null, + "schema": 118 + } + }, + { + "pk": 38448, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 342, + "value_range_min": null, + "schema": 124 + } + }, + { + "pk": 38449, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 480, + "value_range_min": null, + "schema": 193 + } + }, + { + "pk": 38450, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 340, + "value_range_min": null, + "schema": 38 + } + }, + { + "pk": 38451, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 330, + "value_range_min": null, + "schema": 119 + } + }, + { + "pk": 38452, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 356, + "value_range_min": null, + "schema": 39 + } + }, + { + "pk": 38453, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 63, + "value_range_min": null, + "schema": 40 + } + }, + { + "pk": 38454, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 79, + "value_range_min": null, + "schema": 47 + } + }, + { + "pk": 38455, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 67, + "value_range_min": null, + "schema": 41 + } + }, + { + "pk": 38456, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 399, + "value_range_min": null, + "schema": 163 + } + }, + { + "pk": 38457, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 23, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 400, + "value_range_min": null, + "schema": 164 + } + }, + { + "pk": 35710, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": 21.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 102 + } + }, + { + "pk": 38684, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 14 + } + }, + { + "pk": 18667, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "A CM s\u00f3 fiscaliza quando h\u00e1 apontamento do Tribunal de Contas.", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 94 + } + }, + { + "pk": 36091, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 9, + "value_float": 56.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 104 + } + }, + { + "pk": 45522, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": 37.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 146 + } + }, + { + "pk": 18633, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "A CM utiliza diversos sistemas de empresas privadas e j\u00e1 deu inicio \u00e0 migra\u00e7\u00e3o para os produtos Interlegis. O PM j\u00e1 est\u00e1 sendo custodiado e o pr\u00f3ximo passo \u00e9 criar o banco de leis da pr\u00f3pria C\u00e2mara, visto que atualmente a Casa utiliza sistema e infra-estrutura da Prefeitura. O Chefe da TI precisa de ajuda na analise e migra\u00e7\u00e3o dos sistemas Interlegis.", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 97 + } + }, + { + "pk": 18846, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Orat\u00f3riaLei de Responsabilidade FiscalProcesso LegislativoReda\u00e7\u00e3o OficialOr\u00e7amento P\u00fablico.", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 122 + } + }, + { + "pk": 45581, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": 168.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 106 + } + }, + { + "pk": 44324, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": 6.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 49 + } + }, + { + "pk": 59093, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": 4.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 143 + } + }, + { + "pk": 60137, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 337, + "value_range_min": null, + "schema": 121 + } + }, + { + "pk": 60138, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 67, + "value_range_min": null, + "schema": 41 + } + }, + { + "pk": 60139, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 69, + "value_range_min": null, + "schema": 42 + } + }, + { + "pk": 60140, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 399, + "value_range_min": null, + "schema": 163 + } + }, + { + "pk": 60141, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 400, + "value_range_min": null, + "schema": 164 + } + }, + { + "pk": 43710, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": 3.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 14 + } + }, + { + "pk": 43853, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "No gabinete do vereador, por meio da rede interna \u00e9 encaminhado para o sistema de protocolo. \u00c9 feita ent\u00e3o uma an\u00e1lise na base textual para verificarse a mat\u00e9ria n\u00e3o existe. Se n\u00e3o existir \u00e9 gerado um n\u00famero para o requerimento. Ap\u00f3s esse procedimento o texto \u00e9 impresso e assinado pelo vereador e protocolado para entrar na ordem do dia.", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 165 + } + }, + { + "pk": 44351, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": 0.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 156 + } + }, + { + "pk": 44358, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": 0.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 126 + } + }, + { + "pk": 18640, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "A CM encontra-se disposta a receber capacita\u00e7\u00e3o nos mais variados assuntos, mas ressalta que para isso precisa de ajuda para reorganizar seu setor de RH.", + "entity_id": 9, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 99 + } + }, + { + "pk": 43718, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": 42.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 15 + } + }, + { + "pk": 60156, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Ato / Regimento", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 194 + } + }, + { + "pk": 44994, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": 187.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 101 + } + }, + { + "pk": 59163, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": 0.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 144 + } + }, + { + "pk": 18806, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Site", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 132 + } + }, + { + "pk": 60142, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 165 + } + }, + { + "pk": 60151, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 186 + } + }, + { + "pk": 60153, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 189 + } + }, + { + "pk": 60155, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 192 + } + }, + { + "pk": 18834, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "jocasimen@hotmail.com", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 150 + } + }, + { + "pk": 48546, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 156 + } + }, + { + "pk": 48551, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 49 + } + }, + { + "pk": 48556, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 126 + } + }, + { + "pk": 18705, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Encontramos a C\u00e2mara Municipal (CM) de Sobral muito bem estruturada e organizada. Possui duas sedes tombadas e em excelente estado de conserva\u00e7\u00e3o, uma sede \u00e9 pol\u00edtico- administrativa e a outra para sess\u00f5es legislativas e demais eventos da C\u00e2mara e da cidade.\r\nA CM de Sobral participou do Projeto Piloto de Moderniza\u00e7\u00e3o (PPM) que foi aplicado pelo Interlegis nos anos de 2006 e 2007. Nesta ocasi\u00e3o recebeu o Kit padr\u00e3o de computadores do PPM. Em nossa visita ocorrida no dia 06 de fevereiro do corrente ano, tanto o Presidente da CM quanto o diretor de TI nos relataram o inconveniente causado pela falta de manuten\u00e7\u00e3o e assist\u00eancia t\u00e9cnica do Interlegis ao longo dos anos. Por este motivo, ap\u00f3s analise do documento de Convenio, o Presidente se recusou a assina-lo enquanto os par\u00e1grafos de 09 a 11 da clausula quarta n\u00e3o forem alterados. Estes par\u00e1grafos reproduzem o modelo de convenio do PPM que impediram, segundo nos relataram, a plena utiliza\u00e7\u00e3o dos equipamentos, pois n\u00e3o houve pronto atendimento \u00e0s demandas. Constatamos que os equipamentos permanecem na C\u00e2mara, sem funcionamento e atualmente obsoletos. \r\nA CM demonstrou interesse principalmente na implanta\u00e7\u00e3o do sistema SPDO (Sistema de Protocolo de Documentos), bem como solicitou capacita\u00e7\u00e3o para utiliza\u00e7\u00e3o do mesmo.\r\n\u00c9 tamb\u00e9m uma CM a ser certificada em pouco tempo, tendo em vista, que teve seu RI e LOM atualizados em 2011; possui burocracia est\u00e1vel; possui portal na internet; processo legislativo organizado e informatizado e possui \u00e1rea de comunica\u00e7\u00e3o organizada. \r\n", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 96 + } + }, + { + "pk": 18709, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Segunda e Ter\u00e7a das 17:00 \u00e0s 20:00", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 92 + } + }, + { + "pk": 18713, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Portal da Transpar\u00eancia da C\u00e2mara Municipal de Sobral", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 94 + } + }, + { + "pk": 59229, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": 11.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 145 + } + }, + { + "pk": 65727, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 14, + "value_range_min": null, + "schema": 10 + } + }, + { + "pk": 65728, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 289, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 65729, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 284, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 65730, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 288, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 65731, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 82, + "value_range_min": null, + "schema": 48 + } + }, + { + "pk": 65732, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 272, + "value_range_min": null, + "schema": 88 + } + }, + { + "pk": 65733, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 3, + "value_range_min": null, + "schema": 2 + } + }, + { + "pk": 65734, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 35, + "value_range_min": null, + "schema": 27 + } + }, + { + "pk": 65735, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 447, + "value_range_min": null, + "schema": 180 + } + }, + { + "pk": 65736, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 18, + "value_range_min": null, + "schema": 13 + } + }, + { + "pk": 65737, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 17, + "value_range_min": null, + "schema": 11 + } + }, + { + "pk": 59295, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": 7.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 146 + } + }, + { + "pk": 65738, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 8, + "value_range_min": null, + "schema": 4 + } + }, + { + "pk": 65739, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 275, + "value_range_min": null, + "schema": 90 + } + }, + { + "pk": 65740, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 449, + "value_range_min": null, + "schema": 181 + } + }, + { + "pk": 65741, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 39, + "value_range_min": null, + "schema": 30 + } + }, + { + "pk": 65742, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 40, + "value_range_min": null, + "schema": 30 + } + }, + { + "pk": 65743, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 41, + "value_range_min": null, + "schema": 30 + } + }, + { + "pk": 65744, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 10, + "value_range_min": null, + "schema": 5 + } + }, + { + "pk": 65745, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 277, + "value_range_min": null, + "schema": 91 + } + }, + { + "pk": 65746, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 304, + "value_range_min": null, + "schema": 107 + } + }, + { + "pk": 65747, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 71, + "value_range_min": null, + "schema": 44 + } + }, + { + "pk": 65748, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 359, + "value_range_min": null, + "schema": 128 + } + }, + { + "pk": 65749, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 362, + "value_range_min": null, + "schema": 128 + } + }, + { + "pk": 65750, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 452, + "value_range_min": null, + "schema": 182 + } + }, + { + "pk": 65751, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 357, + "value_range_min": null, + "schema": 157 + } + }, + { + "pk": 65752, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 44, + "value_range_min": null, + "schema": 31 + } + }, + { + "pk": 65753, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 13, + "value_range_min": null, + "schema": 8 + } + }, + { + "pk": 65754, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 282, + "value_range_min": null, + "schema": 93 + } + }, + { + "pk": 65755, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 283, + "value_range_min": null, + "schema": 93 + } + }, + { + "pk": 65756, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 73, + "value_range_min": null, + "schema": 45 + } + }, + { + "pk": 65757, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 47, + "value_range_min": null, + "schema": 32 + } + }, + { + "pk": 65758, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 367, + "value_range_min": null, + "schema": 130 + } + }, + { + "pk": 65759, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 381, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 65760, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 376, + "value_range_min": null, + "schema": 133 + } + }, + { + "pk": 65761, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 51, + "value_range_min": null, + "schema": 33 + } + }, + { + "pk": 65762, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 314, + "value_range_min": null, + "schema": 113 + } + }, + { + "pk": 65763, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 315, + "value_range_min": null, + "schema": 113 + } + }, + { + "pk": 65764, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 21, + "value_range_min": null, + "schema": 19 + } + }, + { + "pk": 65765, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 454, + "value_range_min": null, + "schema": 183 + } + }, + { + "pk": 65766, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 56, + "value_range_min": null, + "schema": 34 + } + }, + { + "pk": 65767, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 317, + "value_range_min": null, + "schema": 114 + } + }, + { + "pk": 65768, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 24, + "value_range_min": null, + "schema": 20 + } + }, + { + "pk": 65769, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 58, + "value_range_min": null, + "schema": 35 + } + }, + { + "pk": 65770, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 459, + "value_range_min": null, + "schema": 185 + } + }, + { + "pk": 65771, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 463, + "value_range_min": null, + "schema": 185 + } + }, + { + "pk": 65772, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 29, + "value_range_min": null, + "schema": 23 + } + }, + { + "pk": 65773, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 322, + "value_range_min": null, + "schema": 117 + } + }, + { + "pk": 65774, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 466, + "value_range_min": null, + "schema": 187 + } + }, + { + "pk": 65775, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 473, + "value_range_min": null, + "schema": 190 + } + }, + { + "pk": 65776, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 32, + "value_range_min": null, + "schema": 25 + } + }, + { + "pk": 65777, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 319, + "value_range_min": null, + "schema": 115 + } + }, + { + "pk": 65778, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 327, + "value_range_min": null, + "schema": 118 + } + }, + { + "pk": 65779, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 341, + "value_range_min": null, + "schema": 124 + } + }, + { + "pk": 65780, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 480, + "value_range_min": null, + "schema": 193 + } + }, + { + "pk": 65781, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 340, + "value_range_min": null, + "schema": 38 + } + }, + { + "pk": 65782, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 331, + "value_range_min": null, + "schema": 119 + } + }, + { + "pk": 65783, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 356, + "value_range_min": null, + "schema": 39 + } + }, + { + "pk": 65784, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 63, + "value_range_min": null, + "schema": 40 + } + }, + { + "pk": 65785, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 335, + "value_range_min": null, + "schema": 120 + } + }, + { + "pk": 65786, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 79, + "value_range_min": null, + "schema": 47 + } + }, + { + "pk": 65787, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 339, + "value_range_min": null, + "schema": 121 + } + }, + { + "pk": 65788, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 68, + "value_range_min": null, + "schema": 41 + } + }, + { + "pk": 65789, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 70, + "value_range_min": null, + "schema": 42 + } + }, + { + "pk": 65790, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 399, + "value_range_min": null, + "schema": 163 + } + }, + { + "pk": 65791, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 400, + "value_range_min": null, + "schema": 164 + } + }, + { + "pk": 63176, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": 17.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 102 + } + }, + { + "pk": 59369, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": 27.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 106 + } + }, + { + "pk": 18715, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Oferecer o mais r\u00e1pido poss\u00edvel capacita\u00e7\u00e3o nas \u00e1reas de protocolo, cerimonial e na implanta\u00e7\u00e3o e uso do SPDO, por meio de curso presenciais.", + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 99 + } + }, + { + "pk": 55514, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 15, + "value_range_min": null, + "schema": 10 + } + }, + { + "pk": 55515, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 294, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 55516, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 287, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 55517, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 293, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 55518, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 286, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 55519, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 284, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 55520, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 290, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 55521, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 81, + "value_range_min": null, + "schema": 48 + } + }, + { + "pk": 55522, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 272, + "value_range_min": null, + "schema": 88 + } + }, + { + "pk": 55523, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 5, + "value_range_min": null, + "schema": 2 + } + }, + { + "pk": 55524, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 33, + "value_range_min": null, + "schema": 27 + } + }, + { + "pk": 55525, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 447, + "value_range_min": null, + "schema": 180 + } + }, + { + "pk": 55526, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 16, + "value_range_min": null, + "schema": 11 + } + }, + { + "pk": 55527, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 8, + "value_range_min": null, + "schema": 4 + } + }, + { + "pk": 55528, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 275, + "value_range_min": null, + "schema": 90 + } + }, + { + "pk": 55529, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 449, + "value_range_min": null, + "schema": 181 + } + }, + { + "pk": 55530, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 39, + "value_range_min": null, + "schema": 30 + } + }, + { + "pk": 55531, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 40, + "value_range_min": null, + "schema": 30 + } + }, + { + "pk": 55532, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 41, + "value_range_min": null, + "schema": 30 + } + }, + { + "pk": 55533, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 42, + "value_range_min": null, + "schema": 30 + } + }, + { + "pk": 55534, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 10, + "value_range_min": null, + "schema": 5 + } + }, + { + "pk": 55535, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 277, + "value_range_min": null, + "schema": 91 + } + }, + { + "pk": 55536, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 304, + "value_range_min": null, + "schema": 107 + } + }, + { + "pk": 55537, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 71, + "value_range_min": null, + "schema": 44 + } + }, + { + "pk": 55538, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 451, + "value_range_min": null, + "schema": 182 + } + }, + { + "pk": 55539, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 358, + "value_range_min": null, + "schema": 157 + } + }, + { + "pk": 55540, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 44, + "value_range_min": null, + "schema": 31 + } + }, + { + "pk": 55541, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 13, + "value_range_min": null, + "schema": 8 + } + }, + { + "pk": 55542, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 282, + "value_range_min": null, + "schema": 93 + } + }, + { + "pk": 55543, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 281, + "value_range_min": null, + "schema": 93 + } + }, + { + "pk": 55544, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 283, + "value_range_min": null, + "schema": 93 + } + }, + { + "pk": 55545, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 74, + "value_range_min": null, + "schema": 45 + } + }, + { + "pk": 55546, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 373, + "value_range_min": null, + "schema": 131 + } + }, + { + "pk": 55547, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 375, + "value_range_min": null, + "schema": 131 + } + }, + { + "pk": 55548, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 47, + "value_range_min": null, + "schema": 32 + } + }, + { + "pk": 55549, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 366, + "value_range_min": null, + "schema": 130 + } + }, + { + "pk": 55550, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 379, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 55551, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 381, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 55552, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 383, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 55553, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 376, + "value_range_min": null, + "schema": 133 + } + }, + { + "pk": 55554, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 51, + "value_range_min": null, + "schema": 33 + } + }, + { + "pk": 55555, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 310, + "value_range_min": null, + "schema": 113 + } + }, + { + "pk": 55556, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 312, + "value_range_min": null, + "schema": 113 + } + }, + { + "pk": 55557, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 314, + "value_range_min": null, + "schema": 113 + } + }, + { + "pk": 55558, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 455, + "value_range_min": null, + "schema": 184 + } + }, + { + "pk": 55559, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 20, + "value_range_min": null, + "schema": 19 + } + }, + { + "pk": 55560, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 453, + "value_range_min": null, + "schema": 183 + } + }, + { + "pk": 55561, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 56, + "value_range_min": null, + "schema": 34 + } + }, + { + "pk": 55562, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 316, + "value_range_min": null, + "schema": 114 + } + }, + { + "pk": 55563, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 24, + "value_range_min": null, + "schema": 20 + } + }, + { + "pk": 55564, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 459, + "value_range_min": null, + "schema": 185 + } + }, + { + "pk": 55565, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 467, + "value_range_min": null, + "schema": 188 + } + }, + { + "pk": 55566, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 468, + "value_range_min": null, + "schema": 188 + } + }, + { + "pk": 55567, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 28, + "value_range_min": null, + "schema": 23 + } + }, + { + "pk": 55568, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 322, + "value_range_min": null, + "schema": 117 + } + }, + { + "pk": 55569, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 465, + "value_range_min": null, + "schema": 187 + } + }, + { + "pk": 55570, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 320, + "value_range_min": null, + "schema": 116 + } + }, + { + "pk": 55571, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 473, + "value_range_min": null, + "schema": 190 + } + }, + { + "pk": 55572, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 32, + "value_range_min": null, + "schema": 25 + } + }, + { + "pk": 55573, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 318, + "value_range_min": null, + "schema": 115 + } + }, + { + "pk": 55574, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 325, + "value_range_min": null, + "schema": 118 + } + }, + { + "pk": 55575, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 341, + "value_range_min": null, + "schema": 124 + } + }, + { + "pk": 55576, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 479, + "value_range_min": null, + "schema": 193 + } + }, + { + "pk": 55577, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 59, + "value_range_min": null, + "schema": 38 + } + }, + { + "pk": 55578, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 331, + "value_range_min": null, + "schema": 119 + } + }, + { + "pk": 55579, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 61, + "value_range_min": null, + "schema": 39 + } + }, + { + "pk": 55580, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 63, + "value_range_min": null, + "schema": 40 + } + }, + { + "pk": 47757, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 294, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 47758, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 287, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 47759, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 291, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 47760, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 286, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 47761, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 284, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 47762, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 288, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 47763, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 81, + "value_range_min": null, + "schema": 48 + } + }, + { + "pk": 47764, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 272, + "value_range_min": null, + "schema": 88 + } + }, + { + "pk": 47765, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 3, + "value_range_min": null, + "schema": 2 + } + }, + { + "pk": 47766, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 38, + "value_range_min": null, + "schema": 27 + } + }, + { + "pk": 47767, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 447, + "value_range_min": null, + "schema": 180 + } + }, + { + "pk": 47768, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 16, + "value_range_min": null, + "schema": 11 + } + }, + { + "pk": 47769, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 7, + "value_range_min": null, + "schema": 4 + } + }, + { + "pk": 47770, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 275, + "value_range_min": null, + "schema": 90 + } + }, + { + "pk": 47771, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 449, + "value_range_min": null, + "schema": 181 + } + }, + { + "pk": 47772, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 41, + "value_range_min": null, + "schema": 30 + } + }, + { + "pk": 47773, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 40, + "value_range_min": null, + "schema": 30 + } + }, + { + "pk": 47774, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 9, + "value_range_min": null, + "schema": 5 + } + }, + { + "pk": 47775, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 277, + "value_range_min": null, + "schema": 91 + } + }, + { + "pk": 47776, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 304, + "value_range_min": null, + "schema": 107 + } + }, + { + "pk": 47777, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 72, + "value_range_min": null, + "schema": 44 + } + }, + { + "pk": 47778, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 451, + "value_range_min": null, + "schema": 182 + } + }, + { + "pk": 47779, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 358, + "value_range_min": null, + "schema": 157 + } + }, + { + "pk": 47780, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 44, + "value_range_min": null, + "schema": 31 + } + }, + { + "pk": 47781, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 13, + "value_range_min": null, + "schema": 8 + } + }, + { + "pk": 47782, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 283, + "value_range_min": null, + "schema": 93 + } + }, + { + "pk": 47783, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 375, + "value_range_min": null, + "schema": 131 + } + }, + { + "pk": 47784, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 50, + "value_range_min": null, + "schema": 32 + } + }, + { + "pk": 47785, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 366, + "value_range_min": null, + "schema": 130 + } + }, + { + "pk": 47786, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 385, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 47787, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 376, + "value_range_min": null, + "schema": 133 + } + }, + { + "pk": 47788, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 51, + "value_range_min": null, + "schema": 33 + } + }, + { + "pk": 47789, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 458, + "value_range_min": null, + "schema": 184 + } + }, + { + "pk": 47790, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 20, + "value_range_min": null, + "schema": 19 + } + }, + { + "pk": 47791, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 453, + "value_range_min": null, + "schema": 183 + } + }, + { + "pk": 47792, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 56, + "value_range_min": null, + "schema": 34 + } + }, + { + "pk": 47793, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 317, + "value_range_min": null, + "schema": 114 + } + }, + { + "pk": 47794, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 24, + "value_range_min": null, + "schema": 20 + } + }, + { + "pk": 47795, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 58, + "value_range_min": null, + "schema": 35 + } + }, + { + "pk": 47796, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 459, + "value_range_min": null, + "schema": 185 + } + }, + { + "pk": 47797, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 467, + "value_range_min": null, + "schema": 188 + } + }, + { + "pk": 47798, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 470, + "value_range_min": null, + "schema": 188 + } + }, + { + "pk": 47799, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 28, + "value_range_min": null, + "schema": 23 + } + }, + { + "pk": 47800, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 323, + "value_range_min": null, + "schema": 117 + } + }, + { + "pk": 47801, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 465, + "value_range_min": null, + "schema": 187 + } + }, + { + "pk": 47802, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 474, + "value_range_min": null, + "schema": 191 + } + }, + { + "pk": 47803, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 472, + "value_range_min": null, + "schema": 190 + } + }, + { + "pk": 47804, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 32, + "value_range_min": null, + "schema": 25 + } + }, + { + "pk": 47805, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 319, + "value_range_min": null, + "schema": 115 + } + }, + { + "pk": 47806, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 324, + "value_range_min": null, + "schema": 118 + } + }, + { + "pk": 47807, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 326, + "value_range_min": null, + "schema": 118 + } + }, + { + "pk": 47808, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 342, + "value_range_min": null, + "schema": 124 + } + }, + { + "pk": 47809, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 480, + "value_range_min": null, + "schema": 193 + } + }, + { + "pk": 47810, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 59, + "value_range_min": null, + "schema": 38 + } + }, + { + "pk": 47811, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 328, + "value_range_min": null, + "schema": 119 + } + }, + { + "pk": 47812, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 61, + "value_range_min": null, + "schema": 39 + } + }, + { + "pk": 47813, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 66, + "value_range_min": null, + "schema": 40 + } + }, + { + "pk": 47814, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 335, + "value_range_min": null, + "schema": 120 + } + }, + { + "pk": 47815, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 80, + "value_range_min": null, + "schema": 47 + } + }, + { + "pk": 47816, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 337, + "value_range_min": null, + "schema": 121 + } + }, + { + "pk": 47817, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 338, + "value_range_min": null, + "schema": 121 + } + }, + { + "pk": 47818, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 67, + "value_range_min": null, + "schema": 41 + } + }, + { + "pk": 47819, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 69, + "value_range_min": null, + "schema": 42 + } + }, + { + "pk": 47820, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 398, + "value_range_min": null, + "schema": 163 + } + }, + { + "pk": 47821, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 11, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 400, + "value_range_min": null, + "schema": 164 + } + }, + { + "pk": 55581, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 333, + "value_range_min": null, + "schema": 120 + } + }, + { + "pk": 55582, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 79, + "value_range_min": null, + "schema": 47 + } + }, + { + "pk": 55583, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 336, + "value_range_min": null, + "schema": 121 + } + }, + { + "pk": 55584, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 337, + "value_range_min": null, + "schema": 121 + } + }, + { + "pk": 55585, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 338, + "value_range_min": null, + "schema": 121 + } + }, + { + "pk": 55586, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 67, + "value_range_min": null, + "schema": 41 + } + }, + { + "pk": 55587, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 69, + "value_range_min": null, + "schema": 42 + } + }, + { + "pk": 55588, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 399, + "value_range_min": null, + "schema": 163 + } + }, + { + "pk": 55589, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 4, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 400, + "value_range_min": null, + "schema": 164 + } + }, + { + "pk": 55590, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 165 + } + }, + { + "pk": 18519, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "O pr\u00e9dio est\u00e1 em processo de tombamento. Por ser um edif\u00edcio hist\u00f3rico n\u00e3o est\u00e3o autorizados a fazer reformas ou obras. Para qualquer mudan\u00e7a no tpr\u00e9dio precisam da autoriza\u00e7\u00e3o da Prefeitura.", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 7 + } + }, + { + "pk": 55595, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": 2.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 14 + } + }, + { + "pk": 55597, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": 33.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 15 + } + }, + { + "pk": 55598, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": 3.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 16 + } + }, + { + "pk": 55599, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": 0.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 18 + } + }, + { + "pk": 55602, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 186 + } + }, + { + "pk": 55604, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 189 + } + }, + { + "pk": 55606, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 192 + } + }, + { + "pk": 55607, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 194 + } + }, + { + "pk": 18533, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "www.cmto.mg.gov.br", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 24 + } + }, + { + "pk": 18808, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Site", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 135 + } + }, + { + "pk": 18603, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Justi\u00e7a, Finan\u00e7as e Or\u00e7amento, Politica Urbana e Meio Ambiente, Policita Social, Economia, Educa\u00e7ao Custura Esporte e Turismo, Adm. Publica, Defesa dos Direitos Humanos e da Cidadania e Reda\u00e7\u00e3o", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 29 + } + }, + { + "pk": 19091, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": 0.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 18 + } + }, + { + "pk": 55608, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 14, + "value_range_min": null, + "schema": 10 + } + }, + { + "pk": 55609, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 294, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 55610, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 287, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 55611, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 286, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 55612, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 284, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 55613, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 82, + "value_range_min": null, + "schema": 48 + } + }, + { + "pk": 55614, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 272, + "value_range_min": null, + "schema": 88 + } + }, + { + "pk": 55615, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 3, + "value_range_min": null, + "schema": 2 + } + }, + { + "pk": 55616, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 33, + "value_range_min": null, + "schema": 27 + } + }, + { + "pk": 55617, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 16, + "value_range_min": null, + "schema": 11 + } + }, + { + "pk": 55618, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 275, + "value_range_min": null, + "schema": 90 + } + }, + { + "pk": 55619, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": 11.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 102 + } + }, + { + "pk": 55620, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": 1.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 49 + } + }, + { + "pk": 18518, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Primeira semana \u00fatil de cada m\u00eas.", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 92 + } + }, + { + "pk": 55621, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 39, + "value_range_min": null, + "schema": 30 + } + }, + { + "pk": 55622, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 40, + "value_range_min": null, + "schema": 30 + } + }, + { + "pk": 55623, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 9, + "value_range_min": null, + "schema": 5 + } + }, + { + "pk": 55624, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 280, + "value_range_min": null, + "schema": 91 + } + }, + { + "pk": 18521, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "4", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 108 + } + }, + { + "pk": 55625, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 304, + "value_range_min": null, + "schema": 107 + } + }, + { + "pk": 18522, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Balancetes e requerimentos", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 94 + } + }, + { + "pk": 55626, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 358, + "value_range_min": null, + "schema": 157 + } + }, + { + "pk": 55627, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 44, + "value_range_min": null, + "schema": 31 + } + }, + { + "pk": 55628, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 13, + "value_range_min": null, + "schema": 8 + } + }, + { + "pk": 55629, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 283, + "value_range_min": null, + "schema": 93 + } + }, + { + "pk": 18528, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Site", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 132 + } + }, + { + "pk": 55630, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 375, + "value_range_min": null, + "schema": 131 + } + }, + { + "pk": 55631, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 50, + "value_range_min": null, + "schema": 32 + } + }, + { + "pk": 55632, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 366, + "value_range_min": null, + "schema": 130 + } + }, + { + "pk": 55633, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": 0.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 110 + } + }, + { + "pk": 55634, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 379, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 55635, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 381, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 55636, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 383, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 55637, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 376, + "value_range_min": null, + "schema": 133 + } + }, + { + "pk": 55638, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 52, + "value_range_min": null, + "schema": 33 + } + }, + { + "pk": 18527, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "cmto@cmto.mg.gov.br", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 150 + } + }, + { + "pk": 55639, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": 0.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 111 + } + }, + { + "pk": 55640, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 314, + "value_range_min": null, + "schema": 113 + } + }, + { + "pk": 55641, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 20, + "value_range_min": null, + "schema": 19 + } + }, + { + "pk": 55642, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 454, + "value_range_min": null, + "schema": 183 + } + }, + { + "pk": 55643, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 56, + "value_range_min": null, + "schema": 34 + } + }, + { + "pk": 18529, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "cmto@cmto.mg.gov.br", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 151 + } + }, + { + "pk": 55644, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": 1.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 112 + } + }, + { + "pk": 55645, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 25, + "value_range_min": null, + "schema": 21 + } + }, + { + "pk": 55646, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 317, + "value_range_min": null, + "schema": 114 + } + }, + { + "pk": 55647, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 22, + "value_range_min": null, + "schema": 20 + } + }, + { + "pk": 55648, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 459, + "value_range_min": null, + "schema": 185 + } + }, + { + "pk": 55649, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 460, + "value_range_min": null, + "schema": 185 + } + }, + { + "pk": 55650, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 27, + "value_range_min": null, + "schema": 23 + } + }, + { + "pk": 55651, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 323, + "value_range_min": null, + "schema": 117 + } + }, + { + "pk": 55652, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 466, + "value_range_min": null, + "schema": 187 + } + }, + { + "pk": 55653, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 475, + "value_range_min": null, + "schema": 191 + } + }, + { + "pk": 55654, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 472, + "value_range_min": null, + "schema": 190 + } + }, + { + "pk": 55655, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 32, + "value_range_min": null, + "schema": 25 + } + }, + { + "pk": 55656, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 325, + "value_range_min": null, + "schema": 118 + } + }, + { + "pk": 55657, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 326, + "value_range_min": null, + "schema": 118 + } + }, + { + "pk": 55658, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 341, + "value_range_min": null, + "schema": 124 + } + }, + { + "pk": 55659, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 480, + "value_range_min": null, + "schema": 193 + } + }, + { + "pk": 55660, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 59, + "value_range_min": null, + "schema": 38 + } + }, + { + "pk": 55661, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 331, + "value_range_min": null, + "schema": 119 + } + }, + { + "pk": 55662, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 61, + "value_range_min": null, + "schema": 39 + } + }, + { + "pk": 55663, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 63, + "value_range_min": null, + "schema": 40 + } + }, + { + "pk": 55664, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 335, + "value_range_min": null, + "schema": 120 + } + }, + { + "pk": 55665, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 79, + "value_range_min": null, + "schema": 47 + } + }, + { + "pk": 55666, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 337, + "value_range_min": null, + "schema": 121 + } + }, + { + "pk": 18539, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Fun\u00e7\u00e3o/Papel do Vereador; Papel da C\u00e2mara; Lei Org\u00e2nica e Regimento Interno; Reda\u00e7\u00e3o Oficial; Gest\u00e3o P\u00fablica e Administra\u00e7\u00e3o P\u00fablica", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 122 + } + }, + { + "pk": 55667, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 67, + "value_range_min": null, + "schema": 41 + } + }, + { + "pk": 18540, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Secretariado; Reda\u00e7\u00e3o Oficial; Cerimonial e Protocolo; Licita\u00e7\u00f5es e Contratos; LRF", + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 123 + } + }, + { + "pk": 55668, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 69, + "value_range_min": null, + "schema": 42 + } + }, + { + "pk": 55669, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 399, + "value_range_min": null, + "schema": 163 + } + }, + { + "pk": 55670, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 5, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 400, + "value_range_min": null, + "schema": 164 + } + }, + { + "pk": 55707, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": 4.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 14 + } + }, + { + "pk": 18875, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Licita\u00e7\u00f5es e ContratosLei de Responsabilidade FiscalOrat\u00f3riaProcesso LegislativoOr\u00e7amento P\u00fablico", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 122 + } + }, + { + "pk": 18876, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Reda\u00e7\u00e3o OficialT\u00e9cnicas em TIContabilidade Gest\u00e3o P\u00fablicaOrganiza\u00e7\u00e3o AdministrativaProcesso Legislativo", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 123 + } + }, + { + "pk": 18827, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "A CM n\u00e3o possui uma \u00e1rea de comunica\u00e7\u00e3o estruturada, e a respons\u00e1vel pelo setor \u00e9 a Diretora Geral da Casa e n\u00e3o \u00e9 formado na \u00e1rea, ela divulga as a\u00e7\u00f5es do Legislativo Municipal por demanda, a cada sess\u00e3o plen\u00e1ria. A C\u00e2mara executa algumas a\u00e7\u00f5es de comunica\u00e7\u00e3o interna, quadro de avisos e boletim impresso. A comunica\u00e7\u00e3o com a comunidade \u00e9 feita atrav\u00e9s de informativos, via programas de r\u00e1dio local, audi\u00eancias p\u00fablicas, C\u00e2mara Itinerante, espa\u00e7o cidad\u00e3o no Plen\u00e1rio, convites e eventos. As sess\u00f5es n\u00e3o s\u00e3o transmitidas e n\u00e3o conta com servi\u00e7o de ouvidoria. \u00c9 preciso a cria\u00e7\u00e3o de um setor de comunica\u00e7\u00e3o para a Casa e melhorar a comunica\u00e7\u00e3o interna e externa.", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 98 + } + }, + { + "pk": 55715, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": 45.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 15 + } + }, + { + "pk": 57658, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 110 + } + }, + { + "pk": 59433, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": 0.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 147 + } + }, + { + "pk": 57717, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 111 + } + }, + { + "pk": 18863, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "camaramaragogi@ig.com.br, silvinho.music@hotmail.com", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 150 + } + }, + { + "pk": 18831, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Existe apenas o Plen\u00e1rio da Casa como \u00e1rea para capacita\u00e7\u00e3o, por\u00e9m, havendo necessidade, a CM poder\u00e1 solicitar outros espa\u00e7os no munic\u00edpio. Existe grande interesse em realizar cursos presenciais para vereadores e servidores, podendo estender o curso para vereadores e servidores de cidades da regi\u00e3o.", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 99 + } + }, + { + "pk": 18868, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "camaramaragogi@ig.com.br, zulenecalaca@hotmail.com", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 152 + } + }, + { + "pk": 18865, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "camaramaragogi@ig.com.br, zulenecalaca@hotmail.com", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 151 + } + }, + { + "pk": 18832, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "\u00c9 necess\u00e1rio uma maior divulga\u00e7\u00e3o dos trabalhos realizados na Casa, tanto para os servidores da C\u00e2mara, como para a comunidade e meios de comunica\u00e7\u00e3o local, criando m\u00e9todos para a divulga\u00e7\u00e3o interna e externa. ", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 100 + } + }, + { + "pk": 57786, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": 6.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 112 + } + }, + { + "pk": 55722, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": 9.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 16 + } + }, + { + "pk": 61547, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": 1.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 49 + } + }, + { + "pk": 59499, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": 22.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 148 + } + }, + { + "pk": 61591, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": 1.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 156 + } + }, + { + "pk": 61599, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": 1.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 126 + } + }, + { + "pk": 18799, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "1", + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 108 + } + }, + { + "pk": 55733, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": 0.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 18 + } + }, + { + "pk": 59565, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": 5.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 149 + } + }, + { + "pk": 59662, + "model": "diagnosticos.resposta", + "fields": { + "value_date": "2011-04-26", + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 36 + } + }, + { + "pk": 55821, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 165 + } + }, + { + "pk": 55840, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": 9.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 28 + } + }, + { + "pk": 53982, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 14, + "value_range_min": null, + "schema": 10 + } + }, + { + "pk": 53985, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 291, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 53986, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 289, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 53988, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 286, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 53989, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 284, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 53991, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 82, + "value_range_min": null, + "schema": 48 + } + }, + { + "pk": 53993, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 272, + "value_range_min": null, + "schema": 88 + } + }, + { + "pk": 53996, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 3, + "value_range_min": null, + "schema": 2 + } + }, + { + "pk": 53998, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 33, + "value_range_min": null, + "schema": 27 + } + }, + { + "pk": 54001, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 448, + "value_range_min": null, + "schema": 180 + } + }, + { + "pk": 54004, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 18, + "value_range_min": null, + "schema": 13 + } + }, + { + "pk": 54005, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 17, + "value_range_min": null, + "schema": 11 + } + }, + { + "pk": 54006, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 7, + "value_range_min": null, + "schema": 4 + } + }, + { + "pk": 54007, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 275, + "value_range_min": null, + "schema": 90 + } + }, + { + "pk": 54008, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 449, + "value_range_min": null, + "schema": 181 + } + }, + { + "pk": 54009, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 41, + "value_range_min": null, + "schema": 30 + } + }, + { + "pk": 54010, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 40, + "value_range_min": null, + "schema": 30 + } + }, + { + "pk": 54011, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 9, + "value_range_min": null, + "schema": 5 + } + }, + { + "pk": 54012, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 277, + "value_range_min": null, + "schema": 91 + } + }, + { + "pk": 54013, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 304, + "value_range_min": null, + "schema": 107 + } + }, + { + "pk": 54014, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 71, + "value_range_min": null, + "schema": 44 + } + }, + { + "pk": 54015, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 452, + "value_range_min": null, + "schema": 182 + } + }, + { + "pk": 54016, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 358, + "value_range_min": null, + "schema": 157 + } + }, + { + "pk": 54017, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 44, + "value_range_min": null, + "schema": 31 + } + }, + { + "pk": 54018, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 12, + "value_range_min": null, + "schema": 8 + } + }, + { + "pk": 54019, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 281, + "value_range_min": null, + "schema": 93 + } + }, + { + "pk": 54020, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 368, + "value_range_min": null, + "schema": 131 + } + }, + { + "pk": 54021, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 371, + "value_range_min": null, + "schema": 131 + } + }, + { + "pk": 54022, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 375, + "value_range_min": null, + "schema": 131 + } + }, + { + "pk": 54023, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 50, + "value_range_min": null, + "schema": 32 + } + }, + { + "pk": 54024, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 366, + "value_range_min": null, + "schema": 130 + } + }, + { + "pk": 54025, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 378, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 54026, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 381, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 54027, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 385, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 54028, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 376, + "value_range_min": null, + "schema": 133 + } + }, + { + "pk": 54029, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 52, + "value_range_min": null, + "schema": 33 + } + }, + { + "pk": 54030, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 78, + "value_range_min": null, + "schema": 46 + } + }, + { + "pk": 54031, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 455, + "value_range_min": null, + "schema": 184 + } + }, + { + "pk": 54032, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 456, + "value_range_min": null, + "schema": 184 + } + }, + { + "pk": 54033, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 458, + "value_range_min": null, + "schema": 184 + } + }, + { + "pk": 54034, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 20, + "value_range_min": null, + "schema": 19 + } + }, + { + "pk": 54035, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 453, + "value_range_min": null, + "schema": 183 + } + }, + { + "pk": 54036, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 53, + "value_range_min": null, + "schema": 34 + } + }, + { + "pk": 54037, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 317, + "value_range_min": null, + "schema": 114 + } + }, + { + "pk": 54038, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 24, + "value_range_min": null, + "schema": 20 + } + }, + { + "pk": 54039, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 58, + "value_range_min": null, + "schema": 35 + } + }, + { + "pk": 54040, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 462, + "value_range_min": null, + "schema": 185 + } + }, + { + "pk": 54041, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 463, + "value_range_min": null, + "schema": 185 + } + }, + { + "pk": 54042, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 459, + "value_range_min": null, + "schema": 185 + } + }, + { + "pk": 54043, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 28, + "value_range_min": null, + "schema": 23 + } + }, + { + "pk": 54044, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 322, + "value_range_min": null, + "schema": 117 + } + }, + { + "pk": 54045, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 466, + "value_range_min": null, + "schema": 187 + } + }, + { + "pk": 54046, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 473, + "value_range_min": null, + "schema": 190 + } + }, + { + "pk": 54047, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 32, + "value_range_min": null, + "schema": 25 + } + }, + { + "pk": 54048, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 319, + "value_range_min": null, + "schema": 115 + } + }, + { + "pk": 54049, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 324, + "value_range_min": null, + "schema": 118 + } + }, + { + "pk": 54050, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 341, + "value_range_min": null, + "schema": 124 + } + }, + { + "pk": 54051, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 480, + "value_range_min": null, + "schema": 193 + } + }, + { + "pk": 54052, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 340, + "value_range_min": null, + "schema": 38 + } + }, + { + "pk": 54053, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 331, + "value_range_min": null, + "schema": 119 + } + }, + { + "pk": 54054, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 356, + "value_range_min": null, + "schema": 39 + } + }, + { + "pk": 54055, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 63, + "value_range_min": null, + "schema": 40 + } + }, + { + "pk": 54056, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 335, + "value_range_min": null, + "schema": 120 + } + }, + { + "pk": 54057, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 79, + "value_range_min": null, + "schema": 47 + } + }, + { + "pk": 54058, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 337, + "value_range_min": null, + "schema": 121 + } + }, + { + "pk": 54059, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 67, + "value_range_min": null, + "schema": 41 + } + }, + { + "pk": 54060, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 70, + "value_range_min": null, + "schema": 42 + } + }, + { + "pk": 54061, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 398, + "value_range_min": null, + "schema": 163 + } + }, + { + "pk": 54062, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 14, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 400, + "value_range_min": null, + "schema": 164 + } + }, + { + "pk": 59731, + "model": "diagnosticos.resposta", + "fields": { + "value_date": "2010-07-22", + "value_text": null, + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 37 + } + }, + { + "pk": 18836, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "delegadoabelardo@hotmail.com, jocasimen@hotmail.com, anetesilva@hotmail.com", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 151 + } + }, + { + "pk": 66551, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 14, + "value_range_min": null, + "schema": 10 + } + }, + { + "pk": 66552, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 291, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 66553, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 289, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 66554, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 290, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 66555, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 82, + "value_range_min": null, + "schema": 48 + } + }, + { + "pk": 66556, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 272, + "value_range_min": null, + "schema": 88 + } + }, + { + "pk": 66557, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 5, + "value_range_min": null, + "schema": 2 + } + }, + { + "pk": 66558, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 33, + "value_range_min": null, + "schema": 27 + } + }, + { + "pk": 66559, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 448, + "value_range_min": null, + "schema": 180 + } + }, + { + "pk": 66560, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 18, + "value_range_min": null, + "schema": 13 + } + }, + { + "pk": 66561, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 17, + "value_range_min": null, + "schema": 11 + } + }, + { + "pk": 66562, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 7, + "value_range_min": null, + "schema": 4 + } + }, + { + "pk": 66563, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 275, + "value_range_min": null, + "schema": 90 + } + }, + { + "pk": 66564, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 449, + "value_range_min": null, + "schema": 181 + } + }, + { + "pk": 66565, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 39, + "value_range_min": null, + "schema": 30 + } + }, + { + "pk": 66566, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 40, + "value_range_min": null, + "schema": 30 + } + }, + { + "pk": 66567, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 41, + "value_range_min": null, + "schema": 30 + } + }, + { + "pk": 66568, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 9, + "value_range_min": null, + "schema": 5 + } + }, + { + "pk": 66569, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 277, + "value_range_min": null, + "schema": 91 + } + }, + { + "pk": 66570, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 304, + "value_range_min": null, + "schema": 107 + } + }, + { + "pk": 66571, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 71, + "value_range_min": null, + "schema": 44 + } + }, + { + "pk": 66572, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 362, + "value_range_min": null, + "schema": 128 + } + }, + { + "pk": 66573, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 363, + "value_range_min": null, + "schema": 128 + } + }, + { + "pk": 66574, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 451, + "value_range_min": null, + "schema": 182 + } + }, + { + "pk": 66575, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 357, + "value_range_min": null, + "schema": 157 + } + }, + { + "pk": 66576, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 44, + "value_range_min": null, + "schema": 31 + } + }, + { + "pk": 66577, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 13, + "value_range_min": null, + "schema": 8 + } + }, + { + "pk": 66578, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 281, + "value_range_min": null, + "schema": 93 + } + }, + { + "pk": 66579, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 283, + "value_range_min": null, + "schema": 93 + } + }, + { + "pk": 66580, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 73, + "value_range_min": null, + "schema": 45 + } + }, + { + "pk": 66581, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 368, + "value_range_min": null, + "schema": 131 + } + }, + { + "pk": 66582, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 371, + "value_range_min": null, + "schema": 131 + } + }, + { + "pk": 66583, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 375, + "value_range_min": null, + "schema": 131 + } + }, + { + "pk": 66584, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 47, + "value_range_min": null, + "schema": 32 + } + }, + { + "pk": 66585, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 366, + "value_range_min": null, + "schema": 130 + } + }, + { + "pk": 66586, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 378, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 66587, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 381, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 66588, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 385, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 66589, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 376, + "value_range_min": null, + "schema": 133 + } + }, + { + "pk": 66590, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 51, + "value_range_min": null, + "schema": 33 + } + }, + { + "pk": 66591, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 21, + "value_range_min": null, + "schema": 19 + } + }, + { + "pk": 66592, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 454, + "value_range_min": null, + "schema": 183 + } + }, + { + "pk": 66593, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 56, + "value_range_min": null, + "schema": 34 + } + }, + { + "pk": 66594, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 317, + "value_range_min": null, + "schema": 114 + } + }, + { + "pk": 66595, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 24, + "value_range_min": null, + "schema": 20 + } + }, + { + "pk": 66596, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 58, + "value_range_min": null, + "schema": 35 + } + }, + { + "pk": 18839, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "anetesilva@hotmail.com", + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 152 + } + }, + { + "pk": 66597, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 459, + "value_range_min": null, + "schema": 185 + } + }, + { + "pk": 66598, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 462, + "value_range_min": null, + "schema": 185 + } + }, + { + "pk": 66599, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 463, + "value_range_min": null, + "schema": 185 + } + }, + { + "pk": 66600, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 29, + "value_range_min": null, + "schema": 23 + } + }, + { + "pk": 66601, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 322, + "value_range_min": null, + "schema": 117 + } + }, + { + "pk": 66602, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 466, + "value_range_min": null, + "schema": 187 + } + }, + { + "pk": 66603, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 473, + "value_range_min": null, + "schema": 190 + } + }, + { + "pk": 66604, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 32, + "value_range_min": null, + "schema": 25 + } + }, + { + "pk": 66605, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 319, + "value_range_min": null, + "schema": 115 + } + }, + { + "pk": 66606, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 327, + "value_range_min": null, + "schema": 118 + } + }, + { + "pk": 66607, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 341, + "value_range_min": null, + "schema": 124 + } + }, + { + "pk": 66608, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 480, + "value_range_min": null, + "schema": 193 + } + }, + { + "pk": 66609, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 59, + "value_range_min": null, + "schema": 38 + } + }, + { + "pk": 66610, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 331, + "value_range_min": null, + "schema": 119 + } + }, + { + "pk": 66611, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 356, + "value_range_min": null, + "schema": 39 + } + }, + { + "pk": 66612, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 63, + "value_range_min": null, + "schema": 40 + } + }, + { + "pk": 66613, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 335, + "value_range_min": null, + "schema": 120 + } + }, + { + "pk": 66614, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 79, + "value_range_min": null, + "schema": 47 + } + }, + { + "pk": 66615, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 337, + "value_range_min": null, + "schema": 121 + } + }, + { + "pk": 66616, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 67, + "value_range_min": null, + "schema": 41 + } + }, + { + "pk": 66617, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 69, + "value_range_min": null, + "schema": 42 + } + }, + { + "pk": 66618, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 398, + "value_range_min": null, + "schema": 163 + } + }, + { + "pk": 66619, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 15, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 400, + "value_range_min": null, + "schema": 164 + } + }, + { + "pk": 63106, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": 259.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 101 + } + }, + { + "pk": 56383, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 186 + } + }, + { + "pk": 56386, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 189 + } + }, + { + "pk": 56388, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 192 + } + }, + { + "pk": 56390, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 194 + } + }, + { + "pk": 56408, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": 2.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 49 + } + }, + { + "pk": 56439, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": 1.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 156 + } + }, + { + "pk": 56449, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 8, + "value_float": 1.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 126 + } + }, + { + "pk": 60331, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": 2.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 14 + } + }, + { + "pk": 18607, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Incrementar a comunica\u00e7\u00e3o do gabinete do vereador com a area de comunica\u00e7\u00e3o. Existem d\u00favidas quanto a atua\u00e7\u00e3o da assessoria de imprensa", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 98 + } + }, + { + "pk": 60351, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": 130.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 15 + } + }, + { + "pk": 60353, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": 22.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 16 + } + }, + { + "pk": 60647, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": 23.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 28 + } + }, + { + "pk": 18611, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Tem interesse na implanta\u00e7\u00e3o de Escola do Legislativo e tem total interesse em sediar treinamento presenciais para CM da regi\u00e3o", + "entity_id": 8, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 99 + } + }, + { + "pk": 61072, + "model": "diagnosticos.resposta", + "fields": { + "value_date": "1990-01-01", + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 36 + } + }, + { + "pk": 61111, + "model": "diagnosticos.resposta", + "fields": { + "value_date": "2011-04-14", + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 37 + } + }, + { + "pk": 63371, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 141 + } + }, + { + "pk": 63304, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": 17.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 143 + } + }, + { + "pk": 63438, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 142 + } + }, + { + "pk": 63515, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": 130.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 104 + } + }, + { + "pk": 63643, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": 30.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 144 + } + }, + { + "pk": 63711, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": 30.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 145 + } + }, + { + "pk": 63846, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": 70.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 146 + } + }, + { + "pk": 63937, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": 78.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 106 + } + }, + { + "pk": 65160, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 15, + "value_range_min": null, + "schema": 10 + } + }, + { + "pk": 65161, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 287, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 65162, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 291, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 65163, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 286, + "value_range_min": null, + "schema": 95 + } + }, + { + "pk": 65164, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 82, + "value_range_min": null, + "schema": 48 + } + }, + { + "pk": 65165, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 272, + "value_range_min": null, + "schema": 88 + } + }, + { + "pk": 65166, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 3, + "value_range_min": null, + "schema": 2 + } + }, + { + "pk": 65167, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 34, + "value_range_min": null, + "schema": 27 + } + }, + { + "pk": 65168, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 447, + "value_range_min": null, + "schema": 180 + } + }, + { + "pk": 65169, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 16, + "value_range_min": null, + "schema": 11 + } + }, + { + "pk": 65170, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 7, + "value_range_min": null, + "schema": 4 + } + }, + { + "pk": 65171, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 275, + "value_range_min": null, + "schema": 90 + } + }, + { + "pk": 65172, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 449, + "value_range_min": null, + "schema": 181 + } + }, + { + "pk": 65173, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 41, + "value_range_min": null, + "schema": 30 + } + }, + { + "pk": 65174, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 42, + "value_range_min": null, + "schema": 30 + } + }, + { + "pk": 65175, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 9, + "value_range_min": null, + "schema": 5 + } + }, + { + "pk": 65176, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 277, + "value_range_min": null, + "schema": 91 + } + }, + { + "pk": 65177, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 305, + "value_range_min": null, + "schema": 107 + } + }, + { + "pk": 65178, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 451, + "value_range_min": null, + "schema": 182 + } + }, + { + "pk": 65179, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 358, + "value_range_min": null, + "schema": 157 + } + }, + { + "pk": 65180, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 44, + "value_range_min": null, + "schema": 31 + } + }, + { + "pk": 65181, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 281, + "value_range_min": null, + "schema": 93 + } + }, + { + "pk": 65182, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 283, + "value_range_min": null, + "schema": 93 + } + }, + { + "pk": 65183, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 74, + "value_range_min": null, + "schema": 45 + } + }, + { + "pk": 65184, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 370, + "value_range_min": null, + "schema": 131 + } + }, + { + "pk": 65185, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 373, + "value_range_min": null, + "schema": 131 + } + }, + { + "pk": 65186, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 374, + "value_range_min": null, + "schema": 131 + } + }, + { + "pk": 65187, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 375, + "value_range_min": null, + "schema": 131 + } + }, + { + "pk": 65188, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 47, + "value_range_min": null, + "schema": 32 + } + }, + { + "pk": 65189, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 366, + "value_range_min": null, + "schema": 130 + } + }, + { + "pk": 65190, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 383, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 65191, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 384, + "value_range_min": null, + "schema": 134 + } + }, + { + "pk": 65192, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 376, + "value_range_min": null, + "schema": 133 + } + }, + { + "pk": 65193, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 51, + "value_range_min": null, + "schema": 33 + } + }, + { + "pk": 65194, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 310, + "value_range_min": null, + "schema": 113 + } + }, + { + "pk": 65195, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 313, + "value_range_min": null, + "schema": 113 + } + }, + { + "pk": 65196, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 455, + "value_range_min": null, + "schema": 184 + } + }, + { + "pk": 65197, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 456, + "value_range_min": null, + "schema": 184 + } + }, + { + "pk": 65198, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 457, + "value_range_min": null, + "schema": 184 + } + }, + { + "pk": 65199, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 458, + "value_range_min": null, + "schema": 184 + } + }, + { + "pk": 65200, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 20, + "value_range_min": null, + "schema": 19 + } + }, + { + "pk": 65201, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 453, + "value_range_min": null, + "schema": 183 + } + }, + { + "pk": 65202, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 56, + "value_range_min": null, + "schema": 34 + } + }, + { + "pk": 64127, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": 18.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 148 + } + }, + { + "pk": 64197, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": 60.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 149 + } + }, + { + "pk": 18850, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": "Em Maragogi, a sede do Legislativo Municipal \u00e9 pr\u00f3pria, por\u00e9m, n\u00e3o \u00e9 tombada pelo patrim\u00f4nio hist\u00f3rico, com isto, n\u00e3o existem restri\u00e7\u00f5es para obras em sua estrutura. Os vereadores n\u00e3o possuem gabinetes individuais, e provavelmente haver\u00e1 aumento no n\u00famero de parlamentares. A Casa conta com recep\u00e7\u00e3o e Plen\u00e1rio logo na entrada, possui gabinete da presid\u00eancia, sala de reuni\u00f5es, secretarias, \u00e1reas de arquivo e almoxarifado e copa. Passou recentemente por algumas reformas e foi recentemente pintada.", + "entity_id": 16, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 96 + } + }, + { + "pk": 64278, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": 51.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 110 + } + }, + { + "pk": 64395, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": 31.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 112 + } + }, + { + "pk": 64397, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 26, + "value_range_min": null, + "schema": 21 + } + }, + { + "pk": 64399, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 317, + "value_range_min": null, + "schema": 114 + } + }, + { + "pk": 64401, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 23, + "value_range_min": null, + "schema": 20 + } + }, + { + "pk": 64403, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 58, + "value_range_min": null, + "schema": 35 + } + }, + { + "pk": 64405, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 460, + "value_range_min": null, + "schema": 185 + } + }, + { + "pk": 64407, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 468, + "value_range_min": null, + "schema": 188 + } + }, + { + "pk": 64409, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 470, + "value_range_min": null, + "schema": 188 + } + }, + { + "pk": 64412, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 323, + "value_range_min": null, + "schema": 117 + } + }, + { + "pk": 64414, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 475, + "value_range_min": null, + "schema": 191 + } + }, + { + "pk": 64416, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 472, + "value_range_min": null, + "schema": 190 + } + }, + { + "pk": 64418, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 32, + "value_range_min": null, + "schema": 25 + } + }, + { + "pk": 64420, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 342, + "value_range_min": null, + "schema": 124 + } + }, + { + "pk": 64422, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 479, + "value_range_min": null, + "schema": 193 + } + }, + { + "pk": 64424, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 59, + "value_range_min": null, + "schema": 38 + } + }, + { + "pk": 64426, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 331, + "value_range_min": null, + "schema": 119 + } + }, + { + "pk": 64428, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 61, + "value_range_min": null, + "schema": 39 + } + }, + { + "pk": 64430, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 66, + "value_range_min": null, + "schema": 40 + } + }, + { + "pk": 64431, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 335, + "value_range_min": null, + "schema": 120 + } + }, + { + "pk": 64433, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 79, + "value_range_min": null, + "schema": 47 + } + }, + { + "pk": 64435, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 337, + "value_range_min": null, + "schema": 121 + } + }, + { + "pk": 64437, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 67, + "value_range_min": null, + "schema": 41 + } + }, + { + "pk": 64438, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 69, + "value_range_min": null, + "schema": 42 + } + }, + { + "pk": 64439, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 399, + "value_range_min": null, + "schema": 163 + } + }, + { + "pk": 64441, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 400, + "value_range_min": null, + "schema": 164 + } + }, + { + "pk": 64394, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": 31.0, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": null, + "value_range_min": null, + "schema": 112 + } + }, + { + "pk": 64396, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 26, + "value_range_min": null, + "schema": 21 + } + }, + { + "pk": 64398, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 317, + "value_range_min": null, + "schema": 114 + } + }, + { + "pk": 64400, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 23, + "value_range_min": null, + "schema": 20 + } + }, + { + "pk": 64402, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 58, + "value_range_min": null, + "schema": 35 + } + }, + { + "pk": 64404, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 460, + "value_range_min": null, + "schema": 185 + } + }, + { + "pk": 64406, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 468, + "value_range_min": null, + "schema": 188 + } + }, + { + "pk": 64408, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 470, + "value_range_min": null, + "schema": 188 + } + }, + { + "pk": 64410, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 28, + "value_range_min": null, + "schema": 23 + } + }, + { + "pk": 64413, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 465, + "value_range_min": null, + "schema": 187 + } + }, + { + "pk": 64415, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 475, + "value_range_min": null, + "schema": 191 + } + }, + { + "pk": 64417, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 472, + "value_range_min": null, + "schema": 190 + } + }, + { + "pk": 64419, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 32, + "value_range_min": null, + "schema": 25 + } + }, + { + "pk": 64421, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 342, + "value_range_min": null, + "schema": 124 + } + }, + { + "pk": 64423, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 479, + "value_range_min": null, + "schema": 193 + } + }, + { + "pk": 64425, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 59, + "value_range_min": null, + "schema": 38 + } + }, + { + "pk": 64427, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 331, + "value_range_min": null, + "schema": 119 + } + }, + { + "pk": 64429, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 61, + "value_range_min": null, + "schema": 39 + } + }, + { + "pk": 64432, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 335, + "value_range_min": null, + "schema": 120 + } + }, + { + "pk": 64434, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 79, + "value_range_min": null, + "schema": 47 + } + }, + { + "pk": 64436, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 337, + "value_range_min": null, + "schema": 121 + } + }, + { + "pk": 64440, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 399, + "value_range_min": null, + "schema": 163 + } + }, + { + "pk": 64442, + "model": "diagnosticos.resposta", + "fields": { + "value_date": null, + "value_text": null, + "entity_id": 10, + "value_float": null, + "entity_type": 49, + "value_bool": null, + "value_range_max": null, + "choice": 400, + "value_range_min": null, + "schema": 164 + } + }, + { + "pk": 1, + "model": "diagnosticos.equipe", + "fields": { + "membro": 470, + "diagnostico": 1 + } + }, + { + "pk": 10, + "model": "diagnosticos.equipe", + "fields": { + "membro": 527, + "diagnostico": 4 + } + }, + { + "pk": 11, + "model": "diagnosticos.equipe", + "fields": { + "membro": 15, + "diagnostico": 4 + } + }, + { + "pk": 12, + "model": "diagnosticos.equipe", + "fields": { + "membro": 527, + "diagnostico": 5 + } + }, + { + "pk": 13, + "model": "diagnosticos.equipe", + "fields": { + "membro": 15, + "diagnostico": 5 + } + }, + { + "pk": 20, + "model": "diagnosticos.equipe", + "fields": { + "membro": 6, + "diagnostico": 8 + } + }, + { + "pk": 22, + "model": "diagnosticos.equipe", + "fields": { + "membro": 274, + "diagnostico": 8 + } + }, + { + "pk": 23, + "model": "diagnosticos.equipe", + "fields": { + "membro": 6, + "diagnostico": 9 + } + }, + { + "pk": 25, + "model": "diagnosticos.equipe", + "fields": { + "membro": 274, + "diagnostico": 9 + } + }, + { + "pk": 26, + "model": "diagnosticos.equipe", + "fields": { + "membro": 6, + "diagnostico": 10 + } + }, + { + "pk": 28, + "model": "diagnosticos.equipe", + "fields": { + "membro": 274, + "diagnostico": 10 + } + }, + { + "pk": 29, + "model": "diagnosticos.equipe", + "fields": { + "membro": 3, + "diagnostico": 11 + } + }, + { + "pk": 30, + "model": "diagnosticos.equipe", + "fields": { + "membro": 16, + "diagnostico": 11 + } + }, + { + "pk": 31, + "model": "diagnosticos.equipe", + "fields": { + "membro": 3, + "diagnostico": 12 + } + }, + { + "pk": 32, + "model": "diagnosticos.equipe", + "fields": { + "membro": 16, + "diagnostico": 12 + } + }, + { + "pk": 33, + "model": "diagnosticos.equipe", + "fields": { + "membro": 3, + "diagnostico": 13 + } + }, + { + "pk": 34, + "model": "diagnosticos.equipe", + "fields": { + "membro": 16, + "diagnostico": 13 + } + }, + { + "pk": 35, + "model": "diagnosticos.equipe", + "fields": { + "membro": 7, + "diagnostico": 14 + } + }, + { + "pk": 36, + "model": "diagnosticos.equipe", + "fields": { + "membro": 7, + "diagnostico": 15 + } + }, + { + "pk": 37, + "model": "diagnosticos.equipe", + "fields": { + "membro": 7, + "diagnostico": 16 + } + }, + { + "pk": 38, + "model": "diagnosticos.equipe", + "fields": { + "membro": 527, + "diagnostico": 17 + } + }, + { + "pk": 39, + "model": "diagnosticos.equipe", + "fields": { + "membro": 15, + "diagnostico": 17 + } + }, + { + "pk": 40, + "model": "diagnosticos.equipe", + "fields": { + "membro": 527, + "diagnostico": 18 + } + }, + { + "pk": 41, + "model": "diagnosticos.equipe", + "fields": { + "membro": 15, + "diagnostico": 18 + } + }, + { + "pk": 42, + "model": "diagnosticos.equipe", + "fields": { + "membro": 527, + "diagnostico": 19 + } + }, + { + "pk": 43, + "model": "diagnosticos.equipe", + "fields": { + "membro": 15, + "diagnostico": 19 + } + }, + { + "pk": 44, + "model": "diagnosticos.equipe", + "fields": { + "membro": 527, + "diagnostico": 20 + } + }, + { + "pk": 45, + "model": "diagnosticos.equipe", + "fields": { + "membro": 15, + "diagnostico": 20 + } + }, + { + "pk": 46, + "model": "diagnosticos.equipe", + "fields": { + "membro": 527, + "diagnostico": 21 + } + }, + { + "pk": 47, + "model": "diagnosticos.equipe", + "fields": { + "membro": 15, + "diagnostico": 21 + } + }, + { + "pk": 48, + "model": "diagnosticos.equipe", + "fields": { + "membro": 527, + "diagnostico": 22 + } + }, + { + "pk": 49, + "model": "diagnosticos.equipe", + "fields": { + "membro": 15, + "diagnostico": 22 + } + }, + { + "pk": 50, + "model": "diagnosticos.equipe", + "fields": { + "membro": 6, + "diagnostico": 23 + } + }, + { + "pk": 51, + "model": "diagnosticos.equipe", + "fields": { + "membro": 274, + "diagnostico": 23 + } + }, + { + "pk": 56, + "model": "diagnosticos.equipe", + "fields": { + "membro": 470, + "diagnostico": 23 + } + }, + { + "pk": 57, + "model": "diagnosticos.equipe", + "fields": { + "membro": 274, + "diagnostico": 25 + } + }, + { + "pk": 58, + "model": "diagnosticos.equipe", + "fields": { + "membro": 564, + "diagnostico": 25 + } + }, + { + "pk": 59, + "model": "diagnosticos.equipe", + "fields": { + "membro": 6, + "diagnostico": 25 + } + }, + { + "pk": 60, + "model": "diagnosticos.equipe", + "fields": { + "membro": 565, + "diagnostico": 13 + } + }, + { + "pk": 61, + "model": "diagnosticos.equipe", + "fields": { + "membro": 565, + "diagnostico": 12 + } + }, + { + "pk": 62, + "model": "diagnosticos.equipe", + "fields": { + "membro": 565, + "diagnostico": 11 + } + }, + { + "pk": 63, + "model": "diagnosticos.equipe", + "fields": { + "membro": 470, + "diagnostico": 10 + } + }, + { + "pk": 64, + "model": "diagnosticos.equipe", + "fields": { + "membro": 8, + "diagnostico": 16 + } + }, + { + "pk": 65, + "model": "diagnosticos.equipe", + "fields": { + "membro": 8, + "diagnostico": 15 + } + } +] diff --git a/sigi/apps/diagnosticos/forms.py b/sigi/apps/diagnosticos/forms.py new file mode 100644 index 0000000..c7de695 --- /dev/null +++ b/sigi/apps/diagnosticos/forms.py @@ -0,0 +1,171 @@ +# -*- coding: utf8 -*- + +from copy import deepcopy +from django import forms +from django.forms.forms import BoundField +from django.forms import (BooleanField, CharField, DateField, + FloatField, ModelChoiceField, Textarea, + ModelMultipleChoiceField) +from django.contrib.contenttypes.generic import generic_inlineformset_factory +from sigi.apps.casas.models import CasaLegislativa, Funcionario +from sigi.apps.contatos.models import Telefone +from sigi.apps.diagnosticos.models import Diagnostico +from sigi.apps.diagnosticos.widgets import EavCheckboxSelectMultiple, EavRadioSelect +from eav.forms import BaseDynamicEntityForm +from eav.fields import RangeField + +class DiagnosticoForm(BaseDynamicEntityForm): + """Classe responsável por contruir o formulário, + vinculando ao modelo Diagnostico + """ + model = Diagnostico + + def __init__(self, *args, **kwargs): + super(DiagnosticoForm, self).__init__(*args, **kwargs) + + for k, f in self.fields.iteritems(): + if isinstance(f, CharField): + f.widget = forms.widgets.Textarea(attrs={'cols':'80'}) + +class DiagnosticoMobileForm(BaseDynamicEntityForm): + """Classe responsável por construir o formulário + para ser usado no ambiente mobile, a partir do + do modelo Diagnostico, como também organizar sua + estrutura via categorias. + """ + + FIELD_CLASSES = { + 'text': CharField, + 'float': FloatField, + 'date': DateField, + 'bool': BooleanField, + 'one': ModelChoiceField, + 'many': ModelMultipleChoiceField, + 'range': RangeField, + } + + FIELD_EXTRA = { + 'one': {'widget': EavRadioSelect}, + 'many': {'widget': EavCheckboxSelectMultiple}, + } + + FIELD_WIDGET = { + 'consideracoes_gerais' : {'widget': Textarea}, + 'descreva_5_cursos_prioritarios_para_treinamento_de_parlamentares_da_camara_municipal' : {'widget': Textarea}, + 'descreva_5_cursos_prioritarios_para_treinamento_de_servidores_da_camara_municipal' : {'widget': Textarea}, + 'sugestoes_para_a_area_de_capacitacao' : {'widget': Textarea}, + 'sugestoes_para_a_area_de_comunicacao' : {'widget': Textarea}, + 'sugestoes_para_a_area_de_informacao' : {'widget': Textarea}, + 'sugestoes_para_a_area_de_ti' : {'widget': Textarea}, + 'inscricoes_para_lista_gitec' : {'widget': Textarea}, + 'inscricoes_para_lista_gial' : {'widget': Textarea}, + 'inscricoes_para_lista_gicom' : {'widget': Textarea}, + } + class Meta: + model = Diagnostico + + def __init__(self, data=None, category=None, *args, **kwargs): + super(BaseDynamicEntityForm, self).__init__(data, *args, **kwargs) + self._build_dynamics_fields(category) + + def __iter__(self): + # ordena os campos do formulario usando o atributo label + fields_by_label = [(field.label, name, field) for name, field in self.fields.items()] + for label, name, field in sorted(fields_by_label): + yield BoundField(self, field, name) + + def _build_dynamics_fields(self, category): + """Método da classe ``BaseDynamicEntityForm`` sobrescrita, + para que as perguntas sejam agrupadas dentro das suas + categorias. + * category = ID da Categoria + """ + # Caso seja as duas primeiras categorias, utilize + # os campos do modelo + if int(category) in (0, 1, ): + self.fields = deepcopy(self.base_fields) + else: + self.fields = dict() + + # Se determinada pergunta é da categoria pesquisada, + # então, gere o campo no formulário. + for schema in self.instance.get_schemata(int(category)): + + defaults = { + 'label': schema.title, + 'required': schema.required, + 'help_text': schema.help_text, + } + + datatype = schema.datatype + if datatype == schema.TYPE_MANY: + choices = getattr(self.instance, schema.name) + defaults.update({'queryset': schema.get_choices(), + 'initial': [x.pk for x in choices]}) + elif datatype == schema.TYPE_ONE: + choice = getattr(self.instance, schema.name) + defaults.update({'queryset': schema.get_choices(), + 'initial': choice.pk if choice else None, + # if schema is required remove --------- from ui + 'empty_label': None if schema.required else u"---------"}) + + extra = self.FIELD_EXTRA.get(datatype, {}) + extra.update(self.FIELD_WIDGET.get(schema.name, {})) + if hasattr(extra, '__call__'): + extra = extra(schema) + defaults.update(extra) + + MappedField = self.FIELD_CLASSES[datatype] + self.fields[schema.name] = MappedField(**defaults) + + # fill initial data (if attribute was already defined) + value = getattr(self.instance, schema.name) + if value and not datatype in (schema.TYPE_ONE, schema.TYPE_MANY): # choices are already done above + self.initial[schema.name] = value + + +class CasaLegislativaMobileForm(forms.ModelForm): + data_instalacao = forms.DateField(label = u'Data de instalação da Casa Legislativa', required=False) + + class Meta: + model = CasaLegislativa + fields = ('cnpj', 'data_criacao', 'data_instalacao', 'logradouro', 'bairro', 'cep', 'email', 'pagina_web') + + def __init__(self, *args, **kwargs): + super(CasaLegislativaMobileForm, self).__init__(*args, **kwargs) + self.fields['data_criacao'] = forms.DateField( + label = u'Data de criação do Município', + initial = self.instance.municipio.data_criacao, + required=False + ) + + def save(self, commit=True): + super(CasaLegislativaMobileForm, self).save(commit=True) + self.instance.municipio.data_criacao = self.cleaned_data['data_criacao'] + if commit: + self.instance.municipio.save() + return self.instance + +class TelefoneMobileForm(forms.ModelForm): + pass + class Meta: + model = Telefone + fields = ('numero', 'tipo') + +class FuncionariosMobileForm(forms.ModelForm): + TelefoneFormSet = generic_inlineformset_factory(Telefone, TelefoneMobileForm, extra=1, can_delete=False) + + def __init__(self, data=None, prefix=None, instance=None, *args, **kwargs): + super(FuncionariosMobileForm, self).__init__(data, prefix=prefix, instance=instance, *args, **kwargs) + self.telefones = self.TelefoneFormSet(data, prefix=prefix, instance=instance) + + def is_valid(self): + return self.telefones.is_valid() and super(FuncionariosMobileForm, self).is_valid() + + def save(self, commit=True): + self.telefones.save(commit) + return super(FuncionariosMobileForm, self).save(commit) + + class Meta: + model = Funcionario + fields = ('nome', 'email', 'cargo', 'funcao', 'tempo_de_servico', 'sexo') diff --git a/sigi/apps/diagnosticos/models.py b/sigi/apps/diagnosticos/models.py new file mode 100644 index 0000000..d15ee8e --- /dev/null +++ b/sigi/apps/diagnosticos/models.py @@ -0,0 +1,247 @@ +# -*- coding: utf-8 -*- +from datetime import datetime +from django.db import models + +from sigi.apps.casas.models import CasaLegislativa +from sigi.apps.utils import SearchField +from sigi.apps.utils.email import enviar_email +from eav.models import BaseChoice, BaseEntity, BaseSchema, BaseAttribute + + +class Diagnostico(BaseEntity): + """ Modelo para representar unm diagnostico realizado + em uma Casa Legislativa + """ + casa_legislativa = models.ForeignKey( + 'casas.CasaLegislativa', + verbose_name='Casa Legislativa') + + # campo de busca em caixa baixa e sem acento + search_text = SearchField(field_names=['casa_legislativa']) + casa_legislativa.casa_uf_filter = True +# casa_legislativa.casa_tipo_filter = True + data_visita_inicio = models.DateField( + u'data inicial da visita', + null=True, + blank=True, + ) + data_visita_fim = models.DateField( + u'data final da visita', + null=True, + blank=True, + ) + publicado = models.BooleanField(default=False) + data_publicacao = models.DateField( + u'data de publicação do diagnóstico', + null=True, + blank=True, + ) + + responsavel = models.ForeignKey('servidores.Servidor', + verbose_name=u'responsável') + + class Meta: + verbose_name, verbose_name_plural = u'diagnóstico', u'diagnósticos' + + @property + def membros(self): + """ Retorna a lista de membros do diagnostico, + isto é responsavel + equipe + """ + membros = set([self.responsavel]) + for equipe in self.equipe_set.all(): + membros.add(equipe.membro) + return list(membros) + + @property + def contatos_respondidos(self): + """Retorna uma lista de contatos que foram + respondidos + """ + return list(self.casa_legislativa.funcionario_set.all()) + + @property + def categorias_respondidas(self): + """ Retorna uma listas das categorias dinamicas que tem + ao menos uma resposta + """ + # unifica as categorias das perguntas dessas respostas + categoria_com_respostas = set([r.schema.categoria for r in self._get_respostas()]) + + return list(categoria_com_respostas) + + def _get_respostas(self): + # obtem todas as respostas dinamicas desse diagnostico + respostas = Resposta.objects.filter(entity_id=self.id).all() + + # remove as respostas nulas ou em branco + return [r for r in respostas if r._get_value()] + + def email_diagnostico_publicado(self, from_email, host): + """Enviando email quando o diagnóstico for publicado. Os + argumentos acima são: + * from_email - Email de remetente + * host - O Host do sistema, para ser usado na + construção do endereço do diagnóstico + """ + enviar_email(from_email, u"Diagnóstico publicado", + 'diagnosticos/email_diagnostico_publicado.txt', + { + 'responsavel': self.responsavel.nome_completo, + 'casa_legislativa': self.casa_legislativa, + 'data_diagnostico': self.data_visita_inicio, + 'host': host, + 'url_diagnostico': self.get_absolute_url(), + 'status': u"Publicado", + }) + + def email_diagnostico_alterado(self, from_email, host): + """Enviando email quando o status do diagnóstico + for alterado. Os argumentos acima são: + * from_email - Email do destinatário + * host - O Host do sistema, para ser usado na + construção do endereço do diagnóstico + """ + enviar_email(from_email, u"Diagnóstico alterado", + 'diagnosticos/email_diagnostico_alterado.txt', + { + 'servidor': self.responsavel.nome_completo, + 'casa_legislativa': self.casa_legislativa, + 'data_diagnostico': self.data_visita_inicio, + 'host': host, + 'url_diagnostico': self.get_absolute_url(), + 'status': "Alterado", + }) + + + def get_schemata(self, category=None, *args, **kwargs): + """ Se existir uma categoria retorna apenas as questões dessa. + """ + schemas = super(Diagnostico,self).get_schemata(*args, **kwargs) + if category: + schemas = [s for s in schemas if s.categoria_id == category] + schemas= sorted(schemas, lambda x,y: cmp(x.title, y.title)) + + return schemas + + @classmethod + def get_schemata_for_model(self): + return Pergunta.objects.all() + + def __unicode__(self): + return str(self.casa_legislativa).decode('utf8') + + def get_absolute_url(self): + return "/sigi/diagnosticos/diagnostico/%i.pdf" % (self.id, ) + + +class Categoria(models.Model): + """ Modelo para representar a categoria de uma pergunta + e sua ordem na hora de exibir no formulário + """ + nome = models.CharField(max_length=255) + + class Meta: + ordering = ('nome',) + + def __unicode__(self): + return self.nome + + +class Pergunta(BaseSchema): + """ Modelo que representa uma pergunta no questionário + e sua ordem dentro da categoria + + Uma pergunta tem o nome e o tipo da resposta + """ + categoria = models.ForeignKey(Categoria, related_name='perguntas') + + def group_choices(self): + from django.db import connection, transaction + cursor = connection.cursor() + + cursor.execute(""" + SELECT choice_id, sum(1) + FROM diagnosticos_resposta + WHERE schema_id=%s and choice_id is not null + GROUP BY choice_id; + """, [self.id]) + + return [ + (Escolha.objects.get(id=int(row[0])), row[1]) + for row in cursor.fetchall() + ] + + def total_anwsers(self): + from django.db import connection, transaction + cursor = connection.cursor() + + cursor.execute(""" + SELECT sum(1) + FROM diagnosticos_resposta + WHERE schema_id=%s + """, [self.id]) + + return cursor.fetchone() + + class Meta: + ordering = ('title',) + verbose_name, verbose_name_plural = 'pergunta', 'perguntas' + + +class Escolha(BaseChoice): + """ Perguntas de multiplas escolhas tem as opções + cadastradas neste modelo + """ + schema = models.ForeignKey(Pergunta, + related_name='choices', verbose_name='pergunta') + schema_to_open = models.ForeignKey(Pergunta, related_name='', + verbose_name='pergunta para abrir', blank=True, null=True) + ordem = models.PositiveIntegerField(blank=True, null=True) + + class Meta: + ordering = ('schema','ordem') + verbose_name, verbose_name_plural = 'escolha', 'escolhas' + + +class Resposta(BaseAttribute): + """ Modelo para guardar as respostas das perguntas + de um diagnosico + """ + schema = models.ForeignKey(Pergunta, related_name='attrs', + verbose_name='pergunta') + choice = models.ForeignKey(Escolha, verbose_name='escolha', + blank=True, null=True) + + class Meta: + verbose_name, verbose_name_plural = 'resposta', 'respostas' + + +class Equipe(models.Model): + """ Modelo que representa a equipe de um diagnóstico + """ + diagnostico = models.ForeignKey(Diagnostico) + membro = models.ForeignKey('servidores.Servidor') + + class Meta: + verbose_name, verbose_name_plural = u'equipe', u'equipe' + + def __unicode__(self): + return self.membro.__unicode__() + + +class Anexo(models.Model): + """ Modelo para representar os documentos levantados + no processo de diagnóstico. Podem ser fotos, contratos, etc. + """ + diagnostico = models.ForeignKey(Diagnostico, verbose_name=u'diagnóstico') + arquivo = models.FileField(upload_to='apps/diagnostico/anexo/arquivo',) + descricao = models.CharField('descrição', max_length='70') + data_pub = models.DateTimeField('data da publicação do anexo', + default=datetime.now) + + class Meta: + ordering = ('-data_pub',) + + def __unicode__(self): + return unicode(self.arquivo.name) diff --git a/sigi/apps/diagnosticos/templatetags/__init__.py b/sigi/apps/diagnosticos/templatetags/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sigi/apps/diagnosticos/templatetags/smart_if.py b/sigi/apps/diagnosticos/templatetags/smart_if.py new file mode 100644 index 0000000..a8fc194 --- /dev/null +++ b/sigi/apps/diagnosticos/templatetags/smart_if.py @@ -0,0 +1,401 @@ +""" +A smarter {% if %} tag for django templates. + +While retaining current Django functionality, it also handles equality, +greater than and less than operators. Some common case examples:: + + {% if articles|length >= 5 %}...{% endif %} + {% if "ifnotequal tag" != "beautiful" %}...{% endif %} +""" +import unittest +from django import template + + +register = template.Library() + + +#============================================================================== +# Calculation objects +#============================================================================== + +class BaseCalc(object): + def __init__(self, var1, var2=None, negate=False): + self.var1 = var1 + self.var2 = var2 + self.negate = negate + + def resolve(self, context): + try: + var1, var2 = self.resolve_vars(context) + outcome = self.calculate(var1, var2) + except: + outcome = False + if self.negate: + return not outcome + return outcome + + def resolve_vars(self, context): + var2 = self.var2 and self.var2.resolve(context) + return self.var1.resolve(context), var2 + + def calculate(self, var1, var2): + raise NotImplementedError() + + +class Or(BaseCalc): + def calculate(self, var1, var2): + return var1 or var2 + + +class And(BaseCalc): + def calculate(self, var1, var2): + return var1 and var2 + + +class Equals(BaseCalc): + def calculate(self, var1, var2): + return var1 == var2 + + +class Greater(BaseCalc): + def calculate(self, var1, var2): + return var1 > var2 + + +class GreaterOrEqual(BaseCalc): + def calculate(self, var1, var2): + return var1 >= var2 + + +class In(BaseCalc): + def calculate(self, var1, var2): + return var1 in var2 + + +#============================================================================== +# Tests +#============================================================================== + +class TestVar(object): + """ + A basic self-resolvable object similar to a Django template variable. Used + to assist with tests. + """ + def __init__(self, value): + self.value = value + + def resolve(self, context): + return self.value + + +class SmartIfTests(unittest.TestCase): + def setUp(self): + self.true = TestVar(True) + self.false = TestVar(False) + self.high = TestVar(9000) + self.low = TestVar(1) + + def assertCalc(self, calc, context=None): + """ + Test a calculation is True, also checking the inverse "negate" case. + """ + context = context or {} + self.assert_(calc.resolve(context)) + calc.negate = not calc.negate + self.assertFalse(calc.resolve(context)) + + def assertCalcFalse(self, calc, context=None): + """ + Test a calculation is False, also checking the inverse "negate" case. + """ + context = context or {} + self.assertFalse(calc.resolve(context)) + calc.negate = not calc.negate + self.assert_(calc.resolve(context)) + + def test_or(self): + self.assertCalc(Or(self.true)) + self.assertCalcFalse(Or(self.false)) + self.assertCalc(Or(self.true, self.true)) + self.assertCalc(Or(self.true, self.false)) + self.assertCalc(Or(self.false, self.true)) + self.assertCalcFalse(Or(self.false, self.false)) + + def test_and(self): + self.assertCalc(And(self.true, self.true)) + self.assertCalcFalse(And(self.true, self.false)) + self.assertCalcFalse(And(self.false, self.true)) + self.assertCalcFalse(And(self.false, self.false)) + + def test_equals(self): + self.assertCalc(Equals(self.low, self.low)) + self.assertCalcFalse(Equals(self.low, self.high)) + + def test_greater(self): + self.assertCalc(Greater(self.high, self.low)) + self.assertCalcFalse(Greater(self.low, self.low)) + self.assertCalcFalse(Greater(self.low, self.high)) + + def test_greater_or_equal(self): + self.assertCalc(GreaterOrEqual(self.high, self.low)) + self.assertCalc(GreaterOrEqual(self.low, self.low)) + self.assertCalcFalse(GreaterOrEqual(self.low, self.high)) + + def test_in(self): + list_ = TestVar([1,2,3]) + invalid_list = TestVar(None) + self.assertCalc(In(self.low, list_)) + self.assertCalcFalse(In(self.low, invalid_list)) + + def test_parse_bits(self): + var = IfParser([True]).parse() + self.assert_(var.resolve({})) + var = IfParser([False]).parse() + self.assertFalse(var.resolve({})) + + var = IfParser([False, 'or', True]).parse() + self.assert_(var.resolve({})) + + var = IfParser([False, 'and', True]).parse() + self.assertFalse(var.resolve({})) + + var = IfParser(['not', False, 'and', 'not', False]).parse() + self.assert_(var.resolve({})) + + var = IfParser(['not', 'not', True]).parse() + self.assert_(var.resolve({})) + + var = IfParser([1, '=', 1]).parse() + self.assert_(var.resolve({})) + + var = IfParser([1, 'not', '=', 1]).parse() + self.assertFalse(var.resolve({})) + + var = IfParser([1, 'not', 'not', '=', 1]).parse() + self.assert_(var.resolve({})) + + var = IfParser([1, '!=', 1]).parse() + self.assertFalse(var.resolve({})) + + var = IfParser([3, '>', 2]).parse() + self.assert_(var.resolve({})) + + var = IfParser([1, '<', 2]).parse() + self.assert_(var.resolve({})) + + var = IfParser([2, 'not', 'in', [2, 3]]).parse() + self.assertFalse(var.resolve({})) + + var = IfParser([1, 'or', 1, '=', 2]).parse() + self.assert_(var.resolve({})) + + def test_boolean(self): + var = IfParser([True, 'and', True, 'and', True]).parse() + self.assert_(var.resolve({})) + var = IfParser([False, 'or', False, 'or', True]).parse() + self.assert_(var.resolve({})) + var = IfParser([True, 'and', False, 'or', True]).parse() + self.assert_(var.resolve({})) + var = IfParser([False, 'or', True, 'and', True]).parse() + self.assert_(var.resolve({})) + + var = IfParser([True, 'and', True, 'and', False]).parse() + self.assertFalse(var.resolve({})) + var = IfParser([False, 'or', False, 'or', False]).parse() + self.assertFalse(var.resolve({})) + var = IfParser([False, 'or', True, 'and', False]).parse() + self.assertFalse(var.resolve({})) + var = IfParser([False, 'and', True, 'or', False]).parse() + self.assertFalse(var.resolve({})) + + def test_invalid(self): + self.assertRaises(ValueError, IfParser(['not']).parse) + self.assertRaises(ValueError, IfParser(['==']).parse) + self.assertRaises(ValueError, IfParser([1, 'in']).parse) + self.assertRaises(ValueError, IfParser([1, '>', 'in']).parse) + self.assertRaises(ValueError, IfParser([1, '==', 'not', 'not']).parse) + self.assertRaises(ValueError, IfParser([1, 2]).parse) + + +OPERATORS = { + '=': (Equals, True), + '==': (Equals, True), + '!=': (Equals, False), + '>': (Greater, True), + '>=': (GreaterOrEqual, True), + '<=': (Greater, False), + '<': (GreaterOrEqual, False), + 'or': (Or, True), + 'and': (And, True), + 'in': (In, True), +} +BOOL_OPERATORS = ('or', 'and') + + +class IfParser(object): + error_class = ValueError + + def __init__(self, tokens): + self.tokens = tokens + + def _get_tokens(self): + return self._tokens + + def _set_tokens(self, tokens): + self._tokens = tokens + self.len = len(tokens) + self.pos = 0 + + tokens = property(_get_tokens, _set_tokens) + + def parse(self): + if self.at_end(): + raise self.error_class('No variables provided.') + var1 = self.get_bool_var() + while not self.at_end(): + op, negate = self.get_operator() + var2 = self.get_bool_var() + var1 = op(var1, var2, negate=negate) + return var1 + + def get_token(self, eof_message=None, lookahead=False): + negate = True + token = None + pos = self.pos + while token is None or token == 'not': + if pos >= self.len: + if eof_message is None: + raise self.error_class() + raise self.error_class(eof_message) + token = self.tokens[pos] + negate = not negate + pos += 1 + if not lookahead: + self.pos = pos + return token, negate + + def at_end(self): + return self.pos >= self.len + + def create_var(self, value): + return TestVar(value) + + def get_bool_var(self): + """ + Returns either a variable by itself or a non-boolean operation (such as + ``x == 0`` or ``x < 0``). + + This is needed to keep correct precedence for boolean operations (i.e. + ``x or x == 0`` should be ``x or (x == 0)``, not ``(x or x) == 0``). + """ + var = self.get_var() + if not self.at_end(): + op_token = self.get_token(lookahead=True)[0] + if isinstance(op_token, basestring) and (op_token not in + BOOL_OPERATORS): + op, negate = self.get_operator() + return op(var, self.get_var(), negate=negate) + return var + + def get_var(self): + token, negate = self.get_token('Reached end of statement, still ' + 'expecting a variable.') + if isinstance(token, basestring) and token in OPERATORS: + raise self.error_class('Expected variable, got operator (%s).' % + token) + var = self.create_var(token) + if negate: + return Or(var, negate=True) + return var + + def get_operator(self): + token, negate = self.get_token('Reached end of statement, still ' + 'expecting an operator.') + if not isinstance(token, basestring) or token not in OPERATORS: + raise self.error_class('%s is not a valid operator.' % token) + if self.at_end(): + raise self.error_class('No variable provided after "%s".' % token) + op, true = OPERATORS[token] + if not true: + negate = not negate + return op, negate + + +#============================================================================== +# Actual templatetag code. +#============================================================================== + +class TemplateIfParser(IfParser): + error_class = template.TemplateSyntaxError + + def __init__(self, parser, *args, **kwargs): + self.template_parser = parser + return super(TemplateIfParser, self).__init__(*args, **kwargs) + + def create_var(self, value): + return self.template_parser.compile_filter(value) + + +class SmartIfNode(template.Node): + def __init__(self, var, nodelist_true, nodelist_false=None): + self.nodelist_true, self.nodelist_false = nodelist_true, nodelist_false + self.var = var + + def render(self, context): + if self.var.resolve(context): + return self.nodelist_true.render(context) + if self.nodelist_false: + return self.nodelist_false.render(context) + return '' + + def __repr__(self): + return "" + + def __iter__(self): + for node in self.nodelist_true: + yield node + if self.nodelist_false: + for node in self.nodelist_false: + yield node + + def get_nodes_by_type(self, nodetype): + nodes = [] + if isinstance(self, nodetype): + nodes.append(self) + nodes.extend(self.nodelist_true.get_nodes_by_type(nodetype)) + if self.nodelist_false: + nodes.extend(self.nodelist_false.get_nodes_by_type(nodetype)) + return nodes + + +@register.tag('if') +def smart_if(parser, token): + """ + A smarter {% if %} tag for django templates. + + While retaining current Django functionality, it also handles equality, + greater than and less than operators. Some common case examples:: + + {% if articles|length >= 5 %}...{% endif %} + {% if "ifnotequal tag" != "beautiful" %}...{% endif %} + + Arguments and operators _must_ have a space between them, so + ``{% if 1>2 %}`` is not a valid smart if tag. + + All supported operators are: ``or``, ``and``, ``in``, ``=`` (or ``==``), + ``!=``, ``>``, ``>=``, ``<`` and ``<=``. + """ + bits = token.split_contents()[1:] + var = TemplateIfParser(parser, bits).parse() + nodelist_true = parser.parse(('else', 'endif')) + token = parser.next_token() + if token.contents == 'else': + nodelist_false = parser.parse(('endif',)) + parser.delete_first_token() + else: + nodelist_false = None + return SmartIfNode(var, nodelist_true, nodelist_false) + + +if __name__ == '__main__': + unittest.main() diff --git a/sigi/apps/diagnosticos/tests.py b/sigi/apps/diagnosticos/tests.py new file mode 100644 index 0000000..acf958e --- /dev/null +++ b/sigi/apps/diagnosticos/tests.py @@ -0,0 +1,15 @@ +# -*- coding: utf8 -*- + +from django.test import TestCase + + +class DiagnosticosViewsTest(TestCase): + """Testes feitos para verificar o funcionamento + do view de diagnósticos. + """ + + def test_diagnostico_list_success(self): + + response = self.client.get('/sigi/mobile/diagnosticos') + self.assertEquals(200, response.status_code) + self.assertTemplateUsed(response, 'diagnosticos/diagnosticos_list.html') diff --git a/sigi/apps/diagnosticos/urls.py b/sigi/apps/diagnosticos/urls.py new file mode 100644 index 0000000..b58f95c --- /dev/null +++ b/sigi/apps/diagnosticos/urls.py @@ -0,0 +1,35 @@ +# -*- coding: utf8 -*- +from django.conf.urls.defaults import patterns, url + +LOGIN_REDIRECT_URL = '/sigi/mobile/diagnosticos/login' + +urlpatterns = patterns('', + # Lista de Diagnósticos + url(r'^$', 'sigi.apps.diagnosticos.views.lista', name='lista_diagnosticos'), + + # Login do Diagnóstico + url(r'^login/$', 'django.contrib.auth.views.login', {'template_name': + 'diagnosticos/diagnosticos_login.html'}, name='login'), + + # Logout do Diagnóstico + url(r'^logout/$', 'django.contrib.auth.views.logout', + {'next_page': LOGIN_REDIRECT_URL}, name='logout'), + + # Lista de Categorias + url(r'^(?P\d+)/categorias/$', 'sigi.apps.diagnosticos.views.categorias', name='lista_categorias'), + + # Detalhes da Categoria da Casa Legislativa + url(r'^(?P\d+)/categorias/1/$', + 'sigi.apps.diagnosticos.views.categoria_casa_legislativa', + name='detalhes_categoria_casa_legislativa'), + + # Detalhes da Categoria de Contatos + url(r'^(?P\d+)/categorias/2/$', + 'sigi.apps.diagnosticos.views.categoria_contatos', + name='detalhes_categoria_contatos'), + + # Detalhes de Categorias Dinamicas + url(r'^(?P\d+)/categorias/(?P\d+)/$', + 'sigi.apps.diagnosticos.views.categoria_detalhes', + name='detalhes_categoria'), +) diff --git a/sigi/apps/diagnosticos/views.py b/sigi/apps/diagnosticos/views.py new file mode 100644 index 0000000..ae89ce6 --- /dev/null +++ b/sigi/apps/diagnosticos/views.py @@ -0,0 +1,351 @@ +# -*- coding: utf8 -*- + +import new +from django.http import HttpResponse, QueryDict +from django.utils import simplejson +from django.shortcuts import render_to_response, get_object_or_404, redirect +from django.template import RequestContext +from django.views.decorators.cache import never_cache +from geraldo.generators import PDFGenerator + +from sigi.apps.diagnosticos.urls import LOGIN_REDIRECT_URL +from sigi.apps.utils.decorators import login_required +from sigi.apps.diagnosticos.decorators import validate_diagnostico +from sigi.apps.diagnosticos.models import Diagnostico, Categoria, Pergunta +from sigi.apps.casas.models import Funcionario +from sigi.apps.diagnosticos.forms import (DiagnosticoMobileForm, + CasaLegislativaMobileForm, FuncionariosMobileForm) +from sigi.apps.contatos.models import Telefone +from sigi.shortcuts import render_to_pdf + + +@never_cache +@login_required(login_url=LOGIN_REDIRECT_URL) +def lista(request): + """Consulta os diagnosticos do servidor logado, + que contenham o status de não publicado. + """ + servidor = request.user.servidor + diagnosticos = servidor.diagnosticos + context = RequestContext(request, {'diagnosticos': diagnosticos}) + return render_to_response('diagnosticos/diagnosticos_list.html', context) + + +@never_cache +@login_required(login_url=LOGIN_REDIRECT_URL) +@validate_diagnostico +def categorias(request, id_diagnostico): + """Consulta as categorias do diagnostico selecionado + a partir da sua identificação + """ + categorias = Categoria.objects.all() + diagnostico = Diagnostico.objects.get(pk=id_diagnostico) + + # Estilizando a lista de categorias para que ajude a identificar + # qual categoria foi a ultima a ser usada, como também as outras + # que ainda não foram acessadas + ultima_categoria = request.session.get('ultima_categoria', 0) + + context = RequestContext(request, {'categorias': categorias, + 'diagnostico': diagnostico, 'ultima_categoria': ultima_categoria}) + return render_to_response('diagnosticos/diagnosticos_categorias_list.html', + context) + + +@never_cache +@login_required(login_url=LOGIN_REDIRECT_URL) +@validate_diagnostico +def categoria_detalhes(request, id_diagnostico, id_categoria): + """Captura as perguntas da categoria + selecionada. Durante o preenchimento das perguntas, o camada + template do projeto, vai requisitar a inserção dos campos via + AJAX a cada mudança de pergunta + + Caso alguma inserção não passe na validação do formulário em + questão, será enviado as mensagens de erro no formato JSON, + para que a camada de template do projeto trate-as de forma adequada. + """ + + # Grava na sessão a categoria atual, para destacar que + # era foi a última visitada. + request.session['ultima_categoria'] = int(id_categoria) + + try: + categoria = Categoria.objects.get(pk=id_categoria) + except Categoria.DoesNotExist: + context = RequestContext(request) + return render_to_response('mobile/404.html', context) + + diagnostico = Diagnostico.objects.filter(publicado=False).get(pk=id_diagnostico) + + if request.method == "POST": + form = DiagnosticoMobileForm(request.POST, + instance=diagnostico, category=id_categoria) + if form.is_valid(): + form.save() + resposta = { + 'mensagem': 'sucesso' + } + else: + # Montando a estrutura das mensagens de erro no formato JSON + resposta = { + 'mensagem': 'erro', + 'erros': form.errors + } + json = simplejson.dumps(resposta) + return HttpResponse(json, mimetype="application/json") + else: + form = DiagnosticoMobileForm(instance=diagnostico, + category=id_categoria) + + context = RequestContext(request, {'form': form, 'categoria': categoria, + 'diagnostico': diagnostico}) + return render_to_response('diagnosticos/diagnosticos_categorias_form.html', + context) + + +@never_cache +@login_required(login_url=LOGIN_REDIRECT_URL) +@validate_diagnostico +def categoria_casa_legislativa(request, id_diagnostico): + + # Grava na sessão a categoria atual, para destacar que + # era foi a última visitada. + request.session['ultima_categoria'] = 1 + + diagnostico = Diagnostico.objects.get(pk=id_diagnostico) + casa_legislativa = diagnostico.casa_legislativa + + if request.method == "POST": + form = CasaLegislativaMobileForm(request.POST, + instance=casa_legislativa) + if form.is_valid(): + form.save() + resposta = { + 'mensagem': 'sucesso' + } + else: + # Montando a estrutura das mensagens de erro no formato JSON + resposta = { + 'mensagem': 'erro', + 'erros': form.errors + } + json = simplejson.dumps(resposta) + return HttpResponse(json, mimetype="application/json") + else: + form = CasaLegislativaMobileForm(instance=casa_legislativa) + + context = RequestContext(request, {'form': form, + 'diagnostico': diagnostico, 'casa_legislativa': casa_legislativa}) + return render_to_response( + 'diagnosticos/diagnosticos_categoria_casa_legislativa_form.html', + context) + + +@never_cache +@login_required(login_url=LOGIN_REDIRECT_URL) +@validate_diagnostico +def categoria_contatos(request, id_diagnostico): + + # Grava na sessão a categoria atual, para destacar que + # era foi a última visitada. + request.session['ultima_categoria'] = 2 + + diagnostico = Diagnostico.objects.get(pk=id_diagnostico) + casa_legislativa = diagnostico.casa_legislativa + + funcionarios = [] + + for n, l in Funcionario.SETOR_CHOICES: + if casa_legislativa.funcionario_set.filter(setor=n).count() <= 1: + funcionarios.append(casa_legislativa.funcionario_set.get_or_create(setor=n)) + else: + for f in casa_legislativa.funcionario_set.filter(setor=n): + funcionarios.append((f, False)) + + if request.method == "POST": + forms = [] + for f, c in funcionarios: + try: + forms.append(FuncionariosMobileForm(request.POST, prefix=f.setor, instance=f)) + except: + pass + + resposta = { + 'mensagem': 'sucesso', + 'erros' : {}, + 'fones' : {}, + 'clean' : (), + } + + # valida e salva um formulario por vez + for form in forms: + if form.is_valid(): + form.save() + s = '' + for form_telefones in form.telefones.forms: + tel = form_telefones.instance + if tel._state.adding and tel.numero != '': + s += '

Novo telefone %s: %s

' % (form_telefones.instance.get_tipo_display(), form_telefones.instance.numero) + resposta['clean'] += ('id_' + form_telefones.prefix + '-numero',) + if s != '': + resposta['fones'][form.prefix] = s + else: + # Montando a estrutura das mensagens de erro no formato JSON + resposta['mensagem'] = 'erro' + for key, value in form.errors.iteritems(): + resposta['erros'][form.prefix + '-' + key + '-errors'] = value + + for form_telefones in form.telefones.forms: + if not form_telefones.is_valid(): + if (form_telefones.fields['id'].initial is not None + and form_telefones.fields['tipo'].initial == 'I' + and form_telefones.fields['numero'].initial is None): + if Telefone.objects.filter(pk=form_telefones.fields['id'].initial).exists(): + Telefone.objects.get(pk=form_telefones.fields['id'].initial).delete() + if not resposta['fones'].has_key(form.prefix): + resposta['fones'][form.prefix] = '' + resposta['fones'][form.prefix] += u'

O telefone %s %s foi excluído da base de dados

' % ( + form_telefones.instance.get_tipo_display(), form_telefones.instance.numero) + else: + for key, value in form_telefones.errors.iteritems(): + key = form_telefones.prefix + "-id-errors" + resposta['erros'][key] = value + + json = simplejson.dumps(resposta) + return HttpResponse(json, mimetype="application/json") + else: + forms = [FuncionariosMobileForm(prefix=f.setor, instance=f) + for f, c in funcionarios] + + context = RequestContext(request, {'forms': forms, + 'diagnostico': diagnostico, 'casa_legislativa': casa_legislativa}) + return render_to_response('diagnosticos/diagnosticos_categoria_contatos_form.html', + context) + +def diagnostico_pdf(request, id_diagnostico): + diagnostico = Diagnostico.objects.get(pk=id_diagnostico) + categorias = Categoria.objects.all() + + casa_legislativa = diagnostico.casa_legislativa + funcionarios = [] + for n, l in Funcionario.SETOR_CHOICES: + if casa_legislativa.funcionario_set.filter(setor=n).count() <= 1: + funcionarios.append(casa_legislativa.funcionario_set.get_or_create(setor=n)) + else: + for f in casa_legislativa.funcionario_set.filter(setor=n): + funcionarios.append(f) + + schemas_by_categoria = [] + for categoria in categorias: + schemas = [] + for schema in diagnostico.get_schemata(categoria.id): + datatype = schema.datatype + data = getattr(diagnostico, schema.name) + if datatype == schema.TYPE_MANY: + schema.value = [x.pk for x in data] + elif datatype == schema.TYPE_ONE: + schema.value = data.pk if data else None, + else: + schema.value = data + schemas.append(schema) + + schemas_by_categoria.append((categoria,schemas)) + + context = RequestContext(request, { + 'pagesize':'A4', + 'casa_legislativa': casa_legislativa, + 'funcionarios': funcionarios, + 'diagnostico': diagnostico, + 'schemas_by_categoria': schemas_by_categoria, + }) + + return render_to_pdf('diagnosticos/diagnostico_pdf.html', context) + #return render_to_response('diagnosticos/diagnostico_pdf.html', context) + +def graficos(request): + categorias = Categoria.objects.all() + + sel_categoria = int(request.REQUEST.get("categoria","3")) + perguntas = Pergunta.objects.filter(categoria=sel_categoria).all() + + context = RequestContext(request, { + 'categorias': categorias, + 'sel_categoria': sel_categoria, + 'perguntas': perguntas, + }) + return render_to_response('diagnosticos/graficos.html', + context) + +def percentage(fraction, population): + try: + return "%.0f%%" % ((float(fraction) / float(population)) * 100) + except ValueError: + return '' + +def grafico_api(request): + colors = ['ffff00', 'cc7900', 'ff0000', '92d050', '006600', '0097cc', '002776', 'ae78d6', 'ff00ff', '430080', + '28d75c', '0000ff', 'fff200'] + graph_url = "http://chart.apis.google.com/chart" + #graph_params = QueryDict("chxt=y&chbh=a&chco=A2C180,3D7930") + graph_params = QueryDict("") + graph_params = graph_params.copy() # to make it mutable + + width = request.REQUEST.get('width', '800') + height = request.REQUEST.get('height', '300') + graph_params.update({'chs': width + 'x' + height}) + + pergunta_slug = request.REQUEST.get('id', None) + pergunta = get_object_or_404(Pergunta, name=pergunta_slug) + + if pergunta.datatype == 'one': + total = sum([r[1] for r in pergunta.group_choices()]) + choices = [str(r[1]) for r in pergunta.group_choices()] + legend = [percentage(r[1],total) + " " + str(r[0]) for r in pergunta.group_choices()] + colors = ['ff0000', 'fff200', '0000ff', '28d75c'] + ["%0.6x" % (0x48d1 + (0xda74 * c)) + for c in range(0,len(pergunta.group_choices()))] + graph_params.update({ + 'cht': 'p', + 'chd': 't:' + ",".join(choices), + 'chdl': '' + "|".join(legend), + 'chco': '' + '|'.join(colors[:len(pergunta.group_choices())]) + }) + elif pergunta.datatype == 'many': + total = sum([r[1] for r in pergunta.group_choices()]) + percent = [str(float(r[1])*100/total) for r in pergunta.group_choices()] + choices = [str(r[1]) for r in pergunta.group_choices()] + legend = [str(r[0]) for r in pergunta.group_choices()] + colors = ['ffff00', 'cc7900', 'ff0000', '92d050', '006600', '0097cc', '002776', 'ae78d6', 'ff00ff', '430080'] + \ + ["%0.6x" % (0x48d1 + (0xda74 * c)) for c in range(0,len(pergunta.group_choices()))] + graph_params.update({ + 'cht': 'bvg', + 'chxt': 'y', + 'chd': 't:' + ",".join(percent), + 'chdl': '' + "|".join(legend), + 'chl': '' + "|".join(choices), + 'chco': '' + '|'.join(colors[:len(pergunta.group_choices())]) + }) + + response = { + "type": "photo", + "width": width, + "height": height, + "title": pergunta.title, + "url": graph_url + "?" + graph_params.urlencode(), + "provider_name": "SIGI", + "provider_url": "https://intranet.interlegis.gov.br/sigi/" + } + + json = simplejson.dumps(response) + return HttpResponse(json, mimetype="application/json") + +def municipios_diagnosticados(self): + municipios = [] + + for d in Diagnostico.objects.all(): + m = d.casa_legislativa.municipio + municipio = {'nome': d.casa_legislativa.nome + ', ' + m.uf.sigla, 'lat': str(m.latitude), 'lng': str(m.longitude), 'inicio': d.data_visita_inicio.strftime('%d/%m/%Y'), + 'fim': d.data_visita_fim.strftime('%d/%m/%Y'), 'equipe': "
  • " + "
  • ".join([m.user.get_full_name() for m in d.membros]) + "
",} + municipios.append(municipio) + + return HttpResponse(simplejson.dumps(municipios), mimetype="application/json") \ No newline at end of file diff --git a/sigi/apps/diagnosticos/widgets.py b/sigi/apps/diagnosticos/widgets.py new file mode 100644 index 0000000..a9d630b --- /dev/null +++ b/sigi/apps/diagnosticos/widgets.py @@ -0,0 +1,61 @@ +from itertools import chain +from django.forms.widgets import CheckboxInput, CheckboxSelectMultiple, RadioSelect, RadioFieldRenderer, RadioInput +from django.utils.html import conditional_escape +from django.utils.encoding import force_unicode +from django.utils.safestring import mark_safe +from sigi.apps.diagnosticos.models import Escolha + +class EavCheckboxSelectMultiple(CheckboxSelectMultiple): + def render(self, name, value, attrs=None, choices=()): + if value is None: value = [] + final_attrs = self.build_attrs(attrs, name=name) + output = [u'
    '] + str_values = set([force_unicode(v) for v in value]) + for i, (option_value, option_label) in enumerate(chain(self.choices, choices)): + final_attrs = dict(final_attrs, id='%s_%s' % (attrs['id'], i)) + label_for = u' for="%s"' % final_attrs['id'] + + # Caso exista uma pergunta para abrir + # adiciona um atripbuto no checkbox + schema_to_open = Escolha.objects.get(pk=option_value).schema_to_open + if schema_to_open: + final_attrs['schema_to_open'] = schema_to_open.name + + cb = CheckboxInput(final_attrs, check_test=lambda value: value in str_values) + option_value = force_unicode(option_value) + rendered_cb = cb.render(name, option_value) + option_label = conditional_escape(force_unicode(option_label)) + output.append(u'
  • %s %s
  • ' % (label_for, rendered_cb, option_label)) + output.append(u'
') + return mark_safe(u'\n'.join(output)) + +class EavRadioFieldRenderer(RadioFieldRenderer): + def __iter__(self): + for i, choice in enumerate(self.choices): + final_attrs = self.attrs.copy() + + # Caso exista uma pergunta para abrir + # adiciona um atripbuto no checkbox + if choice[0]: + schema_to_open = Escolha.objects.get(pk=choice[0]).schema_to_open + if schema_to_open: + final_attrs['schema_to_open'] = schema_to_open.name + + yield RadioInput(self.name, self.value, final_attrs, choice, i) + + def __getitem__(self, idx): + choice = self.choices[idx] + + final_attrs = self.attrs.copy() + + # Caso exista uma pergunta para abrir + # adiciona um atripbuto no checkbox + schema_to_open = Escolha.objects.get(pk=self.value).schema_to_open + if schema_to_open: + final_attrs['schema_to_open'] = schema_to_open.name + + return RadioInput(self.name, self.value,final_attrs, choice, idx) + +class EavRadioSelect(RadioSelect): + renderer = EavRadioFieldRenderer + diff --git a/sigi/apps/financeiro/__init__.py b/sigi/apps/financeiro/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sigi/apps/financeiro/admin.py b/sigi/apps/financeiro/admin.py new file mode 100644 index 0000000..05ae4b7 --- /dev/null +++ b/sigi/apps/financeiro/admin.py @@ -0,0 +1,9 @@ +# -*- coding: utf-8 -*- +from django.contrib import admin +from sigi.apps.financeiro.models import Desembolso + +class DesembolsoAdmin(admin.ModelAdmin): + list_display = ('projeto', 'descricao', 'data', 'valor_reais', 'valor_dolar',) + fields = ('projeto', 'descricao', 'data', 'valor_reais', 'valor_dolar', ) + list_filter = ('projeto',) + date_hierarchy = 'data' \ No newline at end of file diff --git a/sigi/apps/financeiro/forms.py b/sigi/apps/financeiro/forms.py new file mode 100644 index 0000000..6b477f9 --- /dev/null +++ b/sigi/apps/financeiro/forms.py @@ -0,0 +1,3 @@ +from django import forms + +# place form definition here \ No newline at end of file diff --git a/sigi/apps/financeiro/models.py b/sigi/apps/financeiro/models.py new file mode 100644 index 0000000..35f291b --- /dev/null +++ b/sigi/apps/financeiro/models.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +from django.db import models +from sigi.apps.convenios.models import Projeto + +class Desembolso(models.Model): + projeto = models.ForeignKey(Projeto, verbose_name=u'Projeto') + descricao = models.CharField(u'Descrição da despesa', max_length=100) + data = models.DateField(u'Data do desembolso') + valor_reais = models.DecimalField(u'Valor em R$', max_digits=18, decimal_places=2) + valor_dolar = models.DecimalField(u'Valor em US$', max_digits=18, decimal_places=2) + + class Meta: + verbose_name = 'Desembolso' + verbose_name_plural = 'Desembolsos' + + def __unicode__(self): + return u"%s (US$ %s)" % (self.descricao, self.valor_dolar) + \ No newline at end of file diff --git a/sigi/apps/financeiro/urls.py b/sigi/apps/financeiro/urls.py new file mode 100644 index 0000000..5d79a9f --- /dev/null +++ b/sigi/apps/financeiro/urls.py @@ -0,0 +1,3 @@ +from django.conf.urls.defaults import * + +# place app url patterns here \ No newline at end of file diff --git a/sigi/apps/financeiro/views.py b/sigi/apps/financeiro/views.py new file mode 100644 index 0000000..60f00ef --- /dev/null +++ b/sigi/apps/financeiro/views.py @@ -0,0 +1 @@ +# Create your views here. diff --git a/sigi/apps/geraldo b/sigi/apps/geraldo new file mode 160000 index 0000000..868ebdc --- /dev/null +++ b/sigi/apps/geraldo @@ -0,0 +1 @@ +Subproject commit 868ebdce67176d9b6205cddc92476f642c783fff diff --git a/sigi/apps/inventario/__init__.py b/sigi/apps/inventario/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sigi/apps/inventario/admin.py b/sigi/apps/inventario/admin.py new file mode 100644 index 0000000..fb03b6b --- /dev/null +++ b/sigi/apps/inventario/admin.py @@ -0,0 +1,71 @@ +# -*- coding: utf-8 -*- +from django.contrib import admin +from django.contrib.contenttypes import generic +from sigi.apps.contatos.models import Contato, Telefone +from sigi.apps.inventario.models import (Fornecedor, Fabricante, Equipamento, + TipoEquipamento, ModeloEquipamento, + Bem) + +class ContatosInline(generic.GenericTabularInline): + model = Contato + extra = 2 + raw_id_fields = ('municipio',) + +class TelefonesInline(generic.GenericTabularInline): + model = Telefone + extra = 2 + +class FornecedorAdmin(admin.ModelAdmin): + inlines = (TelefonesInline, ContatosInline) + list_display = ('id', 'nome', 'email', 'pagina_web') + list_display_links = ('id', 'nome') + list_filter = ('nome',) + search_fields = ('id', 'nome', 'email', 'pagina_web') + +class FabricanteAdmin(admin.ModelAdmin): + list_display = ('id', 'nome') + list_display_links = list_display + list_filter = ('nome',) + search_fields = ('id', 'nome') + +class TipoEquipamentoAdmin(admin.ModelAdmin): + list_display = ('id', 'tipo') + list_display_links = list_display + list_filter = ('tipo',) + search_fields = ('id', 'tipo') + +class ModeloEquipamentoAdmin(admin.ModelAdmin): + list_display = ('id', 'tipo', 'modelo') + list_filter = ('tipo', 'modelo') + ordering = ('tipo', 'modelo') + search_fields = ('id', 'tipo', 'modelo') + raw_id_fields = ('tipo',) + +class EquipamentoAdmin(admin.ModelAdmin): + list_display = ('id', 'fabricante', 'modelo', 'get_tipo') + list_display_links = ('id',) + list_filter = ('fabricante',) + ordering = ('fabricante', 'modelo') + raw_id_fields = ('fabricante', 'modelo') + search_fields = ('id', 'modelo', 'fabricante') + + def get_tipo(self, obj): + return obj.modelo.tipo.tipo + get_tipo.short_description = 'tipo' + +class BemAdmin(admin.ModelAdmin): + list_display = ('equipamento', 'fornecedor', 'num_serie', + 'casa_legislativa') + list_filter = ('fornecedor',) + ordering = ('casa_legislativa', 'fornecedor', 'equipamento') + raw_id_fields = ('casa_legislativa', 'equipamento', 'fornecedor') + search_fields = ('fornecedor__nome', 'equipamento__fabricante__nome', + 'equipamento__modelo__modelo', 'num_serie', + 'num_tombamento', 'casa_legislativa__nome') + +admin.site.register(Fornecedor, FornecedorAdmin) +admin.site.register(Fabricante, FabricanteAdmin) +admin.site.register(TipoEquipamento, TipoEquipamentoAdmin) +admin.site.register(ModeloEquipamento,ModeloEquipamentoAdmin) +admin.site.register(Equipamento, EquipamentoAdmin) +admin.site.register(Bem, BemAdmin) diff --git a/sigi/apps/inventario/fixtures/initial_data.json b/sigi/apps/inventario/fixtures/initial_data.json new file mode 100644 index 0000000..781f0c0 --- /dev/null +++ b/sigi/apps/inventario/fixtures/initial_data.json @@ -0,0 +1,280 @@ +[ + { + "pk": 3, + "model": "inventario.fornecedor", + "fields": { + "pagina_web": "http://www.dell.com.br/", + "email": "", + "nome": "Dell" + } + }, + { + "pk": 1, + "model": "inventario.fornecedor", + "fields": { + "pagina_web": "", + "email": "", + "nome": "Desconhecido" + } + }, + { + "pk": 2, + "model": "inventario.fornecedor", + "fields": { + "pagina_web": "http://www.submarino.com.br/", + "email": "", + "nome": "Submarino" + } + }, + { + "pk": 2, + "model": "inventario.fabricante", + "fields": { + "nome": "Dell" + } + }, + { + "pk": 1, + "model": "inventario.fabricante", + "fields": { + "nome": "Desconhecido" + } + }, + { + "pk": 4, + "model": "inventario.fabricante", + "fields": { + "nome": "HP" + } + }, + { + "pk": 3, + "model": "inventario.fabricante", + "fields": { + "nome": "Microsoft" + } + }, + { + "pk": 2, + "model": "inventario.tipoequipamento", + "fields": { + "tipo": "Computador Desktop" + } + }, + { + "pk": 1, + "model": "inventario.tipoequipamento", + "fields": { + "tipo": "Desconhecido" + } + }, + { + "pk": 8, + "model": "inventario.tipoequipamento", + "fields": { + "tipo": "Estabilizador" + } + }, + { + "pk": 3, + "model": "inventario.tipoequipamento", + "fields": { + "tipo": "Impressora" + } + }, + { + "pk": 5, + "model": "inventario.tipoequipamento", + "fields": { + "tipo": "Modem" + } + }, + { + "pk": 4, + "model": "inventario.tipoequipamento", + "fields": { + "tipo": "Monitor" + } + }, + { + "pk": 9, + "model": "inventario.tipoequipamento", + "fields": { + "tipo": "Notebook/Laptop" + } + }, + { + "pk": 6, + "model": "inventario.tipoequipamento", + "fields": { + "tipo": "Roteador" + } + }, + { + "pk": 7, + "model": "inventario.tipoequipamento", + "fields": { + "tipo": "Webcam" + } + }, + { + "pk": 1, + "model": "inventario.modeloequipamento", + "fields": { + "modelo": "Desconhecido", + "tipo": 1 + } + }, + { + "pk": 2, + "model": "inventario.modeloequipamento", + "fields": { + "modelo": "Desconhecido", + "tipo": 3 + } + }, + { + "pk": 3, + "model": "inventario.modeloequipamento", + "fields": { + "modelo": "Desconhecido", + "tipo": 2 + } + }, + { + "pk": 4, + "model": "inventario.modeloequipamento", + "fields": { + "modelo": "Desconhecido", + "tipo": 8 + } + }, + { + "pk": 5, + "model": "inventario.modeloequipamento", + "fields": { + "modelo": "Desconhecido", + "tipo": 5 + } + }, + { + "pk": 6, + "model": "inventario.modeloequipamento", + "fields": { + "modelo": "Desconhecido", + "tipo": 4 + } + }, + { + "pk": 7, + "model": "inventario.modeloequipamento", + "fields": { + "modelo": "Desconhecido", + "tipo": 9 + } + }, + { + "pk": 8, + "model": "inventario.modeloequipamento", + "fields": { + "modelo": "Desconhecido", + "tipo": 6 + } + }, + { + "pk": 9, + "model": "inventario.modeloequipamento", + "fields": { + "modelo": "Desconhecido", + "tipo": 7 + } + }, + { + "pk": 10, + "model": "inventario.modeloequipamento", + "fields": { + "modelo": "PSC 500", + "tipo": 3 + } + }, + { + "pk": 11, + "model": "inventario.modeloequipamento", + "fields": { + "modelo": "Vostro 1310", + "tipo": 9 + } + }, + { + "pk": 1, + "model": "inventario.equipamento", + "fields": { + "modelo": 1, + "fabricante": 1 + } + }, + { + "pk": 2, + "model": "inventario.equipamento", + "fields": { + "modelo": 2, + "fabricante": 1 + } + }, + { + "pk": 3, + "model": "inventario.equipamento", + "fields": { + "modelo": 3, + "fabricante": 1 + } + }, + { + "pk": 4, + "model": "inventario.equipamento", + "fields": { + "modelo": 4, + "fabricante": 1 + } + }, + { + "pk": 5, + "model": "inventario.equipamento", + "fields": { + "modelo": 5, + "fabricante": 1 + } + }, + { + "pk": 6, + "model": "inventario.equipamento", + "fields": { + "modelo": 6, + "fabricante": 1 + } + }, + { + "pk": 7, + "model": "inventario.equipamento", + "fields": { + "modelo": 7, + "fabricante": 1 + } + }, + { + "pk": 8, + "model": "inventario.equipamento", + "fields": { + "modelo": 8, + "fabricante": 1 + } + }, + { + "pk": 9, + "model": "inventario.equipamento", + "fields": { + "modelo": 9, + "fabricante": 1 + } + } +] diff --git a/sigi/apps/inventario/models.py b/sigi/apps/inventario/models.py new file mode 100644 index 0000000..2cde2eb --- /dev/null +++ b/sigi/apps/inventario/models.py @@ -0,0 +1,90 @@ +# -*- coding: utf-8 -*- +from django.db import models +from django.contrib.contenttypes import generic + +class Fornecedor(models.Model): + nome = models.CharField(max_length=40) + nome.alphabetic_filter = True + email = models.EmailField('e-mail', blank=True) + pagina_web = models.URLField('página web', blank=True) + telefones = generic.GenericRelation('contatos.Telefone') + contatos = generic.GenericRelation('contatos.Contato') + + class Meta: + ordering = ('nome',) + verbose_name_plural = 'fornecedores' + + def __unicode__(self): + return self.nome + +class Fabricante(models.Model): + nome = models.CharField(max_length=40, unique=True) + nome.alphabetic_filter = True + + class Meta: + ordering = ('nome',) + + def __unicode__(self): + return self.nome + +class TipoEquipamento(models.Model): + tipo = models.CharField(max_length=40) + tipo.alphabetic_filter = True + + class Meta: + ordering = ('tipo',) + verbose_name = 'tipo de equipamento' + verbose_name_plural = 'tipos de equipamentos' + + def __unicode__(self): + return self.tipo + +class ModeloEquipamento(models.Model): + tipo = models.ForeignKey( + TipoEquipamento, + verbose_name='tipo de equipamento' + ) + modelo = models.CharField(max_length=30) + modelo.alphabetic_filter = True + + class Meta: + ordering = ('modelo',) + verbose_name = 'modelo de equipamento' + verbose_name_plural = 'modelos de equipamentos' + + def __unicode__(self): + return self.modelo + +class Equipamento(models.Model): + fabricante = models.ForeignKey(Fabricante) + modelo = models.ForeignKey(ModeloEquipamento) + + class Meta: + unique_together = (('fabricante', 'modelo'),) + + def __unicode__(self): + return unicode('%s %s %s' % (self.modelo.tipo, self.fabricante.nome, + self.modelo.modelo)) + +class Bem(models.Model): + casa_legislativa = models.ForeignKey('casas.CasaLegislativa') + equipamento = models.ForeignKey(Equipamento) + fornecedor = models.ForeignKey(Fornecedor) + num_serie = models.CharField( + 'número de série', + max_length=64, + help_text='Número fornecido pelo fabricante.', + unique=True + ) + recebido_por = models.CharField( + max_length=64, + blank=True, + help_text='Nome de quem recebeu o equipamento.' + ) + observacoes = models.TextField('observações', blank=True) + + class Meta: + verbose_name_plural = 'bens' + + def __unicode__(self): + return unicode('%s (%s)') % (self.equipamento, self.casa_legislativa) diff --git a/sigi/apps/mesas/__init__.py b/sigi/apps/mesas/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sigi/apps/mesas/admin.py b/sigi/apps/mesas/admin.py new file mode 100644 index 0000000..7fb7af4 --- /dev/null +++ b/sigi/apps/mesas/admin.py @@ -0,0 +1,102 @@ +# -*- coding: utf-8 -*- +from django.contrib import admin +from django.http import HttpResponse +from django.utils.html import escape +from sigi.apps.mesas.models import (Legislatura, Coligacao, ComposicaoColigacao, + SessaoLegislativa, MesaDiretora, Cargo, + MembroMesaDiretora) +from sigi.apps.parlamentares.models import Mandato + +class MandatoInline(admin.TabularInline): + model = Mandato + raw_id_fields = ['parlamentar',] + +class LegislaturaAdmin(admin.ModelAdmin): + date_hierarchy = 'data_inicio' + list_display = ('numero', 'casa_legislativa', 'uf', 'data_inicio', 'data_fim', 'data_eleicao', 'total_parlamentares') + raw_id_fields = ('casa_legislativa',) + list_display_links = ('numero',) + list_filter = ('casa_legislativa', ) + search_fields = ('casa_legislativa__nome', 'casa_legislativa__municipio__nome' ) + inlines = (MandatoInline,) + + def uf(self, obj): + return obj.casa_legislativa.municipio.uf.sigla + uf.short_description = 'UF' + uf.admin_order_field = 'casa_legislativa__municipio__uf' + + def lookup_allowed(self, lookup, value): + return super(LegislaturaAdmin, self).lookup_allowed(lookup, value) or \ + lookup in ['casa_legislativa__municipio__uf__codigo_ibge__exact'] + + def response_change(self, request, obj): + response = super(LegislaturaAdmin, self).response_change(request, obj) + if request.POST.has_key("_popup"): + response = HttpResponse('' % \ + # escape() calls force_unicode. + (escape(obj.pk), escapejs(obj))) + return response + +class ColigacaoAdmin(admin.ModelAdmin): + list_display = ('nome', 'legislatura', 'numero_votos') + list_display_links = ('nome',) + raw_id_fields = ('legislatura',) + search_fields = ('nome', 'legislatura__numero') + +class ComposicaoColigacaoAdmin(admin.ModelAdmin): + list_display = ('coligacao', 'partido') + list_display_links = ('coligacao', 'partido') + list_filter = ('partido',) + raw_id_fields = ('coligacao', 'partido') + search_fields = ('coligacao__nome', 'partido__nome', 'partido__sigla') + +class SessaoLegislativaAdmin(admin.ModelAdmin): + list_display = ('numero', 'mesa_diretora', 'legislatura', 'tipo', + 'data_inicio', 'data_fim') + list_display_links = ('numero',) + list_filter = ('tipo',) + fieldsets = ( + (None, { + 'fields': ('numero', 'mesa_diretora', 'legislatura', 'tipo') + }), + (None, { + 'fields': (('data_inicio', 'data_fim'), + ('data_inicio_intervalo', 'data_fim_intervalo')) + }), + ) + radio_fields = {'tipo': admin.VERTICAL} + raw_id_fields = ('mesa_diretora', 'legislatura') + search_fields = ('numero', 'mesa_diretora__casa_legislativa__nome') + +class CargoAdmin(admin.ModelAdmin): + list_display = ('descricao',) + search_fields = ('descricao',) + +class MembroMesaDiretoraInline(admin.TabularInline): + model = MembroMesaDiretora + max_num = 11 + extra = 4 + raw_id_fields = ('parlamentar', 'cargo') + +class MembroMesaDiretoraAdmin(admin.ModelAdmin): + list_display = ('parlamentar', 'cargo', 'mesa_diretora') + list_display_links = ('parlamentar',) + list_filter = ('cargo',) + raw_id_fields = ('parlamentar', 'cargo', 'mesa_diretora') + search_fields = ('cargo__descricao', 'parlamentar__nome_completo', + 'parlamentar__nome_parlamentar', + 'mesa_diretora__casa_legislativa__nome') + +class MesaDiretoraAdmin(admin.ModelAdmin): + inlines = (MembroMesaDiretoraInline,) + raw_id_fields = ('casa_legislativa',) + list_display = ('id', 'casa_legislativa') + search_fields = ('casa_legislativa__nome',) + +admin.site.register(Legislatura, LegislaturaAdmin) +admin.site.register(Coligacao, ColigacaoAdmin) +admin.site.register(ComposicaoColigacao, ComposicaoColigacaoAdmin) +admin.site.register(SessaoLegislativa, SessaoLegislativaAdmin) +admin.site.register(MesaDiretora, MesaDiretoraAdmin) +admin.site.register(Cargo, CargoAdmin) +admin.site.register(MembroMesaDiretora, MembroMesaDiretoraAdmin) diff --git a/sigi/apps/mesas/fixtures/initial_data.json b/sigi/apps/mesas/fixtures/initial_data.json new file mode 100644 index 0000000..b245f1e --- /dev/null +++ b/sigi/apps/mesas/fixtures/initial_data.json @@ -0,0 +1,44 @@ +[ + { + "pk": 4, + "model": "mesas.cargo", + "fields": { + "descricao": "1\u00ba Secret\u00e1rio" + } + }, + { + "pk": 2, + "model": "mesas.cargo", + "fields": { + "descricao": "1\u00ba Vice-Presidente" + } + }, + { + "pk": 5, + "model": "mesas.cargo", + "fields": { + "descricao": "2\u00ba Secret\u00e1rio" + } + }, + { + "pk": 3, + "model": "mesas.cargo", + "fields": { + "descricao": "2\u00ba Vice-Presidente" + } + }, + { + "pk": 6, + "model": "mesas.cargo", + "fields": { + "descricao": "Corregedor" + } + }, + { + "pk": 1, + "model": "mesas.cargo", + "fields": { + "descricao": "Presidente" + } + } +] diff --git a/sigi/apps/mesas/models.py b/sigi/apps/mesas/models.py new file mode 100644 index 0000000..1bbd5c9 --- /dev/null +++ b/sigi/apps/mesas/models.py @@ -0,0 +1,122 @@ +# coding: utf-8 +from django.db import models +from sigi.apps.casas.models import CasaLegislativa + +class Legislatura(models.Model): + casa_legislativa = models.ForeignKey(CasaLegislativa) + numero = models.PositiveSmallIntegerField(u'número legislatura') + data_inicio = models.DateField(u'início') + data_fim = models.DateField(u'fim') + data_eleicao = models.DateField(u'data da eleição') + total_parlamentares = models.PositiveIntegerField(u"Total de parlamentares") + + casa_legislativa.convenio_uf_filter = True + casa_legislativa.convenio_cl_tipo_filter = True + + def meta(self): + unique_together = (('casa_legislativa', 'numero')) + ordering = ['casa_legislativa__municipio__uf__sigla', '-data_inicio'] + + def __unicode__(self): + return u"%sª legislatura da %s (%s-%s)" % (self.numero, self.casa_legislativa.__unicode__(), self.data_inicio.year, self.data_fim.year) + +class Coligacao(models.Model): + nome = models.CharField(max_length=50) + legislatura = models.ForeignKey(Legislatura) + numero_votos = models.PositiveIntegerField( + u'número de votos', + blank=True, + null=True, + ) + + class Meta: + ordering = ('legislatura', 'nome') + verbose_name = 'coligação' + verbose_name_plural = 'coligações' + + def __unicode__(self): + return self.nome + +class ComposicaoColigacao(models.Model): + coligacao = models.ForeignKey(Coligacao, verbose_name='coligação') + partido = models.ForeignKey('parlamentares.Partido') + + class Meta: + verbose_name = 'composição da coligação' + verbose_name_plural = 'composições das coligações' + + def __unicode__(self): + return str(self.id) + +class SessaoLegislativa(models.Model): + SESSAO_CHOICES = ( + ('O', 'Ordinária'), + ('E', 'Extraordinária'), + ) + numero = models.PositiveSmallIntegerField(u'número da sessão', unique=True) + mesa_diretora = models.ForeignKey( + 'MesaDiretora', + verbose_name='Mesa Diretora' + ) + legislatura = models.ForeignKey(Legislatura) + tipo = models.CharField( + max_length=1, + choices=SESSAO_CHOICES, + default='O' + ) + data_inicio = models.DateField(u'início') + data_fim = models.DateField('fim') + data_inicio_intervalo = models.DateField( + u'início de intervalo', + blank=True, + null=True + ) + data_fim_intervalo = models.DateField( + 'fim de intervalo', + blank=True, + null=True + ) + + class Meta: + ordering = ('legislatura', 'numero') + verbose_name = 'Sessão Legislativa' + verbose_name_plural = 'Sessões Legislativas' + + def __unicode__(self): + return str(self.numero) + +class MesaDiretora(models.Model): + casa_legislativa = models.ForeignKey( + 'casas.CasaLegislativa', + verbose_name='Casa Legislativa' + ) + + class Meta: + verbose_name = 'Mesa Diretora' + verbose_name_plural = 'Mesas Diretoras' + + def __unicode__(self): + return 'Mesa Diretora da %s' % unicode(self.casa_legislativa) + +class Cargo(models.Model): + descricao = models.CharField(u'descrição', max_length=30) + + class Meta: + ordering = ('descricao',) + + def __unicode__(self): + return self.descricao + +class MembroMesaDiretora(models.Model): + parlamentar = models.ForeignKey('parlamentares.Parlamentar') + cargo = models.ForeignKey(Cargo) + mesa_diretora = models.ForeignKey(MesaDiretora) + + class Meta: + ordering = ('parlamentar',) + unique_together = ('cargo', 'mesa_diretora') + verbose_name = 'membro de Mesa Diretora' + verbose_name_plural = 'membros de Mesas Diretora' + + def __unicode__(self): + return '%s (%s)' % (unicode(self.parlamentar), unicode(self.cargo)) diff --git a/sigi/apps/metas/__init__.py b/sigi/apps/metas/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sigi/apps/metas/admin.py b/sigi/apps/metas/admin.py new file mode 100644 index 0000000..b422ea7 --- /dev/null +++ b/sigi/apps/metas/admin.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +from django.contrib import admin +from sigi.apps.metas.models import Meta, PlanoDiretor + +class MetaAdmin(admin.ModelAdmin): + list_display = ('projeto', 'titulo', 'data_inicio', 'data_fim', 'valor_meta', 'valor_executado', 'percentual_concluido',) + fields = ('projeto', 'titulo', 'descricao', 'data_inicio', 'data_fim', 'algoritmo', 'valor_meta',) + list_filter = ('projeto',) + +class PlanoDiretorAdmin(admin.ModelAdmin): + list_display = ('projeto', 'casa_legislativa', 'get_uf', 'status', 'data_entrega', 'data_implantacao',) + fields = ('projeto', 'casa_legislativa', 'status', 'data_entrega', 'data_implantacao',) + raw_id_fields = ('casa_legislativa',) + list_filter = ('projeto', 'status', 'casa_legislativa', ) + + def get_uf(self, obj): + return obj.casa_legislativa.municipio.uf.nome + get_uf.short_description = u"UF" + get_uf.admin_order_field = 'casa_legislativa__municipio__uf__nome' + + def lookup_allowed(self, lookup, value): + return super(PlanoDiretorAdmin, self).lookup_allowed(lookup, value) or \ + lookup in ['casa_legislativa__municipio__uf__codigo_ibge__exact'] + + def changelist_view(self, request, extra_context=None): + import re + request.GET._mutable=True + if 'data_entrega__gte' in request.GET: + value = request.GET.get('data_entrega__gte','') + if value == '': + del request.GET['data_entrega__gte'] + elif re.match('^\d*$', value): # Year only + request.GET['data_entrega__gte'] = "%s-01-01" % value #Complete with january 1st + elif re.match('^\d*\D\d*$', value): # Year and month + request.GET['data_entrega__gte'] = '%s-01' % value #Complete with 1st day of month + if 'data_entrega__lte' in request.GET: + value = request.GET.get('data_entrega__lte','') + if value == '': + del request.GET['data_entrega__lte'] + elif re.match('^\d*$', value): # Year only + request.GET['data_entrega__lte'] = "%s-01-01" % value #Complete with january 1st + elif re.match('^\d*\D\d*$', value): # Year and month + request.GET['data_entrega__lte'] = '%s-01' % value #Complete with 1st day of month + request.GET._mutable=False + + return super(PlanoDiretorAdmin, self).changelist_view(request, extra_context) \ No newline at end of file diff --git a/sigi/apps/metas/forms.py b/sigi/apps/metas/forms.py new file mode 100644 index 0000000..6b477f9 --- /dev/null +++ b/sigi/apps/metas/forms.py @@ -0,0 +1,3 @@ +from django import forms + +# place form definition here \ No newline at end of file diff --git a/sigi/apps/metas/management/__init__.py b/sigi/apps/metas/management/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sigi/apps/metas/management/commands/__init__.py b/sigi/apps/metas/management/commands/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sigi/apps/metas/management/commands/gera_map_data.py b/sigi/apps/metas/management/commands/gera_map_data.py new file mode 100644 index 0000000..a797da2 --- /dev/null +++ b/sigi/apps/metas/management/commands/gera_map_data.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# +# sigi.apps.servicos.management.commands.atualiza_uso_servico +# +# Copyright (c) 2012 by Interlegis +# +# GNU General Public License (GPL) +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA. +# +from django.core.management.base import BaseCommand +from sigi.apps.metas.views import gera_map_data_file + +class Command(BaseCommand): + help = u'Gera arquivo de dados de plotagem do mapa de atuação do Interlegis.' + def handle(self, *args, **options): + result = gera_map_data_file(cronjob=True) + self.stdout.write(result+"\n") \ No newline at end of file diff --git a/sigi/apps/metas/models.py b/sigi/apps/metas/models.py new file mode 100644 index 0000000..66aa116 --- /dev/null +++ b/sigi/apps/metas/models.py @@ -0,0 +1,128 @@ +# -*- coding: utf-8 -*- +from datetime import date, datetime +from django.db import models +from sigi.apps.convenios.models import Projeto, Convenio +from sigi.apps.diagnosticos.models import Diagnostico +from sigi.apps.casas.models import CasaLegislativa +from sigi.apps.financeiro.models import Desembolso + +class Meta(models.Model): + ALGORITMO_CHOICES = ( + ('SUM_GASTOS', u'Soma dos desembolsos'), + ('COUNT_EQUI', u'Quantidade de casas equipadas'), + ('COUNT_ADER', u'Quantidade de casas aderidas'), + ('COUNT_DIAG', u'Quantidade de casas diagnosticadas'), + ('COUNT_PDIR', u'Quantidade de planos diretores'), + ('COUNT_CONV', u'Quantidade de casas conveniadas'), + ) + projeto = models.ForeignKey(Projeto, verbose_name=u'Projeto', help_text=u'Projeto ao qual a meta se refere') + titulo = models.CharField(u'Título', max_length=40, help_text=u'Título da meta que aparecerá no dashboard') + descricao = models.TextField(u'Descrição') + data_inicio = models.DateField(u'Data inicial', help_text=u'Início do período de cômputo da meta') + data_fim = models.DateField(u'Data final', help_text=u'Prazo final para cumprimento da meta') + algoritmo = models.CharField(u'Algoritmo de cálculo', max_length=10, choices=ALGORITMO_CHOICES) + valor_meta = models.FloatField(u'Valor da meta', help_text=u'Valor que deve ser atingido até o prazo final da meta') + + class Meta: + verbose_name = 'Meta BID' + verbose_name_plural = 'Metas BID' + + def __unicode__(self): + return self.titulo; + + @property + def valor_executado(self): + """ + Calcula o valor executado da meta + """ + algoritmo = self.algoritmo.lower() + valor = getattr(self, algoritmo)() + try: + valor = float(valor) + except: + valor = 0.0 + return valor + + @property + def percentual_concluido(self): + return round(float(self.valor_executado) / float(self.valor_meta) * 100.0, 2) + + @property + def valor_desejado(self): + total_dias = (self.data_fim - self.data_inicio).days + 1 + dias_gastos = (date.today() - self.data_inicio).days + 1 + meta_dia = self.valor_meta / total_dias + return meta_dia * dias_gastos + + @property + def percentual_desejado_low(self): + return (self.valor_desejado / self.valor_meta) - 0.05 # 5% abaixo do desejado + + @property + def percentual_desejado_high(self): + return (self.valor_desejado / self.valor_meta) + 0.05 # 5% acima do desejado + + @property + def saude(self): + percentual_concluido = self.percentual_concluido / 100.0 + if percentual_concluido >= 1: + return 'A2BBED' # Blue + + if percentual_concluido > self.percentual_desejado_high: + return '89D7AF' # Green + + if percentual_concluido > self.percentual_desejado_low: + return 'FFDB6E' # Orange + + return 'E74A69' # Red + + def sum_gastos(self): + valor = Desembolso.objects.filter(projeto=self.projeto, data__gte=self.data_inicio, data__lte=self.data_fim) \ + .aggregate(total_dolar=models.Sum('valor_dolar')) + valor = valor['total_dolar'] + return valor + + def count_equi(self): + valor = Convenio.objects.filter(casa_legislativa__tipo__sigla='CM', equipada=True, projeto__pk=3, data_termo_aceite__gte= + self.data_inicio, data_termo_aceite__lte=self.data_fim).exclude(data_termo_aceite=None).count() + return valor + + def count_ader(self): + valor = Convenio.objects.filter(casa_legislativa__tipo__sigla='CM', projeto=self.projeto, data_adesao__gte=self.data_inicio, + data_adesao__lte=self.data_fim).exclude(data_adesao=None).count() + return valor + + def count_diag(self): + valor = Diagnostico.objects.filter(data_visita_inicio__gte=self.data_inicio, data_visita_inicio__lte=self.data_fim, + publicado=True).count() + return valor + + def count_pdir(self): + valor = PlanoDiretor.objects.filter(projeto=self.projeto, data_entrega__gte=self.data_inicio, + data_entrega__lte=self.data_fim).count() + return valor + + def count_conv(self): + valor = Convenio.objects.filter(casa_legislativa__tipo__sigla='CM', projeto=self.projeto, data_retorno_assinatura__gte= + self.data_inicio, data_retorno_assinatura__lte=self.data_fim).exclude(data_retorno_assinatura=None).count() + return valor + +class PlanoDiretor(models.Model): + STATUS_CHOICE = ( + ('E', u'Entregue'), + ('I', u'Implantado'), + ) + projeto = models.ForeignKey(Projeto, verbose_name=u'Projeto') + casa_legislativa = models.ForeignKey(CasaLegislativa, verbose_name=u'Casa legislativa') + casa_legislativa.casa_uf_filter = True + status = models.CharField(u'Status', max_length=1, choices=STATUS_CHOICE, default='E') + data_entrega = models.DateField(u'Data de entrega', blank=True, null=True) + data_implantacao = models.DateField(u'Data de implantação', blank=True, null=True) + + class Meta: + verbose_name = 'Plano Diretor' + verbose_name_plural = 'Planos Diretores' + + def __unicode__(self): + return self.casa_legislativa.nome ; + \ No newline at end of file diff --git a/sigi/apps/metas/templatetags/__init__.py b/sigi/apps/metas/templatetags/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sigi/apps/metas/templatetags/mapa_tags.py b/sigi/apps/metas/templatetags/mapa_tags.py new file mode 100644 index 0000000..236cd9c --- /dev/null +++ b/sigi/apps/metas/templatetags/mapa_tags.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- + +from django import template +from django.utils.safestring import mark_safe +from sigi.apps.casas.models import CasaLegislativa + +register = template.Library() + +@register.filter(name='map_desc_serv') +def descricao_servicos(value): + if not isinstance(value, CasaLegislativa): + return "" + + result = "" + + for sv in value.servico_set.all(): + result += u'
  • %s ativado em %s
  • ' % (sv.tipo_servico.nome, sv.data_ativacao.strftime('%d/%m/%Y')) + + for cv in value.convenio_set.all(): + if (cv.data_retorno_assinatura is None) and (cv.equipada and cv.data_termo_aceite is not None): + result += u"
  • Equipada em %s pelo %s
  • " % (cv.data_termo_aceite.strftime('%d/%m/%Y'), cv.projeto.sigla) + if (cv.data_retorno_assinatura is not None) and not (cv.equipada and cv.data_termo_aceite is not None): + result += u"
  • Conveniada ao %s em %s
  • " % (cv.projeto.sigla, cv.data_retorno_assinatura.strftime('%d/%m/%Y')) + if (cv.data_retorno_assinatura is not None) and (cv.equipada and cv.data_termo_aceite is not None): + result += u"
  • Conveniada ao %s em %s e equipada em %s
  • " % (cv.projeto.sigla, cv.data_retorno_assinatura.strftime('%d/%m/%Y'), cv.data_termo_aceite.strftime('%d/%m/%Y')) + + for dg in value.diagnostico_set.all(): + result += u'
  • Diagnosticada no período de %s a %s
  • ' % (dg.data_visita_inicio.strftime('%d/%m/%Y') if dg.data_visita_inicio + else u"<< sem data inicial >>", + dg.data_visita_fim.strftime('%d/%m/%Y') if dg.data_visita_fim + else u"<< sem data final >>") + + return mark_safe(result) +descricao_servicos.is_safe = True + \ No newline at end of file diff --git a/sigi/apps/metas/urls.py b/sigi/apps/metas/urls.py new file mode 100644 index 0000000..5d79a9f --- /dev/null +++ b/sigi/apps/metas/urls.py @@ -0,0 +1,3 @@ +from django.conf.urls.defaults import * + +# place app url patterns here \ No newline at end of file diff --git a/sigi/apps/metas/views.py b/sigi/apps/metas/views.py new file mode 100644 index 0000000..231bad1 --- /dev/null +++ b/sigi/apps/metas/views.py @@ -0,0 +1,345 @@ +# -*- coding: utf-8 -*- +import csv +from django.http import HttpResponse +from django.core.exceptions import PermissionDenied +from django.utils import simplejson +from django.utils.datastructures import SortedDict +from django.shortcuts import render_to_response +from django.template import RequestContext +from django.db.models import Q +from django.views.decorators.cache import cache_page +from django.db.models.aggregates import Sum +from django.contrib.auth.decorators import user_passes_test, login_required +from sigi.settings import MEDIA_ROOT +from sigi.shortcuts import render_to_pdf +from sigi.apps.servicos.models import TipoServico, Servico +from sigi.apps.convenios.models import Projeto, Convenio +from sigi.apps.contatos.models import UnidadeFederativa +from sigi.apps.casas.models import CasaLegislativa +from sigi.apps.utils import to_ascii +from sigi.apps.financeiro.models import Desembolso +from sigi.apps.metas.templatetags.mapa_tags import descricao_servicos + +JSON_FILE_NAME = MEDIA_ROOT + 'apps/metas/map_data.json' + +@login_required + +def dashboard(request): + if request.user.groups.filter(name__in=['SPDT-Servidores', 'SSPLF']).count() <= 0: + raise PermissionDenied + + desembolsos_max = 0 + matriz = SortedDict() + dados = SortedDict() + projetos = Projeto.objects.all() + meses = Desembolso.objects.dates('data', 'month', 'DESC')[:6] + colors = ['ffff00', 'cc7900', 'ff0000', '92d050', '006600', '0097cc', '002776', 'ae78d6', 'ff00ff', '430080', + '28d75c', '0000ff', 'fff200'] + + for date in reversed(meses): + mes_ano = '%s/%s' % (date.month, date.year) + dados[mes_ano] = 0 + + for p in projetos: + matriz[p.id] = (p.sigla, dados.copy()) + + for date in meses: + mes_ano = '%s/%s' % (date.month, date.year) + for d in Desembolso.objects.filter(data__year=date.year, data__month=date.month).values('projeto').annotate(total_dolar=Sum('valor_dolar')): + if int(d['total_dolar']) > desembolsos_max: + desembolsos_max = int(d['total_dolar']) + matriz[d['projeto']][1][mes_ano] += int(d['total_dolar']) + + meses = ["%s/%s" % (m.month, m.year) for m in reversed(meses)] + extra_context = {'desembolsos': matriz, 'desembolsos_max': desembolsos_max, 'meses': meses, 'colors': ','.join(colors[:len(matriz)])} + return render_to_response('metas/dashboard.html', extra_context, context_instance=RequestContext(request)) + +def mapa(request): + """ + Mostra o mapa com filtros carregados com valores default + """ + + regiao_choices = UnidadeFederativa.REGIAO_CHOICES + estado_choices = UnidadeFederativa.objects.all() + servico_choices = TipoServico.objects.all() + projeto_choices = Projeto.objects.all() + + seit = [ ts.sigla for ts in servico_choices] + convenios = ['PML'] # Apenas o ultimo #hardcoded #fixme + equipadas = [] #[p.sigla for p in projeto_choices] + diagnosticos = ['P'] # choices: ["A", "P"] + regioes = [r[0] for r in regiao_choices] + estados = [] + + extra_context = { + 'seit': seit, + 'convenios': convenios, + 'equipadas': equipadas, + 'diagnosticos': diagnosticos, + 'regioes': regioes, + 'estados': estados, + 'regiao_choices': regiao_choices, + 'estado_choices': estado_choices, + 'servico_choices': servico_choices, + 'projeto_choices': projeto_choices, + } + + return render_to_response('metas/mapa.html', extra_context, context_instance=RequestContext(request)) + + +@cache_page(1800) # Cache de 30min +def map_data(request): + """ + Retorna json com todos os dados dos municípios que têm relação com o Interlegis + Tenta ler esse json do arquivo JSON_FILE_NAME. Se não encontrar, chama a rotina + gera_map_data_file(). + """ + + try: + file = open(JSON_FILE_NAME, 'r') + json = file.read() + except: + json = gera_map_data_file() + + return HttpResponse(json, mimetype="application/json") + +def map_search(request): + response = {'result': 'NOT_FOUND'} + if 'q' in request.GET: + q = request.GET.get('q') + if len(q.split(',')) > 1: + municipio, uf = [s.strip() for s in q.split(',')] + casas = CasaLegislativa.objects.filter(search_text__icontains=to_ascii(municipio), municipio__uf__sigla__iexact=uf) + else: + casas = CasaLegislativa.objects.filter(search_text__icontains=to_ascii(q)) + if casas.count() > 0: + response = {'result': 'FOUND', 'ids': [c.pk for c in casas]} + + return HttpResponse(simplejson.dumps(response), mimetype="application/json") + +@cache_page(86400) # Cache de um dia (24 horas = 86400 segundos) +def map_sum(request): + # Filtrar Casas de acordo com os parâmetros + param = get_params(request) + casas = filtrar_casas(**param) + + # Montar registros de totalização + tot_servicos = SortedDict() + tot_projetos = SortedDict() + tot_diagnosticos = SortedDict() + + for ts in TipoServico.objects.all(): + tot_servicos[ts.sigla] = 0 + + for pr in Projeto.objects.all(): + tot_projetos[pr.sigla] = 0 + + tot_convenios = tot_projetos.copy() + tot_equipadas = tot_projetos.copy() + + tot_diagnosticos['A'] = 0 + tot_diagnosticos['P'] = 0 + + # Montar as linhas do array de resultados com as regiões e os estados + result = {} + + for uf in UnidadeFederativa.objects.filter(Q(regiao__in=param['regioes']) | Q(sigla__in=param['estados'])).order_by('regiao', 'nome'): + if not result.has_key(uf.regiao): + result[uf.regiao] = {'nome': uf.get_regiao_display(), 'ufs': {}, 'servicos': tot_servicos.copy(), + 'convenios': tot_projetos.copy(), 'equipadas': tot_projetos.copy(), + 'diagnosticos': tot_diagnosticos.copy()} + result[uf.regiao]['ufs'][uf.codigo_ibge] = {'nome': uf.nome, 'servicos': tot_servicos.copy(), + 'convenios': tot_projetos.copy(), 'equipadas': tot_projetos.copy(), + 'diagnosticos': tot_diagnosticos.copy()} + + + # Processar as casas filtradas + for casa in casas.distinct(): + uf = casa.municipio.uf + for s in casa.servico_set.all(): + tot_servicos[s.tipo_servico.sigla] += 1 + result[uf.regiao]['servicos'][s.tipo_servico.sigla] += 1 + result[uf.regiao]['ufs'][uf.codigo_ibge]['servicos'][s.tipo_servico.sigla] += 1 + for c in casa.convenio_set.all(): + tot_convenios[c.projeto.sigla] += 1 + result[uf.regiao]['convenios'][c.projeto.sigla] += 1 + result[uf.regiao]['ufs'][uf.codigo_ibge]['convenios'][c.projeto.sigla] += 1 + if (c.equipada and c.data_termo_aceite is not None): + tot_equipadas[c.projeto.sigla] += 1 + result[uf.regiao]['equipadas'][c.projeto.sigla] += 1 + result[uf.regiao]['ufs'][uf.codigo_ibge]['equipadas'][c.projeto.sigla] += 1 + for d in casa.diagnostico_set.all(): + if d.publicado: + tot_diagnosticos['P'] += 1 + result[uf.regiao]['diagnosticos']['P'] += 1 + result[uf.regiao]['ufs'][uf.codigo_ibge]['diagnosticos']['P'] += 1 + else: + tot_diagnosticos['A'] += 1 + result[uf.regiao]['diagnosticos']['A'] += 1 + result[uf.regiao]['ufs'][uf.codigo_ibge]['diagnosticos']['A'] += 1 + + extra_context = { + 'pagesize': 'a4 landscape', + 'servicos': TipoServico.objects.all(), + 'projetos': Projeto.objects.all(), + 'result': result, + 'tot_servicos': tot_servicos, + 'tot_convenios': tot_convenios, + 'tot_equipadas': tot_equipadas, + 'tot_diagnosticos': tot_diagnosticos, + } + return render_to_pdf('metas/map_sum.html', extra_context) + +@cache_page(86400) # Cache de um dia (24 horas = 86400 segundos) +def map_list(request): + # Filtrar Casas de acordo com os parâmetros + param = get_params(request) + formato = request.GET.get('fmt', 'pdf') + casas = filtrar_casas(**param) + casas = casas.order_by('municipio__uf__regiao', 'municipio__uf__nome', 'nome').distinct() + + if formato == 'csv': + response = HttpResponse(content_type='text/csv') + response['Content-Disposition'] = 'attachment; filename="maplist.csv"' + writer = csv.writer(response) + + srv = {} + for ts in TipoServico.objects.all(): + srv[ts.pk] = ts.nome + + cnv = {} + for pr in Projeto.objects.all(): + cnv[pr.id] = pr.sigla + + writer.writerow([u'codigo_ibge', u'nome_casa', u'municipio', u'uf', u'regiao',] + [x for x in srv.values()] + + reduce(lambda x,y: x+y, [['conveniada ao %s' % x, 'equipada por %s' % x] for x in cnv.values()])) + + for casa in casas: + row = [casa.municipio.codigo_ibge, casa.nome, casa.municipio.nome, casa.municipio.uf.sigla, + casa.municipio.uf.get_regiao_display(),] + for id in srv.keys(): + try: + sv = casa.servico_set.get(tipo_servico__id=id) + row += [sv.data_ativacao,] + except: + row += [None,] + for id in cnv.keys(): + try: + cv = casa.convenio_set.get(projeto__id=id) + row += [cv.data_retorno_assinatura, cv.data_termo_aceite if cv.equipada else None,] + except: + row += [None, None,] + + writer.writerow(row) + return response + + return render_to_pdf('metas/map_list.html', {'casas': casas}) + + +#---------------------------------------------------------------------------------------------------- +# Funções auxiliares - não são views +#---------------------------------------------------------------------------------------------------- + +def get_params(request): + ''' Pegar parâmetros da pesquisa ''' + return { + 'seit' : request.GET.getlist('seit'), + 'convenios' : request.GET.getlist('convenios'), + 'equipadas' : request.GET.getlist('equipadas'), + 'diagnosticos' : request.GET.getlist('diagnosticos'), + 'regioes' : request.GET.getlist('regioes'), + 'estados' : request.GET.getlist('estados'), + } + +def filtrar_casas(seit, convenios, equipadas, regioes, estados, diagnosticos): + ''' Filtrar Casas que atendem aos parâmetros de pesquisa ''' + qServico = Q(servico__tipo_servico__sigla__in=seit) + qConvenio = Q(convenio__projeto__sigla__in=convenios) + qEquipada = Q(convenio__projeto__sigla__in=equipadas, convenio__equipada=True) + qRegiao = Q(municipio__uf__regiao__in=regioes) + qEstado = Q(municipio__uf__sigla__in=estados) + + if diagnosticos: + qDiagnostico = Q(diagnostico__publicado__in=[p == 'P' for p in diagnosticos]) + else: + qDiagnostico = Q() + + casas = CasaLegislativa.objects.filter(qServico | qConvenio | qEquipada | qDiagnostico).filter(qRegiao | qEstado) + + return casas + +def gera_map_data_file(cronjob=False): + ''' Criar um arquivo json em {settings.MEDIA_ROOT}/apps/metas/ com o nome de map_data.json + Este arquivo será consumido pela view de dados de mapa. + Retorna os dados json caso cronjob seja falso. + Caso cronjob seja True, retorna log de tempo gasto na geração ou a mensagem do erro + que impediu a gravação do arquivo. + ''' + import time + start = time.time() + + casas = {} + + for c in CasaLegislativa.objects.select_related('servico', 'convenio', 'diagnostico').all().distinct(): + if c.servico_set.count() == 0 and c.convenio_set.count() == 0 and c.diagnostico_set.count() == 0: + continue; # Salta essa casa, pois ela não tem nada com o Interlegis + + if not casas.has_key(c.pk): + casa = { + 'nome': c.nome + ', ' + c.municipio.uf.sigla, + 'icone': 'mapmarker', + 'lat': str(c.municipio.latitude), + 'lng': str(c.municipio.longitude), + 'estado': c.municipio.uf.sigla, + 'regiao': c.municipio.uf.regiao, + 'diagnosticos': [], + 'seit': [], + 'convenios': [], + 'equipadas': [], + 'info': [] + } + + for sv in c.servico_set.all(): + casa['info'].append(u"%s ativado em %s link" % ( + sv.tipo_servico.nome, sv.data_ativacao.strftime('%d/%m/%Y') if sv.data_ativacao else + u'', sv.url)) + casa['seit'].append(sv.tipo_servico.sigla) + + for cv in c.convenio_set.all(): + if (cv.data_retorno_assinatura is None) and (cv.equipada and cv.data_termo_aceite is not None): + casa['info'].append(u"Equipada em %s pelo %s" % (cv.data_termo_aceite.strftime('%d/%m/%Y'), cv.projeto.sigla)) + casa['equipadas'].append(cv.projeto.sigla) + if (cv.data_retorno_assinatura is not None) and not (cv.equipada and cv.data_termo_aceite is not None): + casa['info'].append(u"Conveniada ao %s em %s" % (cv.projeto.sigla, cv.data_retorno_assinatura.strftime('%d/%m/%Y'))) + casa['convenios'].append(cv.projeto.sigla) + if (cv.data_retorno_assinatura is not None) and (cv.equipada and cv.data_termo_aceite is not None): + casa['info'].append(u"Conveniada ao %s em %s e equipada em %s" % (cv.projeto.sigla, cv.data_retorno_assinatura.strftime('%d/%m/%Y'), cv.data_termo_aceite.strftime('%d/%m/%Y'))) + casa['equipadas'].append(cv.projeto.sigla) + casa['convenios'].append(cv.projeto.sigla) + + for dg in c.diagnostico_set.all(): + casa['diagnosticos'].append('P' if dg.publicado else 'A') + casa['info'].append(u'Diagnosticada no período de %s a %s' % (dg.data_visita_inicio.strftime('%d/%m/%Y') if + dg.data_visita_inicio is not None else u"", + dg.data_visita_fim.strftime('%d/%m/%Y') if dg.data_visita_fim else u"")) + + casa['info'] = "
    ".join(casa['info']) + + casas[c.pk] = casa + + json_data = simplejson.dumps(casas) + + try: + file = open(JSON_FILE_NAME, 'w') + file.write(json_data) + file.close() + except Exception as e: # A gravação não foi bem sucedida ... + if cronjob: # ... o chamador deseja a mensagem de erro + return str(e) + else: + pass # ... ou os dados poderão ser usados de qualquer forma + + if cronjob: + return "Arquivo %s gerado em %d segundos" % (JSON_FILE_NAME, time.time() - start) + + return json_data diff --git a/sigi/apps/ocorrencias/__init__.py b/sigi/apps/ocorrencias/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sigi/apps/ocorrencias/admin.py b/sigi/apps/ocorrencias/admin.py new file mode 100644 index 0000000..6d9b4b9 --- /dev/null +++ b/sigi/apps/ocorrencias/admin.py @@ -0,0 +1,105 @@ +# -*- coding: utf-8 -*- +from django.core.urlresolvers import reverse +from django.http import HttpResponseRedirect +from django.contrib import admin +from django.contrib.admin.views.main import ChangeList +from eav.admin import BaseEntityAdmin, BaseSchemaAdmin +from sigi.apps.servidores.models import Servidor +from sigi.apps.ocorrencias.models import Ocorrencia, Comentario, Anexo, Categoria + +class ComentarioViewInline(admin.TabularInline): + model = Comentario + extra = 0 + max_num=0 + can_delete = False + verbose_name, verbose_name_plural = u"Comentário anterior", u"Comentários anteriores" + fields = ('usuario', 'data_criacao', 'novo_status', 'encaminhar_setor', 'descricao', ) + readonly_fields = ('novo_status', 'encaminhar_setor', 'descricao', 'data_criacao', 'usuario',) + +class ComentarioInline(admin.StackedInline): + model = Comentario + extra = 3 + verbose_name, verbose_name_plural = u"Comentário novo", u"Comentários novos" + fieldsets = ((None, {'fields': (('novo_status', 'encaminhar_setor',), 'descricao', )}),) + def queryset(self, request): + return self.model.objects.get_empty_query_set() + +class AnexosInline(admin.TabularInline): + model = Anexo + extra = 2 + readonly_fields = ['data_pub',] + +class OcorrenciaChangeList(ChangeList): + request = None + def __init__(self, request, model, list_display, list_display_links, list_filter, date_hierarchy, search_fields, + list_select_related, list_per_page, list_editable, model_admin): + self.request = request + super(OcorrenciaChangeList, self).__init__(request, model, list_display, list_display_links, list_filter, + date_hierarchy, search_fields, list_select_related, list_per_page, + list_editable, model_admin) + def get_query_set(self): + tmp_params = self.params.copy() + grupo = None + if 'grupo' in self.params: + grupo = self.params['grupo'] + del self.params['grupo'] + qs = super(OcorrenciaChangeList, self).get_query_set() + self.params = tmp_params.copy() + if grupo: + servidor = Servidor.objects.get(user=self.request.user) + if grupo == 'S': # Apenas do meu setor + qs = qs.filter(setor_responsavel=servidor.servico) + elif grupo == 'M': # Apenas criados por mim + qs = qs.filter(servidor_registro=servidor) + return qs + +class OcorrenciaAdmin(admin.ModelAdmin): + list_display = ('data_criacao', 'casa_legislativa', 'assunto', 'prioridade', 'status', 'data_modificacao', 'setor_responsavel',) + list_filter = ('assunto', 'status', 'prioridade', 'categoria', 'setor_responsavel', ) + search_fields = ('casa_legislativa__search_text', 'assunto', 'servidor_registro__nome', ) + date_hierarchy = 'data_criacao' + fields = ('casa_legislativa', 'categoria', 'assunto', 'status', 'prioridade', 'descricao', 'servidor_registro', + 'setor_responsavel', 'resolucao', ) + readonly_fields = ('servidor_registro', 'setor_responsavel', ) + inlines = (ComentarioViewInline, ComentarioInline, AnexosInline, ) + raw_id_fields = ('casa_legislativa', ) + + def get_changelist(self, request, **kwargs): + return OcorrenciaChangeList + + def get_readonly_fields(self, request, obj=None): + fields = list(self.readonly_fields) + if obj is not None: + fields.extend(['casa_legislativa', 'categoria', 'assunto', 'status', 'descricao', ]) + if obj.status in [3, 4, 5]: #Fechados + fields.append('prioridade') + return fields + + def get_fieldsets(self, request, obj=None): + if obj is None: + self.fields = ('casa_legislativa', 'categoria', 'assunto', 'prioridade', 'descricao', 'resolucao', ) + return super(OcorrenciaAdmin, self).get_fieldsets(request, obj) + + def save_model(self, request, obj, form, change): + if not change: + obj.servidor_registro = Servidor.objects.get(user=request.user) + obj.setor_responsavel = obj.categoria.setor_responsavel + obj.save() + + def save_formset(self, request, form, formset, change): + servidor = Servidor.objects.get(user=request.user) + instances = formset.save(commit=False) + for instance in instances: + instance.usuario = servidor + instance.save() + if instance.encaminhar_setor and (instance.encaminhar_setor != instance.ocorrencia.setor_responsavel): + instance.ocorrencia.setor_responsavel = instance.encaminhar_setor + instance.ocorrencia.save() + if instance.novo_status and (instance.novo_status != instance.ocorrencia.status): + instance.ocorrencia.status = instance.novo_status + instance.ocorrencia.save() + + formset.save_m2m() + +admin.site.register(Ocorrencia, OcorrenciaAdmin) +admin.site.register(Categoria) diff --git a/sigi/apps/ocorrencias/models.py b/sigi/apps/ocorrencias/models.py new file mode 100644 index 0000000..745e3c3 --- /dev/null +++ b/sigi/apps/ocorrencias/models.py @@ -0,0 +1,79 @@ +# -*- coding: utf-8 -*- +from django.db import models +from datetime import datetime +from django.db import models +from sigi.apps.utils import SearchField +#from eav.models import BaseChoice, BaseEntity, BaseSchema, BaseAttribute + +class Categoria(models.Model): + nome= models.CharField(max_length=50) + descricao = models.TextField('descrição', blank=True, null=True) + setor_responsavel = models.ForeignKey('servidores.Servico', verbose_name=u"Setor responsável") + + class Meta: + verbose_name, verbose_name_plural = u'Categoria', u'Categorias' + + def __unicode__(self): + return self.nome + +class Ocorrencia(models.Model): + STATUS_CHOICES = ( + (1, u'Aberto'), + (2, u'Reaberto'), + (3, u'Resolvido'), + (4, u'Fechado'), + (5, u'Duplicado'), + ) + + PRIORITY_CHOICES = ( + (1, u'Altíssimo'), + (2, u'Alto'), + (3, u'Normal'), + (4, u'Baixo'), + (5, u'Baixíssimo'), + ) + + casa_legislativa = models.ForeignKey('casas.CasaLegislativa', verbose_name=u'Casa Legislativa') + casa_legislativa.convenio_uf_filter = True + casa_legislativa.convenio_cl_tipo_filter = True + data_criacao = models.DateField(u'Data de criação', null=True, blank=True, auto_now_add=True) + data_modificacao = models.DateField(u'Data de modificação', null=True, blank=True, auto_now=True) + categoria = models.ForeignKey(Categoria, verbose_name=u'Categoria') + assunto = models.CharField(u'Assunto', max_length=200) + assunto.grupo_filter = True + status = models.IntegerField(u'Status', choices=STATUS_CHOICES, default=1,) + status.multichoice_filter = True + prioridade = models.IntegerField(u'Prioridade', choices=PRIORITY_CHOICES, default=3, ) + descricao = models.TextField(u'descrição', blank=True,) + resolucao = models.TextField(u'resolução', blank=True,) + servidor_registro = models.ForeignKey('servidores.Servidor', verbose_name=u"Servidor que registrou a ocorrência") + setor_responsavel = models.ForeignKey('servidores.Servico', verbose_name=u"Setor responsável") + + class Meta: + verbose_name, verbose_name_plural = u'ocorrência', u'ocorrências' + ordering = ['prioridade', 'data_modificacao', 'data_criacao', ] + + def __unicode__(self): + return u"%(casa_legislativa)s: %(assunto)s" % {'assunto': self.assunto, 'casa_legislativa': self.casa_legislativa} + +class Comentario(models.Model): + ocorrencia = models.ForeignKey(Ocorrencia, verbose_name=u'Ocorrência') + data_criacao = models.DateTimeField(u'Data de criação', null=True, blank=True, auto_now_add=True) + descricao = models.TextField(u'Descrição', blank=True, null=True) + usuario = models.ForeignKey('servidores.Servidor', verbose_name=u'Usuário') + novo_status = models.IntegerField(u'Novo status', choices=Ocorrencia.STATUS_CHOICES, blank=True, null=True) + encaminhar_setor = models.ForeignKey('servidores.Servico', verbose_name=u'Encaminhar para setor', blank=True, null=True) + +class Anexo(models.Model): + ocorrencia = models.ForeignKey(Ocorrencia, verbose_name=u'ocorrência') + arquivo = models.FileField(u'Arquivo anexado', upload_to='apps/ocorrencia/anexo/arquivo',) + descricao = models.CharField(u'descrição do anexo', max_length='70') + data_pub = models.DateTimeField( u'data da publicação do anexo', null=True, blank=True, auto_now_add=True) + + class Meta: + ordering = ('-data_pub',) + verbose_name, verbose_name_plural = u'Anexo', u'Anexos' + + def __unicode__(self): + return u"%(arquivo_name)s: %(descricao)s" % {'arquivo_name': self.arquivo.name, 'descricao': self.descricao} + diff --git a/sigi/apps/parlamentares/__init__.py b/sigi/apps/parlamentares/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sigi/apps/parlamentares/admin.py b/sigi/apps/parlamentares/admin.py new file mode 100644 index 0000000..c7e0c72 --- /dev/null +++ b/sigi/apps/parlamentares/admin.py @@ -0,0 +1,75 @@ +# -*- coding: utf-8 -*- +from django.contrib import admin +from django.contrib.contenttypes import generic +from django.http import HttpResponse, HttpResponseRedirect + +from sigi.apps.contatos.models import Telefone +from sigi.apps.parlamentares.models import Partido, Parlamentar, Mandato +from sigi.apps.parlamentares.views import adicionar_parlamentar_carrinho + +class MandatosInline(admin.TabularInline): + model = Mandato + extra = 1 + raw_id_fields = ('legislatura', 'partido') + +class TelefonesInline(generic.GenericTabularInline): + model = Telefone + extra = 2 + +class PartidoAdmin(admin.ModelAdmin): + list_display = ('nome', 'sigla') + list_display_links = ('nome', 'sigla') + search_fields = ('nome', 'sigla') + +class ParlamentarAdmin(admin.ModelAdmin): + inlines = (TelefonesInline, MandatosInline) + list_display = ('nome_completo', 'nome_parlamentar', 'sexo') + list_display_links = ('nome_completo', 'nome_parlamentar') + list_filter = ('nome_completo', 'nome_parlamentar') + actions = ['adiciona_parlamentar',] + fieldsets = ( + (None, { + 'fields': ('nome_completo', 'nome_parlamentar', 'sexo'), + }), +# ('Endereço', { +# 'fields': ('logradouro', 'bairro', 'municipio', 'cep'), +# }), + ('Outras informações', { + 'fields': ('data_nascimento', 'email', 'pagina_web', 'foto'), + }), + ) + radio_fields = {'sexo': admin.VERTICAL} +# raw_id_fields = ('municipio',) + search_fields = ('nome_completo', 'nome_parlamentar', 'email', + 'pagina_web',) + + def adiciona_parlamentar(self, request, queryset): + if request.session.has_key('carrinho_parlametar'): + q1 = len(request.session['carrinho_parlamentar']) + else: + q1 = 0 + adicionar_parlamentar_carrinho(request,queryset=queryset) + q2 = len(request.session['carrinho_parlamentar']) + quant = q2 - q1 + if quant: + self.message_user(request,"%s Parlamentares adicionados no carrinho" % (quant) ) + else: + self.message_user(request,"Os parlamentares selecionadas já foram adicionadas anteriormente" ) + return HttpResponseRedirect('.') + + adiciona_parlamentar.short_description = u"Armazenar parlamentar no carrinho para exportar" + + +class MandatoAdmin(admin.ModelAdmin): + list_display = ('parlamentar', 'legislatura', 'partido', + 'inicio_mandato', 'fim_mandato', 'is_afastado') + list_filter = ('is_afastado', 'partido') + search_fields = ('legislatura__numero', 'parlamentar__nome_completo', + 'parlamentar__nome_parlamentar', 'partido__nome', + 'partido__sigla') + raw_id_fields = ('parlamentar', 'legislatura', 'partido') +# radio_fields = {'suplencia': admin.VERTICAL} + +admin.site.register(Partido, PartidoAdmin) +admin.site.register(Parlamentar, ParlamentarAdmin) +admin.site.register(Mandato, MandatoAdmin) diff --git a/sigi/apps/parlamentares/fixtures/initial_data.json b/sigi/apps/parlamentares/fixtures/initial_data.json new file mode 100644 index 0000000..0533909 --- /dev/null +++ b/sigi/apps/parlamentares/fixtures/initial_data.json @@ -0,0 +1,218 @@ +[ + { + "pk": 5, + "model": "parlamentares.partido", + "fields": { + "sigla": "DEM", + "nome": "Democratas" + } + }, + { + "pk": 19, + "model": "parlamentares.partido", + "fields": { + "sigla": "PCB", + "nome": "Partido Comunista Brasileiro" + } + }, + { + "pk": 6, + "model": "parlamentares.partido", + "fields": { + "sigla": "PCdoB", + "nome": "Partido Comunista do Brasil" + } + }, + { + "pk": 4, + "model": "parlamentares.partido", + "fields": { + "sigla": "PDT", + "nome": "Partido Democr\u00e1tico Trabalhista" + } + }, + { + "pk": 20, + "model": "parlamentares.partido", + "fields": { + "sigla": "PHS", + "nome": "Partido Humanista da Solidariedade" + } + }, + { + "pk": 13, + "model": "parlamentares.partido", + "fields": { + "sigla": "PPS", + "nome": "Partido Popular Socialista" + } + }, + { + "pk": 17, + "model": "parlamentares.partido", + "fields": { + "sigla": "PP", + "nome": "Partido Progressista" + } + }, + { + "pk": 16, + "model": "parlamentares.partido", + "fields": { + "sigla": "PRTB", + "nome": "Partido Renovador Trabalhista Brasileiro" + } + }, + { + "pk": 25, + "model": "parlamentares.partido", + "fields": { + "sigla": "PRB", + "nome": "Partido Republicano Brasileiro" + } + }, + { + "pk": 12, + "model": "parlamentares.partido", + "fields": { + "sigla": "PRP", + "nome": "Partido Republicano Progressista" + } + }, + { + "pk": 10, + "model": "parlamentares.partido", + "fields": { + "sigla": "PSC", + "nome": "Partido Social Crist\u00e3o" + } + }, + { + "pk": 21, + "model": "parlamentares.partido", + "fields": { + "sigla": "PSDC", + "nome": "Partido Social Democrata Crist\u00e3o" + } + }, + { + "pk": 24, + "model": "parlamentares.partido", + "fields": { + "sigla": "PSL", + "nome": "Partido Social Liberal" + } + }, + { + "pk": 26, + "model": "parlamentares.partido", + "fields": { + "sigla": "PSOL", + "nome": "Partido Socialismo e Liberdade" + } + }, + { + "pk": 7, + "model": "parlamentares.partido", + "fields": { + "sigla": "PSB", + "nome": "Partido Socialista Brasileiro" + } + }, + { + "pk": 18, + "model": "parlamentares.partido", + "fields": { + "sigla": "PSTU", + "nome": "Partido Socialista dos Trabalhadores Unificado" + } + }, + { + "pk": 3, + "model": "parlamentares.partido", + "fields": { + "sigla": "PTB", + "nome": "Partido Trabalhista Brasileiro" + } + }, + { + "pk": 9, + "model": "parlamentares.partido", + "fields": { + "sigla": "PTC", + "nome": "Partido Trabalhista Crist\u00e3o" + } + }, + { + "pk": 23, + "model": "parlamentares.partido", + "fields": { + "sigla": "PTN", + "nome": "Partido Trabalhista Nacional" + } + }, + { + "pk": 15, + "model": "parlamentares.partido", + "fields": { + "sigla": "PTdoB", + "nome": "Partido Trabalhista do Brasil" + } + }, + { + "pk": 14, + "model": "parlamentares.partido", + "fields": { + "sigla": "PV", + "nome": "Partido Verde" + } + }, + { + "pk": 22, + "model": "parlamentares.partido", + "fields": { + "sigla": "PCO", + "nome": "Partido da Causa Oper\u00e1ria" + } + }, + { + "pk": 11, + "model": "parlamentares.partido", + "fields": { + "sigla": "PMN", + "nome": "Partido da Mobiliza\u00e7\u00e3o Nacional" + } + }, + { + "pk": 27, + "model": "parlamentares.partido", + "fields": { + "sigla": "PR", + "nome": "Partido da Rep\u00fablica" + } + }, + { + "pk": 8, + "model": "parlamentares.partido", + "fields": { + "sigla": "PSDB", + "nome": "Partido da Social Democracia Brasileira" + } + }, + { + "pk": 2, + "model": "parlamentares.partido", + "fields": { + "sigla": "PMDB", + "nome": "Partido do Movimento Democr\u00e1tico Brasileiro" + } + }, + { + "pk": 1, + "model": "parlamentares.partido", + "fields": { + "sigla": "PT", + "nome": "Partido dos Trabalhadores" + } + } +] diff --git a/sigi/apps/parlamentares/models.py b/sigi/apps/parlamentares/models.py new file mode 100644 index 0000000..3edcbc4 --- /dev/null +++ b/sigi/apps/parlamentares/models.py @@ -0,0 +1,81 @@ +# -*- coding: utf-8 -*- +from django.db import models +from django.contrib.contenttypes import generic + + +class Partido(models.Model): + nome = models.CharField(max_length=50) + sigla = models.CharField(max_length=10) + + class Meta: + ordering = ('nome',) + + def __unicode__(self): + return '%s (%s)' % (unicode(self.nome), unicode(self.sigla)) + + +class Parlamentar(models.Model): + SEXO_CHOICES = ( + ('M', 'Masculino'), + ('F', 'Feminino'), + ) + nome_completo = models.CharField(max_length=128) + nome_completo.alphabetic_filter = True + nome_parlamentar = models.CharField(max_length=35, blank=True) + foto = models.ImageField( + upload_to='fotos/parlamentares', + width_field='foto_largura', + height_field='foto_altura', + blank=True + ) + foto_largura = models.SmallIntegerField(editable=False, null=True) + foto_altura = models.SmallIntegerField(editable=False, null=True) + sexo = models.CharField( + max_length=1, + choices=SEXO_CHOICES, + ) + data_nascimento = models.DateField( + 'data de nascimento', + blank=True, + null=True, + ) + email = models.EmailField('e-mail', blank=True) + pagina_web = models.URLField(u'página web', + blank=True) + + class Meta: + ordering = ('nome_completo',) + verbose_name_plural = 'parlamentares' + + def __unicode__(self): + if self.nome_parlamentar: + return self.nome_parlamentar + return self.nome_completo + + +class Mandato(models.Model): + SUPLENCIA_CHOICES = ( + ('T', 'Titular'), + ('S', 'Suplente'), + ) + parlamentar = models.ForeignKey(Parlamentar) + legislatura = models.ForeignKey('mesas.Legislatura') + partido = models.ForeignKey(Partido) + cargo = models.ForeignKey('mesas.Cargo') + inicio_mandato = models.DateField(u'início de mandato') + fim_mandato = models.DateField('fim de mandato') + is_afastado = models.BooleanField( + 'afastado', + default=False, + help_text=u'Marque caso parlamentar não esteja ativo.' + ) + +# suplencia = models.CharField( +# u'suplência', +# max_length=1, +# choices=SUPLENCIA_CHOICES, +# ) + + + def __unicode__(self): + return str(self.id) diff --git a/sigi/apps/parlamentares/reports.py b/sigi/apps/parlamentares/reports.py new file mode 100644 index 0000000..2574e99 --- /dev/null +++ b/sigi/apps/parlamentares/reports.py @@ -0,0 +1,539 @@ +# -*- coding: utf-8 -*- +from reportlab.lib.pagesizes import A4 +from reportlab.lib.units import cm +from reportlab.lib.enums import TA_CENTER, TA_RIGHT +from geraldo import Report, DetailBand, Label, ObjectValue, ManyElements, \ + ReportGroup, ReportBand, landscape, SubReport, BAND_WIDTH,SystemField + +from sigi.apps.relatorios.reports import ReportDefault + +from geraldo.graphics import Image + +def string_to_cm(texto): + tamanho = 0 + minEspeciais = { + 'f':0.1, + 'i':0.05, + 'j':0.05, + 'l':0.05, + 'm':0.2, + 'r':0.1, + 't':0.15, + } + maiuEspeciais = { + 'I':0.05, + 'J':0.15, + 'L':0.15, + 'P':0.15, + } + for c in texto: + if c > 'a' and c<'z': + if c in minEspeciais: + tamanho += minEspeciais[c] + else: + tamanho += 0.17 + else: + if c in maiuEspeciais: + tamanho += maiuEspeciais[c] + else: + tamanho += 0.2 + return tamanho + +class ParlamentaresLabels(Report): + """ + Usage example:: + + >>> from geraldo.generators import PDFGenerator + >>> queryset = CasaLegislativa.objects.filter(municipio__uf__sigla='MG') + >>> report = LabelsReport(queryset) + >>> report.generate_by(PDFGenerator, filename='./inline-detail-report.pdf') + + """ + formato = '' + y = 2 + largura_etiqueta = 7 + altura_etiqueta = 3.3 + tamanho_fonte = 6.4 + altura_dados = 0.3 #logradouro, bairro, municipio, cep + delta = start = 0.5 + + def __init__(self, queryset, formato): + super(ParlamentaresLabels, self).__init__(queryset=queryset) + self.formato = formato + self.page_size = A4 + + if formato == '3x9_etiqueta': + self.margin_top = 0.0*cm + self.margin_bottom = 0.0*cm + self.margin_left = -1*cm + self.margin_right = 0.0*cm + self.delta = 0.4 # espaçamento entre as "strings/linhas" da etiqueta + self.start = 0.2 # valor entre a margin top e a etiqueta + else: + self.margin_top = 0.8*cm + self.margin_bottom = 0.8*cm + self.margin_left = 0.4*cm + self.margin_right = 0.4*cm + self.largura_etiqueta = 9.9 + self.altura_etiqueta = 5.6 + self.tamanho_fonte = 11 + self.altura_dados = 0.5 + self.y = 0.5 + + my_elements = [ + Label( + text=u'A Sua Excelência o(a) Senhor(a)', + top=(self.start + self.delta)*cm, left=self.y*cm, width=(self.largura_etiqueta-self.y)*cm, + ), + ObjectValue( + attribute_name='nome_completo', + top=(self.start + 2*self.delta)*cm, left=self.y*cm, width=(self.largura_etiqueta-self.y)*cm, + get_value=lambda instance: + instance.nome_completo or "" + ), + ObjectValue( + attribute_name='logradouro', + top=(self.start + 3*self.delta)*cm, left=self.y*cm, width=(self.largura_etiqueta-self.y)*cm, + get_value=lambda instance: + logradouro_parlamentar(instance) + ), + ObjectValue( + attribute_name='bairro', + top=(self.start + 4*self.delta)*cm, left=self.y*cm, width=(self.largura_etiqueta-self.y)*cm, + get_value=lambda instance: + bairro_parlamentar(instance) + ), + ObjectValue( + attribute_name='municipio', + top=(self.start + 5*self.delta)*cm, left=self.y*cm, width=(self.largura_etiqueta-self.y)*cm, + get_value=lambda instance: + municipio_parlamentar(instance) + ), + ObjectValue( + attribute_name='cep', + top=(self.start + 6*self.delta)*cm, left=self.y*cm, width=(self.largura_etiqueta-self.y)*cm, + get_value=lambda instance: + cep_parlamentar(instance) + ), + ] + self.band_detail = DetailBand(width=(self.largura_etiqueta)*cm, height=(self.altura_etiqueta)*cm, margin_left = 0, margin_top = 0, margin_bottom=0.0*cm, margin_right = 0, elements=my_elements,display_inline=True, default_style={'fontName': 'Helvetica', 'fontSize': self.tamanho_fonte}) + +def logradouro_parlamentar(instance): + try: + return instance.mandato_set.latest('inicio_mandato').legislatura.casa_legislativa.logradouro + except: + return u"<>" + +def bairro_parlamentar(instance): + try: + return instance.mandato_set.latest('inicio_mandato').legislatura.casa_legislativa.bairro + except: + return u"<>" + +def municipio_parlamentar(instance): + try: + return instance.mandato_set.latest('inicio_mandato').legislatura.casa_legislativa.municipio + except: + return u"<>" + +def cep_parlamentar(instance): + try: + return instance.mandato_set.latest('inicio_mandato').legislatura.casa_legislativa.cep + except: + return u"<>" + + +class CasasLegislativasReport(ReportDefault): + title = u'Relatório de Casas Legislativas' + height = 80*cm + page_size = landscape(A4) + + class band_page_header(ReportDefault.band_page_header): + + label_top = ReportDefault.band_page_header.label_top + label_left = [0.3,1,5.5,11,17,22] + elements = list(ReportDefault.band_page_header.elements) + + elements = [ + Image(filename= ReportDefault.band_page_header.BASE_DIR + '/media/images/logo-interlegis.jpg', + left=23.5*cm,right=1*cm,top=0.1*cm,bottom=1*cm, + width=4.2*cm,height=3*cm, + ), + Image(filename= ReportDefault.band_page_header.BASE_DIR + '/media/images/logo-senado.png', + left=1*cm,right=1*cm,top=0.1*cm,bottom=1*cm, + width=3*cm,height=3*cm, + ), + Label(text=u"SENADO FEDERAL",top=1*cm,left=0,width=BAND_WIDTH, + style={'fontName': 'Helvetica-Bold','fontSize':14, 'alignment': TA_CENTER} + ), + Label(text=u"SINTER - Secretaria Especial do Interlegis",top=1.5*cm,left=0,width=BAND_WIDTH, + style={'fontName': 'Helvetica-Bold','fontSize':13, 'alignment': TA_CENTER} + ), + SystemField( + expression='%(report_title)s',top=2.5*cm,left=0,width=BAND_WIDTH, + style={'fontName': 'Helvetica-Bold','fontSize':14, 'alignment': TA_CENTER} + ), + Label( + text=u"UF", + left=label_left[0]*cm, + top=label_top, + ), + Label( + text=u"Municipio", + left=label_left[1]*cm, + top=label_top, + ), + Label( + text=u"Presidente", + left=label_left[2]*cm, + top=label_top, + ), + Label( + text=u"Endereço", + left=label_left[3]*cm, + top=label_top, + ), + Label( + text=u"Endereço na Internet", + left=label_left[4]*cm, + top=label_top, + ), + Label( + text=u"Email", + left=label_left[5]*cm, + top=label_top, + ), + + + ] + + + + class band_page_footer(ReportDefault.band_page_footer): + pass + + class band_detail(ReportDefault.band_detail): + + label_left = [0.3,1,5.5,11,17,22] + + elements=[ + ObjectValue( + attribute_name='municipio.uf.sigla', + left=label_left[0]*cm, + width=1*cm, + ), + ObjectValue( + attribute_name='municipio.nome', + left=label_left[1]*cm, + ), + ObjectValue( + attribute_name='presidente', + left=label_left[2]*cm, + ), + ObjectValue( + attribute_name='logradouro', + left=label_left[3]*cm, + get_value=lambda instance: instance.logradouro + ' - '+ instance.bairro, + ), + ObjectValue( + attribute_name='pagina_web', + left=label_left[4]*cm, + ), + ObjectValue( + attribute_name='email', + left=label_left[5]*cm, + ), + + ] + + groups = [ + ReportGroup(attribute_name='municipio.uf', + band_header=ReportBand( + height=0.7*cm, + elements= [ + ObjectValue(attribute_name='municipio.uf') + ], + borders={'top': True}, + ) + ) + ] + + +class InfoCasaLegislativa(ReportDefault): + title = u'Casa legislativa' + class band_summary(ReportBand): + pass + class band_page_footer(ReportBand): + height = 1*cm + + elements = [ + SystemField(expression=u'%(now:%d/%m/%Y)s às %(now:%H:%M)s', top=0.3*cm), + ] + + class band_detail(ReportDefault.band_detail): + + posicao_left = [ + 0,1.3, #Tipo + 0,1.8, #Regiao + 5.5,6.8, #U.F. + 0,2.3, #Municipio + 0,2.4, #Endereco + 0,1.6, #Bairro + 0,1.3, #CEP + 0,1.6, #CNPJ + 0,2.3, #Telefone + 0,2.7, #Presidente + ] + posicao_top = [ + 0.5, #Tipo + 1.3, #Regiao + 1.3, #U.F. + 2.1, #Municipio + 2.9, #Logradouro + 3.7, #Bairro + 4.5, #CEP + 5.3, #CNPJ + 6.1, #Telefone + 6.9, #Presidente + ] + + height=30*cm + + display_inline = True + default_style = {'fontName': 'Helvetica', 'fontSize':14} + + elements = [ + + Label( + text=u"Tipo: ", + left=posicao_left[0]*cm, + top=posicao_top[0]*cm, + ), + ObjectValue( + attribute_name='tipo.nome', + left=posicao_left[1]*cm, + top=posicao_top[0]*cm, + width=6*cm, + ), + Label( + text=u"Região: ", + left=posicao_left[2]*cm, + top=posicao_top[1]*cm, + ), + ObjectValue( + attribute_name='municipio.uf.regiao', + left=posicao_left[3]*cm, + top=posicao_top[1]*cm, + get_value=lambda instance: + {'SL': 'Sul','SD': 'Sudeste','CO': 'Centro-Oeste','NE': 'Nordeste','NO': 'Norte',} + [instance.municipio.uf.regiao] + ), + Label( + text=u"U.F.: ", + left=posicao_left[4]*cm, + top=posicao_top[2]*cm, + ), + ObjectValue( + attribute_name='municipio.uf', + left=posicao_left[5]*cm, + top=posicao_top[2]*cm, + ), + Label( + text=u"Município: ", + left=posicao_left[6]*cm, + top=posicao_top[3]*cm, + ), + ObjectValue( + attribute_name='municipio.nome', + left=posicao_left[7]*cm, + top=posicao_top[3]*cm, + width=20*cm, + ), + # Linha 3 + Label( + text=u"Endereço: ", + left=posicao_left[8]*cm, + top=posicao_top[4]*cm, + ), + ObjectValue( + attribute_name='logradouro', + left=posicao_left[9]*cm, + top=posicao_top[4]*cm, + width=20*cm, + ), + Label( + text=u"Bairro: ", + left=posicao_left[10]*cm, + top=posicao_top[5]*cm, + ), + ObjectValue( + attribute_name='bairro', + left=posicao_left[11]*cm, + top=posicao_top[5]*cm, + ), + Label( + text=u"CEP: ", + left=posicao_left[12]*cm, + top=posicao_top[6]*cm, + ), + ObjectValue( + attribute_name='cep', + left=posicao_left[13]*cm, + top=posicao_top[6]*cm, + ), + Label( + text=u"CNPJ: ", + left=posicao_left[14]*cm, + top=posicao_top[7]*cm, + ), + ObjectValue( + attribute_name='cnpj', + left=posicao_left[15]*cm, + top=posicao_top[7]*cm, + ), + Label( + text=u"Telefone: ", + left=posicao_left[16]*cm, + top=posicao_top[8]*cm, + ), + ObjectValue( + attribute_name='telefone', + left=posicao_left[17]*cm, + top=posicao_top[8]*cm, + ), + Label( + text=u"Presidente: ", + left=posicao_left[18]*cm, + top=posicao_top[9]*cm, + ), + ObjectValue( + attribute_name='presidente', + left=posicao_left[19]*cm, + top=posicao_top[9]*cm, + width=20*cm, + ), + ] + # Telefones + tel_top = 2*cm + tel_left = [0,3,5] + # Contato + cont_top = 2*cm + cont_left = [0,6,9] + # Convenios + convenio_top = 2*cm + convenio_left = [0,1.8,4.5,8,10.5,13,15.5,18] + subreports = [ + # Telefones + SubReport( + queryset_string = '%(object)s.telefones.all()', + band_header = ReportBand( + default_style = {'fontName': 'Helvetica', 'fontSize':12 }, + height=2.5*cm, + elements = [ + Label( + text=u"Telefone(s)", + style = {'fontSize':14,'alignment': TA_CENTER}, + width=BAND_WIDTH, + top=1*cm, + ), + Label(text=u"Número",left=tel_left[0]*cm,top=tel_top), + Label(text=u"Tipo",left=tel_left[1]*cm,top=tel_top), + Label(text=u"Nota",left=tel_left[2]*cm,top=tel_top), + ], + borders = {'bottom': True}, + ), + band_detail = ReportBand( + default_style = {'fontName': 'Helvetica', 'fontSize':11}, + height=0.5*cm, + elements= [ + ObjectValue(attribute_name='__unicode__',left=tel_left[0]*cm), + ObjectValue(attribute_name='tipo',left=tel_left[1]*cm, + get_value = lambda instance: + {'F':'Fixo','M':u'Móvel','X':'Fax','I':'Indefinido'}[instance.tipo], + ), + ObjectValue(attribute_name='nota',left=tel_left[2]*cm), + ], + #borders = {'all':True}, + ), + ), + #Contatos + SubReport( + queryset_string = '%(object)s.funcionario_set.all()', + band_header = ReportBand( + default_style = {'fontName': 'Helvetica', 'fontSize':12 }, + height=2.5*cm, + elements = [ + Label( + text=u"Contato(s)", + style = {'fontSize':14,'alignment': TA_CENTER}, + width=BAND_WIDTH, + top=1*cm, + ), + Label(text=u"Nome",left=cont_left[0]*cm,top=cont_top), + Label(text=u"Nota",left=cont_left[1]*cm,top=cont_top), + Label(text=u"E-mail",left=cont_left[2]*cm,top=cont_top), + ], + borders = {'bottom': True,'top':True}, + ), + band_detail = ReportBand( + default_style = {'fontName': 'Helvetica', 'fontSize':11}, + height=0.5*cm, + elements= [ + ObjectValue(attribute_name='nome',left=cont_left[0]*cm), + ObjectValue(attribute_name='nota',left=cont_left[1]*cm), + ObjectValue(attribute_name='email',left=cont_left[2]*cm), + ], + #borders = {'all':True}, + ), + ), + #Convenios + SubReport( + queryset_string = '%(object)s.convenio_set.all()', + band_header = ReportBand( + default_style = {'fontName': 'Helvetica', 'fontSize':12 }, + height=2.5*cm, + elements=[ + Label( + text=u"Convênio(s)", + style = {'fontSize':14,'alignment': TA_CENTER}, + width=BAND_WIDTH, + top=1*cm, + ), + Label(text=u"Projeto",left=convenio_left[0]*cm,top=convenio_top), + Label(text=u"Nº Convenio",left=convenio_left[1]*cm,top=convenio_top), + Label(text=u"Nº Processo SF",left=convenio_left[2]*cm,top=convenio_top), + Label(text=u"Adesão",left=convenio_left[3]*cm,top=convenio_top), + Label(text=u"Convênio",left=convenio_left[4]*cm,top=convenio_top), + Label(text=u"Equipada",left=convenio_left[5]*cm,top=convenio_top), + Label(text=u"Data D.O.",left=convenio_left[6]*cm,top=convenio_top), + ], + borders = {'bottom': True} + ), + band_detail = ReportBand( + default_style = {'fontName': 'Helvetica', 'fontSize':11}, + height=0.5*cm, + elements=[ + ObjectValue(attribute_name='projeto.sigla',left=convenio_left[0]*cm), + ObjectValue(attribute_name='num_convenio',left=convenio_left[1]*cm), + ObjectValue(attribute_name='num_processo_sf',left=convenio_left[2]*cm), + ObjectValue(attribute_name='data_adesao',left=convenio_left[3]*cm, + get_value=lambda instance: + instance.data_adesao.strftime('%d/%m/%Y') if instance.data_adesao != None else '-' + ), + ObjectValue(attribute_name='data_retorno_assinatura',left=convenio_left[4]*cm, + get_value=lambda instance: + instance.data_retorno_assinatura.strftime('%d/%m/%Y') if instance.data_retorno_assinatura != None else '-' + ), + ObjectValue(attribute_name='data_termo_aceite',left=convenio_left[5]*cm, + get_value=lambda instance: + instance.data_termo_aceite.strftime('%d/%m/%Y') if instance.data_termo_aceite != None else '-' + ), + ObjectValue(attribute_name='data_pub_diario',left=convenio_left[6]*cm, + get_value=lambda instance: + instance.data_pub_diario.strftime('%d/%m/%Y') if instance.data_pub_diario != None else '-' + ), + ], + #borders = {'all':True}, + ), + ) + ] \ No newline at end of file diff --git a/sigi/apps/parlamentares/templates/parlamentares/carrinho.html b/sigi/apps/parlamentares/templates/parlamentares/carrinho.html new file mode 100644 index 0000000..a40b8fc --- /dev/null +++ b/sigi/apps/parlamentares/templates/parlamentares/carrinho.html @@ -0,0 +1,78 @@ +{% extends "admin/carrinho.html" %} +{% load adminmedia admin_list i18n %} +{% block extrastyle %} + {{ block.super }} + {% include "admin/tabs_style.html" %} + + +{% endblock %} + +{% block title %}Parlamentares no Carrinho | SIGI{% endblock %} +{% block content_title %}

    Parlamentares no Carrinho

    {% endblock %} + +{% block mensagem%} +
      + {%if carIsEmpty%} +
    • O carrinho está vazio, sendo assim todas as casas entram na lista para exportação de acordo com os filtros aplicados.
    • + {%else%} +
    • {{paginas.paginator.count}}Parlamentares no carrinho.
    • + {%endif%} +
    +{% endblock %} + +{% block action %}deleta_itens_carrinho{% endblock %} + +{% block tabela %} + + + + {%if not carIsEmpty%} + + {% endif %} + + + + + + + {% for parlamentar in paginas.object_list %} + + {%if not carIsEmpty%} + + {% endif %} + + + + + {% endfor %} + +
    + NomeNome parlamentarSexo
    {{parlamentar.nome_completo}}{{parlamentar.nome_parlamentar}}{{parlamentar.get_sexo_display}}
    +{% endblock %} + +{% block botoes %} +
    + + +
    +
    {% csrf_token %} +
    Formato da Etiqueta +
      +
    • +
    • + +
    +
    +
      +
    • +
    +
    + +
    + +{% endblock %} diff --git a/sigi/apps/parlamentares/templates/parlamentares/change_form.html b/sigi/apps/parlamentares/templates/parlamentares/change_form.html new file mode 100644 index 0000000..b59cb99 --- /dev/null +++ b/sigi/apps/parlamentares/templates/parlamentares/change_form.html @@ -0,0 +1,14 @@ +{% extends "admin/change_form.html" %} +{% load i18n reporting_tags %} + +{% block object-tools %} +{% if change %}{% if not is_popup %} + +{% endif %}{% endif %} +{% endblock %} diff --git a/sigi/apps/parlamentares/templates/parlamentares/change_list.html b/sigi/apps/parlamentares/templates/parlamentares/change_list.html new file mode 100644 index 0000000..05501cd --- /dev/null +++ b/sigi/apps/parlamentares/templates/parlamentares/change_list.html @@ -0,0 +1,9 @@ +{% extends "admin/change_list.html" %} +{% load adminmedia admin_list i18n reporting_tags %} + +{% block object-tools %} + + +{% endblock %} diff --git a/sigi/apps/parlamentares/views.py b/sigi/apps/parlamentares/views.py new file mode 100644 index 0000000..67042a7 --- /dev/null +++ b/sigi/apps/parlamentares/views.py @@ -0,0 +1,149 @@ +# coding: utf-8 +import datetime +import csv +import ho.pisa as pisa + +from django.template import Context, loader +from django.core.paginator import Paginator, InvalidPage, EmptyPage +from django.conf import settings +from django.shortcuts import render_to_response, get_list_or_404 +from django.http import HttpResponse, HttpResponseRedirect +from django.views.decorators.csrf import csrf_protect +from django.template import RequestContext + +from sigi.apps.casas.models import CasaLegislativa +from sigi.apps.parlamentares.models import Parlamentar +from sigi.apps.parlamentares.reports import ParlamentaresLabels + +from geraldo.generators import PDFGenerator + + +def adicionar_parlamentar_carrinho(request,queryset=None,id=None): + if request.method == 'POST': + ids_selecionados = request.POST.getlist('_selected_action') + if not request.session.has_key('carrinho_parlametar'): + request.session['carrinho_parlamentar'] = ids_selecionados + else: + lista = request.session['carrinho_parlamentar'] + # Verifica se id já não está adicionado + for id in ids_selecionados: + if not id in lista: + lista.append(id) + request.session['carrinho_parlamentar'] = lista + + +@csrf_protect +def visualizar_carrinho(request): + + qs = carrinhoOrGet_for_qs(request) + + paginator = Paginator(qs, 100) + + # Make sure page request is an int. If not, deliver first page. + # Esteja certo de que o `page request` é um inteiro. Se não, mostre a primeira página. + try: + page = int(request.GET.get('page', '1')) + except ValueError: + page = 1 + + # Se o page request (9999) está fora da lista, mostre a última página. + try: + paginas = paginator.page(page) + except (EmptyPage, InvalidPage): + paginas = paginator.page(paginator.num_pages) + + carrinhoIsEmpty = not(request.session.has_key('carrinho_parlamentares')) + + return render_to_response('parlamentares/carrinho.html', + {"ADMIN_MEDIA_PREFIX":settings.ADMIN_MEDIA_PREFIX, + 'MEDIA_URL':settings.MEDIA_URL, + 'carIsEmpty':carrinhoIsEmpty, + 'paginas':paginas, + 'query_str':'?'+request.META['QUERY_STRING']}, + context_instance=RequestContext(request)) + + +def carrinhoOrGet_for_qs(request): + """ + Verifica se existe parlamentares na sessão se não verifica get e retorna qs correspondente. + """ + if request.session.has_key('carrinho_parlamentar'): + ids = request.session['carrinho_parlamentar'] + qs = Parlamentar.objects.filter(pk__in=ids) + else: + qs = Parlamentar.objects.all() + if request.GET: + qs = get_for_qs(request.GET,qs) + return qs + + +def query_ordena(qs,o,ot): + list_display = ('nome_completo',) + + aux = list_display[(int(o)-1)] + if ot =='asc': + qs = qs.order_by(aux) + else: + qs = qs.order_by("-"+aux) + return qs + + +def get_for_qs(get,qs): + """ + Verifica atributos do GET e retorna queryset correspondente + """ + kwargs = {} + for k,v in get.iteritems(): + if not (k == 'page' or k == 'pop' or k == 'q'): + if not k == 'o': + if k == "ot": + qs = query_ordena(qs,get["o"],get["ot"]) + else: + kwargs[str(k)] = v + qs = qs.filter(**kwargs) + return qs + + +def deleta_itens_carrinho(request): + """ + Deleta itens selecionados do carrinho + """ + if request.method == 'POST': + ids_selecionados = request.POST.getlist('_selected_action') + if request.session.has_key('carrinho_parlamentar'): + lista = request.session['carrinho_parlamentar'] + for item in ids_selecionados: + lista.remove(item) + if lista: + request.session['carrinho_parlamentar'] = lista + else: + del lista; + del request.session['carrinho_parlamentar'] + + return HttpResponseRedirect('.') + + +def labels_report(request, id=None, formato='3x9_etiqueta'): + """ TODO: adicionar suporte para resultado de pesquisa do admin. + """ + + if request.POST: + if request.POST.has_key('tipo_etiqueta'): + tipo = request.POST['tipo_etiqueta'] + + + if id: + qs = Parlamentar.objects.filter(pk=id) + + else: + qs = carrinhoOrGet_for_qs(request) + + if not qs: + return HttpResponseRedirect('../') + + response = HttpResponse(mimetype='application/pdf') + response['Content-Disposition'] = 'attachment; filename=casas.pdf' + report = ParlamentaresLabels(queryset=qs, formato=formato) + report.generate_by(PDFGenerator, filename=response) + + return response \ No newline at end of file diff --git a/sigi/apps/relatorios/__init__.py b/sigi/apps/relatorios/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sigi/apps/relatorios/models.py b/sigi/apps/relatorios/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/sigi/apps/relatorios/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/sigi/apps/relatorios/reports.py b/sigi/apps/relatorios/reports.py new file mode 100644 index 0000000..a22bf7c --- /dev/null +++ b/sigi/apps/relatorios/reports.py @@ -0,0 +1,76 @@ +#-*- coding:utf-8 -*- +import os + +from geraldo import Report, ReportBand, ObjectValue, DetailBand, Label, \ + landscape,SystemField, BAND_WIDTH,ReportGroup, \ + FIELD_ACTION_SUM, FIELD_ACTION_COUNT, Line +from geraldo.graphics import Image +from reportlab.lib.units import cm +from reportlab.lib.pagesizes import A4 +from reportlab.lib.enums import TA_CENTER, TA_RIGHT +from reportlab.lib.colors import navy, red + + +class ReportDefault(Report): + #__metaclass__ = ABCMeta + title = u'Relatório' + author = u'Interlegis' + print_if_empty = True + page_size = A4 + + class band_page_header(ReportBand): + height = 4.2*cm + label_top = 3.7*cm + default_style = {'fontName': 'Helvetica', 'fontSize':9} + + BASE_DIR = os.path.abspath(os.path.dirname(__file__) + '../../../../') + #BASE_DIR = os.path.abspath(os.getcwd() + '../..') + + elements = [ + Image(filename= BASE_DIR + '/media/images/logo-interlegis.jpg', + left=15.5*cm,right=1*cm,top=0.1*cm,bottom=1*cm, + width=4.2*cm,height=3*cm, + ), + Image(filename= BASE_DIR + '/media/images/logo-senado.png', + left=1*cm,right=1*cm,top=0.1*cm,bottom=1*cm, + width=3*cm,height=3*cm, + ), + Label(text="SENADO FEDERAL",top=1*cm,left=0,width=BAND_WIDTH, + style={'fontName': 'Helvetica-Bold','fontSize':14, 'alignment': TA_CENTER} + ), + Label(text="SINTER - Secretaria Especial do Interlegis",top=1.5*cm,left=0,width=BAND_WIDTH, + style={'fontName': 'Helvetica-Bold','fontSize':13, 'alignment': TA_CENTER} + ), + SystemField( + expression='%(report_title)s',top=2.5*cm,left=0,width=BAND_WIDTH, + style={'fontName': 'Helvetica-Bold','fontSize':14, 'alignment': TA_CENTER} + ), + ] + borders = {'bottom': True} + + class band_page_footer(ReportBand): + height = 1*cm + + elements = [ + SystemField(expression=u'%(now:%d/%m/%Y)s às %(now:%H:%M)s', top=0.3*cm), + SystemField(expression=u'Página %(page_number)d de %(page_count)d', top=0.3*cm, + width=BAND_WIDTH, style={'alignment': TA_RIGHT} + ), + ] + #borders = {'top': True} + + class band_detail(DetailBand): + height = 0.5*cm + default_style = {'fontName': 'Helvetica', 'fontSize': 8} + auto_expand_height = True + + class band_summary(ReportBand): + height = 0.8*cm + elements = [ + Label(text="Total:", top=0.1*cm, left=0), + ObjectValue(attribute_name='id', top=0.1*cm, left=1*cm,\ + action=FIELD_ACTION_COUNT, display_format='%s'), + ] + borders = {'top': Line(stroke_color=navy, stroke_width=2)} + + diff --git a/sigi/apps/relatorios/tests.py b/sigi/apps/relatorios/tests.py new file mode 100644 index 0000000..2247054 --- /dev/null +++ b/sigi/apps/relatorios/tests.py @@ -0,0 +1,23 @@ +""" +This file demonstrates two different styles of tests (one doctest and one +unittest). These will both pass when you run "manage.py test". + +Replace these with more appropriate tests for your application. +""" + +from django.test import TestCase + +class SimpleTest(TestCase): + def test_basic_addition(self): + """ + Tests that 1 + 1 always equals 2. + """ + self.failUnlessEqual(1 + 1, 2) + +__test__ = {"doctest": """ +Another way to test that 1 + 1 is equal to 2. + +>>> 1 + 1 == 2 +True +"""} + diff --git a/sigi/apps/relatorios/views.py b/sigi/apps/relatorios/views.py new file mode 100644 index 0000000..60f00ef --- /dev/null +++ b/sigi/apps/relatorios/views.py @@ -0,0 +1 @@ +# Create your views here. diff --git a/sigi/apps/servicos/__init__.py b/sigi/apps/servicos/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sigi/apps/servicos/admin.py b/sigi/apps/servicos/admin.py new file mode 100644 index 0000000..665ddf4 --- /dev/null +++ b/sigi/apps/servicos/admin.py @@ -0,0 +1,214 @@ +# -*- coding: utf-8 -*- +from django.contrib import admin +from sigi.apps.servicos.models import Servico, LogServico, CasaAtendida, TipoServico +#from sigi.apps.casas.models import Funcionario +from sigi.apps.casas.admin import FuncionariosInline +from django.http import Http404, HttpResponseRedirect +from django.forms.models import ModelForm +from django.utils.encoding import force_unicode +from django.utils.translation import ugettext as _ +from django.core.urlresolvers import reverse +from apps.casas.models import CasaLegislativa + +#---------------- inlines --------------------- +class LogServicoInline(admin.StackedInline): + model = LogServico + Fieldset = ((None, {'fields': (('data', 'descricao'), 'log')})) + extra = 1 + +# --------------- forms ----------------------- +class ServicoFormAdmin(ModelForm): + class Meta: + model = Servico + + def __init__(self, *args, **kwargs): + super(ServicoFormAdmin, self).__init__(*args, **kwargs) + + self.fields['contato_tecnico'].choices = () + self.fields['contato_administrativo'].choices = () + + if self.instance.casa_legislativa_id: + id_casa = self.instance.casa_legislativa_id + elif kwargs.has_key('initial') and kwargs['initial'].has_key('id_casa'): + id_casa = kwargs['initial']['id_casa'] + self.instance.casa_legislativa_id = id_casa + else: + id_casa = None + + if id_casa: + casa = CasaAtendida.objects.get(pk=id_casa) + contatos = [(f.id, unicode(f)) for f in casa.funcionario_set.all()] + self.fields['contato_tecnico'].choices = contatos + self.fields['contato_administrativo'].choices = contatos + +#---------------- admins ---------------------- +class TipoServicoAdmin(admin.ModelAdmin): + list_display = ('id', 'sigla', 'nome', 'qtde_casas_atendidas', ) + ordering = ['id'] + +class ServicoAdmin(admin.ModelAdmin): + form = ServicoFormAdmin + actions = ['calcular_data_uso',] + list_display = ('casa_legislativa', 'get_codigo_interlegis', 'get_uf', 'tipo_servico', 'hospedagem_interlegis', + 'data_ativacao', 'data_desativacao', 'getUrl', 'data_ultimo_uso', 'get_link_erro') + fieldsets = (( None, { + 'fields': ('casa_legislativa', 'data_ativacao',) + }), + ( 'Serviço', { + 'fields': ('tipo_servico', ('url', 'hospedagem_interlegis'), ('nome_servidor', 'porta_servico', 'senha_inicial'),) + }), + ( 'Contatos', { + 'fields': ('contato_tecnico', 'contato_administrativo',) + }), + ( 'Alterações', { + 'fields': ('data_alteracao', 'data_desativacao', 'motivo_desativacao',) + })) + readonly_fields = ('casa_legislativa', 'data_ativacao', 'data_alteracao') + list_filter = ('tipo_servico', 'hospedagem_interlegis', 'data_ultimo_uso', 'casa_legislativa', ) + list_display_links = [] + ordering = ('casa_legislativa__municipio__uf', 'casa_legislativa', 'tipo_servico',) + inlines = (LogServicoInline,) + search_fields = ('casa_legislativa__search_text',) + + def get_codigo_interlegis(self, obj): + return obj.casa_legislativa.codigo_interlegis + get_codigo_interlegis.short_description = u'Código Interlegis' + get_codigo_interlegis.admin_order_field = 'casa_legislativa__codigo_interlegis' + + def get_uf(self, obj): + return u'%s' % (obj.casa_legislativa.municipio.uf) + get_uf.short_description = 'UF' + get_uf.admin_order_field = 'casa_legislativa__municipio__uf' + + def getUrl(self, obj): + return u'%s' % (obj.url, obj.url) + getUrl.short_description = 'Url' + getUrl.allow_tags = True + + def get_link_erro(self, obj): + if not obj.erro_atualizacao: + return u"" + url = obj.url + if url[-1] != '/': + url += '/' + url += obj.tipo_servico.string_pesquisa + return u'%s' % (url, obj.erro_atualizacao) + get_link_erro.allow_tags = True + get_link_erro.short_description = u"Erro na atualização" + get_link_erro.admin_order_field = 'erro_atualizacao' + + def calcular_data_uso(self, request, queryset): + for servico in queryset: + servico.atualiza_data_uso() + self.message_user(request, "Atualização concluída. Os sites que não responderam foram deixados com a data em branco" ) + return HttpResponseRedirect('.') + calcular_data_uso.short_description = u"Atualizar a data do último uso do(s) serviço(s)" + + def get_actions(self, request): + from django.utils.datastructures import SortedDict + actions = [self.get_action(action) for action in self.actions] + actions = filter(None, actions) + actions.sort(lambda a,b: cmp(a[2].lower(), b[2].lower())) + actions = SortedDict([ (name, (func, name, desc)) for func, name, desc in actions ]) + return actions + + def lookup_allowed(self, lookup, value): + return super(ServicoAdmin, self).lookup_allowed(lookup, value) or \ + lookup in ['casa_legislativa__municipio__uf__codigo_ibge__exact'] + + + def add_view(self, request, form_url='', extra_context=None): + id_casa = request.GET.get('id_casa', None) + + if not id_casa: + raise Http404 + + return super(ServicoAdmin, self).add_view(request, form_url, extra_context=extra_context) + + def response_add(self, request, obj): + opts = obj._meta + msg = _('The %(name)s "%(obj)s" was added successfully.') % {'name': force_unicode(opts.verbose_name), 'obj': force_unicode(obj)} + + if request.POST.has_key("_addanother"): + self.message_user(request, msg + ' ' + (_("You may add another %s below.") % force_unicode(opts.verbose_name))) + return HttpResponseRedirect(request.path + '?id_casa=%s' % (obj.casa_legislativa.id,)) + elif request.POST.has_key("_save"): + self.message_user(request, msg) + return HttpResponseRedirect(reverse('admin:servicos_casaatendida_change', args=[obj.casa_legislativa.id])) + + return super(ServicoAdmin, self).response_add(request, obj) + + def response_change(self, request, obj): + opts = obj._meta + msg = _('The %(name)s "%(obj)s" was changed successfully.') % {'name': force_unicode(opts.verbose_name), 'obj': force_unicode(obj)} + + if request.POST.has_key("_addanother"): + self.message_user(request, msg + ' ' + (_("You may add another %s below.") % force_unicode(opts.verbose_name))) + return HttpResponseRedirect("../add/?id_casa=%s" % (obj.casa_legislativa.id,)) + elif request.POST.has_key("_save"): + self.message_user(request, msg) + return HttpResponseRedirect(reverse('admin:servicos_casaatendida_change', args=[obj.casa_legislativa.id])) + + return super(ServicoAdmin, self).response_change(request, obj) + + def save_form(self, request, form, change): + obj = super( ServicoAdmin, self).save_form(request, form, change) + + if not change: + id_casa = request.GET.get('id_casa', None) + + if not id_casa: + raise Http404 + + obj.casa_legislativa = CasaAtendida.objects.get(pk=id_casa) + + return obj + +class ContatosInline(FuncionariosInline): + can_delete = False # Equipe do SEIT não pode excluir pessoas de contato + +class CasaAtendidaAdmin(admin.ModelAdmin): + actions = None + list_display = ('codigo_interlegis', 'nome', 'get_servicos',) + ordering = ['nome'] + fieldsets = ( + ('Casa legislativa', { + 'fields': (('codigo_interlegis', 'nome'), ('logradouro', 'bairro', 'municipio', 'cep'), ('email', 'pagina_web')) + }) + ,) + readonly_fields = ('nome', 'logradouro', 'bairro', 'municipio', 'cep') + inlines = (ContatosInline,) + list_filter = ('tipo', 'codigo_interlegis', 'municipio', ) + search_fields = ('search_text','cnpj', 'bairro', 'logradouro', + 'cep', 'municipio__nome', 'municipio__uf__nome', + 'municipio__codigo_ibge', 'pagina_web', 'observacoes') + + def get_servicos(self, obj): + result = [] + for servico in obj.servico_set.all(): + result.append(u"%s (%s). Contato: %s" % (servico.tipo_servico.nome, 'ativo' if servico.data_desativacao is None + else 'Desativado', servico.contato_administrativo.nome)) + + return "
    • " + "
    • ".join(result) + "
    " + get_servicos.allow_tags = True + get_servicos.short_description = u"Serviços" + + def lookup_allowed(self, lookup, value): + return super(CasaAtendidaAdmin, self).lookup_allowed(lookup, value) or \ + lookup in ['municipio__uf__codigo_ibge__exact', 'servico__tipo_servico__id__exact', ] + + def change_view(self, request, object_id, extra_context=None): + # Se a Casa ainda não é atendida, gerar o código interlegis para ela + # Assim ela passa a ser uma casa atendida + casa = CasaLegislativa.objects.get(id=object_id) + + if casa.codigo_interlegis == '': + casa.gerarCodigoInterlegis() + + return super(CasaAtendidaAdmin, self).change_view(request, object_id, extra_context=extra_context) + + def has_add_permission(self, request): + return False # Nunca é permitido inserir uma nova Casa Legislativa por aqui + + def has_delete_permission(self, request, obj=None): + return False # Nunca deletar casas por aqui \ No newline at end of file diff --git a/sigi/apps/servicos/fixtures/initial_data.json b/sigi/apps/servicos/fixtures/initial_data.json new file mode 100644 index 0000000..4671d13 --- /dev/null +++ b/sigi/apps/servicos/fixtures/initial_data.json @@ -0,0 +1 @@ +[{"pk": 1, "model": "servicos.tiposervico", "fields": {"template_email_altera": "Seu Portal Modelo foi alterado com sucesso. O endere\u00e7o de acesso \u00e9 {url} e a senha \u00e9 {senha}. Altere sua senha no primeiro acesso.", "sigla": "PM", "template_email_ativa": "Seu Portal Modelo foi ativado com sucesso. O endere\u00e7o de acesso \u00e9 {url} e a senha inicial \u00e9 {senha}. Altere sua senha no primeiro acesso.", "template_email_desativa": "Seu Portal Modelo foi desativado com sucesso. O endere\u00e7o de acesso era {url}.\r\nO motivo do cancelamento foi: {motivo}", "nome": "Portal Modelo"}}, {"pk": 2, "model": "servicos.tiposervico", "fields": {"template_email_altera": "Seu SAPL foi alterado com sucesso. O endere\u00e7o de acesso \u00e9 {url} e a senha \u00e9 {senha}. Altere sua senha no primeiro acesso.", "sigla": "SAPL", "template_email_ativa": "Seu SAPL foi ativado com sucesso. O endere\u00e7o de acesso \u00e9 {url} e a senha inicial \u00e9 {senha}. Altere sua senha no primeiro acesso.", "template_email_desativa": "Seu SAPL foi desativado com sucesso. O endere\u00e7o de acesso era {url}.\r\nO motivo do cancelamento foi: {motivo}", "nome": "Hospedagem SAPL"}}, {"pk": 3, "model": "servicos.tiposervico", "fields": {"template_email_altera": "Seu SAAP foi alterado com sucesso. O endere\u00e7o de acesso \u00e9 {url} e a senha \u00e9 {senha}. Altere sua senha no primeiro acesso.", "sigla": "SAAP", "template_email_ativa": "Seu SAAP foi ativado com sucesso. O endere\u00e7o de acesso \u00e9 {url} e a senha inicial \u00e9 {senha}. Altere sua senha no primeiro acesso.", "template_email_desativa": "Seu SAAP foi desativado com sucesso. O endere\u00e7o de acesso era {url}.\r\nO motivo do cancelamento foi: {motivo}", "nome": "Hospedagem SAAP"}}] \ No newline at end of file diff --git a/sigi/apps/servicos/management/__init__.py b/sigi/apps/servicos/management/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sigi/apps/servicos/management/commands/__init__.py b/sigi/apps/servicos/management/commands/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sigi/apps/servicos/management/commands/atualiza_uso_servico.py b/sigi/apps/servicos/management/commands/atualiza_uso_servico.py new file mode 100644 index 0000000..17e84da --- /dev/null +++ b/sigi/apps/servicos/management/commands/atualiza_uso_servico.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# +# sigi.apps.servicos.management.commands.atualiza_uso_servico +# +# Copyright (c) 2012 by Interlegis +# +# GNU General Public License (GPL) +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA. +# +from django.core.management.base import BaseCommand +from sigi.apps.servicos.models import Servico + +class Command(BaseCommand): + help = u'Atualiza a informação de data de último serviço dos serviços SEIT hospedados no Interlegis.' + def handle(self, *args, **options): + verbosity = int(options['verbosity']) + queryset = Servico.objects.exclude(url="").exclude(tipo_servico__string_pesquisa="") + for obj in queryset: + obj.atualiza_data_uso() + if ((verbosity == 1) and (obj.data_ultimo_uso is None)) or (verbosity > 1): + self.stdout.write(u"%s \t %s \t %s\n" % (obj.url, obj.data_ultimo_uso, obj.erro_atualizacao)) \ No newline at end of file diff --git a/sigi/apps/servicos/models.py b/sigi/apps/servicos/models.py new file mode 100644 index 0000000..6ab2444 --- /dev/null +++ b/sigi/apps/servicos/models.py @@ -0,0 +1,196 @@ +# -*- coding: utf-8 -*- +from django.db import models +from sigi.apps.casas.models import CasaLegislativa, Funcionario +from datetime import date +from django.core.mail import send_mail +from sigi.settings import DEFAULT_FROM_EMAIL + +class TipoServico(models.Model): + email_help = u'''Use:
    + {url} para incluir a URL do serviço,
    + {senha} para incluir a senha inicial do serviço''' + nome = models.CharField(u'Nome', max_length=60) + sigla = models.CharField(u'Sigla', max_length='12') + string_pesquisa = models.CharField(u'String de pesquisa', blank=True, max_length=200, + help_text=u'Sufixo para pesquisa RSS para averiguar a data da última atualização do serviço') + template_email_ativa = models.TextField(u'Template de email de ativação', help_text = email_help, blank=True) + template_email_altera = models.TextField(u'Template de email de alteração', help_text = email_help, blank=True) + template_email_desativa = models.TextField(u'Template de email de desativação', help_text = email_help + u'
    {motivo} para incluir o motivo da desativação do serviço', blank=True) + + @property + def qtde_casas_atendidas(self): + u"""Quantidade de casas atendidas""" + return self.servico_set.filter(data_desativacao=None).count() + + class Meta: + verbose_name = u'Tipo de serviço' + verbose_name_plural = u'Tipos de serviço' + + def __unicode__(self): + return self.nome; + +class Servico(models.Model): + casa_legislativa = models.ForeignKey(CasaLegislativa, verbose_name=u'Casa legislativa') + tipo_servico = models.ForeignKey(TipoServico, verbose_name=u'Tipo de serviço') + contato_tecnico = models.ForeignKey(Funcionario, verbose_name=u'Contato técnico', related_name='contato_tecnico') + contato_administrativo = models.ForeignKey(Funcionario, verbose_name=u'Contato administrativo', related_name='contato_administrativo') + url = models.URLField(u'URL do serviço', blank=True) + hospedagem_interlegis = models.BooleanField(u'Hospedagem no Interlegis?') + nome_servidor = models.CharField(u'Hospedado em', max_length=60, blank=True, + help_text=u'Se hospedado no Interlegis, informe o nome do servidor.
    Senão, informe o nome do provedor de serviços.') + porta_servico = models.PositiveSmallIntegerField(u'Porta de serviço (instância)', blank=True, null=True) + senha_inicial = models.CharField(u'Senha inicial', max_length=33, blank=True) + data_ativacao = models.DateField(u'Data de ativação', default=date.today) + data_alteracao = models.DateField(u'Data da última alteração', blank=True, null=True, auto_now=True) + data_desativacao = models.DateField(u'Data de desativação', blank=True, null=True) + motivo_desativacao = models.TextField(u'Motivo da desativação', blank=True) + data_ultimo_uso = models.DateField(u'Data da última utilização', blank=True, null=True, + help_text=u'Data em que o serviço foi utilizado pela Casa Legislativa pela última vez
    NÃO É ATUALIZADO AUTOMATICAMENTE!') + erro_atualizacao = models.CharField(u"Erro na atualização", blank=True, max_length=200, + help_text=u"Erro ocorrido na última tentativa de atualizar a data de último acesso") + + casa_legislativa.casa_uf_filter = True + + def atualiza_data_uso(self): + def reset(erro=u"", comment=u""): + if self.data_ultimo_uso is None and not erro: + return + self.data_ultimo_uso = None + self.erro_atualizacao = comment + '
    ' + erro + self.save() + return + + if self.tipo_servico.string_pesquisa == "": + reset() + return + + url = self.url + + if not url: + reset() + return + + if url[-1] != '/': + url += '/' + url += self.tipo_servico.string_pesquisa + + import urllib2 + from xml.dom.minidom import parseString + + try: # Captura erros de conexão + try: # Tentar conxão sem proxy + req = urllib2.urlopen(url=url, timeout=5) + except: # Tentar com proxy + proxy = urllib2.ProxyHandler() + opener = urllib2.build_opener(proxy) + req = opener.open(fullurl=url, timeout=5) + except Exception as e: + reset(erro=str(e), comment=u'Não foi possível conectar com o servidor. Pode estar fora do ar ou não ser um ' + + self.tipo_servico.nome) + return + + try: + rss = req.read() + except Exception as e: + reset(erro=str(e), comment=u'Não foi possível receber os dados do servidor. O acesso pode ter sido negado.') + return + + try: + xml = parseString(rss) + items = xml.getElementsByTagName('item') + first_item = items[0] + date_list = first_item.getElementsByTagName('dc:date') + date_item = date_list[0] + date_text = date_item.firstChild.nodeValue + self.data_ultimo_uso = date_text[:10] # Apenas YYYY-MM-DD + self.erro_atualizacao = "" + self.save() + except Exception as e: + reset(erro=str(e), comment=u'A resposta do servidor não é compatível com %s. Pode ser outro software que está sendo usado' % + self.tipo_servico.nome) + return + + def __unicode__(self): + return "%s (%s)" % (self.tipo_servico.nome, 'ativo' if self.data_desativacao is None else 'Desativado') + + def save(self, *args, **kwargs): + # Reter o objeto original para verificar mudanças + + if self.id is not None: + original = Servico.objects.get(id=self.id) + + if self.id is None: + # Novo serviço, email de ativação + subject = u'INTERLEGIS - Ativação de serviço %s' % (self.tipo_servico.nome,) + body = self.tipo_servico.template_email_ativa + elif self.data_desativacao is not None and original.data_desativacao is None: + # Serviço foi desativado. Email de desativação + subject = u'INTERLEGIS - Desativação de serviço %s' % (self.tipo_servico.nome,) + body = self.tipo_servico.template_email_desativa + elif (self.tipo_servico != original.tipo_servico or + self.contato_tecnico != original.contato_tecnico or + self.url != original.url or + self.nome_servidor != original.nome_servidor or + self.senha_inicial != original.senha_inicial): + # Serviço foi alterado + subject = u'INTERLEGIS - Alteração de serviço %s' % (self.tipo_servico.nome,) + body = self.tipo_servico.template_email_altera + else: + # Salvar o Servico + super(Servico, self).save(*args, **kwargs) + return # sem enviar email + + # Prepara e envia o email + body = body.replace('{url}', self.url) \ + .replace('{senha}', self.senha_inicial) \ + .replace('{motivo}', self.motivo_desativacao) + +# send_mail(subject, body, DEFAULT_FROM_EMAIL, \ +# (self.contato_tecnico.email,), fail_silently=False) + + # Salvar o Servico + super(Servico, self).save(*args, **kwargs) + + return + +class LogServico(models.Model): + servico = models.ForeignKey(Servico, verbose_name='Serviço') + descricao = models.CharField('Breve descrição da ação', max_length=60) + data = models.DateField('Data da ação', default=date.today) + log = models.TextField('Log da ação') + + def __unicode__(self): + return "%s (%s)" % (self.descricao, self.data) + + class Meta: + verbose_name = 'Log do serviço' + verbose_name_plural = 'Logs do serviço' + +class CasaAtendidaManager(models.Manager): + def get_query_set(self): + qs = super(CasaAtendidaManager, self).get_query_set() + qs = qs.exclude(codigo_interlegis='') + return qs + +class CasaAtendida(CasaLegislativa): + class Meta: + proxy = True + verbose_name_plural = 'Casas atendidas' + + objects = CasaAtendidaManager() + +class CasaManifesta(models.Model): + casa_legislativa = models.OneToOneField(CasaLegislativa) + data_manifestacao = models.DateTimeField(auto_now_add=True) + data_atualizacao = models.DateTimeField(auto_now=True) + informante = models.CharField(u'Nome do informante', max_length=100) + cargo = models.CharField(u'Cargo do informante', max_length=100) + +class ServicoManifesto(models.Model): + casa_manifesta = models.ForeignKey(CasaManifesta) + servico = models.ForeignKey(TipoServico) + url = models.URLField(blank=True) + hospedagem_interlegis = models.BooleanField(u'Hospedagem no Interlegis?') + + class Meta: + unique_together = ('casa_manifesta', 'servico') \ No newline at end of file diff --git a/sigi/apps/servicos/models.py~ b/sigi/apps/servicos/models.py~ new file mode 100644 index 0000000..a4d7ba0 --- /dev/null +++ b/sigi/apps/servicos/models.py~ @@ -0,0 +1,122 @@ +# -*- coding: utf-8 -*- +from django.db import models +from sigi.apps.casas.models import CasaLegislativa, Funcionario +from datetime import date +from django.core.mail import send_mail +from sigi.settings import DEFAULT_FROM_EMAIL + +class TipoServico(models.Model): + email_help = '''Use:
    + {url} para incluir a URL do serviço,
    + {senha} para incluir a senha inicial do serviço''' + nome = models.CharField('Nome', max_length=60) + sigla = models.CharField('Sigla', max_length='12') + template_email_ativa = models.TextField('Template de email de ativação', help_text = email_help, blank=True) + template_email_altera = models.TextField('Template de email de alteração', help_text = email_help, blank=True) + template_email_desativa = models.TextField('Template de email de desativação', help_text = email_help + '
    {motivo} para incluir o motivo da desativação do serviço', blank=True) + + @property + def qtde_casas_atendidas(self): + u"""Quantidade de casas atendidas""" + return self.servico_set.filter(data_desativacao=None).count() + + class Meta: + verbose_name = 'Tipo de serviço' + verbose_name_plural = 'Tipos de serviço' + + def __unicode__(self): + return self.nome; + +class Servico(models.Model): + casa_legislativa = models.ForeignKey(CasaLegislativa, verbose_name='Casa legislativa') + tipo_servico = models.ForeignKey(TipoServico, verbose_name='Tipo de serviço') + contato_tecnico = models.ForeignKey(Funcionario, verbose_name='Contato técnico', related_name='contato_tecnico') + contato_administrativo = models.ForeignKey(Funcionario, verbose_name='Contato administrativo', related_name='contato_administrativo') + url = models.URLField('URL do serviço', verify_exists=False, blank=True) + hospedagem_interlegis = models.BooleanField('Hospedagem no Interlegis?') + nome_servidor = models.CharField('Hospedado em', max_length=60, blank=True, help_text='Se hospedado no Interlegis, informe o nome do servidor.
    Senão, informe o nome do provedor de serviços.') + porta_servico = models.PositiveSmallIntegerField('Porta de serviço (instância)', blank=True, null=True) + senha_inicial = models.CharField('Senha inicial', max_length=33, blank=True) + data_ativacao = models.DateField('Data de ativação', default=date.today) + data_alteracao = models.DateField('Data da última alteração', blank=True, null=True, auto_now=True) + data_desativacao = models.DateField('Data de desativação', blank=True, null=True) + motivo_desativacao = models.TextField('Motivo da desativação', blank=True) + + casa_legislativa.casa_uf_filter = True + + def __unicode__(self): + return "%s (%s)" % (self.tipo_servico.nome, 'ativo' if self.data_desativacao is None else 'Desativado') + + def save(self, *args, **kwargs): + # Reter o objeto original para verificar mudanças + + if self.id is not None: + original = Servico.objects.get(id=self.id) + + if self.id is None: + # Novo serviço, email de ativação + subject = u'INTERLEGIS - Ativação de serviço %s' % (self.tipo_servico.nome,) + body = self.tipo_servico.template_email_ativa + elif self.data_desativacao is not None and original.data_desativacao is None: + # Serviço foi desativado. Email de desativação + subject = u'INTERLEGIS - Desativação de serviço %s' % (self.tipo_servico.nome,) + body = self.tipo_servico.template_email_desativa + elif (self.tipo_servico != original.tipo_servico or + self.contato_tecnico != original.contato_tecnico or + self.url != original.url or + self.nome_servidor != original.nome_servidor or + self.senha_inicial != original.senha_inicial): + # Serviço foi alterado + subject = u'INTERLEGIS - Alteração de serviço %s' % (self.tipo_servico.nome,) + body = self.tipo_servico.template_email_altera + else: + # Salvar o Servico + super(Servico, self).save(*args, **kwargs) + return # sem enviar email + + # Prepara e envia o email + body = body.replace('{url}', self.url) \ + .replace('{senha}', self.senha_inicial) \ + .replace('{motivo}', self.motivo_desativacao) + +# send_mail(subject, body, DEFAULT_FROM_EMAIL, \ +# (self.contato_tecnico.email,), fail_silently=False) + + # Salvar o Servico + super(Servico, self).save(*args, **kwargs) + + return + +class LogServico(models.Model): + servico = models.ForeignKey(Servico, verbose_name='Serviço') + descricao = models.CharField('Breve descrição da ação', max_length=60) + data = models.DateField('Data da ação', default=date.today) + log = models.TextField('Log da ação') + + def __unicode__(self): + return "%s (%s)" % (self.descricao, self.data) + + class Meta: + verbose_name = 'Log do serviço' + verbose_name_plural = 'Logs do serviço' + +class CasaAtendidaManager(models.Manager): + def get_query_set(self): + qs = super(CasaAtendidaManager, self).get_query_set() + qs = qs.exclude(codigo_interlegis='') + return qs + +class CasaAtendida(CasaLegislativa): + class Meta: + proxy = True + verbose_name_plural = 'Casas atendidas' + + objects = CasaAtendidaManager() + + @property + def servicos(self): + result = [] + for servico in self.servico_set.all(): + result.append(unicode(servico)) + + return ", ".join(result) \ No newline at end of file diff --git a/sigi/apps/servicos/views.py b/sigi/apps/servicos/views.py new file mode 100644 index 0000000..0e61541 --- /dev/null +++ b/sigi/apps/servicos/views.py @@ -0,0 +1,127 @@ +# -*- coding: utf-8 -*- +from django import forms +from django.http import HttpResponse +from django.utils import simplejson +from django.shortcuts import render_to_response, get_object_or_404 +from django.db.models import Q +from sigi.apps.servicos.models import TipoServico, CasaAtendida, CasaManifesta, ServicoManifesto +from sigi.apps.contatos.models import UnidadeFederativa +from sigi.apps.casas.models import CasaLegislativa +from django.template.context import RequestContext +from django.utils.encoding import force_unicode +from django.forms.forms import BoundField +from django.utils.html import conditional_escape +from django.utils.safestring import mark_safe +from django.contrib.admin.helpers import AdminForm + +def municipios_atendidos(self, servico): + municipios = [] + servico = servico.upper() + + query = Q() + + if servico != 'ALL': + for sigla in servico.split('_'): + query = query | Q(tipo_servico__sigla=sigla) + + query = Q(data_desativacao=None) & query + + for casa in CasaAtendida.objects.all(): + if casa.servico_set.filter(query).exists(): + m = casa.municipio + municipio = {'nome': casa.nome + ', ' + m.uf.sigla, + 'lat': str(m.latitude), + 'lng': str(m.longitude), + 'servicos': "
    • " + "
    • ".join([s.tipo_servico.nome for s in casa.servico_set.filter(query)]) + "
    ",} + municipios.append(municipio) + + return HttpResponse(simplejson.dumps(municipios), mimetype="application/json") + +class CasaManifestaProtoForm(forms.Form): + fieldsets = None + informante = forms.CharField(max_length=100, required=False) + cargo = forms.CharField(max_length=100, required=False) + + def set_fieldsets(self, fieldsets): + result = [] + for name, lines in fieldsets: + field_lines = [] + for line in lines: + if isinstance(line, str): + line = (line,) + field_line = [] + for field_name in line: + field = self.fields[field_name] + bf = BoundField(self, field, field_name) + field_line.append(bf) + field_lines.append(field_line) + result.append({'name': name, 'lines': field_lines},) + self.fieldsets = result + +def casa_manifesta_view(request): + if 'casa_id' in request.GET: + casa_id = request.GET.get('casa_id') + casa = get_object_or_404(CasaLegislativa, pk=casa_id) + + # Criar um formulário dinâmico + + campos = {} + fieldsets = ((None, ('informante', 'cargo'),),) + + for ts in TipoServico.objects.all(): + campos['possui_%s' % ts.pk] = forms.BooleanField(label=u'Possui o serviço de %s' % ts.nome, required=False) + campos['url_%s' % ts.pk] = forms.URLField(label=u'Informe a URL', required=False) + campos['hospedagem_interlegis_%s' % ts.pk] = forms.BooleanField(label=u'Serviço está hospedado no Interlegis', required=False) + fieldsets += ((ts.nome, ('possui_%s' % ts.pk, 'url_%s' % ts.pk, 'hospedagem_interlegis_%s' % ts.pk )),) + + CasaManifestaForm = type('', (CasaManifestaProtoForm,), campos) + + if request.method == 'POST': + cmf = CasaManifestaForm(request.POST) + if cmf.is_valid(): + thanks = [] + cm, created = CasaManifesta.objects.get_or_create(casa_legislativa=casa) + cm.informante = cmf.cleaned_data['informante'] + cm.cargo = cmf.cleaned_data['cargo'] + cm.save() + thanks.append((u'Informante', cmf.cleaned_data['informante'])) + thanks.append((u'Cargo', cmf.cleaned_data['cargo'])) + for ts in TipoServico.objects.all(): + if cmf.cleaned_data['possui_%s' % ts.pk]: + sm, created = ServicoManifesto.objects.get_or_create(casa_manifesta=cm, servico=ts) + sm.url = cmf.cleaned_data['url_%s' % ts.pk] + sm.hospedagem_interlegis = cmf.cleaned_data['hospedagem_interlegis_%s' % ts.pk] + sm.save() + thanks.append((ts.nome, u'Possui o serviço acessível em %s %s' % (sm.url, u'hospedado no Interlegis' if + sm.hospedagem_interlegis else ''))) + else: + ServicoManifesto.objects.filter(casa_manifesta=cm, servico=ts).delete() + thanks.append((ts.nome, u'Não possui')) + extra_context = {'casa': casa, 'thanks': thanks} + else: + extra_context = {'casa': casa, 'cmf': cmf} + else: + try: + cm = casa.casamanifesta + values = { + 'informante': cm.informante, + 'cargo': cm.cargo, + } + for sm in cm.servicomanifesto_set.all(): + values['possui_%s' % sm.servico.pk] = True + values['url_%s' % sm.servico.pk] = sm.url + values['hospedagem_interlegis_%s' % sm.servico.pk] = sm.hospedagem_interlegis + cmf = CasaManifestaForm(values) + except: + cmf = CasaManifestaForm() + + cmf.set_fieldsets(fieldsets) + + extra_context = {'casa': casa, 'cmf': cmf} + elif 'uf' in request.GET: + uf = request.GET.get('uf') + extra_context = {'casa_list': CasaLegislativa.objects.filter(municipio__uf__sigla=uf)} + else: + extra_context = {'uf_list': UnidadeFederativa.objects.all()} + + return render_to_response('servicos/casa_manifesta.html', extra_context, context_instance=RequestContext(request)) \ No newline at end of file diff --git a/sigi/settings.py b/sigi/settings.py index eac5743..4a2c837 100644 --- a/sigi/settings.py +++ b/sigi/settings.py @@ -40,6 +40,15 @@ INSTALLED_APPS = ( # Local apps 'sigi.apps.contatos', 'sigi.apps.servidores', + 'sigi.apps.parlamentares', + 'sigi.apps.mesas', + 'sigi.apps.casas', + 'sigi.apps.convenios', + 'sigi.apps.inventario', + + # Third-party apps + 'localflavor', + 'reporting', ) MIDDLEWARE_CLASSES = ( @@ -84,3 +93,5 @@ USE_TZ = True # https://docs.djangoproject.com/en/dev/howto/static-files/ STATIC_URL = '/static/' + +DEFAULT_FROM_EMAIL = 'sesostris@interlegis.leg.br'