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

<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winReenvioBpe" apply="${reenvioBpeController}" 
		 contentStyle="overflow:auto"
		height="600px" width="900px" border="normal">
			<grid fixedLayout="true">
			<columns>
				<column width="17%" />
				<column width="35%" />
				<column width="17%" />
				<column width="32%" />
			</columns>
			<rows>
				<row>
					<label
						value="${c:l('reenvioBpeController.lbDtInicio.value')}" />
					<datebox id="dtInicio" width="50%" mold="rounded"
						format="dd/MM/yyyy"  maxlength="10" />
					<label
						value="${c:l('reenvioBpeController.lbDtFim.value')}" />
					<datebox id="dtFim" width="50%" mold="rounded"
						format="dd/MM/yyyy" maxlength="10" />
				</row>
				
				<row spans="1,3">
					<label
						value="${c:l('label.empresa')}" />
					<combobox id="cmbEmpresa" 
						buttonVisible="true" 
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						model="@{winReenvioBpe$composer.lsEmpresa}"
						width="100%" />
				</row>
								
				<row spans="1, 3">
					<label
						value="${c:l('lb.uf')}" />
					<listbox id="estadoList" rows="10" vflex="false"
						width="90%" multiple="true" checkmark="true"
						height="100px"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox">
					</listbox>
				</row>
			</rows>
			</grid>
			
			<grid fixedLayout="true">
			<columns>
				<column width="15%" />
				<column width="48%" />
				<column width="12%" />
				<column width="25%" />
			</columns>			
			<rows>
				<row>
					<label
						value="${c:l('lb.chbpe')}" />
					<textbox id="txtChBpe" width="95%"/>
					<label
						value="${c:l('lb.numBpe')}" />
					<textbox id="txtNumBpe" />
				</row>				
				<row spans="1,3">
					<label
						value="${c:l('reenvioBpeController.lbl.codigoRejeicao')}" />
					<textbox id="txtCodigoRejeicao" width="98%"/>
				</row>				
			</rows>
		</grid>
		
		<toolbar>
			<button id="btnBuscarBpe" image="/gui/img/find.png"
				label="${c:l('reenvioBpeController.lbl.btnBuscarBpe')}" />
		</toolbar>
		
		<label value="${c:l('reenvioBpeController.lbl.selecioneReenvio')}" style="font-weight:bold;"/>
		<listbox id="bpeReenvioList"
			use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
			vflex="true" multiple="true" checkmark="true">
			<listhead sizable="true">
                <listheader image="/gui/img/create_doc.gif"
                    label="${c:l('label.empresa')}" width="250px" />
                    
				<listheader image="/gui/img/create_doc.gif" 
					label="${c:l('lb.uf')}" width="50px" align="center"/>
                    
				<listheader image="/gui/img/create_doc.gif" 
					label="${c:l('lb.dataVenda')}" width="100px" />
					
				<listheader image="/gui/img/create_doc.gif"
					label="${c:l('reenvioBpeController.lbl.numBpeSerie')}" width="100px" align="center"/>
					
				<listheader image="/gui/img/create_doc.gif"
					label="${c:l('reenvioBpeController.lbl.codstat')}" width="100px" align="center"/>
					
				<listheader image="/gui/img/create_doc.gif"
					label="${c:l('lb.chbpe')}"  width="150px"/>
					
				<listheader image="/gui/img/create_doc.gif"
					label="${c:l('reenvioBpeController.lbl.motivo')}" width="200px"/>
					
				<listheader image="/gui/img/create_doc.gif"
					label="${c:l('reenvioBpeController.lbl.rejeicaoContingencia')}" width="300px" />
					
			</listhead>
		</listbox>
		
		<toolbar>
			<button id="btnReenviarBpe" image="/gui/img/ok.png"
				label="${c:l('reenvioBpeController.lbl.reenviar')}" />
		</toolbar>		
	</window>
</zk>

