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

<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winFiltroRelatorioIndiceIRK"
		apply="${relatorioIndiceIRKController}"
		contentStyle="overflow:auto" height="445px" width="600px"
		border="normal">

		<grid fixedLayout="true">
			<columns>
				<column width="12%" />
				<column width="38%" />
				<column width="12%" />
				<column width="38%" />
			</columns>

			<rows>

				<row>
					<label
						value="${c:l('relatorioIndiceIRKController.lbDataIni.value')}" />
					<datebox id="datInicial" width="90%"
						format="dd/MM/yyyy"  constraint="no empty"
						maxlength="10" />
					<label
						value="${c:l('relatorioIndiceIRKController.lbDataFin.value')}" />
					<datebox id="datFinal" width="90%"
						format="dd/MM/yyyy"  constraint="no empty"
						maxlength="10" />
				</row>
			</rows>
		</grid>

		<grid fixedLayout="true">
			<columns>
				<column width="20%" />
				<column width="80%" />
			</columns>
			<rows>
				<row>
					<label
						value="${c:l('relatorioIndiceIRKController.lbServico.label')}" />

					<bandbox id="bbPesquisarServico" width="100%"
						mold="rounded" readonly="true">
						<bandpopup>
							<vbox>
								<hbox>
									<intbox id="txtCorridaId" />
									<button id="btnPesquisaServico"
										image="/gui/img/find.png"
										label="${c:l('relatorioIndiceIRKController.btnPesquisa.label')}" />
									<button id="btnLimparServico"
										image="/gui/img/eraser.png"
										label="${c:l('relatorioIndiceIRKController.btnLimpar.label')}" />
								</hbox>

								<listbox id="servicoList" mold="paging"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
									vflex="true" multiple="false" height="60%" width="410px">
									<listhead>
										<listheader
											label="${c:l('relatorioIndiceIRKController.lbServico.label')}"
											width="20%" />
										<listheader
											label="${c:l('relatorioIndiceIRKController.rutaId.label')}"
											width="20%" />
										<listheader
											label="${c:l('relatorioIndiceIRKController.origem.destino.label')}"
											width="60%" />
									</listhead>
								</listbox>
								<paging id="pagingServico"
									pageSize="10" />
							</vbox>
						</bandpopup>
					</bandbox>

				</row>

				<row>
					<cell colspan="4">
						<borderlayout height="100px">

							<center border="0">
								<listbox id="servicoListSelList"
									mold="paging"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
									vflex="true" multiple="true" height="60%" width="100%">
									<listhead>
										<listheader
											label="${c:l('relatorioIndiceIRKController.lbServico.label')}"
											width="20%" />
										<listheader
											label="${c:l('relatorioIndiceIRKController.rutaId.label')}"
											width="20%" />
										<listheader
											label="${c:l('relatorioIndiceIRKController.origem.destino.label')}"
											width="50%" />
										<listheader width="10%" />

									</listhead>
								</listbox>
							</center>
						</borderlayout>
					</cell>
				</row>

				<row>
					<label
						value="${c:l('relatorioIndiceIRKController.lbLinha.label')}" />

					<bandbox id="bbPesquisaLinha" width="100%"
						mold="rounded" readonly="true">
						<bandpopup>
							<vbox>
								<hbox>
									<textbox
										id="txtPalavraPesquisaLinha" />
									<button id="btnPesquisaLinha"
										image="/gui/img/find.png"
										label="${c:l('relatorioIndiceIRKController.btnPesquisa.label')}" />
									<button id="btnLimparLinha"
										image="/gui/img/eraser.png"
										label="${c:l('relatorioIndiceIRKController.btnLimpar.label')}" />
								</hbox>

								<listbox id="linhaList" mold="paging"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
									vflex="true" multiple="false" height="60%" width="410px">
									<listhead>

										<listheader
											label="${c:l('relatorioIndiceIRKController.lbNumRuta.label')}"
											width="18%" />

										<listheader
											label="${c:l('relatorioIndiceIRKController.lbPrefixo.label')}"
											width="20%" />
										<listheader
											label="${c:l('lb.dec')}" width="35%" />
										<listheader
											label="${c:l('relatorioIndiceIRKController.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="linhaListSelList"
									mold="paging"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
									vflex="true" multiple="true" height="60%" width="100%">
									<listhead>
										<listheader
											label="${c:l('relatorioIndiceIRKController.lbNumRuta.label')}"
											width="18%" />
										<listheader
											label="${c:l('relatorioIndiceIRKController.lbPrefixo.label')}"
											width="20%" />
										<listheader
											label="${c:l('lb.dec')}" width="30%" />
										<listheader
											label="${c:l('relatorioIndiceIRKController.lbOrgao.label')}"
											width="22%" />
										<listheader width="10%" />
									</listhead>
								</listbox>
							</center>
						</borderlayout>
					</cell>
				</row>

				<row>
					<label
						value="${c:l('relatorioIndiceIRKController.lbEmpresa.label')}" />
					<combobox id="cmbEmpresa"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						mold="rounded" buttonVisible="true" width="100%"
						model="@{winFiltroRelatorioIndiceIRK$composer.lsEmpresa}"
						constraint="no empty" />

				</row>

				<row>
					<label
						value="${c:l('relatorioIndiceIRKController.lbGrupoRuta.label')}" />
					<combobox id="cmbGrupoRuta"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						mold="rounded" buttonVisible="true" width="100%"
						model="@{winFiltroRelatorioIndiceIRK$composer.lsGrupoRuta}" />

				</row>
			</rows>
		</grid>
 
		<toolbar>
			<button id="btnExecutarRelatorio" image="/gui/img/find.png"
				label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
		</toolbar>
	</window>
</zk>