git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@25162 d1611594-4594-4d17-8e1d-87c2c4800839
parent
48249d1b12
commit
bd97434617
|
@ -22,6 +22,7 @@ import org.zkoss.zk.ui.Executions;
|
|||
import org.zkoss.zk.ui.WrongValueException;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.util.Clients;
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.Decimalbox;
|
||||
|
@ -74,6 +75,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConfiguracionCa
|
|||
public class EditarConfiguracionCategoriaController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static Logger log = Logger.getLogger(EditarConfiguracionCategoriaController.class);
|
||||
@Autowired
|
||||
private MarcaService marcaService;
|
||||
@Autowired
|
||||
|
@ -141,7 +143,11 @@ public class EditarConfiguracionCategoriaController extends MyGenericForwardComp
|
|||
private Tab tabMarca;
|
||||
private Tab tabMercado;
|
||||
private Tab tabClasse;
|
||||
private static Logger log = Logger.getLogger(EditarConfiguracionCategoriaController.class);
|
||||
private Checkbox chkPrecoTxEmbarque;
|
||||
private Checkbox chkPrecoPedagio;
|
||||
private Checkbox chkPrecoSeguro;
|
||||
private Checkbox chkPrecoOutros;
|
||||
|
||||
|
||||
public List<Categoria> getLsCategorias() {
|
||||
return lsCategorias;
|
||||
|
@ -611,6 +617,10 @@ public class EditarConfiguracionCategoriaController extends MyGenericForwardComp
|
|||
cDescuento.setCantautorizada(cantAutorizada.getValue());
|
||||
cDescuento.setDescuentoimporte(descuentoImporte.getValue());
|
||||
cDescuento.setDescuentoporc(descuentoPorc.getValue());
|
||||
cDescuento.setIndImporteOutros(chkPrecoOutros.isChecked());
|
||||
cDescuento.setIndImportePedagio(chkPrecoPedagio.isChecked());
|
||||
cDescuento.setIndImporteSeguro(chkPrecoSeguro.isChecked());
|
||||
cDescuento.setIndImporteTxEmbarque(chkPrecoTxEmbarque.isChecked());
|
||||
|
||||
if (cmbIndGeneraFeriado.getSelectedItem() != null) {
|
||||
cDescuento.setIndAplicaFeriado((String) cmbIndGeneraFeriado.getSelectedItem().getValue());
|
||||
|
|
|
@ -92,7 +92,6 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
|
|||
cmbIndGeneraFeriado.setSelectedIndex(2);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void onClick$btnSalvar(Event ev) {
|
||||
|
|
|
@ -73,6 +73,26 @@ public class RenderConfiguracionCategoriaDecuento implements ListitemRenderer {
|
|||
lc = new Listcell(aplicaFeriado);
|
||||
lc.setParent(lstm);
|
||||
|
||||
|
||||
StringBuilder sb = new StringBuilder(" ");
|
||||
|
||||
if (categoria.getIndImporteTxEmbarque()){
|
||||
sb.append("TX,");
|
||||
}
|
||||
if (categoria.getIndImportePedagio()){
|
||||
sb.append("P,");
|
||||
}
|
||||
if (categoria.getIndImporteSeguro()){
|
||||
sb.append("S,");
|
||||
}
|
||||
if (categoria.getIndImporteOutros()){
|
||||
sb.append("O,");
|
||||
}
|
||||
|
||||
lc = new Listcell(sb.substring(0, sb.length()-1));
|
||||
|
||||
lc.setParent(lstm);
|
||||
|
||||
lstm.setAttribute("data", categoria);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# <controler>. <id>. <propiedade> = XXX
|
||||
|
||||
#Versao do VentaBoleto:
|
||||
versao = ADM_20130304_1RC126
|
||||
versao = ADM_20130312_1RC127
|
||||
|
||||
# MSG Defaut:
|
||||
MSG.CONSTRAINT.PORCENTAGEM = Os valores devem estar entre 0 e 100
|
||||
|
@ -978,6 +978,11 @@ editarConfiguracionCategoriaController.btnAddOrgao.tooltiptext = Incluir
|
|||
editarConfiguracionCategoriaController.MSG.noEsPermitidoTodosOrgao = Para incluir o Orgao Excedente TODAS, deve de Eliminar o(s) Orgão(s) Concendete(s) que já existe(n)
|
||||
editarConfiguracionCategoriaController.MSG.noEsPermitidoOrgaoTodosExiste = Para incluir o Orgão Concedente desejada, deve de Eliminar o Orgão Concendente TODOS
|
||||
editarConfiguracionCategoriaController.tabOrgao.label = Orgão Concedente
|
||||
editarConfiguracionCategoriaController.lblComponentesPreco.value=Componentes do Preço
|
||||
editarConfiguracionCategoriaController.lblComponentesPrecoTxEmbarque.value=Taxa Embarque
|
||||
editarConfiguracionCategoriaController.lblComponentesPrecoPedagio.value=Pedágio
|
||||
editarConfiguracionCategoriaController.lblComponentesPrecoSeguro.value=Seguro
|
||||
editarConfiguracionCategoriaController.lblComponentesPrecoOutros.value=Outros
|
||||
|
||||
# Detener a pantalla de Pesquisa
|
||||
busquedaCatalogoDeParadaController.window.title = Localidade
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<zk>
|
||||
<window id="winEditarConfiguracionCategoria" border="normal"
|
||||
apply="${editarConfiguracionCategoriaController}" height="540px"
|
||||
width="900px" contentStyle="overflow:auto"
|
||||
width="925px" contentStyle="overflow:auto"
|
||||
title="${c:l('editarConfiguracionCategoriaController.window.title')}">
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
|
@ -117,6 +117,15 @@
|
|||
<decimalbox id="descuentoPorc"
|
||||
constraint="no empty" width="50%" maxlength="9" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarConfiguracionCategoriaController.lblComponentesPreco.value')}" />
|
||||
<hbox>
|
||||
<checkbox id="chkPrecoTxEmbarque" label="${c:l('editarConfiguracionCategoriaController.lblComponentesPrecoTxEmbarque.value')}" checked="true" />
|
||||
<checkbox id="chkPrecoPedagio" label="${c:l('editarConfiguracionCategoriaController.lblComponentesPrecoPedagio.value')}" checked="true"/>
|
||||
<checkbox id="chkPrecoSeguro" label="${c:l('editarConfiguracionCategoriaController.lblComponentesPrecoSeguro.value')}" checked="true"/>
|
||||
<checkbox id="chkPrecoOutros" label="${c:l('editarConfiguracionCategoriaController.lblComponentesPrecoOutros.value')}" checked="true"/>
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarConfiguracionCategoriaController.lblCotaObli.value')}" />
|
||||
|
@ -191,7 +200,9 @@
|
|||
<listheader width="100%"
|
||||
label="${c:l('editarConfiguracionCategoriaControllerPeriodo.window.title')}" />
|
||||
<listheader width="100%"
|
||||
label="${c:l('editarConfiguracionCorridaController.cmbIndGeneraFeriado.value')}" />
|
||||
label="${c:l('editarConfiguracionCategoriaController.lblFeriado.value')}" />
|
||||
<listheader width="100%"
|
||||
label="${c:l('editarConfiguracionCategoriaController.lblComponentesPreco.value')}" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</tabpanel>
|
||||
|
@ -210,7 +221,7 @@
|
|||
<combobox id="cmbMarca"
|
||||
constraint="no empty"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
mold="rounded" buttonVisible="true" width="300px"
|
||||
model="@{winEditarConfiguracionCategoria$composer.lsMarcas}" />
|
||||
<button id="btnAdicionarMarca"
|
||||
height="20" image="/gui/img/add.png" width="35px"
|
||||
|
@ -297,7 +308,7 @@
|
|||
<combobox id="cmbClase"
|
||||
constraint="no empty"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
mold="rounded" buttonVisible="true" width="300px"
|
||||
model="@{winEditarConfiguracionCategoria$composer.lsClaseServicio}" />
|
||||
<button id="btnAdicionarClase"
|
||||
height="20" image="/gui/img/add.png" width="35px"
|
||||
|
@ -372,7 +383,7 @@
|
|||
<combobox id="cmbOrgao"
|
||||
constraint="no empty"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
mold="rounded" buttonVisible="true" width="300px"
|
||||
model="@{winEditarConfiguracionCategoria$composer.lsOrgao}" />
|
||||
<button id="btnAdicionarOrgao"
|
||||
height="20" image="/gui/img/add.png" width="35px"
|
||||
|
|
|
@ -87,6 +87,15 @@
|
|||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
constraint="no empty" mold="rounded" width="99%" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarConfiguracionCategoriaController.lblComponentesPreco.value')}" />
|
||||
<hbox>
|
||||
<checkbox id="chkPrecoTxEmbarque" label="${c:l('editarConfiguracionCategoriaController.lblComponentesPrecoTxEmbarque.value')}" checked="@{winEditarConfiguracionCategoriasDatosCategoria$composer.categoriaDescuento.indImporteTxEmbarque}" />
|
||||
<checkbox id="chkPrecoPedagio" label="${c:l('editarConfiguracionCategoriaController.lblComponentesPrecoPedagio.value')}" checked="@{winEditarConfiguracionCategoriasDatosCategoria$composer.categoriaDescuento.indImportePedagio}"/>
|
||||
<checkbox id="chkPrecoSeguro" label="${c:l('editarConfiguracionCategoriaController.lblComponentesPrecoSeguro.value')}" checked="@{winEditarConfiguracionCategoriasDatosCategoria$composer.categoriaDescuento.indImporteSeguro}"/>
|
||||
<checkbox id="chkPrecoOutros" label="${c:l('editarConfiguracionCategoriaController.lblComponentesPrecoOutros.value')}" checked="@{winEditarConfiguracionCategoriasDatosCategoria$composer.categoriaDescuento.indImporteOutros}"/>
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarConfiguracionCategoriaController.lblCotaObli.value')}" />
|
||||
<radiogroup>
|
||||
|
|
Loading…
Reference in New Issue