bug#15545
dev: qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@98139 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
69313f4800
commit
dce11c1bca
|
@ -8,13 +8,13 @@ import java.math.BigDecimal;
|
|||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
|
@ -168,6 +168,7 @@ public class EditarConfiguracionCategoriaController extends MyGenericForwardComp
|
|||
private Row rowTrecho;
|
||||
private Row rowTiempo;
|
||||
private Radio rdTrecho;
|
||||
private Radio rdNuncaLiberar;
|
||||
private Timebox timeTempoPermitir;
|
||||
private Tab tabEmpresa;
|
||||
private Tab tabDesconto;
|
||||
|
@ -448,7 +449,6 @@ public class EditarConfiguracionCategoriaController extends MyGenericForwardComp
|
|||
|
||||
popularCombobox(cmbIndGeneraFeriado);
|
||||
|
||||
|
||||
categoriaCtrlList = (MyListbox) Executions.getCurrent().getArg().get("categoriaCtrlList");
|
||||
categoriaCtrl = (CategoriaCtrl) Executions.getCurrent().getArg().get("categoriaCtrl");
|
||||
|
||||
|
@ -624,7 +624,6 @@ public class EditarConfiguracionCategoriaController extends MyGenericForwardComp
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
if (categoriaCtrl.getCategoriactrlId() != null) {
|
||||
for (CategoriaDescuento cd : lsCategoriaDescuento) {
|
||||
if ((cd.getCategoriadescuentoId() != null) && (cd.getActivo())) {
|
||||
|
@ -751,6 +750,7 @@ public class EditarConfiguracionCategoriaController extends MyGenericForwardComp
|
|||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
}
|
||||
|
||||
public void onClick$btnApagar(Event ev) {
|
||||
try {
|
||||
int resp = Messagebox.show(
|
||||
|
@ -907,7 +907,6 @@ public class EditarConfiguracionCategoriaController extends MyGenericForwardComp
|
|||
cDescuento.setIndExigeEnderecoPassageiro(chkExigeEnderecopasajero.isChecked());
|
||||
cDescuento.setIndtipoocupacao(chkIndtipoocupacao.isChecked());
|
||||
|
||||
|
||||
if (radioHorarioLiberacaoVendaOrigem.isChecked()) {
|
||||
cDescuento.setHorarioLiberacaoVendaPassagem(HorarioLiberacaoVendaPassagem.HORARIO_LIBERACAO_VENDA_ORIGEM);
|
||||
} else if (radioHorarioLiberacaoVendaTrecho.isChecked()) {
|
||||
|
@ -941,6 +940,19 @@ public class EditarConfiguracionCategoriaController extends MyGenericForwardComp
|
|||
cDescuento.setIndCuota(true);
|
||||
cDescuento.setIndCuotaTramo(rdTrecho.isChecked());
|
||||
cDescuento.setTiempoCuota(timeTempoPermitir.getValue());
|
||||
|
||||
boolean isNuncaLiberarCota = rdNuncaLiberar.isChecked();
|
||||
cDescuento.setIndCuotaNuncaLiberar(isNuncaLiberarCota);
|
||||
if (isNuncaLiberarCota) {
|
||||
String assentosReservados = asientosReservados.getValue();
|
||||
if (StringUtils.isBlank(assentosReservados)) {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarConfiguracionCategoriaController.msg.nuncaLiberarAssentosReservados"),
|
||||
Labels.getLabel("editarConfiguracionCategoriaController.window.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (radioCompPrecoImp.isChecked()) {
|
||||
|
@ -1632,7 +1644,4 @@ public class EditarConfiguracionCategoriaController extends MyGenericForwardComp
|
|||
this.chkExigeEmailpasajero = chkExigeEmailpasajero;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -10,6 +10,7 @@ import java.util.Calendar;
|
|||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
|
@ -68,6 +69,7 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
|
|||
private Timebox timeTempoPermitir;
|
||||
private Radio rdCuotaSi;
|
||||
private Radio rdTrecho;
|
||||
private Radio rdNuncaLiberar;
|
||||
private Combobox cmbIndGeneraFeriado;
|
||||
private Label lblMsgTiempo;
|
||||
private Spinner spnHora;
|
||||
|
@ -150,6 +152,7 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
|
|||
timeTempoPermitir.setValue(categoriaDescuento.getTiempoCuota());
|
||||
rdCuotaSi.setChecked(true);
|
||||
rdTrecho.setChecked(categoriaDescuento.getIndCuotaTramo());
|
||||
rdNuncaLiberar.setChecked(categoriaDescuento.getIndCuotaNuncaLiberar());
|
||||
}else{
|
||||
mudarCamposCuota(false);
|
||||
}
|
||||
|
@ -277,6 +280,7 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
|
|||
cmbIndGeneraFeriado.setDisabled(true);
|
||||
rdCuotaSi.setDisabled(true);
|
||||
rdTrecho.setDisabled(true);
|
||||
rdNuncaLiberar.setDisabled(true);
|
||||
rdVendaAbertoNao.setDisabled(true);
|
||||
rdVendaAntecipadaNo.setDisabled(true);
|
||||
rdVendaAntecipadaSi.setDisabled(true);
|
||||
|
@ -353,6 +357,19 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
|
|||
categoriaDescuento.setIndCuota(true);
|
||||
categoriaDescuento.setIndCuotaTramo(rdTrecho.isChecked());
|
||||
categoriaDescuento.setTiempoCuota(timeTempoPermitir.getValue());
|
||||
|
||||
boolean isNuncaLiberarCota = rdNuncaLiberar.isChecked();
|
||||
categoriaDescuento.setIndCuotaNuncaLiberar(isNuncaLiberarCota);
|
||||
if (isNuncaLiberarCota) {
|
||||
String assentosReservados = asientosReservados.getValue();
|
||||
if (StringUtils.isBlank(assentosReservados)) {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarConfiguracionCategoriaController.msg.nuncaLiberarAssentosReservados"),
|
||||
Labels.getLabel("editarConfiguracionCategoriaController.window.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(!validarCampoAssentosReservados()){
|
||||
|
|
|
@ -2187,6 +2187,8 @@ editarConfiguracionCategoriaController.lblCotaObli.value=Cota obligatória
|
|||
editarConfiguracionCategoriaController.lblTipoCota.value=Tipo de cota
|
||||
editarConfiguracionCategoriaController.lblServico.value=Servicio
|
||||
editarConfiguracionCategoriaController.lblTrecho.value=Tramo
|
||||
editarConfiguracionCategoriaController.lblNuncaLiberar.value=Nunca Liberar Reserva
|
||||
editarConfiguracionCategoriaController.msg.nuncaLiberarAssentosReservados = Debe tener asientos cuando se selecciona Nunca Liberar Reserva
|
||||
editarConfiguracionCategoriaController.lblTiempoValido.value=Tiempo Válido
|
||||
editarConfiguracionCategoriaController.lblFeriado.value=Válido
|
||||
editarConfiguracionCategoriaController.lblGridCantAutorizada.value = Cant Aut
|
||||
|
|
|
@ -2347,6 +2347,8 @@ editarConfiguracionCategoriaController.lblCotaObli.value=Cota Obrigatória
|
|||
editarConfiguracionCategoriaController.lblTipoCota.value=Tipo de Cota
|
||||
editarConfiguracionCategoriaController.lblServico.value=Serviço
|
||||
editarConfiguracionCategoriaController.lblTrecho.value=Trecho
|
||||
editarConfiguracionCategoriaController.lblNuncaLiberar.value=Nunca Liberar Reserva
|
||||
editarConfiguracionCategoriaController.msg.nuncaLiberarAssentosReservados = Deve se ter assentos, quando a opção Nunca Liberar Reserva for selecionada
|
||||
editarConfiguracionCategoriaController.lblTiempoValido.value=Tempo Válido
|
||||
editarConfiguracionCategoriaController.lblFeriado.value=Válido
|
||||
editarConfiguracionCategoriaController.lblGridCantAutorizada.value = Qtd Aut.
|
||||
|
|
|
@ -219,6 +219,8 @@
|
|||
label="${c:l('editarConfiguracionCategoriaController.lblServico.value')}" />
|
||||
<radio id="rdTrecho"
|
||||
label="${c:l('editarConfiguracionCategoriaController.lblTrecho.value')}" />
|
||||
<radio id="rdNuncaLiberar"
|
||||
label="${c:l('editarConfiguracionCategoriaController.lblNuncaLiberar.value')}" />
|
||||
</radiogroup>
|
||||
</row>
|
||||
<row spans="1,3">
|
||||
|
|
|
@ -176,6 +176,7 @@
|
|||
<radiogroup>
|
||||
<radio selected="true" label="${c:l('editarConfiguracionCategoriaController.lblServico.value')}" />
|
||||
<radio id="rdTrecho" label="${c:l('editarConfiguracionCategoriaController.lblTrecho.value')}" />
|
||||
<radio id="rdNuncaLiberar" label="${c:l('editarConfiguracionCategoriaController.lblNuncaLiberar.value')}" />
|
||||
</radiogroup>
|
||||
</row>
|
||||
<row id="rowTiempo">
|
||||
|
|
Loading…
Reference in New Issue