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

<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winEditarPricingOcupaAntecipaAutomatico" border="normal"
		apply="${editarPricingOcupaAntecipaAutomaticoController}"
		width="850px" height="457x" contentStyle="overflow:auto"
		title="${c:l('editarPricingAutomaticoController.windowOcupacion.title')}">
		<toolbar>
			<hbox spacing="5px" style="padding:1px" align="right">
				<button id="btnAdicionarOcupaAntecipa" height="20"
					image="/gui/img/save.png" width="35px"
					tooltiptext="${c:l('editarPricingOcupacionController.btnSalvar.tooltiptext')}" 
					disabled="@load{winwinEditarPricingOcupaAntecipa$composer.hasNoElements }"/>
				<button id="btnCerrar" height="20"
					image="/gui/img/exit.png" width="35px"
					onClick="winEditarPricingOcupaAntecipaAutomatico.detach()"
					tooltiptext="${c:l('editarPricingOcupacionController.btnFechar.tooltiptext')}" />
			</hbox>
		</toolbar>
		<radiogroup id="selectPoltronasOuOcupacao" />
		<grid width="100%">
			<columns>
				<column width="15%" >${c:l('editarPricingAutomaticoController.columnaDia.label')}</column>
				<column width="20%">${c:l('editarPricingAutomaticoController.columnaPorcentaje.label')}</column>
				<column width="20%">${c:l('editarPricingAutomaticoController.columnaOcupacionMin.label')}</column>
				<column width="20%">${c:l('editarPricingAutomaticoController.columnaOcupacionMax.label')}</column>
				<column width="20%"></column>
				<column width="5%"></column>
			</columns>
			<rows>
				<row>
					<intbox id="cantdiasmin"/>
					<textbox id="porcentaje" precision="7" scale="2"  width="80%"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
						value="@{winEditarPricingOcupaAntecipa$composer.pricingOcupaAntecipa.porcentaje,
                            converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}" />
					<intbox id="ocupacioninicial"/>
					<intbox id="ocupacionfinal"/>
					<hbox>
						<radio id="rdPoltronas" label="Poltronas" radiogroup="selectPoltronasOuOcupacao"/>
						<radio id="rdOcupacao" label="Ocupacao" radiogroup="selectPoltronasOuOcupacao"/>
					</hbox>
					<button id="btnlancar" height="20"
					image="/gui/img/add.png" width="35px"
					tooltiptext="${c:l('editarPricingOcupacionController.btnSalvar.tooltiptext')}" />
				
				</row>
			</rows>
		</grid>
		<listbox id="pricingOcupaAntecipaList"
			use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
			multiple="false" height="370px">
			<listhead sizable="true">
				<listheader image="/gui/img/create_doc.gif"
					sort="auto(ocupacioninicial)" align="left"
					label="${c:l('editarPricingController.ocupacionIni.value')}" />
				<listheader image="/gui/img/create_doc.gif"
					sort="auto(ocupacionfinal)" align="left"
					label="${c:l('editarPricingController.ocupacionFin.value')}" />
				<listheader image="/gui/img/create_doc.gif"
					sort="auto(cantasientosmin)" align="left"
					label="${c:l('editarPricingController.ocupacionMin.value')}" />
				<listheader image="/gui/img/create_doc.gif"
					sort="auto(cantasientosmax)" align="left"
					label="${c:l('editarPricingController.ocupacionMax.value')}" />
				<listheader image="/gui/img/create_doc.gif"
					sort="auto(cantdiasmin)" align="left"
					label="${c:l('editarPricingController.anticipacionMin.value')}" />
				<listheader image="/gui/img/create_doc.gif"
					sort="auto(cantdiasmax)" align="left"
					label="${c:l('editarPricingController.anticipacionMax.value')}" />
				<listheader image="/gui/img/create_doc.gif"
					sort="auto(porcentaje)" align="left"
					label="${c:l('editarPricingController.porcentaje.value')}" />
				<listheader image="/gui/img/create_doc.gif"
					sort="auto(importe)" align="left"
					label="${c:l('editarPricingController.importe.value')}" />
			</listhead>
		</listbox>
	</window>
</zk>
