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

<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winFiltroRelatorioPassageirosViajar"
		apply="${relatorioPassageirosViajarController}"
		contentStyle="overflow:auto" height="260px" width="550px"
		border="normal">
		<grid fixedLayout="true">
			<columns>
				<column width="20%" />
				<column width="30%" />
				<column width="20%" />
				<column width="30%" />
			</columns>
			<rows>
				<row>
					<label
						value="${c:l('relatorioPassageirosViajarController.lbDataIni.value')}" />
					<datebox id="datInicial" width="90%"
						format="dd/MM/yyyy"  constraint="no empty"
						maxlength="10" />
					<label
						value="${c:l('relatorioPassageirosViajarController.lbDataFin.value')}" />
					<datebox id="datFinal" width="90%"
						format="dd/MM/yyyy"  constraint="no empty"
						maxlength="10" />

				</row>
				<row>
					<label
						value="${c:l('relatorioPassageirosViajarController.lbEmpresa.value')}" />
					<combobox id="cmbEmpresa" width="90%" mold="rounded"
						buttonVisible="true" constraint="no empty"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						model="@{winFiltroRelatorioPassageirosViajar$composer.lsEmpresa}" />
					<label
						value="${c:l('relatorioPassageirosViajarController.lbCategoria.value')}" />
					<bandbox id="bbPesquisaCategoria" width="90%"
						mold="rounded" readonly="true">
						<bandpopup>
							<vbox>
								<hbox>
									<textbox id="txtPalavraPesquisa" />
									<button id="btnPesquisa"
										image="/gui/img/find.png"
										label="${c:l('relatorioPassageirosViajarController.btnPesquisa.label')}" />
									<button id="btnLimpar"
										image="/gui/img/eraser.png"
										label="${c:l('relatorioPassageirosViajarController.btnLimpar.label')}" />
								</hbox>

								<listbox id="categoriaList"
									mold="paging"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
									vflex="true" multiple="false" height="60%" width="360px">
									<listhead>
										<listheader label="${c:l('relatorioPassageirosViajarController.lhCodigo.label')}"  width="30%"/>
										<listheader label="${c:l('relatorioPassageirosViajarController.lhDescricao.label')}" width="70%"/>
									</listhead>
								</listbox>
								<paging id="pagingCategoria"
									pageSize="10" />
							</vbox>
						</bandpopup>
					</bandbox>
				</row>

				<row>
					<cell colspan="2">
						<checkbox id="chkPassageiroAberto"
							label="${c:l('relatorioPassageirosViajarController.lbPassagemAberto.label')}" />
					</cell>

					<cell colspan="2">
						<borderlayout height="100px">

							<center border="0">
								<listbox id="categoriaSelList"
									mold="paging"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
									vflex="true" multiple="true" height="60%" width="98%">
									<listhead>
										<listheader label="${c:l('relatorioPassageirosViajarController.lhCodigo.label')}" width="30%"/>
										<listheader label="${c:l('relatorioPassageirosViajarController.lhDescricao.label')}" width="50%"/>
										<listheader width="20%"/>
									</listhead>
								</listbox>
							</center>
						</borderlayout>
					</cell>
				</row>
				<row>
					<label id="lblCorridaId"
						value="${c:l('relatorioPassageirosViajarController.lbServico.value')}" />
					<textbox id="txtCorridaId" width="95%"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
						maxlength="7" />
				</row>
			</rows>
		</grid>
		<toolbar>
			<button id="btnExecutarRelatorio" image="/gui/img/find.png"
				label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
			<button id="btnExecutarRelatorioDetalhado" image="/gui/img/find.png"
				label="${c:l('relatorio.lb.btnExecutarRelatorioDetalhado')}" />
		</toolbar>
	</window>
</zk>

