<?xml version="1.0" encoding="UTF-8"?>
<?page title="AIDF" contentType="text/html;charset=UTF-8"?>
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winEditarAidf"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winEditarAidf"
		title="${c:l('editarAidfController.window.title')}"
		apply="${editarAidfController}" contentStyle="overflow:auto"
		height="530px" width="450px" border="normal">
		<toolbar>
			<hbox spacing="5px" style="padding:1px" align="right">
				<button id="btnApagar" height="20"
					image="/gui/img/remove.png" width="35px"
					tooltiptext="${c:l('editarAidfController.btnApagar.tooltiptext')}" />
				<button id="btnSalvar" height="20"
					image="/gui/img/save.png" width="35px"
					tooltiptext="${c:l('editarAidfController.btnSalvar.tooltiptext')}" />
				<button id="btnFechar" height="20"
					image="/gui/img/exit.png" width="35px"
					onClick="winEditarAidf.detach()"
					tooltiptext="${c:l('editarAidfController.btnFechar.tooltiptext')}" />
			</hbox>
		</toolbar>
		<grid fixedLayout="true">
			<columns>
				<column width="40%" />
				<column width="60%" />
			</columns>
			<rows>
				<row>
					<label
						value="${c:l('busquedaAidfController.aidfEspecie.label')}" />
					<combobox id="cmbAidfEspecie"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						constraint="no empty" mold="rounded" buttonVisible="true"
						width="70%" model="@{winEditarAidf$composer.lsAidfEspecie}"
						selectedItem="@{winEditarAidf$composer.aidf.aidfEspecie}" />
				</row>
				<row>
					<label
						value="${c:l('busquedaAidfController.aidfTipo.label')}" />
					<combobox id="cmbAidfTipo"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						constraint="no empty" mold="rounded" buttonVisible="true"
						width="70%" model="@{winEditarAidf$composer.lsAidfTipo}"
						selectedItem="@{winEditarAidf$composer.aidf.aidfTipo}" />
				</row>
				<row>
					<label
						value="${c:l('busquedaAidfController.estado.label')}" />
					<combobox id="cmbEstado"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						constraint="no empty" mold="rounded" buttonVisible="true"
						width="70%" model="@{winEditarAidf$composer.lsEstado}"
						selectedItem="@{winEditarAidf$composer.aidf.estado}" />
				</row>

				<row>
					<label
						value="${c:l('busquedaAidfController.docfiscal.label')}" />
					<textbox id="txtDocFiscal" width="100px"
						maxlength="60" value="@{winEditarAidf$composer.aidf.docfiscal}"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
						constraint="no empty" />
				</row>
				<row>
					<label
						value="${c:l('busquedaAidfController.acfiscal.label')}" />
					<textbox id="txtAcFiscal" width="100px"
						maxlength="60" value="@{winEditarAidf$composer.aidf.acfiscal}"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
				</row>
				<row>
					<label
						value="${c:l('busquedaAidfController.serie.label')}" />
					<textbox id="txtSerie" width="80px" maxlength="8"
						value="@{winEditarAidf$composer.aidf.serie}"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
				</row>
				<row>
					<label
						value="${c:l('busquedaAidfController.subserie.label')}" />
					<textbox id="txtSubserie" width="100px"
						maxlength="5" value="@{winEditarAidf$composer.aidf.subserie}" />
				</row>
				<row>
					<label
						value="${c:l('busquedaAidfController.forminicial.label')}" />
					<textbox id="txtForminicial" width="100px"
						maxlength="20" value="@{winEditarAidf$composer.aidf.forminicial}"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
						constraint="no empty" />
				</row>
				<row>
					<label
						value="${c:l('busquedaAidfController.formfinal.label')}" />
					<textbox id="txtFormfinal" width="100px"
						maxlength="20" value="@{winEditarAidf$composer.aidf.formfinal}"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
						constraint="no empty" />
				</row>
				<row>
					<label
						value="${c:l('busquedaAidfController.empresa.label')}" />
					<combobox id="cmbEmpresa"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						constraint="no empty" mold="rounded" buttonVisible="true"
						width="70%" model="@{winEditarAidf$composer.lsEmpresas}"
						selectedItem="@{winEditarAidf$composer.aidf.empresa}" />
				</row>
				<row id="rowPuntoVenta" visible="false">
					<label
						value="${c:l('busquedaAidfController.lbPuntoVenta.value')}" />
					<combobox id="cmbPuntoVenta"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
						mold="rounded" buttonVisible="true" width="70%"
						selectedItem="@{winEditarAidf$composer.aidf.puntoVenta}" />
				</row>
				<row>
					<label
						value="${c:l('busquedaAidfController.inscestadual.label')}" />
					<combobox id="cmbInscestadual"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						mold="rounded" buttonVisible="true" width="70%"
						model="@{winEditarAidf$composer.lsInscestadual}"
						selectedItem="@{winEditarAidf$composer.aidf.getInscestadual()}" />

				</row>
				<row>
					<label
						value="${c:l('busquedaAidfController.fecadquisicion.label')}" />
					<datebox id="fecadquisicion" width="90%"
						format="dd/MM/yyyy" maxlength="10"
						value="@{winEditarAidf$composer.aidf.fecadquisicion}" />
				</row>
				<row>
					<label
						value="${c:l('busquedaAidfController.fecvencimiento.label')}" />
					<datebox id="fecvencimiento" width="90%"
						format="dd/MM/yyyy" maxlength="10"
						value="@{winEditarAidf$composer.aidf.fecvencimiento}" />
				</row>

				<row>
					<label
						value="${c:l('busquedaAidfController.cnpj.label')}" />
					<textbox id="txtCnpj" width="80px" maxlength="20"
						value="@{winEditarAidf$composer.aidf.cnpj}"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
				</row>
				<row>
					<label
						value="${c:l('busquedaAidfController.lbTipoValidaAIDF.value')}" />
					<combobox id="cmbTipoValidaVenta"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						constraint="no empty" mold="rounded" buttonVisible="true"
						width="70%"
						selectedItem="@{winEditarAidf$composer.aidf.tipoValidaVenta}">
						<comboitem value=" " label=" " />
						<comboitem value="A" label="AGENCIA" />
						<comboitem value="M" label="MOTORISTA" />
					</combobox>
				</row>
			</rows>
		</grid>
	</window>
</zk>