13240: 11754 - Cadastro de cliente validando RG.
fixed bug#13240 dev:thiago qua:renato git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@89364 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
13785ed74c
commit
fbf5362355
|
@ -872,18 +872,26 @@ public class EditarClienteController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
List<Cliente> lsCliente = clienteService.buscarPorDocumento(txtNumRfc.getValue());
|
||||
if (lsCliente.size() > 1
|
||||
|| (lsCliente.size() == 1 && !lsCliente.get(0).getClienteId().equals(cliente.getClienteId()))) {
|
||||
Messagebox.show(Labels.getLabel("editarClienteController.MSG.documentoexiste"),
|
||||
Labels.getLabel("editarClienteController.window.title"), Messagebox.OK,
|
||||
Messagebox.EXCLAMATION);
|
||||
txtNumRfc.focus();
|
||||
return;
|
||||
List<Cliente> lsCliente = new ArrayList<Cliente>();
|
||||
if ((txtNumRfc.getText() != null && !txtNumRfc.getText().isEmpty()) && cmbTipoIdentificacion != null
|
||||
&& cmbTipoIdentificacion.getSelectedItem() != null
|
||||
&& cmbTipoIdentificacion.getSelectedItem().getValue() != null
|
||||
&& CPF.equals(cmbTipoIdentificacion.getSelectedItem().getValue().toString())){
|
||||
lsCliente = clienteService.buscarPorDocumento(txtNumRfc.getValue());
|
||||
if (lsCliente.size() > 1
|
||||
|| (lsCliente.size() == 1 && !lsCliente.get(0).getClienteId().equals(cliente.getClienteId()))) {
|
||||
Messagebox.show(Labels.getLabel("editarClienteController.MSG.documentoexiste"),
|
||||
Labels.getLabel("editarClienteController.window.title"), Messagebox.OK,
|
||||
Messagebox.EXCLAMATION);
|
||||
txtNumRfc.focus();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (txtNumRfc2.getText() != null && !txtNumRfc2.getText().isEmpty()) {
|
||||
if (txtNumRfc2.getText() != null && !txtNumRfc2.getText().isEmpty() && cmbTipoIdentificacion2 != null
|
||||
&& cmbTipoIdentificacion2.getSelectedItem() != null
|
||||
&& cmbTipoIdentificacion2.getSelectedItem().getValue() != null
|
||||
&& CPF.equals(cmbTipoIdentificacion2.getSelectedItem().getValue().toString())) {
|
||||
lsCliente = clienteService.buscarPorDocumento(txtNumRfc2.getValue());
|
||||
if (lsCliente.size() > 1
|
||||
|| (lsCliente.size() == 1 && !lsCliente.get(0).getClienteId().equals(cliente.getClienteId()))) {
|
||||
|
|
Loading…
Reference in New Issue