mirror of https://github.com/interlegis/sapl.git
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							280 lines
						
					
					
						
							13 KiB
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							280 lines
						
					
					
						
							13 KiB
						
					
					
				| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt"><head> | |
|     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
|     <title>Sistema de Apoio ao Processo Legislativo</title> | |
|     <link href="http://sapl3.interlegis.leg.br/generico/estilos.css" media="all" rel="stylesheet" type="text/css"> | |
| <link href="http://sapl3.interlegis.leg.br/generico/responsive_grid.css" media="all" rel="stylesheet" type="text/css"> | |
| <style type="text/css" media="screen and (max-width: 980px) ">@import url(http://sapl3.interlegis.leg.br/generico/maxwidth980.css)</style> | |
| <style type="text/css" media="screen and (max-width: 650px) ">@import url(http://sapl3.interlegis.leg.br/generico/maxwidth650.css)</style> | |
| <style type="text/css" media="screen and (max-width: 480px) ">@import url(http://sapl3.interlegis.leg.br/generico/maxwidth480.css)</style> | |
| <style type="text/css">@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic)</style> | |
| <link href="http://sapl3.interlegis.leg.br/generico/pform.css" media="all" rel="stylesheet" type="text/css"> | |
| <style type="text/css">@import url(http://sapl3.interlegis.leg.br/generico/datepick.css)</style> | |
| <style type="text/css">@import url(http://sapl3.interlegis.leg.br/generico/jquery.fancybox.css)</style> | |
| 
 | |
| 
 | |
| </head> | |
| <body data-pinterest-extension-installed="ff1.35"> | |
| <script type="text/javascript" language="Javascript" src="javascript/data_validar_jvsc"></script> | |
| <script type="text/javascript" language="Javascript"> | |
| 
 | |
|     function campos_criticar(){ | |
| 
 | |
|         var form = document.votacao_form; | |
|         var regexp_digitos = /\D+/; | |
|         var tipo_votacao = "1"; | |
| 
 | |
|         if (form.rad_votacao_branco.checked == true) { | |
|             form.submit(); | |
|         } | |
| 
 | |
|         if ((tipo_votacao == 1) || (tipo_votacao == 3)) { | |
|             if (form.txt_votos_sim.value == "" && form.rad_votacao_branco.checked == false) { | |
|                 alert("O numero de votos deve ser preenchido!"); | |
|                 form.txt_votos_sim.focus(); | |
|                 return false; | |
|             } | |
| 
 | |
|             if (form.txt_votos_nao.value == "" && form.rad_votacao_branco.checked == false) { | |
|                 alert("O numero de votos deve ser preenchido!"); | |
|                 form.txt_votos_nao.focus(); | |
|                 return false; | |
|             } | |
| 
 | |
|             if (form.txt_votos_abstencao.value == "" && form.rad_votacao_branco.checked == false) { | |
|                 alert("O numero de votos deve ser preenchido!"); | |
|                 form.txt_votos_abstencao.focus(); | |
|                 return false; | |
|             } | |
| 
 | |
|             if (form.txt_nao_votou.value == "" && form.rad_votacao_branco.checked == false) { | |
|                 alert("O numero de votos deve ser preenchido!"); | |
|                 form.txt_nao_votou.focus(); | |
|                 return false; | |
|             } | |
| 
 | |
|       if (tipo_votacao == 1) { | |
|                if (!(form.rad_ind_votacao_presidente[0].checked || form.rad_ind_votacao_presidente[1].checked)){ | |
|                   alert("Indique se o total de votos inclui o voto do Presidente!"); | |
|                   form.rad_ind_votacao_presidente[0].focus(); | |
|                   return false; | |
|                } | |
| 
 | |
|          /* ----------------------------------------------------------------------------------- */ | |
|                /* valida quorum: ...[0].checked --> opção: Não - presidente NÃO participa da votação, | |
|                                       ...[1].checked --> opção: Sim - presidente PARTICIPA da votação */ | |
|                /*                                                                                     */ | |
|                /* c/ o voto do presidente --> quorum de presentes = quantidade de votantes            */ | |
|                /* s/ o voto do presidente --> quorum de presentes = quantidade de votantes - 1        */ | |
|                /* ----------------------------------------------------------------------------------- */ | |
| 
 | |
|                var qtv = 0; | |
|                var qp  = 0; | |
|                var qvs = parseInt(form.txt_votos_sim.value,10); | |
|                var qvn = parseInt(form.txt_votos_nao.value,10); | |
|                var qab = parseInt(form.txt_votos_abstencao.value,10); | |
|                var qnv = parseInt(form.txt_nao_votou.value,10); | |
|                var quo = parseInt(form.hdn_nro_presentes.value,10); | |
|                qp = quo; | |
|                qtv = qvs + qvn + qnv + qab; | |
|                if (form.rad_ind_votacao_presidente[0].checked) { | |
|                   qp = quo - 1; | |
|                } | |
|          if (qtv != qp) { | |
|                   alert("O total de votos não confere com o quorum de presentes na Sessão Plenária. Reinforme corretamente!"); | |
|                   form.rad_ind_votacao_presidente[0].focus(); | |
|                   return false; | |
|                 } | |
|                 if (qp == quo) { | |
|                    form.rad_ind_votacao_presidente[1].focus(); | |
|                 } | |
| /*            form.submit();                                             */ | |
|             } | |
| //            if (tipo_votacao == 3) { | |
| //               var qtv = 0 | |
| //               var qvs = parseInt(form.txt_votos_sim.value,10); | |
| //               var qvn = parseInt(form.txt_votos_nao.value,10); | |
| //               var qva = parseInt(form.txt_votos_abstencao.value,10); | |
| //               var quo = parseInt(form.hdn_nro_presentes.value,10); | |
| //               qtv = qvs + qvn + qva; | |
| //               if (quo != qtv) { | |
| //                  alert("Votos indicados não confere com o quorum de presentes na sessão. Reinforme! - quorum= " + quo + " - Sim= " + qvs + " - Não= " + qvn + " - Abstenção= " + qva); | |
| //                  form.txt_votos_sim.focus(); | |
| //                  return false; | |
| //               } | |
| //            } | |
|         } | |
| 
 | |
|         if (form.lst_tip_resultado.selectedIndex == 0 && form.rad_votacao_branco.checked == false){ | |
|             alert("Escolha o tipo do resultado da votação!"); | |
|             form.lst_tip_resultado.focus(); | |
|             return false; | |
|         } | |
|         form.submit(); | |
|     } | |
| 
 | |
|     function submeter(endereco){ | |
| 
 | |
|             var form = document.votacao_form; | |
|             endereco += '?cod_sessao_plen=263'; | |
|             endereco += '&cod_sessao_leg=59'; | |
|             endereco += '&cod_num_legislatura=14'; | |
|             endereco += '&dat_sessao=12/02/2015'; | |
|             endereco += '&tip_sessao=1'; | |
| 
 | |
|             if (form.hdn_cod_sessao_plen.value!=""){ | |
|                 location.href = endereco; | |
|             } | |
|             return; | |
|      } | |
| 
 | |
|      function votacao_em_branco(tip_votacao){ | |
| 
 | |
|             var form = document.votacao_form; | |
| 
 | |
|             if (tip_votacao == 1) { | |
|                 if (form.rad_votacao_branco.checked == true) { | |
|                   alert("Caso exista alguma votação cadastrada ela será perdida!"); | |
|                   form.txt_votos_sim.disabled=1; | |
|                     form.txt_votos_nao.disabled=1; | |
|                     form.txt_votos_abstencao.disabled=1; | |
|                     form.txt_nao_votou.disabled=1; | |
|                     form.lst_tip_resultado.disabled=1; | |
|                     } | |
|                 else { | |
|                   form.txt_votos_sim.disabled=0; | |
|                     form.txt_votos_nao.disabled=0; | |
|                     form.txt_votos_abstencao.disabled=0; | |
|                     form.txt_nao_votou.disabled=0; | |
|                     form.lst_tip_resultado.disabled=0; | |
|                     } | |
|                 } | |
|             if (tip_votacao == 2) { | |
|                 if (form.rad_votacao_branco.checked == true) { | |
|                   alert("Caso exista alguma votação cadastrada ela será perdida!"); | |
|                   form.lst_voto_parlamentar.disabled=1; | |
|                   form.lst_tip_resultado.disabled=1; | |
|                   } | |
|                 else { | |
|                     form.lst_voto_parlamentar.disabled=0; | |
|                     form.lst_tip_resultado.disabled=0; | |
|                     } | |
|                 } | |
|             if (tip_votacao == 3) { | |
|                 if (form.rad_votacao_branco.checked == true) { | |
|                         alert("Caso exista alguma votação cadastrada ela será perdida!"); | |
|                   form.txt_votos_sim.disabled=1; | |
|                     form.txt_votos_nao.disabled=1; | |
|                     form.txt_votos_abstencao.disabled=1; | |
|                     form.txt_nao_votou.disabled=1; | |
|                     form.lst_tip_resultado.disabled=1; | |
|                     } | |
|                 else { | |
|                     form.txt_votos_sim.disabled=0; | |
|                     form.txt_votos_nao.disabled=0; | |
|                     form.txt_votos_abstencao.disabled=0; | |
|                     form.txt_nao_votou.disabled=0; | |
|                     form.lst_tip_resultado.disabled=0; | |
|                     } | |
|                 } | |
|             return; | |
|      } | |
| 
 | |
|     function reloadParentAndClose() | |
|     { | |
|     parent.jQuery.fancybox.close(); | |
|     } | |
| 
 | |
| </script> | |
| 
 | |
| <div style="margin: 10px;"> | |
| <a id="ajuda" href="http://sapl3.interlegis.leg.br/ajuda/sessao_plenaria_votacao">Ajuda</a> | |
| <h1 class="firstHeading">Votação</h1> | |
| <h3 align="center">                  1ª Reunião Ordinária da 3ª Sessão Legislativa da 14ª Legislatura <br>12 de Fevereiro de 2015 (Quinta-feira) | |
| 
 | |
| </h3> | |
| 
 | |
| <form action="votacao_salvar_proc" name="votacao_form" method="post" enctype="multipart/form-data"> | |
| <input name="hdn_url" value="javascript:reloadParentAndClose()" type="hidden"> | |
| <input name="hdn_cod_sessao_plen" value="263" type="hidden"> | |
| <input name="hdn_cod_sessao_leg" value="59" type="hidden"> | |
| <input name="hdn_dat_sessao" value="12/02/2015" type="hidden"> | |
| <input name="hdn_num_legislatura" value="14" type="hidden"> | |
| <input name="hdn_cod_ordem" value="637" type="hidden"> | |
| <input name="hdn_cod_materia" value="1030" type="hidden"> | |
| <input name="hdn_tip_votacao" value="1" type="hidden"> | |
| <input name="hdn_cod_votacao" value="" type="hidden"> | |
| <input name="hdn_tip_sessao" value="1" type="hidden"> | |
|     <input name="hdn_nro_presentes" value="10" type="hidden"> | |
| 
 | |
|     <fieldset> | |
|         <legend>Votação Simbólica</legend> | |
|         <table width="100%"> | |
|             <tbody><tr> | |
|                 <td class="texto" colspan="4"> | |
|                                             Matéria: <b>IND 90 2009 - Indicação</b><br> | |
|                         Ementa: <b>INDICAÇÃO<b> | |
|                                     </b></b></td> | |
|             </tr> | |
|             <tr> | |
|                 <td> | |
|                     <label for="txt_num_votos_sim">Sim: </label><span class="campoObrigatorio"> </span> | |
|                     <input name="txt_num_votos_sim" id="txt_num_votos_sim" value="" size="3" maxlength="3" type="text"> | |
|                 </td> | |
|                 <td> | |
|                     <label for="txt_num_votos_nao">Não: </label><span class="campoObrigatorio"> </span> | |
|                     <input name="txt_num_votos_nao" id="txt_num_votos_nao" value="" size="3" maxlength="3" type="text"> | |
|                 </td> | |
|                 <td> | |
|                     <label for="txt_num_abstencao">Abstenções: </label><span class="campoObrigatorio"> </span> | |
|                     <input name="txt_num_abstencao" id="txt_num_abstencao" value="" size="3" maxlength="3" type="text"> | |
|                 </td> | |
|                 <td> | |
|                     <label for="txt_nao_votou">Não Votou: </label><span class="campoObrigatorio"> </span> | |
|                     <input name="txt_nao_votou" id="txt_nao_votou" value="" size="3" maxlength="3" type="text"> | |
|                 </td> | |
|             </tr> | |
|             <tr> | |
|                 <td colspan="1"> | |
|                     <label for="rad_votacao_branco">Anular Votação</label> | |
|                     <input name="rad_votacao_branco" onchange="javascript:votacao_em_branco(tip_votacao=1)" type="checkbox"> | |
|                 </td> | |
| 
 | |
|                 <td colspan="3"><label for="rad_ind_votacao_presidente">A totalização inclui o voto do Presidente: ?</label><span class="campoObrigatorio"> </span> | |
|                                             <input name="rad_ind_votacao_presidente" value="0" id="rad_ind_votacao_presidente0" checked="1" type="radio"> | |
|                     <span class="texto">Não</span> | |
|                                             <input name="rad_ind_votacao_presidente" value="1" id="rad_ind_votacao_presidente1" type="radio"> | |
|                     <span class="texto">Sim</span> | |
|                     </td> | |
|             </tr> | |
|             <tr> | |
|                 <td colspan="4"> | |
|                     <label for="lst_tip_resultado_votacao">Resultado da Votação </label><span class="campoObrigatorio"> </span> | |
|                     <select name="lst_tip_resultado_votacao" size="1"> | |
|                         <option value="-1">Selecione </option> | |
|                                                     <option value="2">Aprovado por Maioria Absoluta | |
|                         </option> | |
|                                                     <option value="4">Aprovado por Maioria Simples | |
|                         </option> | |
|                                                     <option value="1">Aprovado por unanimidade | |
|                         </option> | |
|                                                     <option value="3">Rejeitado | |
|                         </option> | |
|                                             </select> | |
|                 </td> | |
|             </tr> | |
|             <tr> | |
|                 <td colspan="4"> | |
|                     <label for="txa_txt_observacao">Observações</label> | |
|                     <textarea name="txa_txt_observacao" cols="60"></textarea> | |
|                 </td> | |
|             </tr> | |
|         </tbody></table> | |
|         <div style="text-align: center"> | |
|             <input class="botao" name="button" value="Salvar" onclick="campos_criticar()" type="button"> | |
|                <input class="botao" name="btn_fechar" value="Fechar" onclick="reloadParentAndClose();" type="button"> | |
|         </div> | |
|     </fieldset> | |
| </form> | |
| </div> | |
| 
 | |
| </body></html>
 | |
| 
 |