494 lines
20 KiB
XML
494 lines
20 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="winEditarConfRestricaoCanalVenta"?>
|
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
|
|
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
|
<window id="winEditarConfRestricaoCanalVenta" border="normal"
|
|
apply="${editarConfRestricaoCanalVentaController}" width="600px"
|
|
height="590px" contentStyle="overflow:auto"
|
|
title="${c:l('editarConfRestricaoCanalVentaController.window.title')}"
|
|
xmlns:h="http://www.w3.org/1999/xhtml">
|
|
|
|
<toolbar>
|
|
<hbox spacing="5px" style="padding:1px" align="right">
|
|
<button id="btnApagar" height="20"
|
|
image="/gui/img/remove.png" width="35px"
|
|
tooltiptext="${c:l('editarConfRestricaoCanalVentaController.btnApagar.tooltiptext')}" />
|
|
<button id="btnSalvar" height="20"
|
|
image="/gui/img/save.png" width="35px"
|
|
tooltiptext="${c:l('editarConfRestricaoCanalVentaController.btnSalvar.tooltiptext')}" />
|
|
<button id="btnCopiar" height="20"
|
|
image="/gui/img/copiar.png" width="35px"
|
|
tooltiptext="${c:l('editarConfRestricaoCanalVentaController.btnCopiar.tooltiptext')}" />
|
|
<button id="btnFechar" height="20"
|
|
image="/gui/img/exit.png" width="35px"
|
|
onClick="winEditarConfRestricaoCanalVenta.detach()"
|
|
tooltiptext="${c:l('editarConfRestricaoCanalVentaController.btnFechar.tooltiptext')}" />
|
|
</hbox>
|
|
</toolbar>
|
|
|
|
<tabbox id="tabboxTitle">
|
|
<tabs width="200px">
|
|
<tab
|
|
label="${c:l('editarConfRestricaoCanalVentaController.aba.Configuracoes')}" />
|
|
<tab
|
|
label="${c:l('editarConfRestricaoCanalVentaController.aba.Tramos')}" />
|
|
<tab
|
|
label="${c:l('editarConfRestricaoCanalVentaController.aba.Excecoes')}" id="tabConfRestricaoExcecao" />
|
|
<tab
|
|
label="${c:l('editarConfRestricaoCanalVentaController.aba.Ptovta')}" id="tabConfRestricaoPtovta" />
|
|
|
|
<tab label="${c:l('editarConfRestricaoCanalVentaController.aba.OrgaoConcedente')}" />
|
|
|
|
<tab label="${c:l('editarConfRestricaoCanalVentaController.aba.linhas')}" />
|
|
|
|
<tab label="${c:l('editarConfRestricaoCanalVentaController.aba.trechos')}" />
|
|
</tabs>
|
|
|
|
<tabpanels>
|
|
<tabpanel>
|
|
<grid fixedLayout="true">
|
|
<columns>
|
|
<column width="20%" />
|
|
<column width="80%" />
|
|
</columns>
|
|
<rows>
|
|
<row>
|
|
<label
|
|
value="${c:l('confRestricaoCanalVentaController.lhDesc.label')}" />
|
|
<textbox id="txtDescConf" width="98%"
|
|
value="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.descConfRestricaoCanalVenta}"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
|
</row>
|
|
<row>
|
|
<label
|
|
value="${c:l('confRestricaoCanalVentaController.Servico.label')}" />
|
|
<intbox id="txtServico" width="20%"
|
|
value="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.corridaId}" />
|
|
</row>
|
|
<row>
|
|
<label
|
|
value="${c:l('confRestricaoCanalVentaController.DataServico.label')}" />
|
|
<datebox id="dtServicio" width="30%"
|
|
mold="rounded"
|
|
value="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.fecCorrida}" />
|
|
</row>
|
|
<row>
|
|
<label
|
|
value="${c:l('confRestricaoCanalVentaController.lhVigencia.label')}" />
|
|
<hbox>
|
|
<h:table border="0">
|
|
<h:tr>
|
|
<h:td>
|
|
<label
|
|
value="${c:l('confRestricaoCanalVentaController.lhDe.label')}" />
|
|
</h:td>
|
|
<h:td>
|
|
<datebox
|
|
id="feciniciovigencia" constraint="no empty" width="120px"
|
|
mold="rounded"
|
|
value="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.feciniciovigencia}" />
|
|
</h:td>
|
|
<h:td>
|
|
<label
|
|
value="${c:l('confRestricaoCanalVentaController.lhAte.label')}" />
|
|
</h:td>
|
|
<h:td>
|
|
<datebox
|
|
id="fecfinvigencia" constraint="no empty" width="120px"
|
|
mold="rounded"
|
|
value="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.fecfinvigencia}" />
|
|
</h:td>
|
|
</h:tr>
|
|
</h:table>
|
|
</hbox>
|
|
</row>
|
|
<row>
|
|
<label
|
|
value="${c:l('confRestricaoCanalVentaController.lhEmpresa.label')}" />
|
|
<combobox id="cmbEmpresa"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
|
mold="rounded" buttonVisible="true" width="60%"
|
|
selectedItem="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.empresa}"
|
|
model="@{winEditarConfRestricaoCanalVenta$composer.lsEmpresa}" />
|
|
</row>
|
|
<row>
|
|
<label
|
|
value="${c:l('editarConfiguracionCorridaController.cmbRuta.value')}" />
|
|
<combobox id="cmbRuta"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxRuta"
|
|
mold="rounded" buttonVisible="true" width="60%"
|
|
initialValue="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.ruta}"
|
|
selectedItem="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.ruta}"/>
|
|
</row>
|
|
<row>
|
|
<label
|
|
value="${c:l('confRestricaoCanalVentaController.exibeconsultavendaweb.label')}" />
|
|
<checkbox id="chkExibeconsultavendaweb"
|
|
checked="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.indexibeconsultavendaweb}" />
|
|
</row>
|
|
<row>
|
|
<label
|
|
value="${c:l('confRestricaoCanalVentaController.exibecorridabloq.label')}" />
|
|
<checkbox id="chkExibecorridabloq"
|
|
checked="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.indexibecorridabloq}" />
|
|
|
|
</row>
|
|
<row>
|
|
<label
|
|
value="${c:l('confRestricaoCanalVentaController.restricaoDiamica.label')}" />
|
|
<checkbox id="chkRestricaoDiamica"
|
|
checked="@{winEditarConfRestricaoCanalVenta$composer.confRestricaoCanalVenta.indRestricaoDinamica}" />
|
|
|
|
</row>
|
|
|
|
</rows>
|
|
</grid>
|
|
</tabpanel>
|
|
<!-- TRAMOS -->
|
|
<tabpanel>
|
|
<grid fixedLayout="true">
|
|
<columns>
|
|
<column width="20%" />
|
|
<column width="80%" />
|
|
</columns>
|
|
<rows>
|
|
<row>
|
|
<label
|
|
value="${c:l('confRestricaoCanalVentaController.CanalVenda.label')}" />
|
|
<combobox id="cmbTipoPtoVta"
|
|
mold="rounded" buttonVisible="true" width="60%"
|
|
model="@{winEditarConfRestricaoCanalVenta$composer.lsTipoPtoVta}"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
|
|
</row>
|
|
<row>
|
|
<label
|
|
value="${c:l('confRestricaoCanalVentaController.Origem.label')}" />
|
|
<combobox id="cmbOrigen" mold="rounded"
|
|
buttonVisible="true" width="60%"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" />
|
|
</row>
|
|
<row>
|
|
<label
|
|
value="${c:l('confRestricaoCanalVentaController.Destino.label')}" />
|
|
<combobox id="cmbDestino" mold="rounded"
|
|
buttonVisible="true" width="60%"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" />
|
|
</row>
|
|
<row>
|
|
<label
|
|
value="${c:l('confRestricaoCanalVentaController.TempoPermitir.label')}" />
|
|
<vbox>
|
|
<h:table border="0">
|
|
<h:tr>
|
|
<h:td width="20%">
|
|
<timebox
|
|
id="timeTempoPermitir" width="70px" mold="rounded"
|
|
format="HH:mm" />
|
|
</h:td>
|
|
<h:td>
|
|
<label
|
|
value="${c:l('confRestricaoCanalVentaController.TempoPermitirOBS.label')}" />
|
|
</h:td>
|
|
</h:tr>
|
|
</h:table>
|
|
</vbox>
|
|
</row>
|
|
<row>
|
|
<label
|
|
value="${c:l('confRestricaoCanalVentaController.DiasSemana.label')}" />
|
|
<hbox>
|
|
<checkbox id="chkSegunda"
|
|
label="${c:l('confRestricaoCanalVentaController.Segunda.label')}" />
|
|
<checkbox id="chkTerca"
|
|
label="${c:l('confRestricaoCanalVentaController.Terca.label')}" />
|
|
<checkbox id="chkQuarta"
|
|
label="${c:l('confRestricaoCanalVentaController.Quarta.label')}" />
|
|
<checkbox id="chkQuinta"
|
|
label="${c:l('confRestricaoCanalVentaController.Quinta.label')}" />
|
|
<checkbox id="chkSexta"
|
|
label="${c:l('confRestricaoCanalVentaController.Sexta.label')}" />
|
|
<checkbox id="chkSabado"
|
|
label="${c:l('confRestricaoCanalVentaController.Sabado.label')}" />
|
|
<checkbox id="chkDomingo"
|
|
label="${c:l('confRestricaoCanalVentaController.Domingo.label')}" />
|
|
</hbox>
|
|
</row>
|
|
</rows>
|
|
</grid>
|
|
<toolbar>
|
|
<hbox spacing="5px" style="padding:1px"
|
|
align="right">
|
|
<button id="btnRemoverConfRestricaoTramo"
|
|
height="20" image="/gui/img/remove.png" width="35px"
|
|
tooltiptext="${c:l('editarConfiguracionFormaPagoController.btnApagar.tooltiptext')}" />
|
|
<button id="btnAdicionarConfRestricaoTramo"
|
|
height="20" image="/gui/img/add.png" width="35px"
|
|
tooltiptext="${c:l('editarConfiguracionFormaPagoController.btnSalvar.tooltiptext')}" />
|
|
</hbox>
|
|
</toolbar>
|
|
<paging id="pagingConfRestricaoCanalVenta"
|
|
pageSize="20" />
|
|
<listbox id="confRestricaoTramoDataList"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
|
multiple="false" height="210px" >
|
|
<listhead sizable="true">
|
|
<listheader width="10%"
|
|
label="${c:l('lb.id')}"
|
|
sort="auto(confRestricaoTramoId)" />
|
|
<listheader
|
|
label="${c:l('confRestricaoCanalVentaController.CanalVenda.label')}"
|
|
sort="auto(tipoPuntoVenta.desctipo)" width="22%" />
|
|
<listheader width="18%"
|
|
label="${c:l('confRestricaoCanalVentaController.Origem.label')}"
|
|
sort="auto(origem.descparada)" />
|
|
<listheader width="18%"
|
|
label="${c:l('confRestricaoCanalVentaController.Destino.label')}"
|
|
sort="auto(destino.descparada)" />
|
|
<listheader width="25%"
|
|
label="${c:l('confRestricaoCanalVentaController.TempoPermitir.label')}"
|
|
sort="auto(tempoPermitir)" />
|
|
<listheader align="center"
|
|
label="${c:l('confRestricaoCanalVentaController.DiasSemana.label')}" width="35%" >
|
|
<hbox>
|
|
<label value="${c:l('confRestricaoCanalVentaController.Segunda.label')}"/>
|
|
<label value="${c:l('confRestricaoCanalVentaController.Terca.label')}"/>
|
|
<label value="${c:l('confRestricaoCanalVentaController.Quarta.label')}"/>
|
|
<label value="${c:l('confRestricaoCanalVentaController.Quinta.label')}"/>
|
|
<label value="${c:l('confRestricaoCanalVentaController.Sexta.label')}"/>
|
|
<label value="${c:l('confRestricaoCanalVentaController.Sabado.label')}"/>
|
|
<label value="${c:l('confRestricaoCanalVentaController.Domingo.label')}"/>
|
|
</hbox>
|
|
</listheader>
|
|
</listhead>
|
|
</listbox>
|
|
</tabpanel>
|
|
<!-- ConfRestricaoExcecao -->
|
|
<tabpanel >
|
|
<grid fixedLayout="true">
|
|
<columns>
|
|
<column width="20%" />
|
|
<column width="80%" />
|
|
</columns>
|
|
<rows>
|
|
<row>
|
|
<label
|
|
value="${c:l('confRestricaoCanalVentaController.tramoRestrito.label')}" />
|
|
<combobox id="cmbConfRestricaoTramoExcecao"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
|
mold="rounded" buttonVisible="true" width="60%" />
|
|
</row>
|
|
<row>
|
|
<label
|
|
value="${c:l('confRestricaoCanalVentaController.DataServico.label')}" />
|
|
<datebox id="dtExcecaoServicio"
|
|
width="30%" mold="rounded" />
|
|
</row>
|
|
</rows>
|
|
</grid>
|
|
|
|
<toolbar>
|
|
<button id="btnAdicionarExcecao" height="20"
|
|
image="/gui/img/add.png" width="35px"
|
|
tooltiptext="${c:l('editarConfiguracionCorridaController.btnAdcionarTramo.tooltiptext')}" />
|
|
<button id="btnRemoverExcecao" height="20"
|
|
image="/gui/img/remove.png" width="35px"
|
|
tooltiptext="${c:l('editarConfiguracionCorridaController.btnRemoverTramo.tooltiptext')}" />
|
|
</toolbar>
|
|
|
|
<listbox id="excecaoDataList"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
|
multiple="false" checkmark="false" tooltiptext="">
|
|
<listhead sizable="true">
|
|
<listheader image="/gui/img/create_doc.gif"
|
|
label="${c:l('confRestricaoCanalVentaController.tramoRestrito.label')}"
|
|
sort="auto(confRestricaoTramo)" />
|
|
<listheader image="/gui/img/create_doc.gif"
|
|
label="${c:l('confRestricaoCanalVentaController.DataServico.label')}"
|
|
sort="auto(fecExcecao)" />
|
|
</listhead>
|
|
</listbox>
|
|
</tabpanel>
|
|
|
|
<!-- ConfRestricaoPtovta -->
|
|
|
|
<tabpanel >
|
|
<grid fixedLayout="true">
|
|
<columns>
|
|
<column width="20%" />
|
|
<column width="80%" />
|
|
</columns>
|
|
<rows>
|
|
<row>
|
|
<label
|
|
value="${c:l('confRestricaoCanalVentaController.tramoRestrito.label')}" />
|
|
<combobox id="cmbConfRestricaoTramoPtoVta"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
|
mold="rounded" buttonVisible="true" width="60%"/>
|
|
</row>
|
|
<row>
|
|
<label
|
|
value="${c:l('busquedaEstacionController.lhPuntoVenta.label')}" />
|
|
<combobox id="cmbPuntoVenta"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
|
|
mold="rounded" buttonVisible="true" width="90%" />
|
|
</row>
|
|
</rows>
|
|
</grid>
|
|
|
|
<toolbar>
|
|
<button id="btnAddRestricaoPtovta" height="20"
|
|
image="/gui/img/add.png" width="35px"
|
|
tooltiptext="${c:l('editarConfiguracionCorridaController.btnAdcionarTramo.tooltiptext')}" />
|
|
<button id="btnRemoveRestricaoPtovta"
|
|
height="20" image="/gui/img/remove.png" width="35px"
|
|
tooltiptext="${c:l('editarConfiguracionCorridaController.btnRemoverTramo.tooltiptext')}" />
|
|
</toolbar>
|
|
|
|
<listbox id="confRestricaoPtovtaDataList"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
|
multiple="false" checkmark="false" tooltiptext="">
|
|
<listhead sizable="true">
|
|
<listheader image="/gui/img/create_doc.gif"
|
|
label="${c:l('confRestricaoCanalVentaController.tramoRestrito.label')}"
|
|
sort="auto(confRestricaoTramo)" />
|
|
<listheader image="/gui/img/create_doc.gif"
|
|
label="${c:l('editarConfRestricaoCanalVentaController.comb.Ptovta')}" />
|
|
</listhead>
|
|
</listbox>
|
|
|
|
</tabpanel>
|
|
|
|
<!-- Orgao Concedente -->
|
|
<tabpanel>
|
|
<grid fixedLayout="true">
|
|
<columns>
|
|
<column width="20%" />
|
|
<column width="80%" />
|
|
</columns>
|
|
<rows>
|
|
<row>
|
|
<label
|
|
value="${c:l('busquedaEstacionController.OrgaoConcedente.label')}" />
|
|
<combobox id="cmbOrgaoConcedente"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
|
mold="rounded" buttonVisible="true" width="90%" />
|
|
</row>
|
|
</rows>
|
|
</grid>
|
|
|
|
<toolbar>
|
|
<button id="btnAddOrgaoConcedente" height="20"
|
|
image="/gui/img/add.png" width="35px"
|
|
tooltiptext="${c:l('editarConfiguracionCorridaController.btnAdcionarTramo.tooltiptext')}" />
|
|
<button id="btnRemoveOrgaoConcedente"
|
|
height="20" image="/gui/img/remove.png" width="35px"
|
|
tooltiptext="${c:l('editarConfiguracionCorridaController.btnRemoverTramo.tooltiptext')}" />
|
|
</toolbar>
|
|
|
|
<listbox id="confRestOrgaoConcedenteDataList"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
|
multiple="false" checkmark="false" tooltiptext="">
|
|
<listhead sizable="true">
|
|
<listheader image="/gui/img/create_doc.gif"
|
|
label="ID"
|
|
sort="auto(confRestricaoTramo)" />
|
|
<listheader image="/gui/img/create_doc.gif"
|
|
label="${c:l('busquedaEstacionController.OrgaoConcedente.label')}" />
|
|
</listhead>
|
|
</listbox>
|
|
</tabpanel>
|
|
|
|
<!-- Excecao de linhas -->
|
|
<tabpanel >
|
|
<grid fixedLayout="true">
|
|
<columns>
|
|
<column width="20%" />
|
|
<column width="80%" />
|
|
</columns>
|
|
<rows>
|
|
<row>
|
|
<label
|
|
value="${c:l('busquedaEstacionController.ExcecaoLinhas.label')}" />
|
|
<combobox id="cmbExcecaoRutas"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
|
mold="rounded" buttonVisible="true" width="90%" />
|
|
</row>
|
|
</rows>
|
|
</grid>
|
|
|
|
<toolbar>
|
|
<button id="btnAddRuta" height="20"
|
|
image="/gui/img/add.png" width="35px"
|
|
tooltiptext="${c:l('editarConfiguracionCorridaController.btnAdcionarTramo.tooltiptext')}" />
|
|
<button id="btnRemoveRuta"
|
|
height="20" image="/gui/img/remove.png" width="35px"
|
|
tooltiptext="${c:l('editarConfiguracionCorridaController.btnRemoverTramo.tooltiptext')}" />
|
|
</toolbar>
|
|
|
|
<listbox id="confRestRutasDataList"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
|
multiple="false" checkmark="false" tooltiptext="">
|
|
<listhead sizable="true">
|
|
<listheader image="/gui/img/create_doc.gif"
|
|
label="${c:l('busquedaEstacionController.ExcecaoLinhas.label')}"
|
|
sort="auto(confRestricaoTramo)" />
|
|
</listhead>
|
|
</listbox>
|
|
</tabpanel>
|
|
|
|
|
|
<!-- Excecao de trechos-->
|
|
<tabpanel >
|
|
<grid fixedLayout="true">
|
|
<columns>
|
|
<column width="20%" />
|
|
<column width="80%" />
|
|
</columns>
|
|
<rows>
|
|
<row>
|
|
<label
|
|
value="${c:l('busquedaEstacionController.ExcecaoTramo.Origem.label')}" />
|
|
<combobox id="cmbOrigemTramoOC"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
|
mold="rounded" buttonVisible="true" width="90%" />
|
|
</row>
|
|
<row>
|
|
<label
|
|
value="${c:l('busquedaEstacionController.ExcecaoTramo.Destino.label')}" />
|
|
<combobox id="cmbDestinoTramoOC"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
|
mold="rounded" buttonVisible="true" width="90%" />
|
|
</row>
|
|
</rows>
|
|
</grid>
|
|
|
|
<toolbar>
|
|
<button id="btnAddTrechoOC" height="20"
|
|
image="/gui/img/add.png" width="35px"
|
|
tooltiptext="${c:l('editarConfiguracionCorridaController.btnAdcionarTramo.tooltiptext')}" />
|
|
<button id="btnRemoveTrechoOC"
|
|
height="20" image="/gui/img/remove.png" width="35px"
|
|
tooltiptext="${c:l('editarConfiguracionCorridaController.btnRemoverTramo.tooltiptext')}" />
|
|
</toolbar>
|
|
|
|
<listbox id="confRestTramoOCDataList"
|
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
|
multiple="false" checkmark="false" tooltiptext="">
|
|
<listhead sizable="true">
|
|
<listheader image="/gui/img/create_doc.gif"
|
|
label="${c:l('busquedaEstacionController.ExcecaoTramo.Origem.label')}"
|
|
sort="auto(confRestricaoTramo)" />
|
|
<listheader image="/gui/img/create_doc.gif"
|
|
label="${c:l('busquedaEstacionController.ExcecaoTramo.Destino.label')}"
|
|
/>
|
|
</listhead>
|
|
</listbox>
|
|
</tabpanel>
|
|
|
|
</tabpanels>
|
|
</tabbox>
|
|
</window>
|
|
</zk> |