473 lines
18 KiB
XML
473 lines
18 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')}" />
|
|
<tab label="${c:l('editarConvenioController.tab.label.empresas')}" />
|
|
<tab label="${c:l('editarConvenioController.tab.label.linhas')}" />
|
|
</tabs>
|
|
<tabpanels>
|
|
<!-- Descontos -->
|
|
<tabpanel>
|
|
<grid fixedLayout="true">
|
|
<columns>
|
|
<column width="40%" />
|
|
<column width="60%" />
|
|
</columns>
|
|
<rows>
|
|
<row spans="2">
|
|
<radiogroup id="grGeralPorCliente">
|
|
<hbox>
|
|
<radio id="rdGeral" label="${c:l('editarConvenioController.Geral.value')}" selected="true" />
|
|
<radio id="rdPorCliente" label="${c:l('editarConvenioController.PorCliente.value')}" />
|
|
</hbox>
|
|
</radiogroup>
|
|
</row>
|
|
<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="20"
|
|
value="@{winEditarConvenio$composer.convenio.cveconvenio}"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
|
</row>
|
|
<row spans="2">
|
|
<label
|
|
value="${c:l('editarConvenioController.lbTipoDesconto.value')}" />
|
|
</row>
|
|
<row spans="2">
|
|
<radiogroup id="grTipoDesconto">
|
|
<hbox>
|
|
<radio id="rdPorNumDocumento" label="${c:l('editarConvenioController.PorNumDocumento.value')}" selected="true" />
|
|
<radio id="rdPorQuantidade" label="${c:l('editarConvenioController.PorQuantidade.value')}" />
|
|
<radio id="rdNaoInformar" label="${c:l('editarConvenioController.NaoInformar.value')}" />
|
|
</hbox>
|
|
</radiogroup>
|
|
</row>
|
|
<row>
|
|
<label value="${c:l('editarConvenioController.lbValidaFolio.value')}" />
|
|
<checkbox id="chkValidaFolio" value="@{winEditarConvenio$composer.convenio.validafolio}" 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')}" checked="true" />
|
|
<radio id="rdPrecioDescuento" label="${c:l('editarConvenioController.PrecioDescuento.value')}" tooltiptext="${c:l('editarConvenioController.DescuentoTooltiptext.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" format="dd/MM/yyyy HH:mm"
|
|
value="@{winEditarConvenio$composer.convenio.fecVentaInicial}" />
|
|
<label value="${c:l('editarConvenioController.lbPeriodoEmissao.final')}" />
|
|
<datebox id="fecVentaFinal" format="dd/MM/yyyy HH:mm"
|
|
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" format="dd/MM/yyyy HH:mm"
|
|
value="@{winEditarConvenio$composer.convenio.fecViajeInicial}" />
|
|
<label
|
|
value="${c:l('editarConvenioController.lbPeriodoViagem.final')}" />
|
|
<datebox id="fecViajeFinal" format="dd/MM/yyyy HH:mm"
|
|
value="@{winEditarConvenio$composer.convenio.fecViajeFinal}" />
|
|
</hbox>
|
|
</row>
|
|
<row spans="2">
|
|
<label value="${c:l('editarConvenioController.lbCliente.value')}" />
|
|
</row>
|
|
<row spans="2">
|
|
<bandbox id="bandBoxCliente" mold="rounded" autodrop="true" width="100%" readonly="true">
|
|
<bandpopup>
|
|
<vbox>
|
|
<hbox>
|
|
<label value="${c:l('editarConvenioController.nomeCliente.value')}" />
|
|
<textbox id="txtNomeCliente" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" width="300px" mold="rounded" />
|
|
<button id="btnPesquisa" image="/gui/img/find.png" label="${c:l('relatorioLinhaOperacionalController.btnPesquisa.label')}" />
|
|
<button id="btnLimpar" image="/gui/img/eraser.png" label="${c:l('relatorioLinhaOperacionalController.btnLimpar.label')}" />
|
|
</hbox>
|
|
<paging id="pagingCliente" pageSize="10" />
|
|
<listbox id="clienteList" mold="paging" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" vflex="true" height="100%" width="700px">
|
|
<listhead>
|
|
<listheader label="${c:l('editarConvenioController.lbIdCliente.value')}" width="20%" />
|
|
<listheader label="${c:l('editarConvenioController.nomeCliente.value')}" />
|
|
<listheader label="${c:l('editarConvenioController.lbCpfCliente.value')}" width="30%"/>
|
|
</listhead>
|
|
</listbox>
|
|
</vbox>
|
|
</bandpopup>
|
|
</bandbox>
|
|
</row>
|
|
</rows>
|
|
</grid>
|
|
|
|
<toolbar>
|
|
<separator bar="true" />
|
|
</toolbar>
|
|
|
|
<grid fixedLayout="true">
|
|
<columns>
|
|
<column width="40%" />
|
|
<column width="60%" />
|
|
</columns>
|
|
<rows>
|
|
<row spans="2">
|
|
<label
|
|
value="${c:l('editarConvenioController.lbPorcdescuento.value')}" />
|
|
</row>
|
|
|
|
<row>
|
|
<label
|
|
value="${c:l('editarConvenioController.lbTarifa.value')}" />
|
|
<textbox id="txtTarifa"
|
|
use="com.rjconsultores.ventaboletos.web.gui.componente.esquemaoperacional.MyCustomTextboxDecimal" />
|
|
</row>
|
|
|
|
<row>
|
|
<label
|
|
value="${c:l('editarConvenioController.lbTxEmbarque.value')}" />
|
|
<textbox id="txtTxEmbarque"
|
|
use="com.rjconsultores.ventaboletos.web.gui.componente.esquemaoperacional.MyCustomTextboxDecimal" />
|
|
</row>
|
|
|
|
<row>
|
|
<label
|
|
value="${c:l('editarConvenioController.lbPedagio.value')}" />
|
|
<textbox id="txtPedagio"
|
|
use="com.rjconsultores.ventaboletos.web.gui.componente.esquemaoperacional.MyCustomTextboxDecimal" />
|
|
</row>
|
|
|
|
<row>
|
|
<label
|
|
value="${c:l('editarConvenioController.lbSeguro.value')}" />
|
|
<textbox id="txtSeguro"
|
|
use="com.rjconsultores.ventaboletos.web.gui.componente.esquemaoperacional.MyCustomTextboxDecimal" />
|
|
</row>
|
|
<row>
|
|
<label
|
|
value="${c:l('editarConvenioController.lbOutros.value')}" />
|
|
<textbox id="txtOutros"
|
|
use="com.rjconsultores.ventaboletos.web.gui.componente.esquemaoperacional.MyCustomTextboxDecimal" />
|
|
</row>
|
|
</rows>
|
|
</grid>
|
|
|
|
|
|
<toolbar>
|
|
<separator bar="true" />
|
|
</toolbar>
|
|
|
|
<grid fixedLayout="true">
|
|
<columns>
|
|
<column width="40%" />
|
|
<column width="60%" />
|
|
</columns>
|
|
<rows>
|
|
<row>
|
|
<label id="lbNumDoc"
|
|
value="${c:l('editarConvenioController.lbNumeroDocumento.value')}"
|
|
visible="true" />
|
|
<hbox>
|
|
<label id="lbFolioInicio"
|
|
value="${c:l('editarConvenioController.lbNumfolioinicio.value')}"
|
|
visible="true" />
|
|
<longbox id="txtNumfolioinicio"
|
|
maxlength="10" />
|
|
<label id="lbFolioFinal"
|
|
value="${c:l('editarConvenioController.lbNumfoliofinal.value')}"
|
|
visible="true" />
|
|
<longbox id="txtNumfoliofinal"
|
|
maxlength="10" />
|
|
</hbox>
|
|
</row>
|
|
|
|
<row>
|
|
<label id="lbQuantidade"
|
|
value="${c:l('editarConvenioController.lbQuantidade.value')}"
|
|
visible="false" />
|
|
<longbox id="txtQuantidade"
|
|
maxlength="10" visible="false" />
|
|
</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.lbTarifa.value')}" />
|
|
<listheader image="/gui/img/create_doc.gif"
|
|
label="${c:l('editarConvenioController.lbTxEmbarque.value')}" />
|
|
<listheader image="/gui/img/create_doc.gif"
|
|
label="${c:l('editarConvenioController.lbPedagio.value')}" />
|
|
<listheader image="/gui/img/create_doc.gif"
|
|
label="${c:l('editarConvenioController.lbSeguro.value')}" />
|
|
<listheader image="/gui/img/create_doc.gif"
|
|
label="${c:l('editarConvenioController.lbOutros.value')}" />
|
|
<listheader image="/gui/img/create_doc.gif"
|
|
label="${c:l('editarConvenioController.lbNumDocinicio.value')}" />
|
|
<listheader image="/gui/img/create_doc.gif"
|
|
label="${c:l('editarConvenioController.lbNumDocfinal.value')}" />
|
|
<listheader image="/gui/img/create_doc.gif"
|
|
label="${c:l('editarConvenioController.lbQuantidade.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"
|
|
sinTodos="true"
|
|
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>
|
|
<tabpanel>
|
|
<!-- Empresa -->
|
|
<grid fixedLayout="true">
|
|
<columns>
|
|
<column width="20%" />
|
|
<column width="80%" />
|
|
</columns>
|
|
<rows>
|
|
<row>
|
|
<label value="${c:l('editarConvenioController.tabEmpresa.value')}" />
|
|
<combobox id="cmbEmpresa"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
|
mold="rounded" width="200px"
|
|
model="@{winEditarConvenio$composer.lsEmpresa}" />
|
|
</row>
|
|
<row>
|
|
<label value=" " />
|
|
<hbox>
|
|
<button id="btnAdicionarEmpresa"
|
|
height="20" image="/gui/img/add.png" width="35px"
|
|
tooltiptext="${c:l('tooltiptext.btnAgregar')}" />
|
|
<button id="btnRemoverEmpresa"
|
|
height="20" image="/gui/img/remove.png" width="35px"
|
|
tooltiptext="${c:l('tooltiptext.btnEliminar')}" />
|
|
</hbox>
|
|
</row>
|
|
</rows>
|
|
</grid>
|
|
<listbox id="empresaList"
|
|
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.tabEmpresa.descricao.value')}" />
|
|
</listhead>
|
|
</listbox>
|
|
</tabpanel>
|
|
<tabpanel>
|
|
<!-- Linhas -->
|
|
<grid fixedLayout="true">
|
|
<columns>
|
|
<column width="20%" />
|
|
<column width="80%" />
|
|
</columns>
|
|
<rows>
|
|
<row>
|
|
<label value="${c:l('editarConvenioController.tabLinha.value')}" />
|
|
<combobox id="cmbRuta"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
|
model="@{winEditarConvenio$composer.lsRutasCombo}"
|
|
mold="rounded" buttonVisible="true" width="90%" />
|
|
</row>
|
|
<row>
|
|
<label value=" " />
|
|
<hbox>
|
|
<button id="btnAdicionarRuta"
|
|
height="20" image="/gui/img/add.png" width="35px"
|
|
tooltiptext="${c:l('tooltiptext.btnAgregar')}" />
|
|
<button id="btnRemoverRuta"
|
|
height="20" image="/gui/img/remove.png" width="35px"
|
|
tooltiptext="${c:l('tooltiptext.btnEliminar')}" />
|
|
</hbox>
|
|
</row>
|
|
</rows>
|
|
</grid>
|
|
<listbox id="rutaList"
|
|
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.tabLinha.descricao.value')}" />
|
|
</listhead>
|
|
</listbox>
|
|
</tabpanel>
|
|
</tabpanels>
|
|
</tabbox>
|
|
</window>
|
|
</zk>
|