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

<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winFiltroRelatorioOCD"
		apply="${relatorioOCDController}"
		contentStyle="overflow:auto" width="550px"
		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('relatorioOCDController.lbDataIni.value')}" />
					<datebox id="datInicial" width="90%"
						format="dd/MM/yyyy"
						maxlength="10" />

					<label
						value="${c:l('relatorioOCDController.lbDataFin.value')}" />
					<datebox id="datFinal" width="90%"
						format="dd/MM/yyyy"
						maxlength="10" />
				</row>
				<row>
					<label
						value="${c:l('relatorioOCDController.lbDataPagamentoIni.value')}" />
					<datebox id="datPagoInicial" width="90%"
						format="dd/MM/yyyy"
						maxlength="10" />

					<label
						value="${c:l('relatorioOCDController.lbDataPagamentoFin.value')}" />
					<datebox id="datPagoFinal" width="90%"
						format="dd/MM/yyyy"
						maxlength="10" />
				</row>
				<row spans="1,4">
                    <label id="lbNumOperacao" value="${c:l('relatorioOCDController.lbNumOperacao.value')}"/>
                    <textbox id="txtNumOperacao" width="90%" maxlength="30"
                             use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
                </row>
				<row spans="1,4">
					<label
						value="${c:l('relatorioOCDController.lbEmpresa.value')}" />
					<combobox id="cmbEmpresa" width="70%"
						maxlength="60" mold="rounded" buttonVisible="true"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						model="@{winFiltroRelatorioOCD$composer.lsEmpresas}" />
				</row>
				<row spans="1,4">
					<label
						value="${c:l('relatorioDevolucaoBilhetesAgenciaController.lbPuntoVenta.value')}" />
					<bandbox id="bbPesquisaPuntoVenta" width="90%"
						mold="rounded" readonly="true">
						<bandpopup height="150px">
							<vbox>
								<hbox>
									<textbox id="txtPalavraPesquisa" />
									<button id="btnPesquisa"
										image="/gui/img/find.png"
										label="${c:l('relatorioDevolucaoBilhetesAgenciaController.btnPesquisa.label')}" />
									<button id="btnLimpar"
										image="/gui/img/eraser.png"
										label="${c:l('relatorioDevolucaoBilhetesAgenciaController.btnLimpar.label')}" />
								</hbox>

								<listbox id="puntoVentaList"
									mold="paging"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
									vflex="true" multiple="false" height="100%" width="360px">
									<listhead>
										<listheader
											label="${c:l('relatorioDevolucaoBilhetesAgenciaController.puntoVentaSelList.codigo')}" />
										<listheader
											label="${c:l('relatorioDevolucaoBilhetesAgenciaController.puntoVentaSelList.nome')}" />
									</listhead>
								</listbox>
								<paging id="pagingPuntoVenta"
									pageSize="10" />
							</vbox>
						</bandpopup>
					</bandbox>
				</row>
				<row spans="1,4">
					<cell colspan="4" rowspan="1" valign="middle">
						<borderlayout height="150px">
							<center border="0">
								<listbox id="puntoVentaSelList"
									mold="paging"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
									vflex="true" multiple="true" height="60%" width="100%">
									<listhead>
										<listheader
											label="${c:l('relatorioDevolucaoBilhetesController.puntoVentaSelList.codigo')}" />
										<listheader
											label="${c:l('relatorioDevolucaoBilhetesController.puntoVentaSelList.nome')}" />
										<listheader width="35px" />
									</listhead>
								</listbox>
							</center>
						</borderlayout>
					</cell>
				</row>
					<row spans="1,4" >
					<label
						value="${c:l('relatorioOCDController.chOcdReembolsoPix.value')}" />
					<checkbox id="chOcdReembolsoPix"						
						checked="false" />
				</row>
				<row spans="1,4" id="rowStatusOCD">
					<label value="${c:l('relatorioOCDController.indStatusOCD.value')}" />
					<radiogroup Id="indStatusOCD">
						<radio id="radPendente"  label="${c:l('relatorioOCDController.radPendente.value')}" 
							checked="true" />
						<radio id="radPagos"  label="${c:l('relatorioOCDController.radPagos.value')}" />
						<radio id="radTodos"  label="${c:l('relatorioOCDController.radTodos.value')}" />
					</radiogroup>
				</row>
				<row spans="1,4">
					<label value="${c:l('relatorioOCDController.indOrdenacao.value')}" />
					<radiogroup Id="indOrdenacao" orient="vertical">
						<radio id="radBoleto"  label="${c:l('relatorioOCDController.radBoleto.value')}" 
							checked="true" />
						<radio id="radNumOperacao"  label="${c:l('relatorioOCDController.radNumOperacao.value')}" />
						<radio id="radFecInclusao"  label="${c:l('relatorioOCDController.radFecInclusao.value')}" />
						<radio id="radFecPagamento"  label="${c:l('relatorioOCDController.radFecPagamento.value')}" />
					</radiogroup>
				</row>
			
			</rows>
			
		</grid>
		<toolbar>
			<button id="btnExecutarRelatorio" image="/gui/img/find.png"
				label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
		</toolbar>
	</window>
</zk>