Commit da96c3086f4f4e350faf085d2580f2a1fee94bfa
1 parent
4c310faa
Exists in
master
and in
21 other branches
Sprint 1 - Release 5 - refs #8526
Showing
1 changed file
with
19 additions
and
9 deletions
Show diff stats
pen_procedimento_expedir.php
... | ... | @@ -199,8 +199,10 @@ $objPaginaSEI->montarStyle(); |
199 | 199 | #selRepositorioEstruturas {position:absolute;left:0%;top:48%;width:51%;} |
200 | 200 | |
201 | 201 | #lblUnidades {position:absolute;left:0%;top:10%;} |
202 | -#txtUnidade {position:absolute;left:0%;top:48%;width:50%;border:.1em solid #666;} | |
202 | +#txtUnidade {left:0%;top:48%;width:50%;border:.1em solid #666;} | |
203 | 203 | #imgLupaUnidades {position:absolute;left:52%;top:48%;} |
204 | +.alinhamentoBotaoImput{position:absolute;left:0%;top:48%;width:85%;}; | |
205 | +#hdnIdUnidade2 {float: right;} | |
204 | 206 | |
205 | 207 | #lblProcedimentosApensados {position:absolute;left:0%;top:10%;} |
206 | 208 | #txtProcedimentoApensado {position:absolute;left:0%;top:25%;width:50%;border:.1em solid #666;} |
... | ... | @@ -224,12 +226,10 @@ var objLupaProcedimentosApensados = null; |
224 | 226 | var objJanelaExpedir = null; |
225 | 227 | var evnJanelaExpedir = null; |
226 | 228 | |
227 | -function inicializar() | |
228 | -{ | |
229 | - //avaliarPreCondicoes(); | |
230 | - | |
229 | +function inicializar() { | |
230 | + | |
231 | 231 | objLupaProcedimentosApensados = new infraLupaSelect('selProcedimentosApensados','hdnProcedimentosApensados','<?=$strLinkProcedimentosApensadosSelecao ?>'); |
232 | - | |
232 | + | |
233 | 233 | objAutoCompletarEstrutura = new infraAjaxAutoCompletar('hdnIdUnidade','txtUnidade','<?=$strLinkAjaxUnidade?>', "Nenhuma unidade foi encontrada"); |
234 | 234 | objAutoCompletarEstrutura.bolExecucaoAutomatica = false; |
235 | 235 | objAutoCompletarEstrutura.mostrarAviso = true; |
... | ... | @@ -246,8 +246,13 @@ function inicializar() |
246 | 246 | }; |
247 | 247 | |
248 | 248 | objAutoCompletarEstrutura.processarResultado = function(id,descricao,complemento){ |
249 | - window.infraAvisoCancelar(); | |
249 | + window.infraAvisoCancelar(); | |
250 | 250 | }; |
251 | + | |
252 | + $('#hdnIdUnidade2').click(function() { | |
253 | + objAutoCompletarEstrutura.executar(); | |
254 | + objAutoCompletarEstrutura.procurar(); | |
255 | + }); | |
251 | 256 | |
252 | 257 | objAutoCompletarApensados = new infraAjaxAutoCompletar('hdnIdProcedimentoApensado','txtProcedimentoApensado','<?=$strLinkAjaxProcedimentoApensado?>'); |
253 | 258 | objAutoCompletarApensados.mostrarAviso = true; |
... | ... | @@ -540,10 +545,15 @@ $objPaginaSEI->montarBarraComandosSuperior($arrComandos); |
540 | 545 | </div> |
541 | 546 | |
542 | 547 | <div id="divUnidades" class="infraAreaDados" style="height: 4.5em;"> |
543 | - <label id="lblUnidades" for="selUnidades" class="infraLabelObrigatorio">Unidade:</label> | |
544 | - <input type="text" id="txtUnidade" name="txtUnidade" class="infraText infraReadOnly" disabled="disabled" value="<?=$strNomeUnidadeDestino ?>" tabindex="<?= $objPaginaSEI->getProxTabDados() ?>" value="" /> | |
548 | + <label id="lblUnidades" for="selUnidades" class="infraLabelObrigatorio">Unidade:</label> | |
549 | + <div class="alinhamentoBotaoImput"> | |
550 | + <input type="text" id="txtUnidade" name="txtUnidade" class="infraText infraReadOnly" disabled="disabled" value="<?=$strNomeUnidadeDestino ?>" tabindex="<?= $objPaginaSEI->getProxTabDados() ?>" value="" /> | |
551 | + <button id="hdnIdUnidade2" type="button" class="infraText">Pesquisar</button> | |
552 | + </div> | |
553 | + | |
545 | 554 | <input type="hidden" id="hdnIdUnidade" name="hdnIdUnidade" class="infraText" value="<?=$numIdUnidadeDestino; ?>" /> |
546 | 555 | <?php /* ?><img id="imgLupaUnidades" src="/infra_css/imagens/lupa.gif" alt="Selecionar Unidades" title="Selecionar Unidades" class="infraImg" tabindex="<?= $objPaginaSEI->getProxTabDados() ?>" /><?php */ ?> |
556 | + | |
547 | 557 | </div> |
548 | 558 | |
549 | 559 | <div id="divProcedimentosApensados" class="infraAreaDados" style="height: 12em; display: none; "> | ... | ... |