2315 - Permitir inativar determinados cadastros
Alteração também foi aplicada aos painéis de Cadastro de Clientes, Fornecedores e Funcionários.
This commit is contained in:
@@ -12,15 +12,16 @@ xsi:schemaLocation="http://www.davinti.com.br/vitruvio/form/panel https://bitbuc
|
||||
"nome" : "VEICULO" ,
|
||||
"sequence" : "VEICULO_SEQ" ,
|
||||
"idTabela" : "CODIGO",
|
||||
"campos" : ["CODIGO", "PLACA", "MODELO", "MARCA", "ANO", "PLACA_CARRETA" ],
|
||||
"camposTable" : ["CODIGO", "PLACA", "MODELO", "MARCA", "ANO", "PLACA_CARRETA" ]
|
||||
"campos" : ["CODIGO", "PLACA", "MODELO", "MARCA", "ANO", "PLACA_CARRETA", "INATIVO"],
|
||||
"camposTable" : ["CODIGO", "PLACA", "MODELO", "MARCA", "ANO", "PLACA_CARRETA", "INATIVO"]
|
||||
},
|
||||
"relaciona" : [ ["CODIGO","idChave","Number"] ,
|
||||
["PLACA","idPlaca","String"] ,
|
||||
["MODELO","idModelo","String"] ,
|
||||
["MARCA","idMarca","String"] ,
|
||||
["ANO","idAno","Number"],
|
||||
["PLACA_CARRETA","idCarreta","String"]
|
||||
["PLACA_CARRETA","idCarreta","String"] ,
|
||||
["INATIVO","idInativo","Boolean"]
|
||||
] ,
|
||||
"validacaoExclusao" : [ ["SELECT 0 AS CONTAR FROM VEICULO WHERE CODIGO = ", "Existem registros ligados a esta tabela."],
|
||||
["SELECT COUNT(CHAVE_VEICULO) AS CONTAR FROM CONTROLE_DESPESAS_OPERACIONAIS WHERE CHAVE_VEICULO = ", "Existem registros ligados a esta tabela."],
|
||||
@@ -105,6 +106,7 @@ xsi:schemaLocation="http://www.davinti.com.br/vitruvio/form/panel https://bitbuc
|
||||
engine.getLayout('pnlInclusao').getRootComposition().setVisible(true);
|
||||
engine.getWidgetController('btnVoltar').getButton().setVisible(true);
|
||||
engine.getField('idPesquisaLista')['setValue(java.lang.String)'](null);
|
||||
engine.getField('idInativo').setValue(false);
|
||||
engine.getField('listaPrincipal').refresh();
|
||||
engine.getField('idPesquisa')['setValue(java.lang.Object)'](null);
|
||||
engine.getField('idAno')['setValue(java.lang.String)'](null);
|
||||
@@ -223,15 +225,16 @@ xsi:schemaLocation="http://www.davinti.com.br/vitruvio/form/panel https://bitbuc
|
||||
"nome" : "VEICULO" ,
|
||||
"sequence" : "VEICULO_SEQ" ,
|
||||
"idTabela" : "CODIGO",
|
||||
"campos" : ["CODIGO", "PLACA", "MODELO", "MARCA", "ANO", "PLACA_CARRETA" ],
|
||||
"camposTable" : ["CODIGO", "PLACA", "MODELO", "MARCA", "ANO", "PLACA_CARRETA" ]
|
||||
"campos" : ["CODIGO", "PLACA", "MODELO", "MARCA", "ANO", "PLACA_CARRETA", "INATIVO" ],
|
||||
"camposTable" : ["CODIGO", "PLACA", "MODELO", "MARCA", "ANO", "PLACA_CARRETA", "INATIVO" ]
|
||||
},
|
||||
"relaciona" : [ ["CODIGO","idChave","Number"] ,
|
||||
["PLACA","idPlaca","String"] ,
|
||||
["MODELO","idModelo","String"] ,
|
||||
["MARCA","idMarca","String"] ,
|
||||
["ANO","idAno","Number"],
|
||||
["PLACA_CARRETA","idCarreta","String"]
|
||||
["PLACA_CARRETA","idCarreta","String"] ,
|
||||
["INATIVO","idInativo","Boolean"]
|
||||
] ,
|
||||
"validacaoExclusao" : [ ["SELECT 0 AS CONTAR FROM VEICULO WHERE CODIGO = ", "Existem registros ligados a esta tabela"],
|
||||
["SELECT COUNT(CHAVE_VEICULO) AS CONTAR FROM CONTROLE_DESPESAS_OPERACIONAIS WHERE CHAVE_VEICULO = ", "Existem registros ligados a esta tabela."],
|
||||
@@ -400,6 +403,7 @@ xsi:schemaLocation="http://www.davinti.com.br/vitruvio/form/panel https://bitbuc
|
||||
<TextField type="string" id="idPlaca" text-transform="uppercase" caption="Placa" maxLength="8" required="true" width="100%" expandRatio="0.15" />
|
||||
<TextField type="string" id="idCarreta" text-transform="uppercase" caption="Placa carreta" maxLength="7" required="false" width="100%" expandRatio="0.15" />
|
||||
<TextField type="string" id="idModelo" text-transform="uppercase" caption="Modelo" width="100%" expandRatio="1" />
|
||||
<CheckBox id="idInativo" caption="Inativar" type="boolean" expandRatio="0.1"></CheckBox>
|
||||
</HorizontalLayout>
|
||||
<HorizontalLayout width="70%" spacing="true" >
|
||||
<TextField type="string" id="idMarca" text-transform="uppercase" caption="Marca" width="100%" expandRatio="0.5" />
|
||||
|
||||
Reference in New Issue
Block a user