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

<zk xmlns="http://www.zkoss.org/2005/zul">

	<window id="winFiltroRelatorioSap" border="normal"
			apply="${relatorioSapController}" width="950px"
			height="590px" contentStyle="overflow:auto"
			title="${c:l('relatorioSapController.window.title')}"
			xmlns:h="http://www.w3.org/1999/xhtml">
			
			<grid fixedLayout="true">
				<columns>
					<column width="20%" />
					<column width="40%" />
					<column width="40%" />
	
				</columns>
				<rows>
					<row>
						<!-- Empresa -->
						<label
							value="${c:l('relatorioSapController.lbEmpresa.label')}" />
						<cell colspan="2">
							<combobox id="cmbEmpresa"
								use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
								mold="rounded" buttonVisible="true" width="70%"
								selectedItem="@{winFiltroRelatorioSap$composer.empresa}" />
						</cell>
			
					</row>
					<row>
						<label
							value="${c:l('relatorioSapController.lbFec.label')}" />
						<cell colspan="2">
							<datebox id="fecBoletoIni" width="130px"
								format="dd/MM/yyyy" constraint="no empty"
								maxlength="10" />
							<space />
							<label
								value="${c:l('relatorioSapController.lbAte.label')}" />
							<space />
							<datebox id="fecBoletoFin" width="130px"
								format="dd/MM/yyyy" constraint="no empty"
								maxlength="10" />
						</cell>
					</row>
					<row>
						<label value="${c:l('lb.puntoventa')}" />
						<cell colspan="2">
							<combobox id="cmbPuntoVenta"
								use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
								mold="rounded" 
								buttonVisible="true" 
								width="70%"/>
						</cell>
					</row>	
					<row>
						<label 
							value="${c:l('relatorioSapController.reenviarGerados.label')}" />
						<cell colspan="2">	
							<hbox>					
								<checkbox id="chkIntegrado" label="Integrado" />
								<checkbox id="chkNaoEnviado" label="Não Enviado" />
								<checkbox id="chkPendente" label="Pendente" />
								<checkbox id="chkRecusado" label="Recusado" />
							</hbox>							
						</cell>
					</row>
				</rows>		
			</grid>
			
			<toolbar>
				<button id="btnPesquisar"
					image="/gui/img/enginer.png"
					label="${c:l('relatorioSapController.btnPesquisar.label')}" />
				<button id="btnExecutarRemessa"
					image="/gui/img/enginer.png"
					label="${c:l('relatorioSapController.btnGerarRemessa.label')}" />
				<button id="btnReintegrar"
					image="/gui/img/enginer.png"
					label="${c:l('relatorioSapController.btnReintegrar.label')}" />					
				<button id="btnImportarRetorno" visible="false"
					image="/gui/img/enginer.png"
					label="${c:l('relatorioSapController.btnImportarRetornoRemessa.label')}" />
			</toolbar>
			
			<listbox id="boletoFechamentoList"
				use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
			    multiple="false" height="90%">
				<listhead sizable="true">
					<listheader image="" label="" width="5%"/>
					<listheader image="/gui/img/builder.gif" label="${c:l('relatorioSapController.lbEmpresa.value')}" width="29%"/>
					<listheader image="/gui/img/builder.gif" label="${c:l('relatorioSapController.lbPtoVenda.value')}" width="29%" />
					<listheader image="/gui/img/builder.gif" label="${c:l('relatorioSapController.lbDataFecha.value')}" width="14%" />
					<listheader image="/gui/img/builder.gif" label="${c:l('relatorioSapController.lbDataLanca.value')}" width="14%" />
					<listheader image="/gui/img/builder.gif" label="${c:l('relatorioSapController.lbValor.value')}" width="14%" />
					<listheader image="/gui/img/builder.gif" label="${c:l('relatorioSapController.lbFechamento.value')}" width="14%" />
					<listheader image="/gui/img/builder.gif" label="${c:l('relatorioSapController.lbStatus.value')}" width="10%" />
				</listhead>
			</listbox>
			
	</window>
</zk>