fixes bug #6647
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@48181 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
6df375dec5
commit
dd3a82a4b7
|
@ -4,8 +4,6 @@
|
|||
*/
|
||||
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
|
@ -18,7 +16,6 @@ import org.zkoss.zul.Comboitem;
|
|||
import org.zkoss.zul.Messagebox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.PtovtaComissao;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.service.PtovtaComissaoService;
|
||||
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
||||
|
@ -45,9 +42,7 @@ public class EditarPuntoVentaComissaoController extends MyGenericForwardComposer
|
|||
private MyListbox ptovtaComissaoList;
|
||||
private static Logger log = Logger.getLogger(EditarPuntoVentaComissaoController.class);
|
||||
|
||||
private List<PuntoVenta> lsDestino;
|
||||
private MyComboboxEstandar cmbReceita;
|
||||
private MyComboboxEstandar cmbDestino;
|
||||
|
||||
private PtovtaComissao ptovtaComissao;
|
||||
|
||||
|
@ -56,8 +51,6 @@ public class EditarPuntoVentaComissaoController extends MyGenericForwardComposer
|
|||
PtovtaComissao ptovtaComissao = (PtovtaComissao) Executions.getCurrent().getArg().get("ptovtaComissao");
|
||||
this.ptovtaComissaoList = (MyListbox) Executions.getCurrent().getArg().get("ptovtaComissaoList");
|
||||
this.ptovtaComissao = ptovtaComissaoService.obtenerID(ptovtaComissao.getPtovtaComissaoId());
|
||||
this.lsDestino = puntoVentaService.obtenerTodos();
|
||||
|
||||
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
|
@ -68,12 +61,19 @@ public class EditarPuntoVentaComissaoController extends MyGenericForwardComposer
|
|||
|
||||
}
|
||||
|
||||
if (this.ptovtaComissao.getReceita() != null)
|
||||
if (this.ptovtaComissao.getReceita() != null) {
|
||||
if (this.ptovtaComissao.getReceita().equals("RB")) {
|
||||
cmbReceita.setSelectedIndex(0);
|
||||
} else if (this.ptovtaComissao.getReceita().equals("RL")) {
|
||||
cmbReceita.setSelectedIndex(1);
|
||||
}
|
||||
}
|
||||
|
||||
if(ptovtaComissao.getPuntoventaId().getPuntoVentaPadre() != null) {
|
||||
this.ptovtaComissao.setDescComissaoId(ptovtaComissao.getPuntoventaId().getPuntoVentaPadre());
|
||||
} else {
|
||||
this.ptovtaComissao.setDescComissaoId(ptovtaComissao.getPuntoventaId());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -82,9 +82,6 @@ public class EditarPuntoVentaComissaoController extends MyGenericForwardComposer
|
|||
if (cmbReceita.getSelectedItem() != null) {
|
||||
this.ptovtaComissao.setReceita((String) cmbReceita.getSelectedItem().getValue());
|
||||
}
|
||||
/*if (cmbDestino.getSelectedItem() != null) {
|
||||
this.ptovtaComissao.setReceita((String) cmbReceita.getSelectedItem().getValue());
|
||||
}*/
|
||||
ptovtaComissaoService.actualizacion(this.ptovtaComissao);
|
||||
|
||||
Messagebox.show(
|
||||
|
@ -129,14 +126,6 @@ public class EditarPuntoVentaComissaoController extends MyGenericForwardComposer
|
|||
this.puntoVentaService = puntoVentaService;
|
||||
}
|
||||
|
||||
public List<PuntoVenta> getLsDestino() {
|
||||
return lsDestino;
|
||||
}
|
||||
|
||||
public void setLsDestino(List<PuntoVenta> lsDestino) {
|
||||
this.lsDestino = lsDestino;
|
||||
}
|
||||
|
||||
public PtovtaComissao getPtovtaComissao() {
|
||||
return ptovtaComissao;
|
||||
}
|
||||
|
|
|
@ -32,6 +32,7 @@ import org.zkoss.zul.Radio;
|
|||
import org.zkoss.zul.Row;
|
||||
import org.zkoss.zul.Spinner;
|
||||
import org.zkoss.zul.Tab;
|
||||
import org.zkoss.zul.Textbox;
|
||||
import org.zkoss.zul.api.Timebox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Categoria;
|
||||
|
@ -139,8 +140,8 @@ public class EditarConfiguracionCategoriaController extends MyGenericForwardComp
|
|||
private Radio rdVendaAntecipadaSi;
|
||||
private Radio rdVendaAntecipadaNo;
|
||||
private Radio rdVendeAbertoSim;
|
||||
private Row rowTrecho;;
|
||||
private Row rowTiempo;;
|
||||
private Row rowTrecho;
|
||||
private Row rowTiempo;
|
||||
private Radio rdTrecho;
|
||||
private Timebox timeTempoPermitir;
|
||||
private Tab tabEmpresa;
|
||||
|
@ -155,6 +156,8 @@ public class EditarConfiguracionCategoriaController extends MyGenericForwardComp
|
|||
private Label lblMsgTiempo;
|
||||
private Spinner spnHora;
|
||||
private Spinner spnMinuto;
|
||||
private Checkbox chkLiberacionSolamenteEnvasado;
|
||||
private Textbox asientosReservados;
|
||||
|
||||
public List<Categoria> getLsCategorias() {
|
||||
return lsCategorias;
|
||||
|
@ -620,6 +623,7 @@ public class EditarConfiguracionCategoriaController extends MyGenericForwardComp
|
|||
cantAutorizada.getValue();
|
||||
descuentoPorc.getValue();
|
||||
descuentoImporte.getValue();
|
||||
asientosReservados.getValue();
|
||||
|
||||
boolean existe = false;
|
||||
for (CategoriaDescuento cd : lsCategoriaDescuento) {
|
||||
|
@ -643,6 +647,8 @@ public class EditarConfiguracionCategoriaController extends MyGenericForwardComp
|
|||
cDescuento.setIndImporteSeguro(chkPrecoSeguro.isChecked());
|
||||
cDescuento.setIndImporteTxEmbarque(chkPrecoTxEmbarque.isChecked());
|
||||
cDescuento.setIndVentaAbierto(rdVendeAbertoSim.isSelected());
|
||||
cDescuento.setIndLiberacionSolamenteEnvasado(chkLiberacionSolamenteEnvasado.isChecked());
|
||||
cDescuento.setAsientosReservados(asientosReservados.getValue());
|
||||
|
||||
if (rdVendaAntecipadaSi.isChecked()) {
|
||||
cDescuento.setTiempoDesactivar(spnHora.getValue(), spnMinuto.getValue());
|
||||
|
|
|
@ -14,6 +14,7 @@ import org.zkoss.zk.ui.Component;
|
|||
import org.zkoss.zk.ui.Executions;
|
||||
import org.zkoss.zk.ui.WrongValueException;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.Label;
|
||||
|
@ -183,7 +184,7 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
|
|||
categoriaDescuento.setIndCuotaTramo(rdTrecho.isChecked());
|
||||
categoriaDescuento.setTiempoCuota(timeTempoPermitir.getValue());
|
||||
}
|
||||
|
||||
|
||||
categoriaDescuentoList.updateItem(categoriaDescuento);
|
||||
this.closeWindow();
|
||||
}
|
||||
|
|
|
@ -113,6 +113,12 @@ public class RenderConfiguracionCategoriaDecuento implements ListitemRenderer {
|
|||
lc = new Listcell((categoria.getIndVentaSolamenteReserva() != null && categoria.getIndVentaSolamenteReserva()) ? "Sim" : "Não");
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell((categoria.getIndLiberacionSolamenteEnvasado() != null && categoria.getIndLiberacionSolamenteEnvasado()) ? "Sim" : "Não");
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(categoria.getAsientosReservados());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lstm.setAttribute("data", categoria);
|
||||
|
||||
}
|
||||
|
|
|
@ -1493,6 +1493,9 @@ editarConfiguracionCategoriaController.lblComponentesPrecoSeguro.value=Seguro
|
|||
editarConfiguracionCategoriaController.lblComponentesPrecoOutros.value=Otros
|
||||
editarConfiguracionCategoriaController.lblVentaAntecipada.value=Venta anticipada
|
||||
editarConfiguracionCategoriaController.lblVentaAntecipadaTempo.value=Tiempo (HH:MM)
|
||||
editarConfiguracionCategoriaController.lblLiberacionSolamenteEnvasado.value = Liberar asientos cuando el autobus no tenga disponibilidad
|
||||
editarConfiguracionCategoriaController.lblAsientosreservados.value = Asientos Reservados
|
||||
editarConfiguracionCategoriaController.lblAsientosseparados.value = Informe os asientos separados por ;
|
||||
editarConfiguracionCategoriaController.lblVentaAntecipadaTempoDesactivar.value=El tipo de pasajero quedará disponible hasta X horas antes del servicio salir
|
||||
editarConfiguracionCategoriaController.lblVentaAntecipadaTempoActivar.value=El tipo de pasajero quedará disponible a partir de X horas antes del servicio salir
|
||||
editarConfiguracionCategoriaController.msg.validacaoVentaAntecipada=Para venta anticipada, es obligatório informar el tiempo
|
||||
|
|
|
@ -1531,6 +1531,9 @@ editarConfiguracionCategoriaController.lblComponentesPrecoSeguro.value=Seguro
|
|||
editarConfiguracionCategoriaController.lblComponentesPrecoOutros.value=Outros
|
||||
editarConfiguracionCategoriaController.lblVentaAntecipada.value=Venda Antecipada
|
||||
editarConfiguracionCategoriaController.lblVentaAntecipadaTempo.value=Tempo (HH:mm)
|
||||
editarConfiguracionCategoriaController.lblLiberacionSolamenteEnvasado.value = Liberar Poltronas quando Ônibus estiver Lotado
|
||||
editarConfiguracionCategoriaController.lblAsientosreservados.value = Assentos Reservados
|
||||
editarConfiguracionCategoriaController.lblAsientosseparados.value = Informe os assentos separados por ;
|
||||
editarConfiguracionCategoriaController.lblVentaAntecipadaTempoDesactivar.value=O tipo de passageiro firá disponível até X horas antes do serviço sair
|
||||
editarConfiguracionCategoriaController.lblVentaAntecipadaTempoActivar.value=O tipo de passageiro firá disponível a partir de X horas antes do serviço sair
|
||||
editarConfiguracionCategoriaController.msg.validacaoVentaAntecipada=Para venda antecipada, é obrigatório informar o tempo
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
label="${c:l('busquedaColoniaController.btnPesquisa.label')}"/>
|
||||
</toolbar>
|
||||
|
||||
<paging id="pagingColonia" pageSize="15" />
|
||||
<paging id="pagingColonia" pageSize="20" />
|
||||
<listbox id="coloniaList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="false" height="70%">
|
||||
<listhead sizable="true">
|
||||
|
|
|
@ -11,10 +11,6 @@
|
|||
xmlns:h="http://www.w3.org/1999/xhtml"
|
||||
title="${c:l('editarPuntoVentaComissaoController.window.title')}">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnApagarPtovtaComissao" height="20"
|
||||
|
@ -220,11 +216,8 @@
|
|||
<row>
|
||||
<label
|
||||
value="${c:l('editarConfiguracionComissaoController.lbDestino.value')}" />
|
||||
<combobox id="cmbDestino" width="70%" mold="rounded"
|
||||
buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
selectedItem="@{winEditarPuntoVentaComissao$composer.ptovtaComissao.descComissaoId}"
|
||||
model="@{winEditarPuntoVentaComissao$composer.lsDestino}" />
|
||||
<label id="txtDestino"
|
||||
value="@{winEditarPuntoVentaComissao$composer.ptovtaComissao.descComissaoId.nombpuntoventa}" />
|
||||
|
||||
</row>
|
||||
|
||||
|
@ -235,14 +228,6 @@
|
|||
buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
|
||||
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarConfiguracionComissaoController.lbCodAG.value')}" />
|
||||
<intbox id="txtcodAg" width="70%" maxlength="7"
|
||||
value="@{winEditarPuntoVentaComissao$composer.ptovtaComissao.codag}" />
|
||||
|
||||
|
||||
</row>
|
||||
<row>
|
||||
|
||||
|
@ -284,12 +269,28 @@
|
|||
</hbox>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarConfiguracionComissaoController.lbInddescontoporc.value')}" />
|
||||
<hbox>
|
||||
<checkbox id="inddescontoporc"
|
||||
checked="@{winEditarPuntoVentaComissao$composer.ptovtaComissao.inddescontoporc}" />
|
||||
</hbox>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarConfiguracionComissaoController.lbDesconto.value')}" />
|
||||
<hbox>
|
||||
<textbox id="txtDesconto" width="70%"
|
||||
maxlength="5"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||
value="@{winEditarPuntoVentaComissao$composer.ptovtaComissao.desconto,converter=com.rjconsultores.ventaboletos.web.utilerias.StringPercentToDecimalConverter}" />
|
||||
</hbox>
|
||||
</row>
|
||||
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
|
||||
|
||||
</window>
|
||||
</zk>
|
||||
|
|
|
@ -198,6 +198,20 @@
|
|||
value="${c:l('editarConfiguracionCategoriaController.lblVentaAntecipadaTempoActivar.value')}" />
|
||||
</hbox>
|
||||
</row>
|
||||
<row spans="1,3">
|
||||
<label id="lblLiberacionSolamenteEnvasado"
|
||||
value="${c:l('editarConfiguracionCategoriaController.lblLiberacionSolamenteEnvasado.value')}" />
|
||||
<checkbox id="chkLiberacionSolamenteEnvasado" />
|
||||
</row>
|
||||
<row spans="1,3">
|
||||
<label id="lblAsientosreservados"
|
||||
value="${c:l('editarConfiguracionCategoriaController.lblAsientosreservados.value')}" />
|
||||
<hbox>
|
||||
<textbox id="asientosReservados" />
|
||||
<label id="lblAsientosseparados"
|
||||
value="${c:l('editarConfiguracionCategoriaController.lblAsientosseparados.value')}" />
|
||||
</hbox>
|
||||
</row>
|
||||
<row spans="1,3">
|
||||
<label
|
||||
value="${c:l('editarConfiguracionCategoriaController.lblFeriado.value')}" />
|
||||
|
@ -264,6 +278,10 @@
|
|||
label="${c:l('editarConfiguracionCategoriaController.lblHeadTiempo')}" />
|
||||
<listheader width="50px"
|
||||
label="${c:l('editarConfiguracionCategoriaController.lblVentaSolamenteReserva.value')}" />
|
||||
<listheader width="50px"
|
||||
label="${c:l('editarConfiguracionCategoriaController.lblLiberacionSolamenteEnvasado.value')}" />
|
||||
<listheader width="50px"
|
||||
label="${c:l('editarConfiguracionCategoriaController.lblAsientosreservados.value')}" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</row>
|
||||
|
|
|
@ -152,6 +152,22 @@
|
|||
<label value="${c:l('editarConfiguracionCategoriaController.lblTiempoValido.value')}" />
|
||||
<timebox id="timeTempoPermitir" mold="rounded" format="HH:mm"/>
|
||||
</row>
|
||||
<row spans="1,3">
|
||||
<label id="lblLiberacionSolamenteEnvasado"
|
||||
value="${c:l('editarConfiguracionCategoriaController.lblLiberacionSolamenteEnvasado.value')}" />
|
||||
<checkbox id="chkLiberacionSolamenteEnvasado"
|
||||
checked="@{winEditarConfiguracionCategoriasDatosCategoria$composer.categoriaDescuento.indLiberacionSolamenteEnvasado}"/>
|
||||
</row>
|
||||
<row spans="1,3">
|
||||
<label id="lblAsientosreservados"
|
||||
value="${c:l('editarConfiguracionCategoriaController.lblAsientosreservados.value')}" />
|
||||
<hbox>
|
||||
<textbox id="asientosReservados"
|
||||
value="@{winEditarConfiguracionCategoriasDatosCategoria$composer.categoriaDescuento.asientosReservados}"/>
|
||||
<label id="lblAsientosseparados"
|
||||
value="${c:l('editarConfiguracionCategoriaController.lblAsientosseparados.value')}" />
|
||||
</hbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</window>
|
||||
|
|
Loading…
Reference in New Issue