Professional Documents
Culture Documents
Process o
Process o
type="text/css"></style><title>Consulta de Processos</title></head><body
class="forena-report">
<p>Processos</p>
<div class="FrxMergeDocument">
<script>
// Seleciona o tipo de numeracao de acordo com o tamanho do parametro
informado.
jQuery(function($){
if($("#edit-params-processo").length == 21){ //formato TST
$('input:radio[name=rbConsRapidaCnjTst][value=tst]').prop('checked',
true);
}else{ //default, formato CNJ
$('input:radio[name=rbConsRapidaCnjTst][value=cnj]').prop('checked',
true);
}
});
if(this.value == 'cnj'){
$("#edit-params-processo").mask("?9999999-99.9999.9.99.9999");
$("#formatoProc").val("NNNNNNN-DD.AAAA.J.RR.OOOO");
}
if(this.value == 'tst'){
$("#edit-params-processo").mask("?99999.9999.999.99.99-9");
$("#formatoProc").val("NNNNN.AAAA.OOO.RR.SS-D");
}
});
});
<p>
<button type="button" class="btn btn-secondary" data-toggle="modal" data-
target="#modalAPI">
Acesso automatizado / API
</button>
</p>
</body></html>