Merge pull request 'fixes bug#AL-2164' (!66) from AL-2164 into master
Reviewed-on: http://18.235.188.113:3000/adm/VentaBoletosAdm/pulls/66 Reviewed-by: Valdir Cordeiro <valdir.cordeiro@totvs.com.br> Reviewed-by: Wilian Domingues <wilian@rjconsultores.com.br>master 1.0.53
commit
2b583f1045
2
pom.xml
2
pom.xml
|
@ -4,7 +4,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>br.com.rjconsultores</groupId>
|
<groupId>br.com.rjconsultores</groupId>
|
||||||
<artifactId>ventaboletosadm</artifactId>
|
<artifactId>ventaboletosadm</artifactId>
|
||||||
<version>1.0.52</version>
|
<version>1.0.53</version>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
|
|
@ -634,14 +634,10 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
lsUsuarioBancario = usuarioBancarioService.obtenerTodos();
|
lsUsuarioBancario = usuarioBancarioService.obtenerTodos();
|
||||||
lsLogFiles = getLogFiles();
|
lsLogFiles = getLogFiles();
|
||||||
puntoVenta = (PuntoVenta) Executions.getCurrent().getArg().get("puntoVenta");
|
puntoVenta = (PuntoVenta) Executions.getCurrent().getArg().get("puntoVenta");
|
||||||
|
lsTodasCobrancas = cobrancaAdcService.buscarTodasAsCobrancas(puntoVenta);
|
||||||
lsTodasCobrancas = cobrancaAdcService.buscarTodasAsCobrancas(puntoVenta);
|
|
||||||
|
|
||||||
lsOrgaoConcedentes = orgaoConcedenteService.obtenerTodos();
|
lsOrgaoConcedentes = orgaoConcedenteService.obtenerTodos();
|
||||||
|
|
||||||
|
|
||||||
super.doAfterCompose(comp);
|
|
||||||
|
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
if(puntoVenta.getIndBloqueiaTipoPassagem()) {
|
if(puntoVenta.getIndBloqueiaTipoPassagem()) {
|
||||||
radIndBloquear.setSelected(Boolean.TRUE);
|
radIndBloquear.setSelected(Boolean.TRUE);
|
||||||
|
@ -657,9 +653,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
inserirItensLista(lsCategoriaBloquear);
|
inserirItensLista(lsCategoriaBloquear);
|
||||||
|
|
||||||
getTxtTaxaConvenienciaPorc().setConstraint(getCt());
|
getTxtTaxaConvenienciaPorc().setConstraint(getCt());
|
||||||
|
@ -746,6 +739,16 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
if (puntoVenta.getPuntoventaId() != null) {
|
if (puntoVenta.getPuntoventaId() != null) {
|
||||||
puntoVenta = puntoVentaService.obtenerID(puntoVenta.getPuntoventaId());
|
puntoVenta = puntoVentaService.obtenerID(puntoVenta.getPuntoventaId());
|
||||||
|
|
||||||
|
//chamadas de inicialização para evitar LazyInitializationException
|
||||||
|
puntoVenta.getLsFormaPagoDet().size();
|
||||||
|
puntoVenta.getLsParamRecoleccion().size();
|
||||||
|
puntoVenta.getLsPtovtaEmpresa().size();
|
||||||
|
puntoVenta.getPtovtaAntecipacomissaoList().size();
|
||||||
|
puntoVenta.getPtovtaEstoqueList().size();
|
||||||
|
puntoVenta.getPtovtaHorarioList().size();
|
||||||
|
puntoVenta.getLsPtovtaUsuarioBancario().size();
|
||||||
|
|
||||||
lsEmpresaComissao = empresaService.buscarNotInPuntoVtaComissao(puntoVenta);
|
lsEmpresaComissao = empresaService.buscarNotInPuntoVtaComissao(puntoVenta);
|
||||||
|
|
||||||
lsPtovtaComissao = ptovtaComissaoService.buscarByPuntaVenta(puntoVenta);
|
lsPtovtaComissao = ptovtaComissaoService.buscarByPuntaVenta(puntoVenta);
|
||||||
|
@ -771,15 +774,25 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
if (puntoVenta.getNumfax() != null) {
|
if (puntoVenta.getNumfax() != null) {
|
||||||
txtNumFax.setValue(puntoVenta.getNumfax());
|
txtNumFax.setValue(puntoVenta.getNumfax());
|
||||||
}
|
}
|
||||||
if (puntoVenta.getNumtelefonouno() != null) {
|
|
||||||
numtelefonouno.setValue(puntoVenta.getNumtelefonouno());
|
try {
|
||||||
}
|
if (puntoVenta.getNumtelefonouno() != null) {
|
||||||
if (puntoVenta.getNumtelefonodos() != null) {
|
numtelefonouno.setValue(puntoVenta.getNumtelefonouno());
|
||||||
numtelefonodos.setValue(puntoVenta.getNumtelefonodos());
|
}
|
||||||
|
|
||||||
|
if (puntoVenta.getNumtelefonodos() != null) {
|
||||||
|
numtelefonodos.setValue(puntoVenta.getNumtelefonodos());
|
||||||
|
}
|
||||||
|
}catch (WrongValueException e) {
|
||||||
|
Messagebox.show("Telefone fora do padrão",
|
||||||
|
Labels.getLabel("editarEmpresaController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (puntoVenta.getNumDoCPuntoVenta() != null) {
|
if (puntoVenta.getNumDoCPuntoVenta() != null) {
|
||||||
txtNumDoCPuntoVenta.setValue(puntoVenta.getNumDoCPuntoVenta());
|
txtNumDoCPuntoVenta.setValue(puntoVenta.getNumDoCPuntoVenta());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (puntoVenta.getRazonSocial() != null) {
|
if (puntoVenta.getRazonSocial() != null) {
|
||||||
txtRazonSocial.setValue(puntoVenta.getRazonSocial());
|
txtRazonSocial.setValue(puntoVenta.getRazonSocial());
|
||||||
}
|
}
|
||||||
|
@ -985,13 +998,13 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
puntoVenta.setTitularId(new PtovtaTitular());
|
puntoVenta.setTitularId(new PtovtaTitular());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
formaPagoList.setItemRenderer(new FormaPagoDetRender());
|
formaPagoList.setItemRenderer(new FormaPagoDetRender());
|
||||||
if (puntoVenta.getLsFormaPagoDet() == null) {
|
if (puntoVenta.getLsFormaPagoDet() == null) {
|
||||||
puntoVenta.setLsFormaPagoDet(new ArrayList<FormaPagoDet>());
|
puntoVenta.setLsFormaPagoDet(new ArrayList<FormaPagoDet>());
|
||||||
}
|
}
|
||||||
lsFormaPagoDet = puntoVenta.getLsFormaPagoDet();
|
lsFormaPagoDet = puntoVenta.getLsFormaPagoDet();
|
||||||
formaPagoList.setData(lsFormaPagoDet);
|
formaPagoList.setData(lsFormaPagoDet);
|
||||||
|
|
||||||
paramRecoleccionList.setItemRenderer(new ParamRecoleccionRender());
|
paramRecoleccionList.setItemRenderer(new ParamRecoleccionRender());
|
||||||
if (puntoVenta.getLsParamRecoleccion() == null) {
|
if (puntoVenta.getLsParamRecoleccion() == null) {
|
||||||
|
@ -1059,7 +1072,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
empresaContaBancariaList.setMultiple(true);
|
empresaContaBancariaList.setMultiple(true);
|
||||||
empresaContaBancariaList.setData(new ArrayList<EmpresaContaBancaria>(0));
|
empresaContaBancariaList.setData(new ArrayList<EmpresaContaBancaria>(0));
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("Punto de Venta: ", e);
|
log.error("Punto de Venta: ", e);
|
||||||
Messagebox.show(
|
Messagebox.show(
|
||||||
|
|
Loading…
Reference in New Issue