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

<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winFiltroRelatorioMensalDAER"
		apply="${relatorioMensalDAERController}" contentStyle="overflow:auto"
		height="335px" width="550px" border="normal">

		<grid fixedLayout="true">
			<columns>
				<column width="25%" />
				<column width="25%" />
				<column width="25%" />
				<column width="25%" />
			</columns>
			<rows>

				<row id="rowCompetencia" spans="1,3">
					<label
						value="${c:l('relatorioMensalDAERController.lbCompetencia.label')}" />
					<hbox>
						<textbox id="txtCompetencia" width="64px"
							use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
						<label
							value="${c:l('relatorioMensalDAERController.lbCompetenciaLayout.label')}" />
					</hbox>
				</row>
				
				<row id="enviaEmail" visible="true" spans="1,3">
					<label
						value="${c:l('relatorioMensalDAERController.lbEnviaEmail.label')}" />
					<radiogroup Id="rdEmail">
						<hbox align="center">
							<radio Id="rdEmailSim" value="1"
								label="${c:l('relatorioMensalDAERController.lbSim.value')}" />
							<radio Id="rdEmailNao" 
								value="2"
								selected="true"
								label="${c:l('relatorioMensalDAERController.lbNao.value')}" />
						</hbox>
					</radiogroup>
				</row>
				
				<row id="rowTipoAnexo" visible="false" spans="1,3">
					<label
						value="${c:l('relatorioMensalDAERController.lbTipoAnexo.label')}" />
					<radiogroup Id="rdTipoAnexo">
						<hbox align="center">
							<radio Id="rdTipoAnexoPDF" value="1"
								selected="true"
								label="${c:l('relatorioMensalDAERController.lbPDF.value')}" />
							<radio Id="rdTipoAnexoXLS" 
								value="2"
								label="${c:l('relatorioMensalDAERController.lbXLS.value')}" />
						</hbox>
					</radiogroup>
				</row>
				
				<row id="rowSendTo" visible="false" spans="1,3">
					<label
						value="${c:l('relatorioMensalDAERController.lbEnviaEmailPara.label')}" />
					<hbox>
						<textbox id="txtEmail" width="100%"
							use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
					</hbox>
				</row>

				<row spans="1,3">
					<label
						value="${c:l('relatorioMensalDAERController.lbEmpresa.value')}" />
					<combobox id="cmbEmpresa" width="100%"
						maxlength="60" mold="rounded" buttonVisible="true"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						model="@{winFiltroRelatorioMensalDAER$composer.lsEmpresas}" />
				</row>

				<row spans="1,3">
					<label
						value="${c:l('relatorioMensalDAERController.lbTipoVenta.value')}" />
					<combobox id="cmbTipoVenta" width="100%"
						maxlength="60" mold="rounded" buttonVisible="true"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						model="@{winFiltroRelatorioMensalDAER$composer.lsTipoVenta}" />
				</row>

			</rows>
		</grid>
		<grid fixedLayout="false">
			<custom-attributes org.zkoss.zul.nativebar="false" />
			<columns>
				<column width="100%" />
			</columns>
			<rows>
				<row>
					<toolbar>
						<button id="btnRemoveTipoVenta" height="20"
							image="/gui/img/remove.png" width="35px"
							tooltiptext="${c:l('relatorioMensalDAERController.lbRemoveTipoVenta.value')}" />
						<button id="btnAddTipoVenta" height="20"
							image="/gui/img/add.png" width="35px"
							tooltiptext="${c:l('relatorioMensalDAERController.lbAdicionaTipoVenta.value')}" />
					</toolbar>
				</row>

				<row>
					<listbox id="selectedTipoVentaList" mold="paging"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
						vflex="true" multiple="false" height="60%">
						<listhead sizable="true">
							<listheader image="/gui/img/builder.gif"
								label="${c:l('relatorioMensalDAERController.lbTipoVenta.value')}"
								width="100%" />
						</listhead>
					</listbox>
				</row>
			</rows>
		</grid>
		<toolbar>
			<button id="btnExecutarRelatorio" image="/gui/img/find.png"
				label="${c:l('relatorioMensalDAERController.lbRelatorio.value')}" />
			<button id="btnEnviarEmailMensalDAER"
				image="/gui/img/email.png"
				disabled="true"
				label="${c:l('relatorioMensalDAERController.lbEnviarEmailDAER.label')}" />
		</toolbar>
	</window>
</zk>