AdmMono/web/gui/esquema_operacional/editarTramos.zul

286 lines
16 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="winEditarTramos"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<zk>
<window id="winEditarTramos" border="normal" apply="${editarTramosController}" width="950px" height="400px" title="${c:l('editarTramosController.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('editarTramosController.btnApagar.tooltiptext')}" />
<button id="btnSalvar" height="20" image="/gui/img/save.png" width="35px" tooltiptext="${c:l('editarTramosController.btnSalvar.tooltiptext')}" />
<button id="btnFechar" height="20" image="/gui/img/exit.png" width="35px" onClick="winEditarTramos.detach()"
tooltiptext="${c:l('editarTramosController.btnFechar.tooltiptext')}" />
</hbox>
</toolbar>
<tabbox>
<tabs>
<tab id="tabTramos" label="${c:l('editarTramosController.tabTramos.label')}" />
<tab id="tabServicio" label="${c:l('editarTramosController.tabServicio.label')}" />
<tab id="tabTiempo" label="${c:l('editarTramosController.tabTiempo.label')}" />
<tab id="tabExcepcionesKm" label="${c:l('editarTramosController.tabExcepcionesKm.label')}" />
<tab id="tabOrgaoCoeficientes" label="${c:l('editarTramosController.tabOrgaoCoeficientes.label')}" />
</tabs>
<tabpanels>
<tabpanel>
<grid fixedLayout="true">
<columns>
<column width="20%" />
<column width="80%" />
</columns>
<rows>
<row>
<label id="lbNome" value="${c:l('editarTramosController.lbNome.value')}" />
<textbox id="txtNome" width="80%" maxlength="50" value="@{winEditarTramos$composer.tramo.desctramo}" disabled="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
</row>
<row>
<label value="${c:l('editarTramosController.labelOrigen.value')}" />
<combobox id="cmbParadaOrigem" constraint="no empty" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" mold="rounded" disabled="@{winEditarTramos$composer.existeRutaOcupaTramo}"
buttonVisible="true" width="80%" initialValue="@{winEditarTramos$composer.tramo.origem}" selectedItem="@{winEditarTramos$composer.tramo.origem}" />
</row>
<row>
<label value="${c:l('editarTramosController.labelDestino.value')}" />
<combobox id="cmbParadaDestino" constraint="no empty" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" mold="rounded" disabled="@{winEditarTramos$composer.existeRutaOcupaTramo}"
buttonVisible="true" width="80%" initialValue="@{winEditarTramos$composer.tramo.destino}" selectedItem="@{winEditarTramos$composer.tramo.destino}" />
</row>
<row>
<label value="${c:l('editarTramosController.labelVia.value')}" />
<combobox id="cmbVia" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty" mold="rounded" disabled="@{winEditarTramos$composer.existeRutaOcupaTramo}"
buttonVisible="true" width="80%" model="@{winEditarTramos$composer.lsVias}" selectedItem="@{winEditarTramos$composer.tramo.via}" />
</row>
<!--row>
<label id="lbKmReal" value="${c:l('editarTramosController.lbKmReal.value')}"/>
<intbox id="txKmReal" constraint="no empty, no negative" width="80%" maxlength="5"
value="@{winEditarTramos$composer.tramo.kmReal}"/>
</row>
<row>
<label id="lbKmPagoConductor" value="${c:l('editarTramosController.lbKmPagoConductor.value')}"/>
<intbox id="txtKmPagoConductor" constraint="no empty, no negative" format="#0.00" maxlength="7"
value="@{winEditarTramos$composer.tramo.kmPagoConductor}"/>
</row-->
<row>
<label value="${c:l('editarTramosController.lbKmReal.value')}" />
<textbox id="txKmReal" width="80%" constraint="no empty" maxlength="11" value="@{winEditarTramos$composer.tramo.kmReal}" />
</row>
</rows>
</grid>
</tabpanel>
<tabpanel height="300px">
<grid fixedLayout="true">
<columns>
<column width="20%" />
<column width="80%" />
</columns>
<rows>
<row>
<label id="lbClaseServicio" value="${c:l('editarTramosController.lbClaseServicio.value')}" />
<combobox id="cmbClaseServicio" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" mold="rounded" buttonVisible="true"
width="90%" model="@{winEditarTramos$composer.lsClaseServicio}" />
</row>
<row>
<label value="${c:l('editarTramosController.lbTiempoRecorrido.value')}" />
<hbox>
<vbox>
<hbox>
<spinner id="spHora" value="00" width="50px" maxlength="2" constraint="max 99,no negative" mold="rounded" />
<label value=":" />
<spinner id="spMinuto" value="00" width="50px" maxlength="2" constraint="max 59,no negative" mold="rounded" />
</hbox>
</vbox>
</hbox>
</row>
</rows>
</grid>
<toolbar>
<hbox spacing="5px" style="padding:1px" align="right">
<button id="btnApagarServicio" height="20" image="/gui/img/remove.png" width="35px"
tooltiptext="${c:l('editarTramosController.btnApagarAtributo.tooltiptext')}" />
<button id="btnSalvarServicio" height="20" image="/gui/img/add.png" width="35px"
tooltiptext="${c:l('editarTramosController.btnSalvarAtributo.tooltiptext')}" />
</hbox>
</toolbar>
<listbox id="servicioList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" multiple="false">
<listhead sizable="true">
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.ClaseServicio.value')}" />
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.lbTiemporecorrido.value')}" />
</listhead>
</listbox>
</tabpanel>
<tabpanel height="300px">
<grid fixedLayout="true">
<columns>
<column width="20%" />
<column width="80%" />
</columns>
<rows>
<row>
<label id="lbClaseServicioTiempo" value="${c:l('editarTramosController.lbClaseServicio.value')}" />
<combobox id="cmbClaseServicioTiempo" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
mold="rounded" buttonVisible="true" width="80%" model="@{winEditarTramos$composer.lsClaseServicio}" />
</row>
<row>
<label id="lbTiemporecorrido" value="${c:l('editarTramosController.lbTiemporecorrido.value')}" />
<hbox>
<vbox>
<hbox>
<spinner id="spHoraTiempo" value="00" width="50px" maxlength="2" constraint="max 99,no negative" mold="rounded" />
<label value=":" />
<spinner id="spMinutoTiempo" value="00" width="50px" maxlength="2" constraint="max 59,no negative" mold="rounded" />
</hbox>
</vbox>
</hbox>
</row>
<row>
<label id="lbHorainicio" value="${c:l('editarTramosController.lbHorainicio.value')}" />
<timebox id="horainicio" cols="14" format="HH:mm" mold="rounded" constraint="no empty" />
</row>
<row>
<label id="lbHorafin" value="${c:l('editarTramosController.lbHorafin.value')}" />
<timebox id="horafin" cols="14" format="HH:mm" mold="rounded" constraint="no empty" />
</row>
<row>
<label value="${c:l('editarConfiguracionReservacionController.lbDias.value')}" />
<hbox>
<checkbox id="lun" label="${c:l('editarConfiguracionReservacionController.lbLun.value')}" checked="false" />
<checkbox id="mar" label="${c:l('editarConfiguracionReservacionController.lbMar.value')}" checked="false" />
<checkbox id="mie" label="${c:l('editarConfiguracionReservacionController.lbMie.value')}" checked="false" />
<checkbox id="jue" label="${c:l('editarConfiguracionReservacionController.lbJue.value')}" checked="false" />
<checkbox id="vie" label="${c:l('editarConfiguracionReservacionController.lbVie.value')}" checked="false" />
<checkbox id="sab" label="${c:l('editarConfiguracionReservacionController.lbSab.value')}" checked="false" />
<checkbox id="dom" label="${c:l('editarConfiguracionReservacionController.lbDom.value')}" checked="false" />
</hbox>
</row>
</rows>
</grid>
<toolbar>
<hbox spacing="5px" style="padding:1px" align="right">
<button id="btnApagarTiempo" height="20" image="/gui/img/remove.png" width="35px"
tooltiptext="${c:l('editarTramosController.btnApagarTiempo.tooltiptext')}" />
<button id="btnSalvarTiempo" height="20" image="/gui/img/add.png" width="35px"
tooltiptext="${c:l('editarTramosController.btnSalvarTiempo.tooltiptext')}" />
</hbox>
</toolbar>
<listbox id="tiempoList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" multiple="false">
<listhead sizable="true">
<listheader id="lhTiempoClaseServico" image="/gui/img/builder.gif" label="${c:l('editarTramosController.ClaseServicio.value')}" width="30%" />
<listheader id="lhTiempoHorainicio" label="${c:l('editarTramosController.lhTiempoHorainicio.value')}" />
<listheader id="lhTiempoHorafin" label="${c:l('editarTramosController.lhTiempoHorafin.value')}" />
<listheader id="lhTiempoTiemporecorrido" label="${c:l('editarTramosController.lhTiempoTiemporecorrido.value')}" />
<listheader label="${c:l('editarConfiguracionReservacionController.lbLunM.value')}" />
<listheader label="${c:l('editarConfiguracionReservacionController.lbMarM.value')}" />
<listheader label="${c:l('editarConfiguracionReservacionController.lbMieM.value')}" />
<listheader label="${c:l('editarConfiguracionReservacionController.lbJueM.value')}" />
<listheader label="${c:l('editarConfiguracionReservacionController.lbVieM.value')}" />
<listheader label="${c:l('editarConfiguracionReservacionController.lbSabM.value')}" />
<listheader label="${c:l('editarConfiguracionReservacionController.lbDomM.value')}" />
</listhead>
</listbox>
</tabpanel>
<tabpanel height="300px">
<grid fixedLayout="true">
<columns>
<column width="20%" />
<column width="80%" />
</columns>
<rows>
<row>
<label value="${c:l('editarTramosController.lbItxCantkmpagoconductor.value')}" />
<intbox id="itxCantkmpagoconductor" width="80%" maxlength="7" constraint="no empty" />
</row>
<row>
<label value="${c:l('editarTramosController.labelEmpresa.value')}" />
<combobox id="cmbEmpresa" constraint="no empty" mold="rounded" buttonVisible="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" model="@{winEditarTramos$composer.lsEmpresa}" width="80%" />
</row>
</rows>
</grid>
<toolbar>
<hbox spacing="5px" style="padding:1px" align="right">
<button id="btnApagarExcepcioneKm" height="20" image="/gui/img/remove.png" width="35px"
tooltiptext="${c:l('editarTramosController.btnApagarExcepcioneKm.tooltiptext')}" />
<button id="btnSalvarExceptioneKm" height="20" image="/gui/img/add.png" width="35px"
tooltiptext="${c:l('editarTramosController.btnSalvarExceptioneKm.tooltiptext')}" />
</hbox>
</toolbar>
<listbox id="tramoKmEmpresaList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" multiple="false">
<listhead sizable="true">
<listheader id="lhKm" image="/gui/img/builder.gif" label="${c:l('editarTramosController.lbItxCantkmpagoconductor.value')}" width="30%" />
<listheader id="lhEmpresa" label="${c:l('editarTramosController.labelEmpresa.value')}" />
</listhead>
</listbox>
</tabpanel>
<!-- Coeficientes -->
<tabpanel height="300px">
<grid>
<columns>
<column width="20%" />
<column width="30%" />
<column width="20%" />
<column width="30%" />
</columns>
<rows>
<row spans="1,1,1,1">
<label value="${c:l('editarTramosController.labelCoeficiente1.value')}" />
<combobox id="cmbCoeficiente1" mold="rounded" buttonVisible="true" width="90%" model="@{winEditarTramos$composer.lsCoeficienteTarifas}"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
<label value="${c:l('editarTramosController.labelKMCoeficiente1.value')}" />
<intbox id="txtKMCoeficiente1" />
</row>
<row spans="1,1,1,1">
<label value="${c:l('editarTramosController.labelCoeficiente2.value')}" />
<combobox id="cmbCoeficiente2" mold="rounded" buttonVisible="true" width="90%" model="@{winEditarTramos$composer.lsCoeficienteTarifas}"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
<label value="${c:l('editarTramosController.labelKMCoeficiente2.value')}" />
<intbox id="txtKMCoeficiente2" />
</row>
<row spans="1,1,1,1">
<label value="${c:l('editarTramosController.labelCoeficiente3.value')}" />
<combobox id="cmbCoeficiente3" mold="rounded" buttonVisible="true" width="90%" model="@{winEditarTramos$composer.lsCoeficienteTarifas}"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
<label value="${c:l('editarTramosController.labelKMCoeficiente3.value')}" />
<intbox id="txtKMCoeficiente3" />
</row>
<row spans="1,1,1,1">
<label value="${c:l('editarTramosController.labelOrgaoConcedente.value')}" />
<combobox id="cmbOrgaoConcedente" mold="rounded" buttonVisible="true" width="90%" model="@{winEditarTramos$composer.lsOrgaoConcedentes}"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
<label value="${c:l('editarTramosController.lbClaseServicio.value')}" />
<combobox id="cmbClaseServicioCoeficiente" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" mold="rounded"
buttonVisible="true" width="90%" model="@{winEditarTramos$composer.lsClaseServicio}" />
</row>
</rows>
</grid>
<toolbar>
<hbox spacing="5px" style="padding:1px" align="right">
<button id="btnApagarCoeficiente" height="20" image="/gui/img/remove.png" width="35px"
tooltiptext="${c:l('editarTramosController.btnApagarCoeficiente.tooltiptext')}" />
<button id="btnSalvarCoeficiente" height="20" image="/gui/img/add.png" width="35px"
tooltiptext="${c:l('editarTramosController.btnSalvarCoeficiente.tooltiptext')}" />
</hbox>
</toolbar>
<listbox id="tramoCoeficientesList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" multiple="false">
<listhead sizable="true">
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelCoeficiente1.value')}" width="15%" />
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelKMCoeficiente1.value')}" width="6%" />
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelCoeficiente2.value')}" width="15%" />
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelKMCoeficiente2.value')}" width="6%" />
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelCoeficiente3.value')}" width="15%" />
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelKMCoeficiente3.value')}" width="7%" />
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelOrgaoConcedente.value')}" width="15%" />
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelClase.value')}" width="12%" />
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelTotalKm.value')}" width="9%" />
</listhead>
</listbox>
</tabpanel>
</tabpanels>
</tabbox>
</window>
</zk>