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

<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winBusquedaAliasServico"
		title="${c:l('busquedaAliasServicoController.window.title')}"
		apply="${busquedaAliasServicoController}" contentStyle="overflow:auto"
		height="500px" width="1100px" border="normal">
		<toolbar>
			<button id="btnRefresh" image="/gui/img/refresh.png"
				width="35px"
				tooltiptext="${c:l('busquedaAliasServicoController.btnRefresh.tooltiptext')}" />
			<separator orient="vertical" />
			<button id="btnNovo" image="/gui/img/add.png" width="35px"
				tooltiptext="${c:l('busquedaAliasServicoController.btnNovo.tooltiptext')}" />
			<separator orient="vertical" />
			<button id="btnCerrar"
				onClick="winBusquedaAliasServico.detach()" image="/gui/img/exit.png"
				width="35px"
				tooltiptext="${c:l('busquedaAliasServicoController.btnCerrar.tooltiptext')}" />
		</toolbar>

		<grid fixedLayout="true">
			<columns>
				<column width="15%" />
				<column width="85%" />
			</columns>
			<rows>
				<row>
					<label
						value="${c:l('busquedaAliasServicoController.lhOrigen.label')}" />
					<combobox id="cmbOrigen"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
						mold="rounded" buttonVisible="true" width="35%" />
				</row>
				<row>
					<label
						value="${c:l('busquedaAliasServicoController.lbDestino.label')}" />
					<combobox id="cmbDestino" autodrop="false"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
						mold="rounded" buttonVisible="true" width="35%" />
				</row>
				<row>
					<label
						value="${c:l('busquedaAliasServicoController.lbRuta.label')}" />
					<combobox id="cmbRuta"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						mold="rounded" buttonVisible="true" width="35%"
						model="@{winBusquedaAliasServico$composer.lsRutas}" />
				</row>
				<row>
					<label
						value="${c:l('busquedaAliasServicoController.lbCorrida.label')}" />
					<intbox id="txtCorrida" />
				</row>
			</rows>
		</grid>

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

		<paging id="pagingAliasServico" pageSize="15" />
		<listbox id="aliasServicoList"
			use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
			multiple="false">
			<listhead sizable="true">
				<listheader width="5%" image="/gui/img/builder.gif"
					label="${c:l('busquedaAliasServicoController.lhId.label')}"
					sort="auto(aliasServicoId)" />
				<listheader image="/gui/img/builder.gif"
					label="${c:l('busquedaAliasServicoController.lhOrigen.label')}"
					sort="auto(origen.descparada)" />
				<listheader image="/gui/img/builder.gif"
					label="${c:l('busquedaAliasServicoController.lbDestino.label')}"
					sort="auto(destino.descparada)" />
				<listheader image="/gui/img/builder.gif"
					label="${c:l('busquedaAliasServicoController.lbRuta.label')}"
					sort="auto(ruta.descruta)" />
				<listheader image="/gui/img/builder.gif"
					label="${c:l('busquedaAliasServicoController.lbCorrida.label')}"
					sort="auto(corrida.id.corridaId)" />
				<listheader image="/gui/img/builder.gif"
					label="${c:l('busquedaAliasServicoController.lhAliasOrigen.label')}"
					sort="auto(aliasOrigen.descparada)" />
				<listheader image="/gui/img/builder.gif"
					label="${c:l('busquedaAliasServicoController.lbAliasDestino.label')}"
					sort="auto(aliasDestino.descparada)" />
			</listhead>
		</listbox>
	</window>
</zk>
