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

<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winFiltroRelatorioHistoricoCompras" apply="${relatorioHistoricoComprasController}" 
		 contentStyle="overflow:auto"
		height="570px" width="728px" border="normal">
			<grid fixedLayout="true">
			<columns>
				<column width="25%" />
				<column width="30%" />
				<column width="15%" />
				<column width="30%" />
			</columns>
			<rows>
				<row>				
					<label
						value="${c:l('relatorioHistoricoComprasController.lblDataVendaIni.value')}" />
					<datebox id="dtVendaInicial" width="100%" mold="rounded"
						format="dd/MM/yyyy"  maxlength="10" />
					<label
						value="${c:l('relatorioHistoricoComprasController.lblDataVendaFin.value')}" />
					<datebox id="dtVendaFinal" width="100%" mold="rounded"
						format="dd/MM/yyyy" maxlength="10" />
				</row>
				<row>
					<label
						value="${c:l('relatorioHistoricoComprasController.lblDataEmbarqueIni.value')}" />
					<datebox id="dtEmbarqueInicial" width="100%" mold="rounded"
						format="dd/MM/yyyy" maxlength="10" />
					<label
						value="${c:l('relatorioHistoricoComprasController.lblDataEmbarqueFin.value')}" />
					<datebox id="dtEmbarqueFinal" width="100%" mold="rounded"
						format="dd/MM/yyyy"  maxlength="10" />
				</row>				
				<row spans="1,3">
					<label value="Agencia" />
					<bandbox id="bbPesquisaPuntoVenta" width="100%" 
						mold="rounded" readonly="true">
						<bandpopup>
							<vbox>
								<hbox>
									<label
										value="${c:l('relatorioHistoricoComprasController.lbPuntoVenta.value')}" />
									<textbox id="txtNombrePuntoVenta"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
										width="300px" mold="rounded" />
									<button id="btnPesquisaPuntoVenta"
										image="/gui/img/find.png"
										label="${c:l('relatorioHistoricoComprasController.btnPesquisa.label')}" />
									<button id="btnLimpar"
										image="/gui/img/eraser.png"
										label="${c:l('relatorioHistoricoComprasController.btnLimpar.label')}" />
								</hbox>
								<paging id="pagingPuntoVenta"
									pageSize="10" />
								<listbox id="puntoVentaList"
									mold="paging"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
									vflex="true" height="100%" width="700px">
									<listhead>
										<listheader
											label="${c:l('relatorioHistoricoComprasController.lbPuntoVenta.value')}" />
										<listheader width="35%"
											label="${c:l('relatorioHistoricoComprasController.lbEmpresa.value')}" />
										<listheader width="20%"
											label="${c:l('relatorioHistoricoComprasController.lbNumero.value')}" />
									</listhead>
								</listbox>
							</vbox>
						</bandpopup>
					</bandbox>
				</row>	
				<row spans="4">
					<listbox id="puntoVentaSelList" mold="paging"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
						vflex="true" height="100px" width="100%">
						<listhead>
							<listheader
								label="${c:l('relatorioHistoricoComprasController.lbPuntoVenta.value')}" />
							<listheader width="35%"
								label="${c:l('relatorioHistoricoComprasController.lbEmpresa.value')}" />
							<listheader width="20%"
								label="${c:l('relatorioHistoricoComprasController.lbNumero.value')}" />
							<listheader width="15%" />
						</listhead>
					</listbox>
					<paging id="pagingSelPuntoVenta" pageSize="10" />
				</row>
				
				<row spans="1,3">
					<label value="${c:l('relatorioHistoricoComprasController.lbLinha.label')}" />
					<bandbox id="bbPesquisaLinha" width="100%" 
						mold="rounded" readonly="true">
						<bandpopup>
							<vbox>
								<hbox>
									<label value="${c:l('relatorioHistoricoComprasController.lbLinha.label')}" />
									<textbox id="txtPalavraPesquisaLinha"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
										width="300px" mold="rounded" />
									<button id="btnPesquisaLinha"
										image="/gui/img/find.png"
										label="${c:l('relatorioHistoricoComprasController.btnPesquisa.label')}" />
									<button id="btnLimparLinha"
										image="/gui/img/eraser.png"
										label="${c:l('relatorioHistoricoComprasController.btnLimpar.label')}" />
								</hbox>

								<listbox id="linhaList" mold="paging"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
									vflex="true" height="100%" width="700px">
									<listhead>
										<listheader
											label="${c:l('relatorioHistoricoComprasController.lbNumRuta.label')}"
											width="18%" />
										<listheader
											label="${c:l('relatorioHistoricoComprasController.lbPrefixo.label')}"
											width="20%" />
										<listheader
											label="${c:l('lb.dec')}" width="35%" />
										<listheader
											label="${c:l('relatorioHistoricoComprasController.lbOrgao.label')}"
											width="27%" />
									</listhead>
								</listbox>
								<paging id="pagingLinha" pageSize="10" />
							</vbox>
						</bandpopup>
					</bandbox>
				</row>
				<row>
					<cell colspan="4">
						<borderlayout height="100px">

							<center border="0">
								<listbox id="linhaSelList"
									mold="paging"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
									vflex="true" height="100%" width="700px">
									<listhead>
										<listheader
											label="${c:l('relatorioHistoricoComprasController.lbNumRuta.label')}"
											width="18%" />
										<listheader
											label="${c:l('relatorioHistoricoComprasController.lbPrefixo.label')}"
											width="20%" />
										<listheader
											label="${c:l('lb.dec')}" width="30%" />
										<listheader
											label="${c:l('relatorioHistoricoComprasController.lbOrgao.label')}"
											width="22%" />
										<listheader width="10%" />
									</listhead>
								</listbox>
							</center>
						</borderlayout>
					</cell>
				</row>
				<row spans="1,3">
					<label value="${c:l('relatorioHistoricoComprasController.lbCpf.label')}" />

					<bandbox id="bbPesquisaCpf" width="100%"
						mold="rounded" readonly="true">
						<bandpopup>
							<vbox>
								<hbox>
									<label value="${c:l('relatorioHistoricoComprasController.lbCpf.label')}"/>
									<textbox id="txtCpfPesquisa"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
										width="300px" mold="rounded" />
									<button id="btnPesquisaCpf"
										image="/gui/img/find.png"
										label="${c:l('relatorioHistoricoComprasController.btnPesquisa.label')}" />
									<button id="btnLimparCpf"
										image="/gui/img/eraser.png"
										label="${c:l('relatorioHistoricoComprasController.btnLimpar.label')}" />
								</hbox>
								<paging id="pagingCpfCliente" pageSize="10" />
								<listbox id="cpfList" mold="paging"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
									vflex="true" height="100%" width="700px">
									<listhead>
										<listheader
											label="${c:l('relatorioHistoricoComprasController.lbCpf.label')}"
											width="25%" />
										<listheader
											label="${c:l('relatorioHistoricoComprasController.nomeCliente.value')}"
											width="75%" />
									</listhead>
								</listbox>
							</vbox>
						</bandpopup>
					</bandbox>
				</row>
				<row>
					<cell colspan="4">
						<borderlayout height="100px">
							<center border="0">
								<listbox id="cpfSelList"
									mold="paging"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
									vflex="true" multiple="true" height="60%" width="100%">
									<listhead>
										<listheader
											label="${c:l('relatorioHistoricoComprasController.lbCpf.label')}"
											width="25%" />
										<listheader
											label="${c:l('relatorioHistoricoComprasController.nomeCliente.value')}"
											width="65%" />
										<listheader width="10%" />
									</listhead>
								</listbox>
							</center>
						</borderlayout>
					</cell>
				</row>
				
			</rows>
		</grid>
		
		<toolbar>
			<button id="btnExecutarRelatorio" image="/gui/img/find.png"
				label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
		</toolbar>
	</window>
</zk>

