lucas.taia 2013-11-26 13:18:36 +00:00
parent 5b28859bea
commit c694d6eb40
2 changed files with 36 additions and 19 deletions

View File

@ -54,22 +54,44 @@ public class EditarPricingOcupaAntecipaController extends MyGenericForwardCompos
} }
public void onClick$btnAdicionarOcupaAntecipa(Event ev) throws Exception { public void onClick$btnAdicionarOcupaAntecipa(Event ev) throws Exception {
if ((cantasientosmin.getValue() != null || cantasientosmax.getValue() != null)
&& (ocupacioninicial.getValue() != null || ocupacionfinal.getValue() != null)){
Messagebox.show(Labels.getLabel("editarPricingController.ocupacionErrada.centoPorCant"),
Labels.getLabel("editarPricingController.windowOcupacion.title"),
Messagebox.OK, Messagebox.EXCLAMATION);
// if ((cantasientosmin.getValue() != null || cantasientosmax.getValue() != null) return;
// && (ocupacioninicial.getValue() != null || ocupacionfinal.getValue() != null)){ }
// Messagebox.show(Labels.getLabel("editarPricingController.ocupacionErrada.centoPorCant"),
// Labels.getLabel("editarPricingController.windowOcupacion.title"), if ((cantasientosmin.getValue() == null && cantasientosmax.getValue() == null)
// Messagebox.OK, Messagebox.EXCLAMATION); && (cantasientosmin.getValue() == null && cantasientosmax.getValue() == null)
// && (ocupacioninicial.getValue() == null && ocupacionfinal.getValue() == null)
// return; && (ocupacioninicial.getValue() == null && ocupacionfinal.getValue() == null)
// } && (cantdiasmin.getValue() == null && cantdiasmax.getValue() == null)
// && (cantdiasmin.getValue() == null && cantdiasmax.getValue() == null)) {
// Messagebox.show(Labels.getLabel("editarPricingController.ocupacionErrada.ocAnt"),
// if ((cantasientosmin.getValue() != null && cantasientosmax.getValue() != null) Labels.getLabel("editarPricingController.windowOcupacion.title"),
// || (cantdiasmin.getValue() != null && cantdiasmax.getValue() != null)) { Messagebox.OK, Messagebox.EXCLAMATION);
return;
}
if ((cantasientosmin.getValue() == null && cantasientosmax.getValue() != null)
|| (cantasientosmin.getValue() != null && cantasientosmax.getValue() == null)
|| (ocupacioninicial.getValue() == null && ocupacionfinal.getValue() != null)
|| (ocupacioninicial.getValue() != null && ocupacionfinal.getValue() == null)
|| (cantdiasmin.getValue() == null && cantdiasmax.getValue() != null)
|| (cantdiasmin.getValue() != null && cantdiasmax.getValue() == null)) {
Messagebox.show(Labels.getLabel("editarPricingController.ocupacionErrada.MinMax"),
Labels.getLabel("editarPricingController.windowOcupacion.title"),
Messagebox.OK, Messagebox.EXCLAMATION);
return;
}
if (porcentaje.getValueDecimal() != null && importe.getValueDecimal() != null) { if (porcentaje.getValueDecimal() != null && importe.getValueDecimal() != null) {
Messagebox.show(Labels.getLabel("editarPricingController.ocupacionErrada.centoDin"), Messagebox.show(Labels.getLabel("editarPricingController.ocupacionErrada.centoDin"),
Labels.getLabel("editarPricingController.windowOcupacion.title"), Labels.getLabel("editarPricingController.windowOcupacion.title"),
Messagebox.OK, Messagebox.EXCLAMATION); Messagebox.OK, Messagebox.EXCLAMATION);
@ -96,12 +118,6 @@ public class EditarPricingOcupaAntecipaController extends MyGenericForwardCompos
} }
} }
} }
// } else {
// Messagebox.show(Labels.getLabel("editarPricingController.ocupacionErrada.ocAnt"),
// Labels.getLabel("editarPricingController.windowOcupacion.title"),
// Messagebox.OK, Messagebox.EXCLAMATION);
// }
} }
public void onClick$btnRemoverOcupaAntecipa(Event ev) { public void onClick$btnRemoverOcupaAntecipa(Event ev) {

View File

@ -2166,6 +2166,7 @@ editarPricingController.ocupacionErrada.value = Ocupação mínima maior que ocu
editarPricingController.ocupacionErrada.centoDin = Deve ser inserido a quantidade em porcentagem % ou em R$. editarPricingController.ocupacionErrada.centoDin = Deve ser inserido a quantidade em porcentagem % ou em R$.
editarPricingController.ocupacionErrada.centoPorCant = Informe ou a quantiade poltronas ou a porcentagem de ocupação editarPricingController.ocupacionErrada.centoPorCant = Informe ou a quantiade poltronas ou a porcentagem de ocupação
editarPricingController.ocupacionErrada.ocAnt = Deve ser inserido ocupação e/ou os dias de antecipação. editarPricingController.ocupacionErrada.ocAnt = Deve ser inserido ocupação e/ou os dias de antecipação.
editarPricingController.ocupacionErrada.MinMax = Deve ser inserido Máximo/Inicio e Máximo/Final.
editarPricingController.ocupacionErrada = Ocupação informada se sobrepõe com outra já existente. editarPricingController.ocupacionErrada = Ocupação informada se sobrepõe com outra já existente.
editarPricingController.anticipacionPorcentaje.value = Porcentagem maior que 100% editarPricingController.anticipacionPorcentaje.value = Porcentagem maior que 100%
editarPricingController.anticipacionErrada.value = Antecipação mínima maior que ocupação máxima. editarPricingController.anticipacionErrada.value = Antecipação mínima maior que ocupação máxima.