From b2438f78e4d8459a6c022c79541f9863dfac4dfa Mon Sep 17 00:00:00 2001 From: julio Date: Tue, 19 May 2015 17:56:42 +0000 Subject: [PATCH] =?UTF-8?q?PRICING=20-=20Ocupa=C3=A7=C3=A3o=20|=20Antecipa?= =?UTF-8?q?=C3=A7=C3=A3o=20(bug=20#5836)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@44146 d1611594-4594-4d17-8e1d-87c2c4800839 --- ...cingOcupaAntecipaAutomaticoController.java | 56 ------------------- 1 file changed, 56 deletions(-) diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/pricing/EditarPricingOcupaAntecipaAutomaticoController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/pricing/EditarPricingOcupaAntecipaAutomaticoController.java index f69f42cee..af55854fe 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/pricing/EditarPricingOcupaAntecipaAutomaticoController.java +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/pricing/EditarPricingOcupaAntecipaAutomaticoController.java @@ -21,7 +21,6 @@ import org.zkoss.zul.Radio; import com.rjconsultores.ventaboletos.entidad.Pricing; import com.rjconsultores.ventaboletos.entidad.PricingOcupaAntecipa; -import com.rjconsultores.ventaboletos.exception.BusinessException; import com.rjconsultores.ventaboletos.service.PricingOcupaAntecipaService; import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; import com.rjconsultores.ventaboletos.web.utilerias.ConstraintPorcentagem; @@ -123,20 +122,8 @@ public class EditarPricingOcupaAntecipaAutomaticoController extends MyGenericFor } } - // private void apagarRegistros() throws BusinessException { - // for (PricingOcupaAntecipa poa : argList) { - // if ((poa.getOcupacioninicial() != null && poa.getOcupacioninicial().doubleValue() > 0) || (poa.getCantasientosmin() != null && poa.getCantasientosmin().intValue() > 0)) { - // pricingOcupaAntecipaService.borrar(poa); - // } - // } - // } - public void onClick$btnAdicionarOcupaAntecipa(Event ev) throws Exception { - // List parentList = new ArrayList(); - try { - // calculaCantDiasMax(); - // apagarRegistros(); for (PricingOcupaAntecipa poa : novaListaPricingOcupaAntecipa) { @@ -145,36 +132,8 @@ public class EditarPricingOcupaAntecipaAutomaticoController extends MyGenericFor } else { pricingOcupaAntecipaService.actualizacion(poa); } - - // lsPricingOcupaAntecipa.add(poa); } - // for (int i = 0; i < lsPricingOcupaAntecipa.size(); i++) { - // // lsPricingOcupaAntecipa.get(i).setOcupacioninicial(new BigDecimal(0)); - // if (lsPricingOcupaAntecipa.get(i).getPricingocupaantecipaId() == null) { - // pricingOcupaAntecipaService.suscribir(lsPricingOcupaAntecipa.get(i)); - // } else { - // pricingOcupaAntecipaService.actualizacion(lsPricingOcupaAntecipa.get(i)); - // } - // - // // parentList.add(lsPricingOcupaAntecipa.get(i)); - // - // for (int j = i + 1; j < lsPricingOcupaAntecipa.size(); j++) { - // PricingOcupaAntecipa p = new PricingOcupaAntecipa(); - // p.setPricingocupaantecipaId(lsPricingOcupaAntecipa.get(j).getPricingocupaantecipaId()); - // p.setCantasientosmax(lsPricingOcupaAntecipa.get(j).getCantasientosmax()); - // p.setCantasientosmin(lsPricingOcupaAntecipa.get(j).getCantasientosmin()); - // p.setCantdiasmax(lsPricingOcupaAntecipa.get(i).getCantdiasmax()); - // p.setCantdiasmin(lsPricingOcupaAntecipa.get(i).getCantdiasmin()); - // p.setOcupacionfinal(lsPricingOcupaAntecipa.get(j).getOcupacionfinal()); - // p.setOcupacioninicial(lsPricingOcupaAntecipa.get(j).getOcupacioninicial()); - // p.setPorcentaje(lsPricingOcupaAntecipa.get(j).getPorcentaje()); - // p.setPricing(pricing); - // pricingOcupaAntecipaService.suscribir(p); - // parentList.add(p); - // } - // } - parentPricingOcupaAntecipaList.setData(lsPricingOcupaAntecipa); closeWindow(); } catch (Exception e) { @@ -195,21 +154,6 @@ public class EditarPricingOcupaAntecipaAutomaticoController extends MyGenericFor } } - // private void calculaCantDiasMax() { - // Collections.sort(lsPricingOcupaAntecipa, Collections.reverseOrder(new PricingOcupaAntecipaComparator())); - // PricingOcupaAntecipa poa; - // int cantDiasMinAnterior = lsPricingOcupaAntecipa.get(0).getCantdiasmin(); - // for (int i = 0; i < lsPricingOcupaAntecipa.size(); i++) { - // poa = lsPricingOcupaAntecipa.get(i); - // if (i == 0) { - // poa.setCantdiasmax(CANTDIASMAXDEFAULT); - // } else { - // poa.setCantdiasmax(cantDiasMinAnterior - 1); - // cantDiasMinAnterior = poa.getCantdiasmin(); - // } - // } - // } - public void onClick$btnlancar(Event ev) throws Exception { PricingOcupaAntecipa poa = new PricingOcupaAntecipa(); poa.setPricing(pricing);