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

<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winFaturarVoucher" border="normal"
		apply="${faturarVoucherController}" 
		height="500px" width="1100px" contentStyle="overflow:auto" sizable="true"
		title="${c:l('faturarVoucherController.window.title')}" > 
		
		<toolbar>
			<hbox spacing="5px" style="padding:1px" align="right">
				<button id="btnSalvar" height="20"
					image="/gui/img/save.png" width="35px" 
					tooltiptext="${c:l('tooltiptext.btnSalvar')}" />
				<button id="btnCerrar"
					onClick="winFaturarVoucher.detach()" image="/gui/img/exit.png"
					width="35px"
					tooltiptext="${c:l('tooltiptext.btnFechar')}" />
			</hbox>			
		</toolbar>

		<grid fixedLayout="true">
			<columns>
				<column width="15%" />
				<column width="35%" />
				<column width="15%" />
				<column width="35%" />
			</columns>
			<rows>
				<row>
					<label value="${c:l('label.numFatura')}" />
					<longbox id="txtFatura" constraint="no negative" maxlength="15" width="100px" />
					
					<label id="lbDataCorte" value="${c:l('label.dataCorte')}" />
					<datebox id="datCorte" width="100px"
						format="dd/MM/yyyy" maxlength="10" />
				</row>				
				
			</rows>
		</grid>
		
		<toolbar>				
			<button id="btnFaturar" height="20"
					image="/gui/img/ok.png" width="120px"
					label="${c:l('label.btnFaturar')}" />
		</toolbar>

		<paging id="pagingFaturar" pageSize="10" />
		<listbox id="voucherList" 
			use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
			multiple="false">
			<listhead sizable="true">
				<listheader id="lhNumVoucher" image="/gui/img/create_doc.gif"					
					label="${c:l('label.voucher')}" width="10%" />
				<listheader id="lhNumContrato" image="/gui/img/create_doc.gif"					
					label="${c:l('label.numContrato')}" width="100px" />
				<listheader id="lhValidade" image="/gui/img/create_doc.gif"					
					label="${c:l('label.dataValidade')}" width="100px;" />
				<listheader id="lhNumFatura" image="/gui/img/create_doc.gif"					
					label="${c:l('label.numFatura')}" width="120px;" />	
				<listheader id="lhDatCorte" image="/gui/img/create_doc.gif"					
					label="${c:l('label.dataCorte')}" width="120px;" />					
				<listheader id="lhValor" image="/gui/img/create_doc.gif"					
					label="${c:l('label.valorLicitado')}" width="10%" />
				<listheader id="lhValorLegal" image="/gui/img/create_doc.gif"					
					label="${c:l('label.valorLegalizado')}" width="10%" />
				<listheader id="lhOrigem" image="/gui/img/create_doc.gif"					
					label="${c:l('label.origem')}" width="20%" />
				<listheader id="lhDestino" image="/gui/img/create_doc.gif"					
					label="${c:l('label.destino')}" width="20%" />							
			</listhead>
		</listbox>

	</window>
</zk>