bug #5814
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@40667 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
33fd1bdba1
commit
25881237e5
|
@ -57,8 +57,8 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
|
||||||
private Radio rdVendaAntecipadaNo;
|
private Radio rdVendaAntecipadaNo;
|
||||||
private Radio rdVendeAbertoSi;
|
private Radio rdVendeAbertoSi;
|
||||||
private Radio rdVendaAbertoNao;
|
private Radio rdVendaAbertoNao;
|
||||||
|
private Radio radioSimVentaSolamenteReserva;
|
||||||
|
private Radio radioNaoVentaSolamenteReserva;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
@ -85,6 +85,12 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
|
||||||
radioNaoImprimePassagem.setSelected(Boolean.TRUE);
|
radioNaoImprimePassagem.setSelected(Boolean.TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((categoriaDescuento.getIndVentaSolamenteReserva() != null) && (categoriaDescuento.getIndVentaSolamenteReserva())) {
|
||||||
|
radioSimVentaSolamenteReserva.setSelected(Boolean.TRUE);
|
||||||
|
} else if ((categoriaDescuento.getIndVentaSolamenteReserva() != null) && (!categoriaDescuento.getIndVentaSolamenteReserva())) {
|
||||||
|
radioNaoVentaSolamenteReserva.setSelected(Boolean.TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
if ( (categoriaDescuento.getIndCuota() != null) && (categoriaDescuento.getIndCuota()) ){
|
if ( (categoriaDescuento.getIndCuota() != null) && (categoriaDescuento.getIndCuota()) ){
|
||||||
mudarCamposCuota(true);
|
mudarCamposCuota(true);
|
||||||
timeTempoPermitir.setValue(categoriaDescuento.getTiempoCuota());
|
timeTempoPermitir.setValue(categoriaDescuento.getTiempoCuota());
|
||||||
|
@ -137,6 +143,13 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
|
||||||
} else if (radioNaoImprimePassagem.isSelected()) {
|
} else if (radioNaoImprimePassagem.isSelected()) {
|
||||||
categoriaDescuento.setIndImprimeBoleto(Boolean.FALSE);
|
categoriaDescuento.setIndImprimeBoleto(Boolean.FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (radioSimVentaSolamenteReserva.isSelected()) {
|
||||||
|
categoriaDescuento.setIndVentaSolamenteReserva(Boolean.TRUE);
|
||||||
|
} else if (radioNaoVentaSolamenteReserva.isSelected()) {
|
||||||
|
categoriaDescuento.setIndVentaSolamenteReserva(Boolean.FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
if (rdVendaAntecipadaSi.isChecked()){
|
if (rdVendaAntecipadaSi.isChecked()){
|
||||||
int hora = (spnHora.getValue() == null)?0:spnHora.getValue();
|
int hora = (spnHora.getValue() == null)?0:spnHora.getValue();
|
||||||
int minuto = (spnMinuto.getValue() == null)?0:spnMinuto.getValue();
|
int minuto = (spnMinuto.getValue() == null)?0:spnMinuto.getValue();
|
||||||
|
@ -245,4 +258,5 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
|
||||||
spnMinuto.setValue(0);
|
spnMinuto.setValue(0);
|
||||||
lblMsgTiempo.setValue(Labels.getLabel("editarConfiguracionCategoriaController.lblVentaAntecipadaTempoActivar.value"));
|
lblMsgTiempo.setValue(Labels.getLabel("editarConfiguracionCategoriaController.lblVentaAntecipadaTempoActivar.value"));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -110,6 +110,10 @@ public class RenderConfiguracionCategoriaDecuento implements ListitemRenderer {
|
||||||
lc = new Listcell(horaMinuto);
|
lc = new Listcell(horaMinuto);
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell((categoria.getIndVentaSolamenteReserva() != null && categoria.getIndVentaSolamenteReserva()) ? "Sim" : "Não");
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
lstm.setAttribute("data", categoria);
|
lstm.setAttribute("data", categoria);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1270,6 +1270,10 @@ editarConfiguracionCategoriaController.msg.validacaoVentaAntecipada=Para venta a
|
||||||
editarConfiguracionCategoriaController.msg.validacaoCategoria=Es necesário informar una categoria
|
editarConfiguracionCategoriaController.msg.validacaoCategoria=Es necesário informar una categoria
|
||||||
editarConfiguracionCategoriaController.lblHeadVendAnte=V. Antic.
|
editarConfiguracionCategoriaController.lblHeadVendAnte=V. Antic.
|
||||||
editarConfiguracionCategoriaController.lblHeadTiempo=Tiempo
|
editarConfiguracionCategoriaController.lblHeadTiempo=Tiempo
|
||||||
|
editarConfiguracionCategoriaController.lblVentaSolamenteReserva.value = Venda Solamente Reserva
|
||||||
|
editarConfiguracionCategoriaController.lblSimVentaSolamenteReserva.value = Si
|
||||||
|
editarConfiguracionCategoriaController.lblNaoVentaSolamenteReserva.value = No
|
||||||
|
editarConfiguracionCategoriaController.lblHeaderVentaSolamenteReserva.value = V. So. Reserva
|
||||||
|
|
||||||
# Detener a pantalla de Búsqueda
|
# Detener a pantalla de Búsqueda
|
||||||
busquedaCatalogoDeParadaController.window.title = Parada
|
busquedaCatalogoDeParadaController.window.title = Parada
|
||||||
|
|
|
@ -1301,6 +1301,10 @@ editarConfiguracionCategoriaController.msg.validacaoVentaAntecipada=Para venda a
|
||||||
editarConfiguracionCategoriaController.msg.validacaoCategoria=É necessário informar uma categoria
|
editarConfiguracionCategoriaController.msg.validacaoCategoria=É necessário informar uma categoria
|
||||||
editarConfiguracionCategoriaController.lblHeadVendAnte=V. Antec.
|
editarConfiguracionCategoriaController.lblHeadVendAnte=V. Antec.
|
||||||
editarConfiguracionCategoriaController.lblHeadTiempo=Tempo
|
editarConfiguracionCategoriaController.lblHeadTiempo=Tempo
|
||||||
|
editarConfiguracionCategoriaController.lblVentaSolamenteReserva.value = Venda Somente Reserva
|
||||||
|
editarConfiguracionCategoriaController.lblSimVentaSolamenteReserva.value = Sim
|
||||||
|
editarConfiguracionCategoriaController.lblNaoVentaSolamenteReserva.value = Não
|
||||||
|
editarConfiguracionCategoriaController.lblHeaderVentaSolamenteReserva.value = V. So. Reserva
|
||||||
|
|
||||||
# Detener a pantalla de Pesquisa
|
# Detener a pantalla de Pesquisa
|
||||||
busquedaCatalogoDeParadaController.window.title = Localidade
|
busquedaCatalogoDeParadaController.window.title = Localidade
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<zk>
|
<zk>
|
||||||
<window id="winEditarConfiguracionCategoria" border="normal"
|
<window id="winEditarConfiguracionCategoria" border="normal"
|
||||||
apply="${editarConfiguracionCategoriaController}" height="598px"
|
apply="${editarConfiguracionCategoriaController}" height="598px"
|
||||||
width="1050px" contentStyle="overflow:auto"
|
width="1065px" contentStyle="overflow:auto"
|
||||||
title="${c:l('editarConfiguracionCategoriaController.window.title')}">
|
title="${c:l('editarConfiguracionCategoriaController.window.title')}">
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
<hbox spacing="5px" style="padding:1px" align="right">
|
||||||
|
@ -154,7 +154,7 @@
|
||||||
selected="true" />
|
selected="true" />
|
||||||
</radiogroup>
|
</radiogroup>
|
||||||
</row>
|
</row>
|
||||||
<row spans="1,3">
|
<row>
|
||||||
<label
|
<label
|
||||||
value="${c:l('editarConfiguracionCategoriaController.lblVendaAberto.value')}" />
|
value="${c:l('editarConfiguracionCategoriaController.lblVendaAberto.value')}" />
|
||||||
<radiogroup>
|
<radiogroup>
|
||||||
|
@ -163,6 +163,15 @@
|
||||||
<radio id="rdVendaAbertoNao"
|
<radio id="rdVendaAbertoNao"
|
||||||
label="Nao" />
|
label="Nao" />
|
||||||
</radiogroup>
|
</radiogroup>
|
||||||
|
|
||||||
|
<label value="${c:l('editarConfiguracionCategoriaController.lblVentaSolamenteReserva.value')}" />
|
||||||
|
<radiogroup>
|
||||||
|
<radio id="radioSimVentaSolamenteReserva"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblSimVentaSolamenteReserva.value')}" />
|
||||||
|
<radio id="radioNaoVentaSolamenteReserva"
|
||||||
|
selected="true"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblNaoVentaSolamenteReserva.value')}" />
|
||||||
|
</radiogroup>
|
||||||
</row>
|
</row>
|
||||||
<row spans="1,3" id="rowTrecho"
|
<row spans="1,3" id="rowTrecho"
|
||||||
visible="false">
|
visible="false">
|
||||||
|
@ -221,7 +230,7 @@
|
||||||
</row>
|
</row>
|
||||||
<row spans="4">
|
<row spans="4">
|
||||||
<listbox id="categoriaDescuentoList"
|
<listbox id="categoriaDescuentoList"
|
||||||
height="145px"
|
height="160px"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
multiple="false">
|
multiple="false">
|
||||||
<listhead sizable="true">
|
<listhead sizable="true">
|
||||||
|
@ -253,6 +262,8 @@
|
||||||
label="${c:l('editarConfiguracionCategoriaController.lblHeadVendAnte')}" />
|
label="${c:l('editarConfiguracionCategoriaController.lblHeadVendAnte')}" />
|
||||||
<listheader width="50px"
|
<listheader width="50px"
|
||||||
label="${c:l('editarConfiguracionCategoriaController.lblHeadTiempo')}" />
|
label="${c:l('editarConfiguracionCategoriaController.lblHeadTiempo')}" />
|
||||||
|
<listheader width="50px"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblVentaSolamenteReserva.value')}" />
|
||||||
</listhead>
|
</listhead>
|
||||||
</listbox>
|
</listbox>
|
||||||
</row>
|
</row>
|
||||||
|
|
|
@ -98,6 +98,16 @@
|
||||||
label="Nao" />
|
label="Nao" />
|
||||||
</radiogroup>
|
</radiogroup>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarConfiguracionCategoriaController.lblVentaSolamenteReserva.value')}" />
|
||||||
|
<radiogroup>
|
||||||
|
<radio id="radioSimVentaSolamenteReserva"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblSimVentaSolamenteReserva.value')}" />
|
||||||
|
<radio id="radioNaoVentaSolamenteReserva"
|
||||||
|
selected="true"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblNaoVentaSolamenteReserva.value')}" />
|
||||||
|
</radiogroup>
|
||||||
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarConfiguracionCategoriaController.lblVentaAntecipadaTempo.value')}" />
|
<label value="${c:l('editarConfiguracionCategoriaController.lblVentaAntecipadaTempo.value')}" />
|
||||||
<hbox>
|
<hbox>
|
||||||
|
|
Loading…
Reference in New Issue