267 lines
11 KiB
XML
267 lines
11 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<?page contentType="text/html;charset=UTF-8"?>
|
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
|
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winEditarConvenio"?>
|
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
|
|
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
|
<window id="winEditarConvenio" border="normal"
|
|
apply="${editarConvenioController}" width="550px" height="500px"
|
|
contentStyle="overflow:auto"
|
|
title="${c:l('editarConvenioController.window.title')}">
|
|
<toolbar>
|
|
<hbox spacing="5px" style="padding:1px" align="right">
|
|
<button id="btnApagar" height="20"
|
|
image="/gui/img/remove.png" width="35px"
|
|
tooltiptext="${c:l('editarConvenioController.btnApagar.tooltiptext')}" />
|
|
<button id="btnSalvar" height="20"
|
|
image="/gui/img/save.png" width="35px"
|
|
tooltiptext="${c:l('editarConvenioController.btnSalvar.tooltiptext')}" />
|
|
<button id="btnFechar" height="20"
|
|
image="/gui/img/exit.png" width="35px"
|
|
onClick="winEditarConvenio.detach()"
|
|
tooltiptext="${c:l('editarConvenioController.btnFechar.tooltiptext')}" />
|
|
</hbox>
|
|
</toolbar>
|
|
<tabbox>
|
|
<tabs width="200px">
|
|
<tab
|
|
label="${c:l('editarConvenioController.tab.label.desconto')}" />
|
|
<tab
|
|
label="${c:l('editarConvenioController.tab.label.trechos')}" />
|
|
<tab
|
|
label="${c:l('editarConvenioController.tab.label.usuarios')}" />
|
|
<tab
|
|
label="${c:l('editarConvenioController.tab.label.agencias')}" />
|
|
|
|
</tabs>
|
|
<tabpanels>
|
|
<!-- Descontos -->
|
|
<tabpanel>
|
|
<grid fixedLayout="true">
|
|
<columns>
|
|
<column width="40%" />
|
|
<column width="60%" />
|
|
</columns>
|
|
<rows>
|
|
<row>
|
|
<label value="${c:l('editarConvenioController.lbDescConvenio.value')}" />
|
|
<textbox id="txtDescConvenio"
|
|
constraint="no empty" width="100%" maxlength="60"
|
|
value="@{winEditarConvenio$composer.convenio.descconvenio}"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
|
</row>
|
|
<row>
|
|
<label value="${c:l('editarConvenioController.lbCveConvenio.value')}" />
|
|
<textbox id="txtCveConvenio"
|
|
constraint="no empty" maxlength="3"
|
|
value="@{winEditarConvenio$composer.convenio.cveconvenio}"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
|
</row>
|
|
<row>
|
|
<label value="${c:l('editarConvenioController.lbValidaFolio.value')}" />
|
|
<checkbox id="chkValidaFolio"
|
|
value="@{winEditarConvenio$composer.convenio.validafolio}"
|
|
checked="true" />
|
|
</row>
|
|
<row>
|
|
<label value="${c:l('editarConvenioController.lbDescontoNormal.value')}" />
|
|
<checkbox id="chkDescontoNormal" checked="true" />
|
|
</row>
|
|
<row spans="2">
|
|
<label value="${c:l('editarConvenioController.Impression.value')}" />
|
|
</row>
|
|
<row spans="2">
|
|
<radiogroup id="grPrecoDesconto">
|
|
<hbox>
|
|
<radio id="rdPrecioTotal"
|
|
label="${c:l('editarConvenioController.PrecioTotal.value')}" />
|
|
<radio id="rdPrecioDescuento"
|
|
label="${c:l('editarConvenioController.PrecioDescuento.value')}" />
|
|
<radio id="rdDescuento"
|
|
label="${c:l('editarConvenioController.Descuento.value')}"
|
|
visible="false" />
|
|
</hbox>
|
|
</radiogroup>
|
|
</row>
|
|
<row>
|
|
<label value="${c:l('editarConvenioController.lbPeriodoEmissao.value')}" />
|
|
<hbox>
|
|
<label value="${c:l('editarConvenioController.lbPeriodoEmissao.inicial')}" />
|
|
<datebox id="fecVentaInicial" lenient="false" format="dd/MM/yyyy"
|
|
value="@{winEditarConvenio$composer.convenio.fecVentaInicial}"/>
|
|
<label value="${c:l('editarConvenioController.lbPeriodoEmissao.final')}" />
|
|
<datebox id="fecVentaFinal" lenient="false" format="dd/MM/yyyy"
|
|
value="@{winEditarConvenio$composer.convenio.fecVentaFinal}"/>
|
|
</hbox>
|
|
</row>
|
|
<row>
|
|
<label value="${c:l('editarConvenioController.lbPeriodoViagem.value')}" />
|
|
<hbox>
|
|
<label value="${c:l('editarConvenioController.lbPeriodoViagem.inicial')}" />
|
|
<datebox id="fecViajeInicial" lenient="false" format="dd/MM/yyyy"
|
|
value="@{winEditarConvenio$composer.convenio.fecViajeInicial}"/>
|
|
<label value="${c:l('editarConvenioController.lbPeriodoViagem.final')}" />
|
|
<datebox id="fecViajeFinal" lenient="false" format="dd/MM/yyyy"
|
|
value="@{winEditarConvenio$composer.convenio.fecViajeFinal}"/>
|
|
</hbox>
|
|
</row>
|
|
</rows>
|
|
</grid>
|
|
|
|
<toolbar>
|
|
<separator bar="true" />
|
|
</toolbar>
|
|
|
|
<grid fixedLayout="true">
|
|
<columns>
|
|
<column width="40%" />
|
|
<column width="60%" />
|
|
</columns>
|
|
<rows>
|
|
<row>
|
|
<label
|
|
value="${c:l('editarConvenioController.lbPorcdescuento.value')}" />
|
|
<textbox id="txtPorcdescuento"
|
|
use="com.rjconsultores.ventaboletos.web.gui.componente.esquemaoperacional.MyCustomTextboxDecimal" />
|
|
</row>
|
|
<row>
|
|
<label value="${c:l('editarConvenioController.lbNumeroDocumento.value')}" />
|
|
<hbox>
|
|
<label value="${c:l('editarConvenioController.lbNumfolioinicio.value')}" />
|
|
<longbox id="txtNumfolioinicio" maxlength="10" />
|
|
<label value="${c:l('editarConvenioController.lbNumfoliofinal.value')}" />
|
|
<longbox id="txtNumfoliofinal" maxlength="10" />
|
|
</hbox>
|
|
</row>
|
|
</rows>
|
|
</grid>
|
|
|
|
<toolbar>
|
|
<button id="btnAdicionarConvenioDet" height="20"
|
|
image="/gui/img/add.png" width="35px"
|
|
tooltiptext="${c:l('editarConvenioController.btnAddConvenioDet.tooltiptext')}" />
|
|
<button id="btnRemoverConvenioDet" height="20"
|
|
image="/gui/img/remove.png" width="35px"
|
|
tooltiptext="${c:l('editarConvenioController.btnBorrarConvenioDet.tooltiptext')}" />
|
|
</toolbar>
|
|
|
|
<listbox id="convenioDetList"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
|
multiple="false">
|
|
<listhead sizable="true">
|
|
<listheader image="/gui/img/create_doc.gif"
|
|
label="${c:l('editarConvenioController.lbPorcdescuento.value')}" />
|
|
<listheader image="/gui/img/create_doc.gif"
|
|
label="${c:l('editarConvenioController.lbNumfolioinicio.value')}" />
|
|
<listheader image="/gui/img/create_doc.gif"
|
|
label="${c:l('editarConvenioController.lbNumfoliofinal.value')}" />
|
|
</listhead>
|
|
</listbox>
|
|
</tabpanel>
|
|
<tabpanel>
|
|
<!-- Tramo -->
|
|
<grid fixedLayout="true">
|
|
<columns>
|
|
<column width="20%" />
|
|
<column width="80%" />
|
|
</columns>
|
|
<rows>
|
|
<row>
|
|
<label value="${c:l('editarConvenioController.tabTrecho.origem.value')}" />
|
|
<combobox id="cmbParadaOrigem"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
|
mold="rounded" buttonVisible="true" width="90%" sinTodos="false" />
|
|
</row>
|
|
<row>
|
|
<label value="${c:l('editarConvenioController.tabTrecho.Destino.value')}" />
|
|
<combobox id="cmbParadaDestino"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
|
mold="rounded" buttonVisible="true" width="90%" sinTodos="false" />
|
|
</row>
|
|
<row>
|
|
<label value=" " />
|
|
<hbox>
|
|
<button id="btnAdicionarTrecho" height="20" image="/gui/img/add.png" width="35px" tooltiptext="${c:l('tooltiptext.btnAgregar')}" />
|
|
<button id="btnRemoverTrecho" height="20" image="/gui/img/remove.png" width="35px" tooltiptext="${c:l('tooltiptext.btnEliminar')}" />
|
|
</hbox>
|
|
</row>
|
|
</rows>
|
|
</grid>
|
|
<listbox id="convenioTramoList"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
|
vflex="true" multiple="false">
|
|
<listhead sizable="true">
|
|
<listheader image="/gui/img/create_doc.gif" label="${c:l('editarConvenioController.tabTrecho.origem.value')}" />
|
|
<listheader image="/gui/img/create_doc.gif" label="${c:l('editarConvenioController.tabTrecho.Destino.value')}" />
|
|
</listhead>
|
|
</listbox>
|
|
</tabpanel>
|
|
<tabpanel>
|
|
<!-- Usuário -->
|
|
<grid fixedLayout="true">
|
|
<columns>
|
|
<column width="20%" />
|
|
<column width="80%" />
|
|
</columns>
|
|
<rows>
|
|
<row>
|
|
<label value="${c:l('editarConvenioController.tabUsuario.value')}" />
|
|
<combobox id="cmbUsuario"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxUsuario"
|
|
mold="rounded" buttonVisible="true" width="90%"/>
|
|
</row>
|
|
<row>
|
|
<label value=" " />
|
|
<hbox>
|
|
<button id="btnAdicionarUsuario" height="20" image="/gui/img/add.png" width="35px" tooltiptext="${c:l('tooltiptext.btnAgregar')}" />
|
|
<button id="btnRemoverUsuario" height="20" image="/gui/img/remove.png" width="35px" tooltiptext="${c:l('tooltiptext.btnEliminar')}" />
|
|
</hbox>
|
|
</row>
|
|
</rows>
|
|
</grid>
|
|
<listbox id="convenioUsuarioList"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
|
vflex="true" multiple="false">
|
|
<listhead sizable="true">
|
|
<listheader image="/gui/img/create_doc.gif" label="${c:l('editarConvenioController.tabUsuario.usuario.idUsuario.value')}" />
|
|
<listheader image="/gui/img/create_doc.gif" label="${c:l('editarConvenioController.tabUsuario.usuario.nomeUsuario.value')}" />
|
|
</listhead>
|
|
</listbox>
|
|
</tabpanel>
|
|
<tabpanel>
|
|
<!-- Punto Venta -->
|
|
<grid fixedLayout="true">
|
|
<columns>
|
|
<column width="20%" />
|
|
<column width="80%" />
|
|
</columns>
|
|
<rows>
|
|
<row>
|
|
<label value="${c:l('editarConvenioController.tabPuntoVenta.value')}" />
|
|
<combobox id="cmbPuntoVenta"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
|
|
mold="rounded" buttonVisible="true" width="90%"/>
|
|
</row>
|
|
<row>
|
|
<label value=" " />
|
|
<hbox>
|
|
<button id="btnAdicionarPuntoVenta" height="20" image="/gui/img/add.png" width="35px" tooltiptext="${c:l('tooltiptext.btnAgregar')}" />
|
|
<button id="btnRemoverPuntoVenta" height="20" image="/gui/img/remove.png" width="35px" tooltiptext="${c:l('tooltiptext.btnEliminar')}" />
|
|
</hbox>
|
|
</row>
|
|
</rows>
|
|
</grid>
|
|
<listbox id="convenioPuntoVentaList"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
|
vflex="true" multiple="false">
|
|
<listhead sizable="true">
|
|
<listheader image="/gui/img/create_doc.gif" label="${c:l('editarConvenioController.tabPuntoVenta.puntoVenta.descricao.value')}" />
|
|
</listhead>
|
|
</listbox>
|
|
</tabpanel>
|
|
</tabpanels>
|
|
</tabbox>
|
|
</window>
|
|
</zk>
|