fixes bug#AL-4204
parent
577a5ba753
commit
36a3a05880
2
pom.xml
2
pom.xml
|
@ -8,7 +8,7 @@
|
|||
<packaging>war</packaging>
|
||||
|
||||
<properties>
|
||||
<modelWeb.version>1.77.0</modelWeb.version>
|
||||
<modelWeb.version>1.77.1</modelWeb.version>
|
||||
<flyway.version>1.60.0</flyway.version>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
</properties>
|
||||
|
|
|
@ -413,8 +413,8 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
|
|||
rowCustomizaRodapeCupomEmbarque.setVisible(true);
|
||||
}
|
||||
|
||||
configurarTipoIdenticacionDoc2();
|
||||
configurarTipoIdenticacionDoc1();
|
||||
configurarTipoIdenticacionDoc2();
|
||||
|
||||
}
|
||||
/**
|
||||
|
@ -893,29 +893,30 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
|
|||
}
|
||||
|
||||
public void onChange$cmbTipoIdentifacionDoc1(Event ev) {
|
||||
if(cmbTipoIdentifacionDoc1.getSelectedItem() != null && cmbTipoIdentifacionDoc1.getSelectedItem().getValue() != null) {
|
||||
TipoIdentificacionDoc tipoIdentificacionDoc = (TipoIdentificacionDoc) cmbTipoIdentifacionDoc1.getSelectedItem().getValue();
|
||||
cmbTipoIdentifacionDoc2.setValue("");;
|
||||
cmbTipoIdentifacionDoc2.setModel(new BindingListModelList(Arrays.asList(TipoIdentificacionDoc.buscarComboSegundoTipoDocumentoRemovendoDocumentoSelecionadoTipoIdentificacionDoc(tipoIdentificacionDoc)), false));
|
||||
|
||||
}
|
||||
setTipoIdenticacionDoc2();
|
||||
}
|
||||
|
||||
private void configurarTipoIdenticacionDoc2() {
|
||||
|
||||
cmbTipoIdentifacionDoc2.setModel(new BindingListModelList(Arrays.asList(TipoIdentificacionDoc.getTodos()), false));
|
||||
|
||||
if(categoriaDescuento.getTipoIdentificacionDoc2() != null) {
|
||||
cmbTipoIdentifacionDoc2.setValue(TipoIdentificacionDoc.getDescricao(categoriaDescuento.getTipoIdentificacionDoc2().byteValue()));
|
||||
}
|
||||
|
||||
if(chkExigedoc2pasajero.isChecked()) {
|
||||
rowDocumentoPreSelecionadoDOC2.setVisible(true);
|
||||
setTipoIdenticacionDoc2();
|
||||
}else {
|
||||
rowDocumentoPreSelecionadoDOC2.setVisible(false);
|
||||
}
|
||||
}
|
||||
private void setTipoIdenticacionDoc2() {
|
||||
|
||||
if(cmbTipoIdentifacionDoc1.getSelectedItem() != null && cmbTipoIdentifacionDoc1.getSelectedItem().getValue() != null || (cmbTipoIdentifacionDoc1.getValue() != null && !cmbTipoIdentifacionDoc1.getValue().isEmpty())) {
|
||||
TipoIdentificacionDoc tipoIdentificacionDoc = TipoIdentificacionDoc.getTipo(cmbTipoIdentifacionDoc1.getValue());
|
||||
cmbTipoIdentifacionDoc2.setModel(new BindingListModelList(Arrays.asList(TipoIdentificacionDoc.buscarComboSegundoTipoDocumentoRemovendoDocumentoSelecionadoTipoIdentificacionDoc(tipoIdentificacionDoc)), false));
|
||||
|
||||
}
|
||||
}
|
||||
private void configurarTipoIdenticacionDoc1() {
|
||||
|
||||
cmbTipoIdentifacionDoc1.setModel(new BindingListModelList(Arrays.asList(TipoIdentificacionDoc.getTodos()), false));
|
||||
|
|
Loading…
Reference in New Issue