- Nova funcionalidade de categoria com tempo para ativar e desativar
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@25194 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
bd97434617
commit
53d3a9e140
|
@ -84,7 +84,6 @@ public class BusquedaConfiguracionCategoriaController extends MyGenericForwardCo
|
||||||
configCategoriaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
configCategoriaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||||
configCategoriaBusqueda.addSortAsc("empresa.nombempresa");
|
configCategoriaBusqueda.addSortAsc("empresa.nombempresa");
|
||||||
|
|
||||||
|
|
||||||
configCategoriaBusqueda.addFilterIn("empresa", UsuarioLogado.getUsuarioLogado().getEmpresa());
|
configCategoriaBusqueda.addFilterIn("empresa", UsuarioLogado.getUsuarioLogado().getEmpresa());
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -27,8 +27,10 @@ import org.zkoss.zul.Combobox;
|
||||||
import org.zkoss.zul.Comboitem;
|
import org.zkoss.zul.Comboitem;
|
||||||
import org.zkoss.zul.Decimalbox;
|
import org.zkoss.zul.Decimalbox;
|
||||||
import org.zkoss.zul.Intbox;
|
import org.zkoss.zul.Intbox;
|
||||||
|
import org.zkoss.zul.Label;
|
||||||
import org.zkoss.zul.Radio;
|
import org.zkoss.zul.Radio;
|
||||||
import org.zkoss.zul.Row;
|
import org.zkoss.zul.Row;
|
||||||
|
import org.zkoss.zul.Spinner;
|
||||||
import org.zkoss.zul.Tab;
|
import org.zkoss.zul.Tab;
|
||||||
import org.zkoss.zul.api.Timebox;
|
import org.zkoss.zul.api.Timebox;
|
||||||
|
|
||||||
|
@ -147,6 +149,11 @@ public class EditarConfiguracionCategoriaController extends MyGenericForwardComp
|
||||||
private Checkbox chkPrecoPedagio;
|
private Checkbox chkPrecoPedagio;
|
||||||
private Checkbox chkPrecoSeguro;
|
private Checkbox chkPrecoSeguro;
|
||||||
private Checkbox chkPrecoOutros;
|
private Checkbox chkPrecoOutros;
|
||||||
|
private Label lblMsgTiempo;
|
||||||
|
private Spinner spnHora;
|
||||||
|
private Spinner spnMinuto;
|
||||||
|
private Radio rdVendaAntecipadaSi;
|
||||||
|
private Radio rdVendaAntecipadaNo;
|
||||||
|
|
||||||
|
|
||||||
public List<Categoria> getLsCategorias() {
|
public List<Categoria> getLsCategorias() {
|
||||||
|
@ -587,7 +594,7 @@ public class EditarConfiguracionCategoriaController extends MyGenericForwardComp
|
||||||
public void onClick$btnAdicionarDesconto(Event ev) throws InterruptedException {
|
public void onClick$btnAdicionarDesconto(Event ev) throws InterruptedException {
|
||||||
if (cmbCategorias.getSelectedItem() == null) {
|
if (cmbCategorias.getSelectedItem() == null) {
|
||||||
Messagebox.show(
|
Messagebox.show(
|
||||||
Labels.getLabel("MSG.Error.combobox"),
|
Labels.getLabel("editarConfiguracionCategoriaController.msg.validacaoCategoria"),
|
||||||
Labels.getLabel("editarConfiguracionCategoriaController.window.title"),
|
Labels.getLabel("editarConfiguracionCategoriaController.window.title"),
|
||||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||||
|
|
||||||
|
@ -595,6 +602,21 @@ public class EditarConfiguracionCategoriaController extends MyGenericForwardComp
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (rdVendaAntecipadaSi.isChecked()){
|
||||||
|
int hora = (spnHora.getValue() == null)?0:spnHora.getValue();
|
||||||
|
int minuto = (spnMinuto.getValue() == null)?0:spnMinuto.getValue();
|
||||||
|
if ( (hora + minuto) == 0){
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarConfiguracionCategoriaController.msg.validacaoVentaAntecipada"),
|
||||||
|
Labels.getLabel("editarConfiguracionCategoriaController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||||
|
|
||||||
|
spnHora.focus();
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
cmbCategorias.getValue();
|
cmbCategorias.getValue();
|
||||||
cantAutorizada.getValue();
|
cantAutorizada.getValue();
|
||||||
descuentoPorc.getValue();
|
descuentoPorc.getValue();
|
||||||
|
@ -622,6 +644,12 @@ public class EditarConfiguracionCategoriaController extends MyGenericForwardComp
|
||||||
cDescuento.setIndImporteSeguro(chkPrecoSeguro.isChecked());
|
cDescuento.setIndImporteSeguro(chkPrecoSeguro.isChecked());
|
||||||
cDescuento.setIndImporteTxEmbarque(chkPrecoTxEmbarque.isChecked());
|
cDescuento.setIndImporteTxEmbarque(chkPrecoTxEmbarque.isChecked());
|
||||||
|
|
||||||
|
if (rdVendaAntecipadaSi.isChecked()){
|
||||||
|
cDescuento.setTiempoDesactivar(spnHora.getValue(), spnMinuto.getValue());
|
||||||
|
}else{
|
||||||
|
cDescuento.setTiempoActivar(spnHora.getValue(), spnMinuto.getValue());
|
||||||
|
}
|
||||||
|
|
||||||
if (cmbIndGeneraFeriado.getSelectedItem() != null) {
|
if (cmbIndGeneraFeriado.getSelectedItem() != null) {
|
||||||
cDescuento.setIndAplicaFeriado((String) cmbIndGeneraFeriado.getSelectedItem().getValue());
|
cDescuento.setIndAplicaFeriado((String) cmbIndGeneraFeriado.getSelectedItem().getValue());
|
||||||
}
|
}
|
||||||
|
@ -656,8 +684,8 @@ public class EditarConfiguracionCategoriaController extends MyGenericForwardComp
|
||||||
} else {
|
} else {
|
||||||
onClick$radioPor(null);
|
onClick$radioPor(null);
|
||||||
}
|
}
|
||||||
|
onClick$rdVendaAntecipadaNo(null);
|
||||||
cmbIndGeneraFeriado.setSelectedItem(null);
|
rdVendaAntecipadaNo.setChecked(true);
|
||||||
} else {
|
} else {
|
||||||
Messagebox.show(
|
Messagebox.show(
|
||||||
Labels.getLabel("MSG.Registro.Existe"),
|
Labels.getLabel("MSG.Registro.Existe"),
|
||||||
|
@ -1171,6 +1199,16 @@ public class EditarConfiguracionCategoriaController extends MyGenericForwardComp
|
||||||
descuentoPorc.setConstraint("no empty, no zero, no negative");
|
descuentoPorc.setConstraint("no empty, no zero, no negative");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void onClick$rdVendaAntecipadaSi(Event ev) {
|
||||||
|
spnHora.setValue(0);
|
||||||
|
spnMinuto.setValue(0);
|
||||||
|
lblMsgTiempo.setValue(Labels.getLabel("editarConfiguracionCategoriaController.lblVentaAntecipadaTempoDesactivar.value"));
|
||||||
|
}
|
||||||
|
public void onClick$rdVendaAntecipadaNo(Event ev) {
|
||||||
|
spnHora.setValue(0);
|
||||||
|
spnMinuto.setValue(0);
|
||||||
|
lblMsgTiempo.setValue(Labels.getLabel("editarConfiguracionCategoriaController.lblVentaAntecipadaTempoActivar.value"));
|
||||||
|
}
|
||||||
public void onClick$rdCuotaSi(Event ev) {
|
public void onClick$rdCuotaSi(Event ev) {
|
||||||
mudarCamposCuota(true);
|
mudarCamposCuota(true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,7 @@ import java.math.BigDecimal;
|
||||||
import org.springframework.context.annotation.Scope;
|
import org.springframework.context.annotation.Scope;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.zkoss.util.resource.Labels;
|
import org.zkoss.util.resource.Labels;
|
||||||
|
import org.zkoss.zhtml.Messagebox;
|
||||||
import org.zkoss.zk.ui.Component;
|
import org.zkoss.zk.ui.Component;
|
||||||
import org.zkoss.zk.ui.Executions;
|
import org.zkoss.zk.ui.Executions;
|
||||||
import org.zkoss.zk.ui.WrongValueException;
|
import org.zkoss.zk.ui.WrongValueException;
|
||||||
|
@ -16,8 +17,10 @@ import org.zkoss.zk.ui.event.Event;
|
||||||
import org.zkoss.zul.Checkbox;
|
import org.zkoss.zul.Checkbox;
|
||||||
import org.zkoss.zul.Combobox;
|
import org.zkoss.zul.Combobox;
|
||||||
import org.zkoss.zul.Comboitem;
|
import org.zkoss.zul.Comboitem;
|
||||||
|
import org.zkoss.zul.Label;
|
||||||
import org.zkoss.zul.Radio;
|
import org.zkoss.zul.Radio;
|
||||||
import org.zkoss.zul.Row;
|
import org.zkoss.zul.Row;
|
||||||
|
import org.zkoss.zul.Spinner;
|
||||||
import org.zkoss.zul.Textbox;
|
import org.zkoss.zul.Textbox;
|
||||||
import org.zkoss.zul.api.Timebox;
|
import org.zkoss.zul.api.Timebox;
|
||||||
|
|
||||||
|
@ -48,6 +51,12 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
|
||||||
private Radio rdCuotaSi;
|
private Radio rdCuotaSi;
|
||||||
private Radio rdTrecho;
|
private Radio rdTrecho;
|
||||||
private Combobox cmbIndGeneraFeriado;
|
private Combobox cmbIndGeneraFeriado;
|
||||||
|
private Label lblMsgTiempo;
|
||||||
|
private Spinner spnHora;
|
||||||
|
private Spinner spnMinuto;
|
||||||
|
private Radio rdVendaAntecipadaSi;
|
||||||
|
private Radio rdVendaAntecipadaNo;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
@ -92,18 +101,53 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
|
||||||
cmbIndGeneraFeriado.setSelectedIndex(2);
|
cmbIndGeneraFeriado.setSelectedIndex(2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (categoriaDescuento.getTiempoActivar()!=null){
|
||||||
|
preencherDataHora(categoriaDescuento.getTiempoActivar());
|
||||||
|
rdVendaAntecipadaNo.setChecked(true);
|
||||||
|
}else if (categoriaDescuento.getTiempoDesactivar() !=null){
|
||||||
|
rdVendaAntecipadaSi.setChecked(true);
|
||||||
|
preencherDataHora(categoriaDescuento.getTiempoDesactivar());
|
||||||
|
}else{
|
||||||
|
rdVendaAntecipadaNo.setChecked(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
private void preencherDataHora(Integer tiempoMinutos){
|
||||||
|
if (tiempoMinutos != null){
|
||||||
|
spnHora.setValue(tiempoMinutos/60);
|
||||||
|
spnMinuto.setValue(tiempoMinutos%60);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnSalvar(Event ev) {
|
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||||
if (radioImprimePassagem.isSelected()) {
|
if (radioImprimePassagem.isSelected()) {
|
||||||
categoriaDescuento.setIndImprimeBoleto(Boolean.TRUE);
|
categoriaDescuento.setIndImprimeBoleto(Boolean.TRUE);
|
||||||
} else if (radioNaoImprimePassagem.isSelected()) {
|
} else if (radioNaoImprimePassagem.isSelected()) {
|
||||||
categoriaDescuento.setIndImprimeBoleto(Boolean.FALSE);
|
categoriaDescuento.setIndImprimeBoleto(Boolean.FALSE);
|
||||||
}
|
}
|
||||||
|
if (rdVendaAntecipadaSi.isChecked()){
|
||||||
|
int hora = (spnHora.getValue() == null)?0:spnHora.getValue();
|
||||||
|
int minuto = (spnMinuto.getValue() == null)?0:spnMinuto.getValue();
|
||||||
|
if ( (hora + minuto) == 0){
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarConfiguracionCategoriaController.msg.validacaoVentaAntecipada"),
|
||||||
|
Labels.getLabel("editarConfiguracionCategoriaController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||||
|
|
||||||
|
spnHora.focus();
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
categoriaDescuento.setIndAplicaFeriado((String) cmbIndGeneraFeriado.getSelectedItem().getValue());
|
categoriaDescuento.setIndAplicaFeriado((String) cmbIndGeneraFeriado.getSelectedItem().getValue());
|
||||||
categoriaDescuento.setIndCuota(false);
|
categoriaDescuento.setIndCuota(false);
|
||||||
categoriaDescuento.setIndCuotaTramo(false);
|
categoriaDescuento.setIndCuotaTramo(false);
|
||||||
|
if (rdVendaAntecipadaSi.isChecked()){
|
||||||
|
categoriaDescuento.setTiempoDesactivar(spnHora.getValue(), spnMinuto.getValue());
|
||||||
|
}else{
|
||||||
|
categoriaDescuento.setTiempoActivar(spnHora.getValue(), spnMinuto.getValue());
|
||||||
|
}
|
||||||
if (rdCuotaSi.isChecked()){
|
if (rdCuotaSi.isChecked()){
|
||||||
if (timeTempoPermitir.getValue() == null){
|
if (timeTempoPermitir.getValue() == null){
|
||||||
throw new WrongValueException(timeTempoPermitir, Labels.getLabel("MSG.CONSTRAINT.CONSTRAINTNUMBERBDOBLIGATORIO"));
|
throw new WrongValueException(timeTempoPermitir, Labels.getLabel("MSG.CONSTRAINT.CONSTRAINTNUMBERBDOBLIGATORIO"));
|
||||||
|
@ -177,4 +221,15 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
|
||||||
combobox.removeItemAt(i);
|
combobox.removeItemAt(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void onClick$rdVendaAntecipadaSi(Event ev) {
|
||||||
|
spnHora.setValue(0);
|
||||||
|
spnMinuto.setValue(0);
|
||||||
|
lblMsgTiempo.setValue(Labels.getLabel("editarConfiguracionCategoriaController.lblVentaAntecipadaTempoDesactivar.value"));
|
||||||
|
}
|
||||||
|
public void onClick$rdVendaAntecipadaNo(Event ev) {
|
||||||
|
spnHora.setValue(0);
|
||||||
|
spnMinuto.setValue(0);
|
||||||
|
lblMsgTiempo.setValue(Labels.getLabel("editarConfiguracionCategoriaController.lblVentaAntecipadaTempoActivar.value"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# <controler>. <id>. <propiedade> = XXX
|
# <controler>. <id>. <propiedade> = XXX
|
||||||
|
|
||||||
#Versao do VentaBoleto:
|
#Versao do VentaBoleto:
|
||||||
versao = ADM_20130312_1RC127
|
versao = ADM_20130314_1RC128
|
||||||
|
|
||||||
# MSG Defaut:
|
# MSG Defaut:
|
||||||
MSG.CONSTRAINT.PORCENTAGEM = Os valores devem estar entre 0 e 100
|
MSG.CONSTRAINT.PORCENTAGEM = Os valores devem estar entre 0 e 100
|
||||||
|
@ -983,6 +983,12 @@ editarConfiguracionCategoriaController.lblComponentesPrecoTxEmbarque.value=Taxa
|
||||||
editarConfiguracionCategoriaController.lblComponentesPrecoPedagio.value=Pedágio
|
editarConfiguracionCategoriaController.lblComponentesPrecoPedagio.value=Pedágio
|
||||||
editarConfiguracionCategoriaController.lblComponentesPrecoSeguro.value=Seguro
|
editarConfiguracionCategoriaController.lblComponentesPrecoSeguro.value=Seguro
|
||||||
editarConfiguracionCategoriaController.lblComponentesPrecoOutros.value=Outros
|
editarConfiguracionCategoriaController.lblComponentesPrecoOutros.value=Outros
|
||||||
|
editarConfiguracionCategoriaController.lblVentaAntecipada.value=Venda Antecipada
|
||||||
|
editarConfiguracionCategoriaController.lblVentaAntecipadaTempo.value=Tempo (HH:mm)
|
||||||
|
editarConfiguracionCategoriaController.lblVentaAntecipadaTempoDesactivar.value=O tipo de passagem firá disponível até X horas antes do serviço sair
|
||||||
|
editarConfiguracionCategoriaController.lblVentaAntecipadaTempoActivar.value=O tipo de passagem firá disponível a partir de X horas antes do serviço sair
|
||||||
|
editarConfiguracionCategoriaController.msg.validacaoVentaAntecipada=Para venda antecipada, é obrigatório informar o tempo
|
||||||
|
editarConfiguracionCategoriaController.msg.validacaoCategoria=É necessário informar uma categoria
|
||||||
|
|
||||||
# Detener a pantalla de Pesquisa
|
# Detener a pantalla de Pesquisa
|
||||||
busquedaCatalogoDeParadaController.window.title = Localidade
|
busquedaCatalogoDeParadaController.window.title = Localidade
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
|
|
||||||
<zk>
|
<zk>
|
||||||
<window id="winEditarConfiguracionCategoria" border="normal"
|
<window id="winEditarConfiguracionCategoria" border="normal"
|
||||||
apply="${editarConfiguracionCategoriaController}" height="540px"
|
apply="${editarConfiguracionCategoriaController}" height="598px"
|
||||||
width="925px" contentStyle="overflow:auto"
|
width="940px" 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">
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
</tabpanel>
|
</tabpanel>
|
||||||
<tabpanel height="420px">
|
<tabpanel>
|
||||||
<!-- Desconto -->
|
<!-- Desconto -->
|
||||||
<grid fixedLayout="true">
|
<grid fixedLayout="true">
|
||||||
<columns>
|
<columns>
|
||||||
|
@ -75,18 +75,16 @@
|
||||||
value="${c:l('editarConfiguracionCategoriaController.lblCategorias.value')}" />
|
value="${c:l('editarConfiguracionCategoriaController.lblCategorias.value')}" />
|
||||||
<combobox id="cmbCategorias"
|
<combobox id="cmbCategorias"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
mold="rounded" buttonVisible="true" width="70%"
|
mold="rounded" buttonVisible="true" width="50%"
|
||||||
model="@{winEditarConfiguracionCategoria$composer.lsCategorias}" />
|
model="@{winEditarConfiguracionCategoria$composer.lsCategorias}" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label id="lblCantAutorizada"
|
<label id="lblCantAutorizada"
|
||||||
value="${c:l('editarConfiguracionCategoriaController.lblCantAutorizada.value')}" />
|
value="${c:l('editarConfiguracionCategoriaController.lblCantAutorizada.value')}" />
|
||||||
<intbox id="cantAutorizada"
|
<intbox id="cantAutorizada" constraint="no empty, no zero" width="50%" maxlength="3" />
|
||||||
constraint="no empty, no zero" width="50%" maxlength="3" />
|
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label
|
<label value="${c:l('editarConfiguracionCategoriaController.lblDescuento.value')}" />
|
||||||
value="${c:l('editarConfiguracionCategoriaController.lblDescuento.value')}" />
|
|
||||||
<radiogroup Id="descuento">
|
<radiogroup Id="descuento">
|
||||||
<radio id="radioImp"
|
<radio id="radioImp"
|
||||||
label="${c:l('editarConfiguracionCategoriaController.lblDescuentoImporte.value')}" />
|
label="${c:l('editarConfiguracionCategoriaController.lblDescuentoImporte.value')}" />
|
||||||
|
@ -94,6 +92,16 @@
|
||||||
label="${c:l('editarConfiguracionCategoriaController.lblDescuentoPorc.value')}" />
|
label="${c:l('editarConfiguracionCategoriaController.lblDescuentoPorc.value')}" />
|
||||||
</radiogroup>
|
</radiogroup>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<label id="lblDescuentoImporte"
|
||||||
|
value="${c:l('editarConfiguracionCategoriaController.lblDescuentoImporte.value')}" />
|
||||||
|
<decimalbox id="descuentoImporte" constraint="no empty" width="50%" maxlength="9" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label id="lblDescuentoPorc"
|
||||||
|
value="${c:l('editarConfiguracionCategoriaController.lblDescuentoPorc.value')}" />
|
||||||
|
<decimalbox id="descuentoPorc" constraint="no empty" width="50%" maxlength="9" />
|
||||||
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label
|
<label
|
||||||
value="${c:l('editarConfiguracionCategoriaController.lblImprimirPassagem.value')}" />
|
value="${c:l('editarConfiguracionCategoriaController.lblImprimirPassagem.value')}" />
|
||||||
|
@ -105,18 +113,6 @@
|
||||||
label="${c:l('editarConfiguracionCategoriaController.lblNaoImprimePassagem.value')}" />
|
label="${c:l('editarConfiguracionCategoriaController.lblNaoImprimePassagem.value')}" />
|
||||||
</radiogroup>
|
</radiogroup>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
|
||||||
<label id="lblDescuentoImporte"
|
|
||||||
value="${c:l('editarConfiguracionCategoriaController.lblDescuentoImporte.value')}" />
|
|
||||||
<decimalbox id="descuentoImporte"
|
|
||||||
constraint="no empty" width="50%" maxlength="9" />
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label id="lblDescuentoPorc"
|
|
||||||
value="${c:l('editarConfiguracionCategoriaController.lblDescuentoPorc.value')}" />
|
|
||||||
<decimalbox id="descuentoPorc"
|
|
||||||
constraint="no empty" width="50%" maxlength="9" />
|
|
||||||
</row>
|
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarConfiguracionCategoriaController.lblComponentesPreco.value')}" />
|
<label value="${c:l('editarConfiguracionCategoriaController.lblComponentesPreco.value')}" />
|
||||||
<hbox>
|
<hbox>
|
||||||
|
@ -127,36 +123,46 @@
|
||||||
</hbox>
|
</hbox>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label
|
<label value="${c:l('editarConfiguracionCategoriaController.lblVentaAntecipada.value')}" />
|
||||||
value="${c:l('editarConfiguracionCategoriaController.lblCotaObli.value')}" />
|
|
||||||
|
<radiogroup>
|
||||||
|
<radio id="rdVendaAntecipadaSi" label="Sim" />
|
||||||
|
<radio id="rdVendaAntecipadaNo" label="Nao" selected="true" />
|
||||||
|
</radiogroup>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarConfiguracionCategoriaController.lblVentaAntecipadaTempo.value')}" />
|
||||||
|
<hbox>
|
||||||
|
<spinner id="spnHora" value="00" width="50px" maxlength="4" constraint="max 9999,no negative"/>
|
||||||
|
<label value=":" />
|
||||||
|
<spinner id="spnMinuto" value="00" width="50px" maxlength="2" constraint="max 99,no negative" />
|
||||||
|
|
||||||
|
<label id="lblMsgTiempo" value="${c:l('editarConfiguracionCategoriaController.lblVentaAntecipadaTempoActivar.value')}"/>
|
||||||
|
</hbox>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarConfiguracionCategoriaController.lblFeriado.value')}" />
|
||||||
|
<combobox id="cmbIndGeneraFeriado"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
constraint="no empty" mold="rounded" width="50%" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarConfiguracionCategoriaController.lblCotaObli.value')}" />
|
||||||
<radiogroup>
|
<radiogroup>
|
||||||
<radio id="rdCuotaSi" label="Sim" />
|
<radio id="rdCuotaSi" label="Sim" />
|
||||||
<radio id="rdCuotaNo" label="Nao"
|
<radio id="rdCuotaNo" label="Nao" selected="true" />
|
||||||
selected="true" />
|
|
||||||
</radiogroup>
|
</radiogroup>
|
||||||
</row>
|
</row>
|
||||||
<row id="rowTrecho" visible="false">
|
<row id="rowTrecho" visible="false">
|
||||||
<label
|
<label value="${c:l('editarConfiguracionCategoriaController.lblTipoCota.value')}" />
|
||||||
value="${c:l('editarConfiguracionCategoriaController.lblTipoCota.value')}" />
|
|
||||||
<radiogroup>
|
<radiogroup>
|
||||||
<radio selected="true"
|
<radio selected="true" label="${c:l('editarConfiguracionCategoriaController.lblServico.value')}" />
|
||||||
label="${c:l('editarConfiguracionCategoriaController.lblServico.value')}" />
|
<radio id="rdTrecho" label="${c:l('editarConfiguracionCategoriaController.lblTrecho.value')}" />
|
||||||
<radio id="rdTrecho"
|
|
||||||
label="${c:l('editarConfiguracionCategoriaController.lblTrecho.value')}" />
|
|
||||||
</radiogroup>
|
</radiogroup>
|
||||||
</row>
|
</row>
|
||||||
<row id="rowTiempo" visible="false">
|
<row id="rowTiempo" visible="false">
|
||||||
<label
|
<label value="${c:l('editarConfiguracionCategoriaController.lblTiempoValido.value')}" />
|
||||||
value="${c:l('editarConfiguracionCategoriaController.lblTiempoValido.value')}" />
|
<timebox id="timeTempoPermitir" width="70px" mold="rounded" format="HH:mm" />
|
||||||
<timebox id="timeTempoPermitir"
|
|
||||||
width="25%" mold="rounded" format="HH:mm" />
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label
|
|
||||||
value="${c:l('editarConfiguracionCategoriaController.lblFeriado.value')}" />
|
|
||||||
<combobox id="cmbIndGeneraFeriado"
|
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
|
||||||
constraint="no empty" mold="rounded" width="70%" />
|
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value=" " />
|
<label value=" " />
|
||||||
|
@ -175,38 +181,39 @@
|
||||||
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnAgregarPeriodo.tooltiptext')}" />
|
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnAgregarPeriodo.tooltiptext')}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</row>
|
</row>
|
||||||
|
<row height="130px" spans="2">
|
||||||
|
<listbox id="categoriaDescuentoList" height="120px" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" multiple="false">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader width="150px"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblCategorias.value')}"
|
||||||
|
sort="auto(categoria.desccategoria)" />
|
||||||
|
<listheader width="60px"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblGridCantAutorizada.value')}"
|
||||||
|
sort="auto(cantautorizada)" />
|
||||||
|
<listheader width="50px"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblDescuentoImporte.value')}"
|
||||||
|
sort="auto(descuentoimporte)" />
|
||||||
|
<listheader width="60px"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblGridImprime.value')}" />
|
||||||
|
<listheader width="50px"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblCota.value')}" />
|
||||||
|
<listheader width="100px"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblDescuentoPorc.value')}"
|
||||||
|
sort="auto(descuentoporc)" />
|
||||||
|
<listheader width="155px"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaControllerPeriodo.window.title')}" />
|
||||||
|
<listheader width="100px"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblFeriado.value')}" />
|
||||||
|
<listheader width="140px"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblComponentesPreco.value')}" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
<listbox id="categoriaDescuentoList"
|
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
|
||||||
vflex="true" multiple="false">
|
|
||||||
<listhead sizable="true">
|
|
||||||
<listheader width="150px"
|
|
||||||
label="${c:l('editarConfiguracionCategoriaController.lblCategorias.value')}"
|
|
||||||
sort="auto(categoria.desccategoria)" />
|
|
||||||
<listheader width="60px"
|
|
||||||
label="${c:l('editarConfiguracionCategoriaController.lblGridCantAutorizada.value')}"
|
|
||||||
sort="auto(cantautorizada)" />
|
|
||||||
<listheader width="50px"
|
|
||||||
label="${c:l('editarConfiguracionCategoriaController.lblDescuentoImporte.value')}"
|
|
||||||
sort="auto(descuentoimporte)" />
|
|
||||||
<listheader width="60px"
|
|
||||||
label="${c:l('editarConfiguracionCategoriaController.lblGridImprime.value')}" />
|
|
||||||
<listheader width="50px"
|
|
||||||
label="${c:l('editarConfiguracionCategoriaController.lblCota.value')}" />
|
|
||||||
<listheader width="100px"
|
|
||||||
label="${c:l('editarConfiguracionCategoriaController.lblDescuentoPorc.value')}"
|
|
||||||
sort="auto(descuentoporc)" />
|
|
||||||
<listheader width="100%"
|
|
||||||
label="${c:l('editarConfiguracionCategoriaControllerPeriodo.window.title')}" />
|
|
||||||
<listheader width="100%"
|
|
||||||
label="${c:l('editarConfiguracionCategoriaController.lblFeriado.value')}" />
|
|
||||||
<listheader width="100%"
|
|
||||||
label="${c:l('editarConfiguracionCategoriaController.lblComponentesPreco.value')}" />
|
|
||||||
</listhead>
|
|
||||||
</listbox>
|
|
||||||
</tabpanel>
|
</tabpanel>
|
||||||
<tabpanel height="420px">
|
<tabpanel height="485px">
|
||||||
<!-- Marca -->
|
<!-- Marca -->
|
||||||
<grid fixedLayout="true">
|
<grid fixedLayout="true">
|
||||||
<columns>
|
<columns>
|
||||||
|
@ -244,7 +251,7 @@
|
||||||
</listhead>
|
</listhead>
|
||||||
</listbox>
|
</listbox>
|
||||||
</tabpanel>
|
</tabpanel>
|
||||||
<tabpanel height="420px">
|
<tabpanel height="485px">
|
||||||
<!-- Mercado -->
|
<!-- Mercado -->
|
||||||
<grid fixedLayout="true">
|
<grid fixedLayout="true">
|
||||||
<columns>
|
<columns>
|
||||||
|
@ -293,7 +300,7 @@
|
||||||
</listhead>
|
</listhead>
|
||||||
</listbox>
|
</listbox>
|
||||||
</tabpanel>
|
</tabpanel>
|
||||||
<tabpanel height="420px">
|
<tabpanel height="485px">
|
||||||
<!-- Clase -->
|
<!-- Clase -->
|
||||||
<grid fixedLayout="true">
|
<grid fixedLayout="true">
|
||||||
<columns>
|
<columns>
|
||||||
|
@ -331,7 +338,7 @@
|
||||||
</listhead>
|
</listhead>
|
||||||
</listbox>
|
</listbox>
|
||||||
</tabpanel>
|
</tabpanel>
|
||||||
<tabpanel height="420px">
|
<tabpanel height="485px">
|
||||||
<!-- Corrida -->
|
<!-- Corrida -->
|
||||||
<grid fixedLayout="true">
|
<grid fixedLayout="true">
|
||||||
<columns>
|
<columns>
|
||||||
|
@ -369,7 +376,7 @@
|
||||||
</listhead>
|
</listhead>
|
||||||
</listbox>
|
</listbox>
|
||||||
</tabpanel>
|
</tabpanel>
|
||||||
<tabpanel height="420px">
|
<tabpanel height="485px">
|
||||||
<grid fixedLayout="true">
|
<grid fixedLayout="true">
|
||||||
<columns>
|
<columns>
|
||||||
<column width="20%" />
|
<column width="20%" />
|
||||||
|
@ -411,11 +418,5 @@
|
||||||
</tabpanel>
|
</tabpanel>
|
||||||
</tabpanels>
|
</tabpanels>
|
||||||
</tabbox>
|
</tabbox>
|
||||||
<popup id="mail" width="300px">
|
|
||||||
<html>
|
|
||||||
"Haga Double Click en Grid para agregar el período del
|
|
||||||
descuento."
|
|
||||||
</html>
|
|
||||||
</popup>
|
|
||||||
</window>
|
</window>
|
||||||
</zk>
|
</zk>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
border="normal"
|
border="normal"
|
||||||
title="${c:l('editarConfiguracionCategoriaController.window.title')}"
|
title="${c:l('editarConfiguracionCategoriaController.window.title')}"
|
||||||
apply="${editarConfiguracionCategoriaDatosCategoriaController}"
|
apply="${editarConfiguracionCategoriaDatosCategoriaController}"
|
||||||
width="400px" contentStyle="overflow:auto">
|
width="500px" contentStyle="overflow:auto">
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
<hbox spacing="5px" style="padding:1px" align="right">
|
||||||
<button id="btnSalvar" height="20"
|
<button id="btnSalvar" height="20"
|
||||||
|
@ -25,8 +25,8 @@
|
||||||
<!--Periodo-->
|
<!--Periodo-->
|
||||||
<grid fixedLayout="true">
|
<grid fixedLayout="true">
|
||||||
<columns>
|
<columns>
|
||||||
<column width="45%" />
|
<column width="30%" />
|
||||||
<column width="55%" />
|
<column width="70%" />
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
<row>
|
<row>
|
||||||
|
@ -80,12 +80,30 @@
|
||||||
maxValue="100" constraint="no empty" width="50%" maxlength="9"
|
maxValue="100" constraint="no empty" width="50%" maxlength="9"
|
||||||
value="@{winEditarConfiguracionCategoriasDatosCategoria$composer.categoriaDescuento.descuentoporc,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}" />
|
value="@{winEditarConfiguracionCategoriasDatosCategoria$composer.categoriaDescuento.descuentoporc,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}" />
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarConfiguracionCategoriaController.lblVentaAntecipada.value')}" />
|
||||||
|
|
||||||
|
<radiogroup>
|
||||||
|
<radio id="rdVendaAntecipadaSi" label="Sim" />
|
||||||
|
<radio id="rdVendaAntecipadaNo" label="Nao" />
|
||||||
|
</radiogroup>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('editarConfiguracionCategoriaController.lblVentaAntecipadaTempo.value')}" />
|
||||||
|
<hbox>
|
||||||
|
<spinner id="spnHora" value="00" width="50px" maxlength="4" constraint="max 9999,no negative"/>
|
||||||
|
<label value=":" />
|
||||||
|
<spinner id="spnMinuto" value="00" width="50px" maxlength="2" constraint="max 99,no negative" />
|
||||||
|
|
||||||
|
<label id="lblMsgTiempo" value="O tipo de passagem firá disponível até X horas antes do serviço sair "/>
|
||||||
|
</hbox>
|
||||||
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label
|
<label
|
||||||
value="${c:l('editarConfiguracionCategoriaController.lblFeriado.value')}" />
|
value="${c:l('editarConfiguracionCategoriaController.lblFeriado.value')}" />
|
||||||
<combobox id="cmbIndGeneraFeriado"
|
<combobox id="cmbIndGeneraFeriado"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
constraint="no empty" mold="rounded" width="99%" />
|
constraint="no empty" mold="rounded" width="50%" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarConfiguracionCategoriaController.lblComponentesPreco.value')}" />
|
<label value="${c:l('editarConfiguracionCategoriaController.lblComponentesPreco.value')}" />
|
||||||
|
|
Loading…
Reference in New Issue