From a57b9348216ccd37f811b72a8ca1b96d32281846 Mon Sep 17 00:00:00 2001 From: Lucas Date: Mon, 5 Nov 2018 09:21:41 -0200 Subject: [PATCH] =?UTF-8?q?1892=20-=20Repassar=20com=20o=20Gustavo=20como?= =?UTF-8?q?=20=C3=A9=20a=20estrutura=20do=20Pentaho=20para=20integra=C3=A7?= =?UTF-8?q?=C3=B5es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 03 - Painéis/cadastroMetas.xml | 338 ++++++++++++++++++++++++++++++++ 1 file changed, 338 insertions(+) create mode 100644 03 - Painéis/cadastroMetas.xml 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