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

<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winFiltroRelatorioOrigemDestino"
		apply="${relatorioOrigemDestinoController}"
		contentStyle="overflow:auto" width="700px" 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('relatorioReceitaDiariaAgenciaController.lbDataIni.value')}" />
					<datebox id="datInicial" width="100%" mold="rounded"
						format="dd/MM/yyyy" constraint="no empty"
						maxlength="10" />
					<label
						value="${c:l('relatorioReceitaDiariaAgenciaController.lbDataFin.value')}" />
					<datebox id="datFinal" width="100%" mold="rounded"
						format="dd/MM/yyyy" constraint="no empty"
						maxlength="10" />
				</row>

				<row spans="1,3">
					<label
						value="${c:l('relatorioOrigemDestinoController.lblEmpresa.value')}" />
					<combobox id="cmbEmpresa" constraint="no empty"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						mold="rounded" buttonVisible="true" width="90%"
						model="@{winFiltroRelatorioOrigemDestino$composer.lsEmpresa}" />
				</row>

				<row spans="1,3">
					<label
						value="${c:l('relatorioOrigemDestinoController.lbServico.value')}" />

					<vbox>
						<bandbox id="bbPesquisaCorrida" width="100%"
							mold="rounded" readonly="true">
							<bandpopup>
								<vbox>

									<grid fixedLayout="true"
										width="800px">
										<columns>
											<column width="15%" />
											<column width="35%" />
											<column width="15%" />
											<column width="35%" />
										</columns>
										<rows>
											<row>
												<label
													value="${c:l('relatorioOrigemDestinoController.lbServico.value')}" />
												<intbox width="50%"
													id="txtCorridaId" mold="rounded" />

												<label
													value="${c:l('relatorioOrigemDestinoController.lbCodLinha.value')}" />
												<intbox id="txtCodLinha"
													width="50%" mold="rounded" />
											</row>
											<row spans="1,3">
												<label
													value="${c:l('editarConfiguracionCorridaController.cmbRuta.value')}" />
												<combobox id="cmbRuta"
													width="50%"
													use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
													mold="rounded" buttonVisible="true"
													model="@{winFiltroRelatorioOrigemDestino$composer.lsRuta}" />
											</row>
											<row>
												<label
													value="${c:l('relatorioTaxasLinhaController.lbCidadaOrigem.value')}" />
												<cell>
													<combobox
														id="cmbParadaOrigemCve"
														use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParadaCve"
														mold="rounded" buttonVisible="true" width="30%" />
													<combobox
														id="cmbParadaOrigem"
														use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
														mold="rounded" buttonVisible="true" width="65%" />
												</cell>

												<label
													value="${c:l('relatorioTaxasLinhaController.lbCidadeDestino.value')}" />
												<cell>
													<combobox
														id="cmbParadaDestinoCve" autodrop="false"
														use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParadaCve"
														mold="rounded" buttonVisible="true" width="30%" />
													<combobox
														id="cmbParadaDestino" autodrop="false"
														use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
														mold="rounded" buttonVisible="true" width="65%" />
												</cell>
											</row>
										</rows>
									</grid>

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

									<paging id="pagingCorrida"
										pageSize="10" />
									<listbox id="corridaList"
										mold="paging"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
										vflex="true" height="100%" width="800px">
										<listhead>
											<listheader
												label="${c:l('relatorioOrigemDestinoController.lbServico.value')}"
												width="10%" />
											<listheader
												label="${c:l('relatorioOrigemDestinoController.origem.label')}" />
											<listheader
												label="${c:l('relatorioOrigemDestinoController.destino.label')}" />
											<listheader
												label="${c:l('relatorioOrigemDestinoController.rutaId.label')}"
												width="10%" />
											<listheader
												label="${c:l('relatorioOrigemDestinoController.descRuta.label')}" />
										</listhead>
									</listbox>
								</vbox>
							</bandpopup>
						</bandbox>

						<listbox id="corridaSelList" mold="paging"
							use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
							vflex="true" height="100px" width="100%">
							<listhead>
								<listheader
									label="${c:l('relatorioOrigemDestinoController.lbServico.value')}"
									width="10%" />
								<listheader
									label="${c:l('relatorioOrigemDestinoController.origem.label')}"
									width="40%" />
								<listheader
									label="${c:l('relatorioOrigemDestinoController.destino.label')}"
									width="40%" />
								<listheader width="10%" />
							</listhead>
						</listbox>
						<paging id="pagingSelCorrida" pageSize="10" />
					</vbox>
				</row>

				<row spans="4">
					<checkbox id="chkBilhetesGratuitos"
						label="${c:l('relatorioOrigemDestinoController.chkBilhetesGratuitos.value')}" />
				</row>

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

