<?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="winBusquedaCorridaTarjetaViaje"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>

<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winBusquedaCorridaTarjetaViaje" border="normal"
		apply="${busquedaCorridaTarjetaViajeController}" width="850px"
		height="460px" contentStyle="overflow:auto"
		title="${c:l('editarPricingController.windowCorrida.title')}">
		<toolbar>
			<hbox spacing="5px" style="padding:1px" align="right">
				<button id="btnAdicionarCorrida" height="20" image="/gui/img/save.png"
					width="35px"
					tooltiptext="${c:l('editarPricingCorridaController.btnSalvar.tooltiptext')}" />
				<button height="20" image="/gui/img/exit.png" width="35px"
					onClick="winBusquedaCorridaTarjetaViaje.detach()"
					tooltiptext="${c:l('editarPricingCorridaController.btnFechar.tooltiptext')}" />
			</hbox>
		</toolbar>

		<grid fixedLayout="true">
			<columns>
				<column width="15%" />
				<column width="30%" />
				<column width="15%" />
				<column width="30%" />
			</columns>
			<rows>
				<row>
					<label value="${c:l('editarPricingController.corridaId.value')}" />
					<intbox id="idCorrida" maxlength="7" />
					<label value="${c:l('editarPricingController.windowTipoServicio.title')}" />
					<combobox id="cmbTipoServicio"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						mold="rounded" buttonVisible="true" width="95%"
						model="@{winBusquedaCorridaTarjetaViaje$composer.lsClaseServicio}" />
				</row>
				<row>
					<label value="${c:l('editarPricingCorridaController.labelOrigen.value')}" />
					<combobox id="cmbParadaOrigem" autodrop="false" mold="rounded"
						buttonVisible="true" width="95%"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" />
					<label
						value="${c:l('editarPricingCorridaController.labelDestino.value')}" />
					<combobox id="cmbParadaDestino" autodrop="false" mold="rounded"
						buttonVisible="true" width="95%"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" />
				</row>
				<row>
					<label value="${c:l('editarPricingCorridaController.lblInicio.value')}" />
					<timebox id="timeInicio" format="HH:mm" mold="rounded" />
					<label value="${c:l('editarPricingCorridaController.lblFin.value')}" />
					<timebox id="timeFin" format="HH:mm" mold="rounded" />
				</row>
			</rows>
		</grid>

		<toolbar>
			<button id="btnPesquisa" image="/gui/img/find.png"
				label="${c:l('editarPricingCorridaController.btnPesquisa.label')}" />
		</toolbar>

		<paging id="pagingCorrida" pageSize="15" />
		<listbox id="corridaList"
			use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
			multiple="false" height="60%" checkmark="true">
			<listhead sizable="true">
				<listheader width="80px" image="/gui/img/builder.gif"
					label="${c:l('editarPricingCorridaController.lhId.label')}" sort="auto(id.corridaId)" />
				<listheader image="/gui/img/builder.gif"
					label="${c:l('editarPricingCorridaController.feccorrida.label')}"
					sort="auto(id.feccorrida)" />
				<listheader image="/gui/img/builder.gif"
					label="${c:l('editarPricingCorridaController.fechorsalida.label')}"
					sort="auto(fechorsalida)" />
				<listheader image="/gui/img/builder.gif"
					label="${c:l('editarPricingCorridaController.labelOrigen.value')}"
					sort="auto(origem.descparada)" />
				<listheader image="/gui/img/builder.gif"
					label="${c:l('editarPricingCorridaController.labelDestino.value')}"
					sort="auto(destino.descparada)" />
				<listheader image="/gui/img/builder.gif"
					label="${c:l('editarPricingCorridaController.claseServicio.label')}"
					sort="auto(claseServicio.descclase)" />
				<listheader image="/gui/img/builder.gif"
					label="${c:l('editarPricingCorridaController.marca.label')}" sort="auto(marca.descmarca)" />
			</listhead>
		</listbox>
	</window>
</zk>
