1 | <dtml-var standard_html_header> |
---|
2 | |
---|
3 | <a id="ajuda" href="&dtml-portal_url;/ajuda/consultas#protocolo">Ajuda</a> |
---|
4 | <h1>Protocolo Geral</h1> |
---|
5 | |
---|
6 | <dtml-if expr="incluir=='1'"> |
---|
7 | <ul> |
---|
8 | <li> |
---|
9 | <a href="&dtml-portal_url;/cadastros/protocolo/protocolo_administrativo_form">Protocolar Documento</a> |
---|
10 | <a href="&dtml-portal_url;/cadastros/protocolo/protocolo_legislativo_form">Protocolar Matéria</a> |
---|
11 | </li> |
---|
12 | <li> |
---|
13 | <a href="&dtml-portal_url;/cadastros/protocolo/protocolo_anular_form">Anular Protocolo</a> |
---|
14 | </li> |
---|
15 | <li> |
---|
16 | <a href="javascript: void(0)" onclick="window.open('&dtml-portal_url;/relatorios/pdf_etiqueta_protocolo_preparar_pysc?rad_tip_protocolo=&txt_num_protocolo=<dtml-var txt_num_protocolo>&txt_ano_protocolo=&dt_apres=&dt_apres2=&rad_tip_processo=&lst_tip_documento=&lst_tip_materia=&txt_assunto=&txa_txt_interessado=&hdn_cod_autor=', |
---|
17 | 'ProtocoloWin', 'width=384, height=420'); |
---|
18 | return false;">Imprimir Etiquetas</a> |
---|
19 | </li> |
---|
20 | </ul> |
---|
21 | </dtml-if> |
---|
22 | |
---|
23 | <fieldset> |
---|
24 | <legend>Pesquisa de Protocolo</legend> |
---|
25 | <table> |
---|
26 | <dtml-call "REQUEST.set('existe_seq_anterior', 0)"> |
---|
27 | <dtml-call "REQUEST.set('existe_seq_posterior', 0)"> |
---|
28 | <dtml-if page> |
---|
29 | <dtml-call "REQUEST.set('page', _.int(page))"> |
---|
30 | <dtml-else> |
---|
31 | <dtml-call "REQUEST.set('page', 1)"> |
---|
32 | </dtml-if> |
---|
33 | <dtml-if step> |
---|
34 | <dtml-call "REQUEST.set('step', _.int(step))"> |
---|
35 | <dtml-else> |
---|
36 | <dtml-call "REQUEST.set('step', 8)"> |
---|
37 | </dtml-if> |
---|
38 | <dtml-call "REQUEST.set('start',(page-1) * step + 1)"> |
---|
39 | |
---|
40 | <dtml-in expr="zsql.protocolo_pesquisar_zsql(tip_protocolo=rad_tip_protocolo, tip_processo=rad_tip_processo, cod_protocolo=txt_num_protocolo, ano_protocolo=txt_ano_protocolo, tip_materia=lst_tip_materia, tip_documento=lst_tip_documento, des_assunto=txt_assunto, des_interessado=txa_txt_interessado, cod_autor=hdn_cod_autor, dat_apres=dt_apres, dat_apres2=dt_apres2)" size="step" start="start" orphan="0"> |
---|
41 | |
---|
42 | <dtml-if sequence-start> |
---|
43 | <tr> |
---|
44 | <td colspan="3" class="texto"> |
---|
45 | <b>Resultado da Pesquisa: <dtml-var sequence-length> protocolo(s) encontrado(s).</b> |
---|
46 | </td> |
---|
47 | </tr> |
---|
48 | <dtml-if previous-sequence> |
---|
49 | <dtml-call "REQUEST.set('existe_seq_anterior', 1)"> |
---|
50 | </dtml-if previous-sequence> |
---|
51 | </dtml-if sequence-start> |
---|
52 | <tr> |
---|
53 | <td class="texto"> |
---|
54 | <a href="&dtml-portal_url;/consultas/protocolo/protocolo_mostrar_proc?cod_protocolo=<dtml-var cod_protocolo>"> |
---|
55 | <b>Protocolo <dtml-var cod_protocolo>/<dtml-var ano_protocolo></b></a> |
---|
56 | <dtml-if expr="ind_anulado==0"><a href="javascript: void(0)" onclick="window.open('&dtml-portal_url;/relatorios/pdf_etiqueta_protocolo_preparar_pysc?rad_tip_protocolo=&txt_num_protocolo=<dtml-var cod_protocolo>&txt_ano_protocolo=&dt_apres=&dt_apres2=&rad_tip_processo=&lst_tip_documento=&lst_tip_materia=&txt_assunto=&txa_txt_interessado=&hdn_cod_autor=', |
---|
57 | 'ProtocoloWin', 'width=384, height=219'); |
---|
58 | return false;"></dtml-if> |
---|
59 | <img style="vertical-align:middle" src="&dtml-portal_url;/imagens/label.png" alt="Etiqueta Individual" title="Etiqueta Individual" width="20" height="16" /></a> |
---|
60 | <dtml-if expr="ind_anulado==1"> <span class="anulado"> ** NULO **</span></dtml-if><br> |
---|
61 | |
---|
62 | <dtml-var txt_assunto_ementa missing><br> |
---|
63 | |
---|
64 | <b>Data Protocolo: </b> <dtml-var "pysc.iso_to_port_pysc(dat_protocolo)"> - <b>Horário: </b> <dtml-var hor_protocolo><br /> |
---|
65 | |
---|
66 | <dtml-if cod_autor> |
---|
67 | <b>Autor: </b> |
---|
68 | <dtml-in expr="zsql.autor_obter_zsql(cod_autor=cod_autor)"> |
---|
69 | |
---|
70 | <dtml-if cod_parlamentar> |
---|
71 | <dtml-in expr="zsql.parlamentar_obter_zsql(cod_parlamentar=cod_parlamentar)"> |
---|
72 | <dtml-var nom_completo><br /> |
---|
73 | </dtml-in> |
---|
74 | |
---|
75 | <dtml-elif cod_comissao> |
---|
76 | <dtml-in expr="zsql.comissao_obter_zsql(cod_comissao=cod_comissao)"> |
---|
77 | <dtml-var nom_comissao><br /> |
---|
78 | </dtml-in> |
---|
79 | <dtml-else> |
---|
80 | <dtml-var nom_autor missing null=""><br /> |
---|
81 | </dtml-if> |
---|
82 | </dtml-in> |
---|
83 | </dtml-if> |
---|
84 | |
---|
85 | <dtml-if txt_interessado> |
---|
86 | <b>Interessado: </b> |
---|
87 | <dtml-var txt_interessado> <br /> |
---|
88 | </dtml-if> |
---|
89 | |
---|
90 | <dtml-if expr="tip_processo==0"> |
---|
91 | <b>Natureza do Processo: </b>Administrativo <br /> |
---|
92 | <b>Classificação:</b> <dtml-var des_tipo_documento> |
---|
93 | <dtml-in expr="zsql.documento_administrativo_obter_zsql(num_protocolo=cod_protocolo,ano_documento=ano_protocolo)"> |
---|
94 | <dtml-if num_documento> |
---|
95 | <br /><b>Documento Vinculado:</b> <a href="&dtml-portal_url;/cadastros/documento_administrativo/documento_administrativo_mostrar_proc?cod_documento=<dtml-var cod_documento>"> |
---|
96 | <dtml-var sgl_tipo_documento> <dtml-var num_documento>/<dtml-var ano_documento></a> |
---|
97 | <dtml-else>Criar Documento |
---|
98 | </dtml-if> |
---|
99 | </dtml-in> |
---|
100 | <br /> |
---|
101 | </dtml-if> |
---|
102 | |
---|
103 | <dtml-if expr="tip_processo==1"> |
---|
104 | <b>Natureza do Processo: </b>Legislativo <br /> |
---|
105 | <b>Classificação:</b> <dtml-var des_tipo_materia> |
---|
106 | <dtml-in expr="zsql.materia_obter_zsql(num_protocolo=cod_protocolo,ano_ident_basica=ano_protocolo)"> |
---|
107 | <dtml-if num_ident_basica> |
---|
108 | <br /><b>Matéria Vinculada:</b> <a href="&dtml-portal_url;/cadastros/materia/materia_mostrar_proc?cod_materia=<dtml-var cod_materia>"> |
---|
109 | <dtml-var sgl_tipo_materia> <dtml-var num_ident_basica>/<dtml-var ano_ident_basica></a> |
---|
110 | <dtml-else>Criar Matéria |
---|
111 | </dtml-if> |
---|
112 | </dtml-in> |
---|
113 | <br /> |
---|
114 | </dtml-if> |
---|
115 | |
---|
116 | |
---|
117 | <dtml-if expr="ind_anulado==1"> |
---|
118 | <b>Anulado</b> por <dtml-var txt_user_anulacao> - IP <dtml-var txt_ip_anulacao><br> |
---|
119 | <b>Motivo Anulação:</b> <dtml-var txt_just_anulacao> |
---|
120 | </dtml-if> |
---|
121 | </td> |
---|
122 | |
---|
123 | </tr> |
---|
124 | <tr> |
---|
125 | <td colspan="3"><hr width="50%" height="1" align="center" class="fundo"></td> |
---|
126 | </tr> |
---|
127 | <dtml-if sequence-end> |
---|
128 | <dtml-if next-sequence> |
---|
129 | <dtml-call "REQUEST.set('existe_seq_posterior', 1)"> |
---|
130 | </dtml-if next-sequence> |
---|
131 | <dtml-if expr="existe_seq_anterior or existe_seq_posterior"> |
---|
132 | <tr> <td align="center" class="texto"><b> |
---|
133 | <dtml-var "sapl.pysc.PageListOutput_pysc('protocolo_pesquisar_proc', page, step, _['sequence-length'], incluir=incluir, existe_ocorrencia=existe_ocorrencia, rad_tip_protocolo=rad_tip_protocolo, rad_tip_processo=rad_tip_processo, lst_tip_materia=lst_tip_materia, lst_tip_documento=lst_tip_documento, txt_num_protocolo=txt_num_protocolo, txt_ano_protocolo=txt_ano_protocolo, txt_assunto=txt_assunto, txa_txt_interessado=txa_txt_interessado, hdn_cod_autor=hdn_cod_autor, dt_apres=dt_apres, dt_apres2=dt_apres2, btn_protocolo_pesquisar=btn_protocolo_pesquisar)"> |
---|
134 | </b></td> </tr> |
---|
135 | </dtml-if> |
---|
136 | </dtml-if sequence-end> |
---|
137 | <dtml-else> |
---|
138 | <tr> |
---|
139 | <td class="texto"><b>Resultado da Pesquisa</b></td> |
---|
140 | </tr> |
---|
141 | <tr> |
---|
142 | <td class="texto">Nenhuma ocorrência encontrada.</td> |
---|
143 | </tr> |
---|
144 | </dtml-in> |
---|
145 | </td> |
---|
146 | </tr> |
---|
147 | </table> |
---|
148 | </fieldset> |
---|
149 | <dtml-var standard_html_footer> |
---|