fixes bug#24439
qua: dev: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@112546 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
540cfc33dc
commit
503991e271
|
@ -38,6 +38,7 @@ import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConfTotemVentaRapidaOrigemDestino;
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConfTotemVentaRapidaOrigemDestino;
|
||||||
|
@ -86,6 +87,7 @@ public class BusquedaConfTotemController extends MyGenericForwardComposer {
|
||||||
private transient PagedListWrapper<ConfTotemVentaRapida> plwOrigensDestinosVentaRapida;
|
private transient PagedListWrapper<ConfTotemVentaRapida> plwOrigensDestinosVentaRapida;
|
||||||
private MyListbox localidadesOrigemList;
|
private MyListbox localidadesOrigemList;
|
||||||
private Paging pagingOrigensDestinosVentaRapida;
|
private Paging pagingOrigensDestinosVentaRapida;
|
||||||
|
private MyTextboxDecimal txtPrecioParcelaMinima;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
@ -145,7 +147,7 @@ public class BusquedaConfTotemController extends MyGenericForwardComposer {
|
||||||
chktListarPassageiroUltimaPoltrona.setChecked(StringUtils.isBlank(map.get("listarPassageiro")) ? false : Boolean.parseBoolean(map.get("listarPassageiro")));
|
chktListarPassageiroUltimaPoltrona.setChecked(StringUtils.isBlank(map.get("listarPassageiro")) ? false : Boolean.parseBoolean(map.get("listarPassageiro")));
|
||||||
chkPermitirVendaRapida.setChecked(StringUtils.isBlank(map.get("isVendaRapidaHabilitado")) ? false : Boolean.parseBoolean(map.get("isVendaRapidaHabilitado")));
|
chkPermitirVendaRapida.setChecked(StringUtils.isBlank(map.get("isVendaRapidaHabilitado")) ? false : Boolean.parseBoolean(map.get("isVendaRapidaHabilitado")));
|
||||||
// cantCorrida.setValue(StringUtils.isBlank(map.get("cantCorrida")) ? 0 : Integer.parseInt(map.get("cantCorrida")));
|
// cantCorrida.setValue(StringUtils.isBlank(map.get("cantCorrida")) ? 0 : Integer.parseInt(map.get("cantCorrida")));
|
||||||
|
txtPrecioParcelaMinima.setValue(StringUtils.isBlank(map.get("valorParcelaMinima")) ? "0" : map.get("valorParcelaMinima"));
|
||||||
|
|
||||||
empresaList.setData(lsEmpresas);
|
empresaList.setData(lsEmpresas);
|
||||||
bandeirasList.setData(lsBandeirasCartao);
|
bandeirasList.setData(lsBandeirasCartao);
|
||||||
|
@ -430,6 +432,20 @@ public class BusquedaConfTotemController extends MyGenericForwardComposer {
|
||||||
confTotemService.suscribir(novoItem);
|
confTotemService.suscribir(novoItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
confTotem = map.get("valorParcelaMinima");
|
||||||
|
if (confTotem != null) {
|
||||||
|
confTotem.setValor(txtPrecioParcelaMinima.getValue());
|
||||||
|
confTotem.setFecmodif(new Date());
|
||||||
|
confTotem.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
confTotemService.actualizacion(confTotem);
|
||||||
|
} else {
|
||||||
|
novoItem = new ConfTotem();
|
||||||
|
novoItem.setChave("valorParcelaMinima");
|
||||||
|
novoItem.setValor(txtPrecioParcelaMinima.getValue());
|
||||||
|
|
||||||
|
confTotemService.suscribir(novoItem);
|
||||||
|
}
|
||||||
|
|
||||||
Messagebox.show(
|
Messagebox.show(
|
||||||
Labels.getLabel("busquedaConfTotemController.MSG.suscribirOK"),
|
Labels.getLabel("busquedaConfTotemController.MSG.suscribirOK"),
|
||||||
Labels.getLabel("busquedaConfTotemController.window.title"),
|
Labels.getLabel("busquedaConfTotemController.window.title"),
|
||||||
|
|
|
@ -9153,7 +9153,8 @@ busquedaConfTotemController.lbParadaOrigem.value= Parada Origen
|
||||||
busquedaConfTotemController.lbParadaDestino.value= Parada Destino
|
busquedaConfTotemController.lbParadaDestino.value= Parada Destino
|
||||||
busquedaConfTotemController.permiteVendaRapida.ajuda=Permitir que o totem habilite o botão próximas partidas.(Venta Rápida)
|
busquedaConfTotemController.permiteVendaRapida.ajuda=Permitir que o totem habilite o botão próximas partidas.(Venta Rápida)
|
||||||
busquedaConfTotemController.lbPermitirProximasPartidas.value = Permitir Venta Rápida (Próximas Partidas )
|
busquedaConfTotemController.lbPermitirProximasPartidas.value = Permitir Venta Rápida (Próximas Partidas )
|
||||||
|
busquedaConfTotemController.valorParcelaMinima.value = Valor mínimo para parcelamento
|
||||||
|
busquedaConfTotemController.valorParcelaMinima.ajuda=Valor mínimo para parcelar no cartão de crédito.
|
||||||
|
|
||||||
relatorioVendasCartoesController.window.title = Relatório Vendas Cartões
|
relatorioVendasCartoesController.window.title = Relatório Vendas Cartões
|
||||||
relatorioVendasCartoesController.lbEmpresa.value = Empresa
|
relatorioVendasCartoesController.lbEmpresa.value = Empresa
|
||||||
|
|
|
@ -9795,7 +9795,10 @@ busquedaConfTotemController.lbQtdCorrida.value = Quantidade Corrida
|
||||||
busquedaConfTotemController.lbParadaOrigem.value= Localidade Origem
|
busquedaConfTotemController.lbParadaOrigem.value= Localidade Origem
|
||||||
busquedaConfTotemController.lbParadaDestino.value= Localidade Destino
|
busquedaConfTotemController.lbParadaDestino.value= Localidade Destino
|
||||||
busquedaConfTotemController.permiteVendaRapida.ajuda=Permitir que o totem habilite o botão próximas partidas.(Venda Rápida)
|
busquedaConfTotemController.permiteVendaRapida.ajuda=Permitir que o totem habilite o botão próximas partidas.(Venda Rápida)
|
||||||
busquedaConfTotemController.lbPermitirProximasPartidas.value = Permitirr Venda Rápida (Próximas Partidas )
|
busquedaConfTotemController.lbPermitirProximasPartidas.value = Permitir Venda Rápida (Próximas Partidas )
|
||||||
|
busquedaConfTotemController.valorParcelaMinima.value = Valor mínimo para parcelamento
|
||||||
|
busquedaConfTotemController.valorParcelaMinima.ajuda=Valor mínimo para parcelar no cartão de crédito.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
editarConfTotemController.lbParadaOrigem.value = Localidade de Origem
|
editarConfTotemController.lbParadaOrigem.value = Localidade de Origem
|
||||||
|
|
|
@ -207,7 +207,23 @@
|
||||||
|
|
||||||
</hlayout>
|
</hlayout>
|
||||||
</groupbox>
|
</groupbox>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<groupbox>
|
||||||
|
<caption
|
||||||
|
label="${c:l('busquedaConfTotemController.valorParcelaMinima.value')}" />
|
||||||
|
<hlayout>
|
||||||
|
<textbox id="txtPrecioParcelaMinima"
|
||||||
|
value="@{winEditarTarifa$composer.tarifa.precio,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||||
|
constraint="no zero, no negative, /([0-9]+(\,[0-9][0-9]?)?)?/ "
|
||||||
|
precision="10" scale="2" />
|
||||||
|
<image
|
||||||
|
src="/gui/img/Question_mark_1.png"
|
||||||
|
tooltiptext="${c:l('busquedaConfTotemController.valorParcelaMinima.ajuda')}"
|
||||||
|
style="cursor: help" />
|
||||||
|
</hlayout>
|
||||||
|
</groupbox>
|
||||||
</row>
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
|
|
Loading…
Reference in New Issue