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

<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winRelatorioImpressaoPosterior"
		apply="${relatorioImpressaoPosteriorController}"
		contentStyle="overflow:auto" height="577px" width="560px"
		sizable="true"
		border="none">

		<grid fixedLayout="true">
			<columns>
				<column width="20%" />
				<column width="30%" />
				<column width="20%" />
				<column width="30%" />
			</columns>
			<rows>
				<row spans="4" align="center" >
					<label value="${c:l('relatorioImpressaoPosteriorController.lbVenda.value')}"  />
				</row>
				<row>
					<label value="${c:l('relatorioImpressaoPosteriorController.lbDataIni.value')}" />
					<datebox id="datVendaInicial" width="90%" format="dd/MM/yyyy" maxlength="10" />
					<label value="${c:l('relatorioImpressaoPosteriorController.lbHoraIni.value')}" />
					<timebox id="horVendaInicial" width="60%" mold="rounded"/>
				</row>
				<row>
					<label value="${c:l('relatorioImpressaoPosteriorController.lbDataFin.value')}" />
					<datebox id="datVendaFinal" width="90%" format="dd/MM/yyyy" maxlength="10" />
					<label value="${c:l('relatorioImpressaoPosteriorController.lbHoraFin.value')}" />
					<timebox id="horVendaFinal" width="60%" mold="rounded" />
				</row>
				<row spans="4" align="center">
					<label value="${c:l('relatorioImpressaoPosteriorController.lbViagem.value')}" />
				</row>
				<row>
					<label value="${c:l('relatorioImpressaoPosteriorController.lbDataIni.value')}" />
					<datebox id="datViagemInicial" width="90%" format="dd/MM/yyyy" maxlength="10" />
					<label value="${c:l('relatorioImpressaoPosteriorController.lbHoraIni.value')}" />
					<timebox id="horViagemInicial" width="60%" mold="rounded"/>
				</row>
				<row>
					<label value="${c:l('relatorioImpressaoPosteriorController.lbDataFin.value')}" />
					<datebox id="datViagemFinal" width="90%" format="dd/MM/yyyy" maxlength="10" />
					<label value="${c:l('relatorioImpressaoPosteriorController.lbHoraFin.value')}" />
					<timebox id="horViagemFinal" width="60%" mold="rounded" />
				</row>

				<row spans="1,3">
					<label value="${c:l('relatorioImpressaoPosteriorController.lbEmpresa.value')}" />
					<combobox id="cmbEmpresa" cols="3"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						mold="rounded" buttonVisible="true"
						width="90%" model="@{winRelatorioImpressaoPosterior$composer.lsEmpresas}" />
				</row>
		
				<row spans="1,3">
					<label value="${c:l('relatorioImpressaoPosteriorController.lbOrigem.value')}" />
					<bandbox id="bbPesquisaOrigem" width="100%"
						mold="rounded" readonly="true">
						<bandpopup>
							<vbox>
								<hbox>
									<label
										value="${c:l('relatorioImpressaoPosteriorController.lbOrigem.value')}" />
									<textbox id="txtNombreOrigem"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
										width="300px" mold="rounded" />
									<button id="btnPesquisaOrigem"
										image="/gui/img/find.png"
										label="${c:l('relatorioLinhaOperacionalController.btnPesquisa.label')}" />
									<button id="btnLimparOrigem"
										image="/gui/img/eraser.png"
										label="${c:l('relatorioLinhaOperacionalController.btnLimpar.label')}" />
								</hbox>
								<paging id="pagingOrigem"
									pageSize="10" />
								<listbox id="origemList"
									mold="paging"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
									vflex="true" height="100%" width="700px">
									<listhead>
										<listheader
											label="${c:l('relatorioImpressaoPosteriorController.lbCodigo.value')}" />
										<listheader width="70%"
											label="${c:l('relatorioImpressaoPosteriorController.lbDescricao.value')}" />
									</listhead>
								</listbox>
							</vbox>
						</bandpopup>
					</bandbox>
				</row>
				<row spans="4">
					<listbox id="origemSelList" mold="paging"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
						vflex="true" height="100px" width="100%">
						<listhead>
							<listheader label="${c:l('relatorioImpressaoPosteriorController.lbCodigo.value')}" />
							<listheader width="70%" label="${c:l('relatorioImpressaoPosteriorController.lbDescricao.value')}" />
							<listheader width="5%" />
						</listhead>
					</listbox>
					<paging id="pagingSelOrigem" pageSize="10" />
				</row>
				
				<row spans="1,3">
					<label value="${c:l('relatorioImpressaoPosteriorController.lbDestino.value')}" />
					<bandbox id="bbPesquisaDestino" width="100%"
						mold="rounded" readonly="true">
						<bandpopup>
							<vbox>
								<hbox>
									<label value="${c:l('relatorioImpressaoPosteriorController.lbDestino.value')}" />
									<textbox id="txtNombreDestino"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
										width="300px" mold="rounded" />
									<button id="btnPesquisaDestino"
										image="/gui/img/find.png"
										label="${c:l('relatorioLinhaOperacionalController.btnPesquisa.label')}" />
									<button id="btnLimparDestino"
										image="/gui/img/eraser.png"
										label="${c:l('relatorioLinhaOperacionalController.btnLimpar.label')}" />
								</hbox>
								<paging id="pagingDestino"
									pageSize="10" />
								<listbox id="destinoList"
									mold="paging"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
									vflex="true" height="100%" width="700px">
									<listhead>
										<listheader label="${c:l('relatorioImpressaoPosteriorController.lbCodigo.value')}" />
										<listheader width="70%" label="${c:l('relatorioImpressaoPosteriorController.lbDescricao.value')}" />
									</listhead>
								</listbox>
							</vbox>
						</bandpopup>
					</bandbox>
				</row>
				<row spans="4">
					<listbox id="destinoSelList" mold="paging"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
						vflex="true" height="100px" width="100%">
						<listhead>
							<listheader label="${c:l('relatorioImpressaoPosteriorController.lbCodigo.value')}" />
							<listheader width="70%" label="${c:l('relatorioImpressaoPosteriorController.lbDescricao.value')}" />
							<listheader width="5%" />
						</listhead>
					</listbox>
					<paging id="pagingSelDestino" pageSize="10" />
				</row>
			</rows>
		</grid>
		<toolbar>
			<button id="btnExecutarRelatorio" image="/gui/img/find.png"
				label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
		</toolbar>
	</window>
</zk>