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


<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winEditarGP_PricingOcupaAntecipa" border="normal"
		apply="${editarGP_PricingOcupaAntecipaController}" width="450px"
		height="457x" contentStyle="overflow:auto"
		title="${c:l('editarPricingController.windowOcupacion.title')}">
		<toolbar>
			<hbox spacing="5px" style="padding:1px" align="right">
				<button id="btnAdicionarOcupaAntecipa" disabled="${arg.isReadOnly}" height="20"
					image="/gui/img/save.png" width="35px"
					tooltiptext="${c:l('editarPricingOcupacionController.btnSalvar.tooltiptext')}" />
					
				<button disabled="${arg.isReadOnly}"
					id="btnApagarOcupaAntecipa" height="6"
					image="/gui/img/remove.png" width="35px"
					tooltiptext="${c:l('editarPricingController.btnApagarPricing.tooltiptext')}" />					
					
				<button id="btnCerrar" height="20"
					image="/gui/img/exit.png" width="35px"
					onClick="winEditarGP_PricingOcupaAntecipa.detach()"
					tooltiptext="${c:l('editarPricingOcupacionController.btnFechar.tooltiptext')}" />
			</hbox>
		</toolbar>

		<grid fixedLayout="true" renderdefer="800">
			<columns>
				<column width="45%" />
				<column width="55%" />
				<column width="45%" />
				<column width="55%" />
			</columns>
			<rows>
				<row>
					<label
						value="${c:l('editarPricingController.ocupacionIni.value')}" />
					<intbox id="ocupacioninicial" maxlength="3"
						value="@{winEditarGP_PricingOcupaAntecipa$composer.pricingOcupaAntecipa.ocupacioninicial}" />
					<label
						value="${c:l('editarPricingController.ocupacionFin.value')}" />
					<intbox id="ocupacionfinal" maxlength="3"
						value="@{winEditarGP_PricingOcupaAntecipa$composer.pricingOcupaAntecipa.ocupacionfinal}" />
				</row>
				<row>
					<label
						value="${c:l('editarPricingController.ocupacionMin.value')}" />
					<intbox id="cantasientosmin" maxlength="3"
						value="@{winEditarGP_PricingOcupaAntecipa$composer.pricingOcupaAntecipa.cantasientosmin}" />
					<label
						value="${c:l('editarPricingController.ocupacionMax.value')}" />
					<intbox id="cantasientosmax" maxlength="3"
						value="@{winEditarGP_PricingOcupaAntecipa$composer.pricingOcupaAntecipa.cantasientosmax}" />
				</row>
				<row>
					<label
						value="${c:l('editarPricingController.anticipacionMin.value')}" />
					<intbox id="cantdiasmin" maxlength="3"
						value="@{winEditarGP_PricingOcupaAntecipa$composer.pricingOcupaAntecipa.cantdiasmin}" />
					<label
						value="${c:l('editarPricingController.anticipacionMax.value')}" />
					<intbox id="cantdiasmax" maxlength="3"
						value="@{winEditarGP_PricingOcupaAntecipa$composer.pricingOcupaAntecipa.cantdiasmax}" />
				</row>

				<row>
					<label
						value="${c:l('editarPricingController.porcentaje.value')}" />

					<textbox id="porcentaje" precision="7" scale="2"
						width="80%"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
						value="@{winEditarGP_PricingOcupaAntecipa$composer.pricingOcupaAntecipa.porcentaje,
                            converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}" />
					<label
						value="${c:l('editarPricingController.importe.value')}" />
					<textbox id="importe" precision="7" scale="2"
						width="80%"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
						value="@{winEditarGP_PricingOcupaAntecipa$composer.pricingOcupaAntecipa.importe,
                            converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}" />
				</row>

				<row spans="1,3">
					<label
						value="${c:l('editarPricingController.label.cor')}" />
					<colorbox id="colorChoose"
						   style="color: red; font-style: oblique;"
						    hash="true"
				  pickerClosable="false"
				  pickerPosition="right"
				  		   width="55px"/>						
				</row>
				<row spans="1,3">
					<label
						value="${c:l('editarPricingClasseTarifariaController.label.title')}" />
					<combobox id="cmbPricingClasseTarifaria" width="90%"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						mold="rounded" buttonVisible="true"
						model="@{winEditarGP_PricingOcupaAntecipa$composer.lsClasseTarifarias}" />
				</row>
			</rows>
		</grid>
	</window>
</zk>
