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

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

		<grid fixedLayout="true">
			<columns>
				<column width="40%" />
				<column width="60%" />
			</columns>
			<rows>
			
				<row>
					<!-- Empresa -->
					<label
						value="${c:l('editarPuntoVentaController.lbEmpresa.value')}" />
					<combobox id="cmbEmpresa"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						constraint="no empty" mold="rounded" buttonVisible="true"
						width="70%" model="@{winEditarTarjetaCredito$composer.lsEmpresas}"
						selectedItem="@{winEditarTarjetaCredito$composer.tarjetaCredito.empresa}" />
				</row>
				<row>
					<label
						value="${c:l('busquedaTarjetaCreditoController.window.title')}" />
					<textbox id="txtDescTarjetaCredito"
						constraint="no empty" width="90%" maxlength="20"
						value="@{winEditarTarjetaCredito$composer.tarjetaCredito.descTarjetaCredito}"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
				</row>
				<row>
					<label
						value="${c:l('busquedaTarjetaCreditoController.cantMaxSinTasa.label')}" />
					<intbox id="txtCantMaxSinTasa"
						constraint="no empty, no negative" maxlength="2"
						value="@{winEditarTarjetaCredito$composer.tarjetaCredito.cantMaxSinTasa}" />
				</row>
				<row>
					<label
						value="${c:l('busquedaTarjetaCreditoController.canMaxConTasa.label')}" />
					<intbox id="txtCanMaxConTasa"
						constraint="no empty, no negative" maxlength="2"
						value="@{winEditarTarjetaCredito$composer.tarjetaCredito.canMaxConTasa}" />
				</row>
				<row>
					<label
						value="${c:l('busquedaTarjetaCreditoController.tasa.label')}" />
					<textbox id="txtTasa"
						constraint="no empty, no zero, no negative" precision="5"
						scale="2"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
						value="@{winEditarTarjetaCredito$composer.tarjetaCredito.tasa,
                            converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}" />

				</row>
				<row>
					<label
						value="${c:l('busquedaTarjetaCreditoController.parcelaMinima.label')}" />
					<textbox id="txtTarifaMinima"
						constraint="no zero, no negative" precision="5"
						scale="2"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
						value="@{winEditarTarjetaCredito$composer.tarjetaCredito.tarifaMinima,
                            converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}" />

				</row>
				<row>
					<label
						value="${c:l('busquedaTarjetaCreditoController.indAplicarJuros.label')}" />
					<checkbox id="chkAplicaVenda"
							checked="@{winEditarTarjetaCredito$composer.tarjetaCredito.indAplicaVenda}" />
				</row>
				
			</rows>
		</grid>
	</window>
</zk>
