From 33cc3e37f3d6989ae6b6300376e515195b420981 Mon Sep 17 00:00:00 2001 From: julio Date: Wed, 27 Nov 2013 13:14:34 +0000 Subject: [PATCH] Pricing - Obrigatoriedade de cadastro de porcentagem/valo git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@32272 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../pricing/EditarPricingController.java | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/pricing/EditarPricingController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/pricing/EditarPricingController.java index 83c0e25f7..48c82054a 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/pricing/EditarPricingController.java +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/pricing/EditarPricingController.java @@ -516,7 +516,7 @@ public class EditarPricingController extends MyGenericForwardComposer { radioImp.setChecked(true); onClick$radioImp(null); } else { - radioPor.setChecked(true); + btnNovoImporte.setVisible(false); btnApagarImporte.setVisible(false); btnModificarImporte.setVisible(false); @@ -527,7 +527,6 @@ public class EditarPricingController extends MyGenericForwardComposer { salvo = true; } else { - radioPor.setChecked(true); btnNovoImporte.setVisible(false); btnApagarImporte.setVisible(false); @@ -751,27 +750,6 @@ public class EditarPricingController extends MyGenericForwardComposer { return false; } - if (radioImp.isChecked()) { - if (pricingImporteList.getModel().getSize() == 0) { - Messagebox.show( - Labels.getLabel("editarPricingController.MSG.cantImportePricingVazio"), - Labels.getLabel("editarPricingController.window.title"), - Messagebox.OK, Messagebox.INFORMATION); - return false; - } - } else { - if ((descuentoporcsen.getValue() == null) || (descuentoporcsen.getValue().equals("")) || (descuentoporcsen.getValueDecimal().compareTo(BigDecimal.ZERO) == 0)) { - if ((pricingAsientoList.getData().length == 0) && (pricingOcupaAntecipaList.getData().length == 0)) { - Messagebox.show( - Labels.getLabel("editarPricingController.MSG.porcentajeSencilloVazio"), - Labels.getLabel("editarPricingController.window.title"), - Messagebox.OK, Messagebox.INFORMATION); - return false; - - } - } - } - if (pricingVigenciaList.getModel().getSize() == 0) { Messagebox.show( Labels.getLabel("editarPricingController.MSG.vigenciasVazio"),