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

<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winFiltroRelatorioPosicaoVendaBilheteIdoso" apply="${relatorioPosicaoVendaBilheteIdosoController}" 
		 contentStyle="overflow:auto"
		height="480x" width="728px" border="normal">
			<grid fixedLayout="true">
			<columns>
				<column width="25%" />
				<column width="30%" />
				<column width="15%" />
				<column width="30%" />
			</columns>
			<rows>
				<row spans="1, 3">
					<label
						value="${c:l('relatorioPosicaoVendaBilheteIdosoController.PorData.value')}" />
					<radiogroup id="tipoData">
						<radio 
							label="${c:l('relatorioPosicaoVendaBilheteIdosoController.lbPorDataVenda.label')}"
							value="0"
							checked="true" />
						<radio 
							label="${c:l('relatorioPosicaoVendaBilheteIdosoController.lbPorDataViagem.label')}" 
							value="1"/>
					</radiogroup>
				</row>			
				<row>				
					<label
						value="${c:l('relatorioPosicaoVendaBilheteIdosoController.lblDataIni.value')}" />
					<datebox id="dtInicial" width="100%" mold="rounded"
						format="dd/MM/yyyy"  maxlength="10" />
					<label
						value="${c:l('relatorioPosicaoVendaBilheteIdosoController.lblDataFin.value')}" />
					<datebox id="dtFinal" width="100%" mold="rounded"
						format="dd/MM/yyyy" maxlength="10" />
				</row>
				<row spans="1,3">
					<label
						value="${c:l('relatorioPosicaoVendaBilheteIdosoController.lblEmpresa.value')}" />
					<combobox id="cmbEmpresa" mold="rounded"
						buttonVisible="true"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						model="@{winFiltroRelatorioPosicaoVendaBilheteIdoso$composer.lsEmpresa}"
						width="100%" />
				</row>
				<row>
					<label
						value="${c:l('relatorioPosicaoVendaBilheteIdosoController.lblOrgao.value')}" />
					<combobox id="cmbOrgaoConcedente" mold="rounded"
						buttonVisible="true" 
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						model="@{winFiltroRelatorioPosicaoVendaBilheteIdoso$composer.lsOrgaoConcedente}"
						width="100%" />
				</row>
				<row spans="1,3">
					<label value="${c:l('relatorioPosicaoVendaBilheteIdosoController.lbLinha.value')}" />
					<bandbox id="bbPesquisaLinha" width="100%" 
						mold="rounded" readonly="true">
						<bandpopup>
							<vbox>
								<hbox>
									<label value="${c:l('relatorioPosicaoVendaBilheteIdosoController.lbLinha.value')}" />
									<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('relatorioPosicaoVendaBilheteIdosoController.btnPesquisa.label')}" />
									<button id="btnLimparLinha"
										image="/gui/img/eraser.png"
										label="${c:l('relatorioPosicaoVendaBilheteIdosoController.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('relatorioPosicaoVendaBilheteIdosoController.lbNumRuta.label')}"
											width="18%" />
										<listheader
											label="${c:l('relatorioPosicaoVendaBilheteIdosoController.lbPrefixo.label')}"
											width="20%" />
										<listheader
											label="${c:l('lb.dec')}" width="35%" />
										<listheader
											label="${c:l('relatorioPosicaoVendaBilheteIdosoController.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('relatorioPosicaoVendaBilheteIdosoController.lbNumRuta.label')}"
											width="18%" />
										<listheader
											label="${c:l('relatorioPosicaoVendaBilheteIdosoController.lbPrefixo.label')}"
											width="20%" />
										<listheader
											label="${c:l('lb.dec')}" width="30%" />
										<listheader
											label="${c:l('relatorioPosicaoVendaBilheteIdosoController.lbOrgao.label')}"
											width="22%" />
										<listheader width="10%" />
									</listhead>
								</listbox>
							</center>
						</borderlayout>
					</cell>
				</row>
				<row spans="1,3">
					<label value="${c:l('relatorioPosicaoVendaBilheteIdosoController.lbTpPassagem.value')}" />
					<bandbox id="bbPesquisaTpPassagem" width="100%" 
						mold="rounded" readonly="true">
						<bandpopup>
							<vbox>
								<hbox>
									<label value="${c:l('relatorioPosicaoVendaBilheteIdosoController.lbTpPassagem.value')}" />
									<textbox id="txtPalavraPesquisaTpPassagem"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
										width="300px" mold="rounded" />
									<button id="btnPesquisaTpPassagem"
										image="/gui/img/find.png"
										label="${c:l('relatorioPosicaoVendaBilheteIdosoController.btnPesquisa.label')}" />
									<button id="btnLimparTpPassagem"
										image="/gui/img/eraser.png"
										label="${c:l('relatorioPosicaoVendaBilheteIdosoController.btnLimpar.label')}" />
								</hbox>

								<listbox id="tpPassagemList" mold="paging"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
									vflex="true" height="100%" width="700px">
									<listhead>
										<listheader
											label="${c:l('relatorioPosicaoVendaBilheteIdosoController.lbDescCategoria.label')}"
											width="40%" />
										<listheader
											label="${c:l('relatorioPosicaoVendaBilheteIdosoController.lbSigla.label')}"
											width="20%" />
										<listheader
											label="${c:l('relatorioPosicaoVendaBilheteIdosoController.lbGrupoCategoria.label')}"
											width="40%" />
									</listhead>
								</listbox>
								<paging id="pagingTpPassagem" pageSize="10" />
							</vbox>
						</bandpopup>
					</bandbox>
				</row>
				<row>
					<cell colspan="4">
						<borderlayout height="100px">

							<center border="0">
								<listbox id="tpPassagemSelList"
									mold="paging"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
									vflex="true" height="100%" width="700px">
									<listhead>
										<listheader
											label="${c:l('relatorioPosicaoVendaBilheteIdosoController.lbDescCategoria.label')}"
											width="35%" />
										<listheader
											label="${c:l('relatorioPosicaoVendaBilheteIdosoController.lbSigla.label')}"
											width="20%" />
										<listheader
											label="${c:l('relatorioPosicaoVendaBilheteIdosoController.lbGrupoCategoria.label')}"
											width="35%" />
										<listheader width="10%" />
									</listhead>
								</listbox>
							</center>
						</borderlayout>
					</cell>
				</row>
				<row spans="1, 3">
					<label
						value="${c:l('relatorioPosicaoVendaBilheteIdosoController.TpRelatorio.value')}" />
					<radiogroup id="tipoRelatorio">
						<radio 
							label="${c:l('relatorioPosicaoVendaBilheteIdosoController.tpTrecho.label')}"
							value="0"
							checked="true" />
						<radio 
							label="${c:l('relatorioPosicaoVendaBilheteIdosoController.tpPassageiro.label')}" 
							value="1"/>
					</radiogroup>
				</row>	
			</rows>
		</grid>
		
		<toolbar>
			<button id="btnExecutarRelatorio" image="/gui/img/find.png"
				label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
		</toolbar>
	</window>
</zk>

