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

<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winFiltroRelatorioVendasPTA"
		apply="${relatorioVendasPTAController}" contentStyle="overflow:auto"
		height="250px" 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('relatorioVendasPTAController.lbDatInicial.value')}" />
					<datebox id="datInicial" width="90%"
						format="dd/MM/yyyy" constraint="no empty" maxlength="10" />
					<label
						value="${c:l('relatorioVendasPTAController.lbDatFinal.value')}" />
					<datebox id="datFinal" width="90%"
						format="dd/MM/yyyy" constraint="no empty" maxlength="10" />

				</row>

				<row>
					<label
						value="${c:l('relatorioVendasPTAController.lbAgencia.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('relatorioVendasPTAController.btnPesquisa.label')}" />
									<button id="btnLimpar"
										image="/gui/img/eraser.png"
										label="${c:l('relatorioVendasPTAController.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('relatorioVendasPTAController.puntoVentaSelList.codigo')}" />
										<listheader
											label="${c:l('relatorioVendasPTAController.puntoVentaSelList.nome')}" />
									</listhead>
								</listbox>
								<paging id="pagingPuntoVenta"
									pageSize="10" />
							</vbox>
						</bandpopup>
					</bandbox>

					<label
						value="${c:l('relatorioVendasPTAController.lbEmpresa.value')}" />
					<combobox id="cmbEmpresa" buttonVisible="true"
						constraint="no empty"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						model="@{winFiltroRelatorioVendasPTA$composer.lsEmpresa}"
						width="100%" />
				</row>
				<row>
					<cell colspan="2" rowspan="2">
						<borderlayout height="100px">

							<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('relatorioVendasPTAController.puntoVentaSelList.codigo')}" />
										<listheader
											label="${c:l('relatorioVendasPTAController.puntoVentaSelList.nome')}" />
										<listheader width="35px" />
									</listhead>
								</listbox>
							</center>
						</borderlayout>
					</cell>
					<label
						value="${c:l('relatorioVendasPTAController.lbTipo.value')}" />
					<radiogroup id="rgLayout">
						<radio id="rdExecutarRelatorio"
							label="${c:l('relatorioVendasPTAController.lbPTA.value')}"
							value="LAYOUT_1" checked="true" />
						<separator bar="true" />
						<radio id="rdInternetPta"
							label="${c:l('relatorioVendasPTAController.lbInternetPTA.value')}"
							value="LAYOUT_2" />
					</radiogroup>

				</row>
				<row>
					<label
						value="${c:l('relatorioVendasPTAController.lbSituacao.value')}" />
					<combobox id="cmbSituacao" width="100%"
						constraint="no empty" maxlength="60" mold="rounded"
						buttonVisible="true"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
				</row>
			</rows>
		</grid>
		<toolbar>
			<button id="btnExecutarRelatorio" image="/gui/img/find.png"
				label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
		</toolbar>

	</window>
</zk>