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

<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winBusquedaGP_Pricing"
		title="${c:l('busquedaPricingController.window.title')}"
		apply="${busquedaGP_PricingController}" contentStyle="overflow:auto"
		height="520px" width="720px" border="normal">
		<toolbar>
			<button id="btnRefresh" image="/gui/img/refresh.png"
				width="35px"
				tooltiptext="${c:l('busquedaPricingController.btnRefresh.tooltiptext')}" />
			<separator orient="vertical" />
			<button id="btnApagar" height="20"
				image="/gui/img/remove.png" width="35px"
				tooltiptext="${c:l('editarPricingController.btnApagarPricing.tooltiptext')}" />
			<button id="btnNovo" image="/gui/img/add.png" width="35px"
				tooltiptext="${c:l('busquedaPricingController.btnNovo.tooltiptext')}" />
			<separator orient="vertical" />
			<button id="btnCerrar" onClick="winBusquedaGP_Pricing.detach()"
				image="/gui/img/exit.png" width="35px"
				tooltiptext="${c:l('busquedaPricingController.btnCerrar.tooltiptext')}" />
				
		</toolbar>

		<grid fixedLayout="true">
			<columns>
				<column width="20%" />
				<column width="30%" />
				<column width="20%" />
				<column width="30%" />
			</columns>
			<rows>
				<row spans="1,3">
					<label
						value="${c:l('busquedaPricingController.lhNome.label')}" />
					<textbox id="txtNome" width="90%"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
				</row>
				<row spans="1,2,1">
					<label
						value="${c:l('busquedaPricingController.lhEmpresa.label')}" />
					<combobox id="cmbEmpresa"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						mold="rounded" buttonVisible="true" width="90%"
						model="@{winBusquedaGP_Pricing$composer.lsEmpresa}">
					</combobox>

					<checkbox id="chkBuscarInativos" checked="false"
						label="${c:l('busquedaPricingController.lhBuscarInativos.label')}" />
				</row>
				<row spans="1,3">
                    <label
                    	value="${c:l('editarPricingController.ruta.value')}" />
                    <combobox id="cmbRuta" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" 
                                    mold="rounded" buttonVisible="true" width="90%"
                                    model="@{winBusquedaGP_Pricing$composer.lsRuta}"
                                     >
                    </combobox>
                </row>
				<row spans="1,3">
                    <label value="${c:l('editarPricingController.mercadoOrigen.value')}"/>
                    <combobox id="cmbOrigen" autodrop="false" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
                                    mold="rounded" buttonVisible="true" width="90%" 
                                     />
                </row>
                <row spans="1,3">
                    <label value="${c:l('editarPricingController.mercadoDestino.value')}"/>
                    <combobox id="cmbDestino" autodrop="false" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
                                    mold="rounded" buttonVisible="true" width="90%"
                                    />
                </row>				
				<row>
					<label
						value="${c:l('editarPricingController.vigHoraInicioViaje.value')}" />
					<datebox width="90%" id="fechaInicio" mold="rounded"
						 />

					<label
						value="${c:l('editarPricingController.vigHoraFinViaje.value')}" />
					<datebox width="90%" id="fechaFin" mold="rounded"
						 />

				</row>
			</rows>
		</grid>

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

		<paging id="pagingPricing" pageSize="15" />
		<listbox id="pricingList"
			use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
			multiple="false" height="60%" vflex="false">
			<listhead sizable="true">
				<listheader image="/gui/img/create_doc.gif"
					label="${c:l('lb.id')}" width="70px" sort="auto(pricingId)" />
				<listheader image="/gui/img/create_doc.gif"
					label="${c:l('busquedaPricingController.lhNome.label')}"
					sort="auto(nombPricing)" />
				<listheader image="/gui/img/create_doc.gif"
					label="${c:l('busquedaPricingController.lhEmpresa.label')}"
					sort="auto(empresa.nombempresa)" />
				<listheader image="/gui/img/create_doc.gif"
					width="230px"
					label="${c:l('busquedaPricingController.lhDataInicioFimViagem.label')}" />
			</listhead>
		</listbox>
	</window>
</zk>