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

<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winFiltroCarteirinha"
		apply="${relatorioCarterinhaController}" contentStyle="overflow:auto"
		height="475px" width="600px" border="normal">
		<grid fixedLayout="true">
			<columns>
				<column width="25%" />
				<column width="30%" />			
			</columns>
			<rows>
				<row spans="1,6">
					<label
						value="${c:l('relatorioCarterinhaController.lbEmpresa')}" />
					<combobox id="cmbEmpresa" 
						buttonVisible="true" 
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						model="@{winFiltroCarteirinha$composer.lsEmpresa}"
						width="100%"
						constraint="no empty" />
				</row>
				<row spans="1,6">
				<label value="${c:l('relatorioCarterinhaController.lblCliente')}" />
					<bandbox id="bbPesquisaCliente" width="100%" mold="rounded" readonly="true">
						<bandpopup >
							<vbox>
								<hbox>
									<label
										value="${c:l('relatorioCarterinhaController.lblCliente')}" />
									<textbox id="txtCliente"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
										width="300px" mold="rounded" />
									<button id="btnPesquisa"
										image="/gui/img/find.png"
										label="${c:l('relatorioCarterinhaController.btnPesquisa')}" />
									<button id="btnLimpar"
										image="/gui/img/eraser.png"
										label="${c:l('relatorioCarterinhaController.btnLimpar')}" />
								</hbox>
								<paging id="pagingCliente" pageSize="10" />
								<listbox id="clienteList"
									mold="paging"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
									vflex="true" height="100%" width="700px">
									<listhead>
										<listheader
											label="${c:l('relatorioCarterinhaController.lblIdCliente')}" />
										<listheader
											label="${c:l('relatorioCarterinhaController.lblCliente')}" />
										<listheader
											label="${c:l('relatorioCarterinhaController.lbEmpresa')}" />
										<listheader 
											label="${c:l('relatorioCarterinhaController.numeroCliente')}" />								
										<listheader
											label="${c:l('relatorioCarterinhaController.lblDocumento')}" />
										<listheader 
											label="${c:l('relatorioCarterinhaController.nomeEscola')}" />
									</listhead>
								</listbox>
							</vbox>
						</bandpopup>
					</bandbox>
				</row>	
				<row spans="1,6">
					<label
						value="${c:l('relatorioCarterinhaController.lblLayout')}" />
					<grid>
			             <rows>
		                	<row>
		           				<radiogroup Id="rgLayout" >
									<radio label="${c:l('relatorioCarterinhaController.lblLayout1')}" value="LAYOUT_1" checked = "true"/>
									<radio label="${c:l('relatorioCarterinhaController.lblLayout2')}" value="LAYOUT_2" />
									<radio label="${c:l('relatorioCarterinhaController.lblLayoutCliente')}" value="LAYOUT_CLIENTE" />
								</radiogroup>
		                	</row>
            			</rows>
					</grid>
				</row>
				<row spans="7">
					<listbox id="clienteSelList" mold="paging"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
						vflex="true" height="280px" width="100%">
						<listhead >
							<listheader
								label="${c:l('relatorioCarterinhaController.lblIdCliente')}" />
							<listheader
								label="${c:l('relatorioCarterinhaController.lblCliente')}" />	
							<listheader
								label="${c:l('relatorioCarterinhaController.lbEmpresa')}" />
							<listheader 
								label="${c:l('relatorioCarterinhaController.numeroCliente')}" />
							<listheader
								label="${c:l('relatorioCarterinhaController.lblDocumento')}" />
							<listheader 
								label="${c:l('relatorioCarterinhaController.nomeEscola')}" />
							<listheader width="8%" label="" />
					    </listhead>
					</listbox>	
				</row>		
			</rows>
		</grid>
		<toolbar>
			<button id="btnExecutarRelatorio" image="/gui/img/find.png"
				label="${c:l('relatorio.lb.btnGerarCarteirinha')}" />
		</toolbar>
	</window>
</zk>

