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

<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winFiltroRelatorioTaxasLinha"
		apply="${relatorioTaxasLinhaController}" contentStyle="overflow:auto"
		width="800px" border="normal">
		<grid fixedLayout="true">
			<columns>
				<column width="15%" />
				<column width="35%" />
				<column width="15%" />
				<column width="35%" />
			</columns>
			<rows>
				<row>
					<label value="${c:l('relatorioTaxasLinhaController.lbDatInicial.value')}" />
					<datebox id="datInicial" width="95%" use="com.rjconsultores.ventaboletos.web.utilerias.MyDatebox" mold="rounded" lenient="true"   constraint="no empty"/>

					<label value="${c:l('relatorioTaxasLinhaController.lbDatFinal.value')}" />
					<datebox id="datFinal" width="95%" use="com.rjconsultores.ventaboletos.web.utilerias.MyDatebox" mold="rounded" lenient="true"   constraint="no empty"/>
				</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>
				<row spans="1,1,2">
				<cell rowspan="2" align="left" >
					<label
						value="${c:l('relatorioTaxasLinhaController.lbEmpresa.value')}" />
				</cell>
				<cell rowspan="2" align="left" >
					<combobox id="cmbEmpresa" mold="rounded"
						buttonVisible="true"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						model="@{winFiltroRelatorioTaxasLinha$composer.lsEmpresa}"
						width="95%" />
				</cell>
					<hbox >
						<radiogroup id="rdGroupTipoData">
							<radio radiogroup="rdGroupTipoData"
								value="1" checked="true"
								label="${c:l('relatorioTaxasLinhaController.lbTipoData.venda.value')}" />
							<radio radiogroup="rdGroupTipoData"
								value="2"
								label="${c:l('relatorioTaxasLinhaController.lbTipoData.servico.value')}" />
						</radiogroup>

						<checkbox id="chkSubtrairIcms"
							label="${c:l('relatorioTaxasLinhaController.lbChkSubtrairIcms.value')}" />
							
						<checkbox id="chkSubtrairNoShow"
							label="${c:l('relatorioTaxasLinhaController.lbChkSubtrairNoShow.value')}" />
							
					</hbox>
				</row>
				<row spans="1,1,2">	
				<cell colspan="2" align="center" >
				<label value="" />	
					<hbox  width="100%">
					<checkbox id="chkTaxaEmbarque" checked="true" hflex="12"
					label="${c:l('relatorioTaxasLinhaController.lbChkTaxaEmbarque.value')}" />			
					<checkbox id="chkTaxaPedagio" checked="true" hflex="10"
					label="${c:l('relatorioTaxasLinhaController.lbChkTaxaPedagio.value')}" />
					<checkbox id="chkTaxaSeguro" checked="true" hflex="10"
					label="${c:l('relatorioTaxasLinhaController.lbChkTaxaSeguro.value')}" />
					<checkbox id="chkTaxaSeguroOpcional" checked="true" hflex="15"
					label="${c:l('relatorioTaxasLinhaController.lbChkTaxaSeguroOpcional.value')}" />
					</hbox>	
					</cell>		
				</row>
				<row spans="1,3">
					<label
						value="${c:l('relatorioTaxasLinhaController.lbPuntoVenta.value')}" />
					<bandbox id="bbPesquisaPuntoVenta" width="100%"
						mold="rounded" readonly="true">
						<bandpopup>
							<vbox>
								<hbox>
									<label
										value="${c:l('relatorioTaxasLinhaController.lbPuntoVenta.value')}" />
									<textbox id="txtNombrePuntoVenta"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
										width="300px" mold="rounded" />
									<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="pagingPuntoVenta"
									pageSize="10" />
								<listbox id="puntoVentaList"
									mold="paging"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
									vflex="true" height="100%" width="700px">
									<listhead>
										<listheader
											label="${c:l('relatorioTaxasLinhaController.lbPuntoVenta.value')}" />
										<listheader width="35%"
											label="${c:l('relatorioTaxasLinhaController.lbEmpresa.value')}" />
										<listheader width="20%"
											label="${c:l('relatorioTaxasLinhaController.lbNumero.value')}" />
									</listhead>
								</listbox>
							</vbox>
						</bandpopup>
					</bandbox>
				</row>
				<row spans="1,1,2" visible="@{winFiltroRelatorioTaxasLinha$composer.chkDownloadTxtVisible}">
					<label
						value="${c:l('relatorioTaxasLinhaController.lbChkDownloadTxt.value')}" />
					<cell colspan="3">
						<checkbox id="chkDownloadTxt"
							label="${c:l('relatorioTaxasLinhaController.lbChkDownloadTxt.value')}" />
					</cell>
					
				</row>	

				<row spans="5">
					<listbox id="puntoVentaSelList" mold="paging"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
						vflex="true" height="100px" width="100%">
						<listhead>
							<listheader
								label="${c:l('relatorioTaxasLinhaController.lbPuntoVenta.value')}" />
							<listheader width="35%"
								label="${c:l('relatorioTaxasLinhaController.lbEmpresa.value')}" />
							<listheader width="20%"
								label="${c:l('relatorioTaxasLinhaController.lbNumero.value')}" />
							<listheader width="5%" />
						</listhead>
					</listbox>
					<paging id="pagingSelPuntoVenta" pageSize="10" />
				</row>
			</rows>
		</grid>
		<toolbar>
			<button id="btnExecutarRelatorio" image="/gui/img/find.png"
				label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
			<button id="btnExecutarRelatorioPorDataEmissao" image="/gui/img/find.png"
				label="${c:l('relatorio.lb.btnExecutarRelatorioPorDataEmissao')}" />	
		</toolbar>
	</window>
</zk>

