diff --git a/03 - Painéis/cadastroMetas.xml b/03 - Painéis/cadastroMetas.xml new file mode 100644 index 0000000..22b61ec --- /dev/null +++ b/03 - Painéis/cadastroMetas.xml @@ -0,0 +1,338 @@ + + + + +
+ Indicadores + Cadastro de Metas + + + + + + + + + Etapa - ' + engine.getFormName() + ''; + var vAjuda = ''; + + var vQuery = ''; + vQuery = vQuery.concat(" select a.ajuda "); + vQuery = vQuery.concat(" from ajuda_formulario a "); + vQuery = vQuery.concat(" where a.processo = :parProcesso "); + vQuery = vQuery.concat(" and a.formulario = :parFormulario "); + + var result = vitruvio_db.queryRow(vQuery,{parProcesso: vProcesso, parFormulario: vFormulario}); + + if (result) { + vAjuda = result.get('AJUDA'); + } + + var painel = vUI.showPanel("ExibeAjudaVitruvio",null); + painel.getEngine().getLabel('etapa').setValue(vEtapa); + painel.getEngine().getField('descricao').setValue(vAjuda); + painel.getEngine().getField('descricao').setEnabled(false); + } + + function run(){ + fncExibeAjuda(); + } + ]]> + + + + + + + + + + + + + + + + + + + ID_SISTEMA_EXTERNO + RAZAO_SOCIAL + + + + + + + + + + + + 0) { + situacao = 1; + var listener = new ConfirmationBox.ConfirmationBoxListener() { + dialogEnd: function(context, action) { + if(action == ConfirmationBox.Action.YES) { + processar(); + } else { + return false; + } + } + } + ConfirmationBox.show(ConfirmationBox.DialogIcon.WARNING, 'Confirma os dados?', 'Tem certeza de que deseja sobrescrever os dados de metas?', listener, ConfirmationBox.ACTION_YES_CANCEL); + //return false; + } else { + situacao = 0; + processar(); + MessageBox.show('Informação','Registros atualizados com sucesso!'); + } + } + } + ]]> + + + + + + + + + + + + + CHAVE_META + + + + + + + + + + + + + + + + + + + + + +
+
\ No newline at end of file