1598 - Validar a partir do lançamento de registros a planilha da TLK
This commit is contained in:
@@ -146,10 +146,15 @@ xsi:schemaLocation="http://www.davinti.com.br/vitruvio/form/panel https://bitbuc
|
||||
var db = libService.loadScript('db');
|
||||
var dbVitruvio = new db('vitruvio');
|
||||
var row = dbVitruvio.queryRow(sql);
|
||||
if (row.ct == 0) {
|
||||
if (row.ct == 0 ) {
|
||||
return false;
|
||||
} else {
|
||||
return true
|
||||
if (engine.getField('idChave').getValue()) {
|
||||
engine.getField('idPesquisa')['setValue(java.lang.Object)'](null);
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -158,8 +163,8 @@ xsi:schemaLocation="http://www.davinti.com.br/vitruvio/form/panel https://bitbuc
|
||||
var config = engine.getGlobalVariable('config');
|
||||
var titulo = config['painel'].titulo;
|
||||
var icone = config['painel'].icone;
|
||||
engine.getLabel('Descricaocadastro').setValue('<img align="middle" alt="" src="'+ icone + '" width="20" /><font color="Gray" face="Calibri" size="6" > ' + titulo + '</font>');
|
||||
engine.getLabel('DescricaocadastroDentro').setValue('<img align="middle" alt="" src="'+ icone + '" width="20" /><font color="Gray" face="Calibri" size="6" > ' + titulo + '</font>');
|
||||
engine.getLabel('Descricaocadastro').setValue('<p align="center"><img align="left" alt="" src="'+ icone + '" width="25" /><p align="center"><font color="Gray" face="Calibri" size="6" > ' + titulo + '</font></p></p>');
|
||||
engine.getLabel('DescricaocadastroDentro').setValue('<p align="center"><img align="left" alt="" src="'+ icone + '" width="25" /><p align="center"><font color="Gray" face="Calibri" size="6" > ' + titulo + '</font></p></p>');
|
||||
engine.setGlobalVariable('novoRegistro', novoRegistro);
|
||||
engine.setGlobalVariable('carregarCampos', carregarCampos);
|
||||
engine.setGlobalVariable('habilitaCampos', habilitaCampos);
|
||||
@@ -185,7 +190,7 @@ xsi:schemaLocation="http://www.davinti.com.br/vitruvio/form/panel https://bitbuc
|
||||
<VerticalLayout spacing="false" margin="false" height="100%" width="100%" align="TOP_LEFT" >
|
||||
<Panel width="100%" caption="" height="100%" expandRatio="1" margin="false" id="pnlTitulo" align="TOP_LEFT" >
|
||||
<VerticalLayout width="100%" expandRatio="1" margin="true">
|
||||
<Label id="Descricaocadastro" contentMode="HTML" align="MIDDLE_CENTER"> </Label>
|
||||
<Label id="Descricaocadastro" contentMode="HTML" align="MIDDLE_CENTER" width="100%" > </Label>
|
||||
<TextField id="idPesquisaLista" caption="Digite aqui para pesquisar:" type="string" width="100%" visible="true" immediate="true">
|
||||
<events>
|
||||
<valueChange>
|
||||
@@ -334,7 +339,7 @@ xsi:schemaLocation="http://www.davinti.com.br/vitruvio/form/panel https://bitbuc
|
||||
|
||||
<Panel width="100%" height="100%" expandRatio="1" caption="" margin="false" id="pnlInclusao">
|
||||
<VerticalLayout width="100%" margin="true">
|
||||
<Label id="DescricaocadastroDentro" contentMode="HTML" align="MIDDLE_CENTER" > </Label>
|
||||
<Label id="DescricaocadastroDentro" contentMode="HTML" align="MIDDLE_CENTER" width="100%" > </Label>
|
||||
<TabLayout height="100%" width="100%">
|
||||
<Tab caption="Dados" >
|
||||
<VerticalLayout width="70%" margin="true" spacing="true">
|
||||
@@ -368,7 +373,7 @@ xsi:schemaLocation="http://www.davinti.com.br/vitruvio/form/panel https://bitbuc
|
||||
<script language="JavaScript">
|
||||
<![CDATA[
|
||||
function run() {
|
||||
engine.getGlobalVariable('fncLimpaCampos')();
|
||||
//engine.getGlobalVariable('fncLimpaCampos')();
|
||||
engine.getGlobalVariable('carregarCampos')(engine.getField('idPesquisa').getValue());
|
||||
}
|
||||
]]>
|
||||
@@ -412,7 +417,7 @@ xsi:schemaLocation="http://www.davinti.com.br/vitruvio/form/panel https://bitbuc
|
||||
]]>
|
||||
</onClickScript>
|
||||
</ButtonWidget>
|
||||
<ButtonWidget caption="Novo" id="btnNovo" expandRatio="0.2" description="Descarta os dados atuais e deixa o formulário pronto para receber um novo cadastro" align="MIDDLE_CENTER">
|
||||
<ButtonWidget caption="Novo" id="btnNovo" expandRatio="0.2" description="Novo cadastro" align="MIDDLE_CENTER">
|
||||
<onClickScript language="JavaScript">
|
||||
<![CDATA[
|
||||
function run() {
|
||||
|
||||
Reference in New Issue
Block a user