fixes bug#6255
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@43620 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
589f89e8e5
commit
8012c91b3a
|
@ -68,17 +68,24 @@ public class ImportarPlanilhaController extends MyGenericForwardComposer {
|
|||
|
||||
public void onClick$btnWs(Event ev) throws InterruptedException {
|
||||
List<PuntoVenta> listpv = puntoVentaService.obtenerTodos();
|
||||
log.info("qtd age:"+listpv.size());
|
||||
|
||||
int i = 1;
|
||||
for (PuntoVenta pv : listpv) {
|
||||
|
||||
log.info("pos:"+i++);
|
||||
log.info(pv.getPuntoventaId() + " - " + pv.getNumPuntoVenta());
|
||||
|
||||
try {
|
||||
atualizarEntidade(pv);
|
||||
} catch (IntegracionException e) {
|
||||
log.error("erro integra pv"+pv.getPuntoventaId(),e);
|
||||
log.error("erro integra pv: "+pv.getPuntoventaId(),e);
|
||||
} catch (ValidacionCampoException e) {
|
||||
log.error("erro valida pv"+pv.getPuntoventaId(),e);
|
||||
log.error("erro valida pv: "+pv.getPuntoventaId(),e);
|
||||
}
|
||||
}
|
||||
log.info("Fim importacao WS. Pos:"+i);
|
||||
|
||||
}
|
||||
public synchronized void onUpload(UploadEvent event) throws IOException, InterruptedException {
|
||||
|
||||
|
|
Loading…
Reference in New Issue