Consulta de base local personas y empresas
This commit is contained in:
parent
55e813ad42
commit
0c85d4700e
|
|
@ -246,10 +246,11 @@ public class PersonDetailController extends AbstractController<TcustPersonDetail
|
||||||
for (Object[] fila : temp) {
|
for (Object[] fila : temp) {
|
||||||
detail = new TcustPersonDetail();
|
detail = new TcustPersonDetail();
|
||||||
detail.setIdentification((String) fila[0]);
|
detail.setIdentification((String) fila[0]);
|
||||||
detail.setName(identificacion.length() == 13?(String) fila[4]: (String) fila[3]);
|
detail.setName(identificacion.length() == 13 ? (String) fila[4] : (String) fila[3]);
|
||||||
detail.setIdentificationcatalog(identificacion.length() == 10 ? "CED" : "RUC");
|
detail.setIdentificationcatalog(identificacion.length() == 10 ? "CED" : "RUC");
|
||||||
detail.setIdentificationcatalogcode("IDENTIFICATION");
|
detail.setIdentificationcatalogcode("IDENTIFICATION");
|
||||||
detail.setDatefrom(new Timestamp(System.currentTimeMillis()));
|
detail.setDatefrom(new Timestamp(System.currentTimeMillis()));
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
MessageHelper.setMessageError(e);
|
MessageHelper.setMessageError(e);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue