Foi inserido o parametro para a JCA que habilita o ponto de venda no cadastro da AIDF e que não seja obrigatorio

fixes bug#10783
dev:julio
qua:bruno.silva

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@80376 d1611594-4594-4d17-8e1d-87c2c4800839
master
walace 2018-03-28 21:10:52 +00:00
parent e462a2620e
commit a769ce2540
2 changed files with 18 additions and 12 deletions

View File

@ -156,8 +156,10 @@ public class EditarAidfController extends MyGenericForwardComposer {
} }
} }
if (ApplicationProperties.getInstance().exibirPuntoVentaCadastroAIDF()) { if (ApplicationProperties.getInstance().exibirPuntoVentaCadastroAIDF()) {
if(ApplicationProperties.getInstance().isPuntoVentaCadastroAIDFObrigatorio()){
cmbPuntoVenta.setConstraint("no empty");;
}
rowPuntoVenta.setVisible(true); rowPuntoVenta.setVisible(true);
PuntoVenta puntoVenta = aidf.getPuntoVenta(); PuntoVenta puntoVenta = aidf.getPuntoVenta();
if (puntoVenta != null) { if (puntoVenta != null) {
@ -234,7 +236,9 @@ public class EditarAidfController extends MyGenericForwardComposer {
txtFormfinal.getValue(); txtFormfinal.getValue();
txtDocFiscal.getValue(); txtDocFiscal.getValue();
if (ApplicationProperties.getInstance().exibirPuntoVentaCadastroAIDF()) { if (ApplicationProperties.getInstance().exibirPuntoVentaCadastroAIDF()) {
cmbPuntoVenta.getValue(); if(ApplicationProperties.getInstance().isPuntoVentaCadastroAIDFObrigatorio()){
cmbPuntoVenta.getValue();
}
} }
cmbTipoValidaVenta.getValue(); cmbTipoValidaVenta.getValue();
@ -259,14 +263,16 @@ public class EditarAidfController extends MyGenericForwardComposer {
especieId = aidf.getAidfEspecie().getAidfespId(); especieId = aidf.getAidfEspecie().getAidfespId();
} }
if (ApplicationProperties.getInstance().exibirPuntoVentaCadastroAIDF()) { if (ApplicationProperties.getInstance().exibirPuntoVentaCadastroAIDF()) {
PuntoVenta puntoVenta = (PuntoVenta) cmbPuntoVenta.getSelectedItem().getValue(); if(ApplicationProperties.getInstance().isPuntoVentaCadastroAIDFObrigatorio()){
aidf.setPuntoVenta(puntoVenta); PuntoVenta puntoVenta = (PuntoVenta) cmbPuntoVenta.getSelectedItem().getValue();
if (!validarDocFiscalPorEstadoAgencia(aidf.getAidfId(), especieId, txtDocFiscal.getValue(), aidf.getForminicial(), aidf.getFormfinal(), aidf.getEstado(), aidf.getPuntoVenta())) { aidf.setPuntoVenta(puntoVenta);
Messagebox.show( if (!validarDocFiscalPorEstadoAgencia(aidf.getAidfId(), especieId, txtDocFiscal.getValue(), aidf.getForminicial(), aidf.getFormfinal(), aidf.getEstado(), aidf.getPuntoVenta())) {
Labels.getLabel("editarAidfController.btnSalvar.MSG.conflitoDocFiscalEstadoAgencia"), Messagebox.show(
Labels.getLabel("editarAidfController.window.title"), Labels.getLabel("editarAidfController.btnSalvar.MSG.conflitoDocFiscalEstadoAgencia"),
Messagebox.OK, Messagebox.EXCLAMATION); Labels.getLabel("editarAidfController.window.title"),
return; Messagebox.OK, Messagebox.EXCLAMATION);
return;
}
} }
} else { } else {
if (!validarDocFiscalEstado(aidf.getAidfId(), especieId, txtDocFiscal.getValue(), aidf.getEstado())) { if (!validarDocFiscalEstado(aidf.getAidfId(), especieId, txtDocFiscal.getValue(), aidf.getEstado())) {

View File

@ -112,7 +112,7 @@
<row id="rowPuntoVenta" visible="false"> <row id="rowPuntoVenta" visible="false">
<label <label
value="${c:l('busquedaAidfController.lbPuntoVenta.value')}" /> value="${c:l('busquedaAidfController.lbPuntoVenta.value')}" />
<combobox id="cmbPuntoVenta" constraint="no empty" <combobox id="cmbPuntoVenta"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
mold="rounded" buttonVisible="true" width="70%" mold="rounded" buttonVisible="true" width="70%"
selectedItem="@{winEditarAidf$composer.aidf.puntoVenta}" /> selectedItem="@{winEditarAidf$composer.aidf.puntoVenta}" />