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

<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winEditarGP_PricingOcupaAntecipaAutomatico" border="normal"
		apply="${editarGP_PricingOcupaAntecipaAutomaticoController}"
		height="90%" width="100%" 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="winEditarGP_PricingOcupaAntecipaAutomatico.detach()"
					tooltiptext="${c:l('editarPricingOcupacionController.btnFechar.tooltiptext')}" />
			</hbox>
		</toolbar>
		<radiogroup id="selectPoltronasOuOcupacao" />
		<grid width="100%">
			<columns>
				<column width="10%">
					<label value="${c:l('editarPricingAutomaticoController.columnaDia.label')}"/>
				</column>
				<column width="15%">
					<label value="${c:l('editarPricingAutomaticoController.columnaPorcentaje.label')}"/>
				</column>
				<column width="15%">
					<label value="${c:l('editarPricingAutomaticoController.columnaOcupacionMin.label')}"/>
				</column>
				<column width="20%">
					<label value="${c:l('editarPricingAutomaticoController.columnaOcupacionMax.label')}"/>
				</column>
				<column width="20%"/>
				<column width="15%">
					<label value="${c:l('editarPricingController.label.cor')}" />
				</column>
				<column width="5%" align="center"/>
			</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>
					<colorbox id="colorChoose"
						   style="color: red; font-style: oblique;"
						    hash="true"
				  pickerClosable="false"
				  pickerPosition="right"
				  		   width="55px"/>					
					<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"
       	   	 height="90%"
       	   	  width="100%"
       	   	  hflex="true">
       		<auxhead>
				<auxheader label="${c:l('editarPricingController.dias.label')}" rowspan="2" colspan="3" align="center"/>
				<auxheader label="${c:l('editarPricingController.antecipacao.label')}" rowspan="2" colspan="4" align="center"/>			       	   
				<auxheader label="${c:l('editarPricingController.poltronas.label')}" colspan="107"/>
			</auxhead>
			<frozen columns="7" />
			<listhead hflex="true"
       	   	  		  width="100%">
				<listheader id="${each}"
					   forEach="${winEditarGP_PricingOcupaAntecipaAutomatico$composer.columns}"
						 label="${each}"
						 width="20px"
						 align="center">
				</listheader>
			</listhead>
		</listbox>
		<listbox id="pricingOcupaAntecipaLegendaList"
				use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox">
       	</listbox>		
	</window>
</zk>
