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

<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winFiltroRelatorioDescontos" apply="${relatorioDescontosController}" contentStyle="overflow:auto" height="410px" width="570px" border="normal" sizable="true">
		<grid fixedLayout="true">
			<columns>
				<column width="30%" />				
				<column width="70%" />
			</columns>
			<rows>
				<row>
					<label value="${c:l('relatorioDescontosController.lbCodConvenio.value')}" />
					<textbox id="txtCodConvenio" maxlength="20" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" width="50%"/>					
				</row>
				<row>
					<label value="${c:l('relatorioDescontosController.lbPeriodoVendaInicial.value')}" />
					<datebox id="fecVentaInicial"  format="dd/MM/yyyy" constraint="no empty" width="50%"/>
				</row>
				<row>
					<label value="${c:l('relatorioDescontosController.lbPeriodoVendaFinal.value')}" />
					<datebox id="fecVentaFinal" format="dd/MM/yyyy" constraint="no empty" width="50%"/>
				</row>
				<row>
					<label value="${c:l('relatorioDescontosController.lbAgencia.value')}" />
					<combobox id="cmbAgencia" width="100%" maxlength="60" mold="rounded" buttonVisible="true"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"/>						
				</row>
				
				<row>
                    <label value="${c:l('editarPuntoVentaController.lbTpoPtoVta.value')}" />
                    <combobox id="cmbTipoPontoVenta"
                        use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
                        mold="rounded" buttonVisible="true" width="100%" model="@{winFiltroRelatorioDescontos$composer.lsTipoPuntoVenta}" />
                </row>
				
				<row>
					<label value="${c:l('relatorioDescontosController.lbEmpresa.value')}"/>
					<bandbox id="bbPesquisaEmpresa" width="100%" mold="rounded" readonly="true">
						<bandpopup>
							<vbox>
								<hbox>
									<label
										value="${c:l('relatorioDescontosController.lbEmpresa.value')}" />
									<textbox id="txtNombreEmpresa"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
										width="300px" mold="rounded" />
									<button id="btnPesquisa"
										image="/gui/img/find.png"
										label="${c:l('relatorioDescontosController.btnPesquisa.label')}" />
									<button id="btnLimpar"
										image="/gui/img/eraser.png"
										label="${c:l('relatorioDescontosController.btnLimpar.label')}" />
								</hbox>
								<paging id="pagingEmpresa" pageSize="10" />
								<listbox id="empresaList"
									mold="paging"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
									vflex="true" height="100%" width="700px">
									<listhead>
										<listheader width="10%"
											label="${c:l('relatorioDescontosController.lbIdEmpresa.value')}" />
										<listheader width="90%"
											label="${c:l('relatorioDescontosController.lbEmpresa.value')}" />
									</listhead>
								</listbox>
							</vbox>
						</bandpopup>
					</bandbox>
					</row>
					<row spans="2">
						<listbox id="empresaSelList" mold="paging"
							use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
							vflex="true" height="100px" width="100%">
							<listhead>
								<listheader width="10%" label="${c:l('relatorioDescontosController.lbIdEmpresa.value')}" />
								<listheader width="90%"	label="${c:l('relatorioDescontosController.lbEmpresa.value')}" />
							</listhead>							
						</listbox>
						<paging id="pagingEmpresaSel" pageSize="10" />
				   </row>
			</rows>			
		</grid>
		<grid fixedLayout="true">
			<columns>
				<column width="65%" />
				<column width="5%" />
				<column width="30%" />
			</columns>
			<rows>
				<row>
					<label value="${c:l('relatorioDescontosController.lbConseiderarVendasGeramCaixa.value')}"/>
					<image src="/gui/img/Question_mark_1.png" tooltiptext="${c:l('relatorioDescontosController.lbConseiderarVendasGeramCaixa.ajuda')}"
					              style="cursor: help" />
					<radiogroup Id="rdbGroupVendasGeramCaixa">
						<radio id="rdSim" value="1" label="${c:l('relatorioDescontosController.rdConseiderarVendasGeramCaixaSim.value')}" selected="true"/>
						<radio id="rdNao" value="2" label="${c:l('relatorioDescontosController.rdConseiderarVendasGeramCaixaNao.value')}"/>
				 	</radiogroup>
				</row>				
			</rows>
		</grid>	
		<toolbar>
			<label value="${c:l('relatorioDescontosController.lbTipoRelatorio.value')}" />
			<radiogroup Id="rdbGroup">
				<radio id="rdTipo1" value="1" label="${c:l('relatorioDescontosController.lbTipoRelatorioTipo1.value')}" selected="true" />
				<radio id="rdTipo2" value="2" label="${c:l('relatorioDescontosController.lbTipoRelatorioTipo2.value')}"  />
			</radiogroup>
			<button id="btnExecutarRelatorio" image="/gui/img/find.png"	label="${c:l('relatorio.lb.btnExecutarRelatorio')}"/>
		</toolbar>		
	</window>
</zk>