<?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="winFiltroRelatorioDemandas"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winFiltroRelatorioDemandas"
		apply="${relatorioDemandasController}" contentStyle="overflow:auto"
		height="338px" width="600px" border="normal">
		<grid fixedLayout="true">
			<columns>
				<column width="20%" />
				<column width="30%" />
				<column width="20%" />
				<column width="30%" />
			</columns>
			<rows>
				<row>
					<label
						value="${c:l('relatorioDemandasController.lbDatInicial.value')}" />
					<datebox id="datInicial" width="90%"
						format="dd/MM/yyyy"  constraint="no empty"
						maxlength="10" />
					<label
						value="${c:l('relatorioDemandasController.lbDatFinal.value')}" />
					<datebox id="datFinal" width="90%"
						format="dd/MM/yyyy" constraint="no empty"
						maxlength="10" />
				</row>
			</rows>
		</grid>
		<grid fixedLayout="true">
			<columns>
				<column width="20%" />
				<column width="80%" />
			</columns>
			<rows>
				<row spans="1,1,2">
					<label
						value="${c:l('relatorioDemandasController.lbEmpresa.value')}" />
					<combobox id="cmbEmpresa" buttonVisible="true"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						model="@{winFiltroRelatorioDemandas$composer.lsEmpresa}"
						width="95%" />
				</row>
				<row>
					<label
						value="${c:l('relatorioDemandasController.lbLinha.value')}" />
					<combobox id="cmbLinha" buttonVisible="true"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						model="@{winFiltroRelatorioDemandas$composer.lsLinha}"
						width="95%" />
				</row>
				<row>
					<label
						value="${c:l('relatorioDemandasController.lbOrigem.value')}" />
					<combobox id="cmbOrigem" buttonVisible="true"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						model="@{winFiltroRelatorioDemandas$composer.lsOrigem}"
						width="95%" />
				</row>
			</rows>
		</grid>
		<grid>
			<columns>
				<column width="20%" />
				<column width="30%" />
				<column width="20%" />
				<column width="30%" />
			</columns>
			<rows>
				<row>
					<label
						value="${c:l('relatorioDemandasController.lbHoraSaidaInicial.value')}" />
					<timebox id="horaInicial" width="90%" format="HH:mm"
						mold="rounded" maxlength="10" cols="14" />
					<label
						value="${c:l('relatorioDemandasController.lbHoraSaidaFinal.value')}" />
					<timebox id="horaFinal" width="90%" format="HH:mm"
						mold="rounded" maxlength="10" cols="14" />
				</row>
			</rows>
		</grid>
		<grid>
			<rows>
				<row>
					<label
						value="${c:l('relatorioDemandasController.lbTipoServico.value')}">
					</label>
					<radiogroup id="tipoServico">
						<radio id="todos" value="0"
							label="${c:l('relatorioDemandasController.lbTipoServicoTodos.value')}"
							checked="true" />
						<radio id="normal" value="1"
							label="${c:l('relatorioDemandasController.lbTipoServicoNormal.value')}" />
						<radio id="extra" value="2"
							label="${c:l('relatorioDemandasController.lbTipoServicoExtra.value')}" />
					</radiogroup>
				</row>
			</rows>
		</grid>
		<grid>
			<rows>
				<row>
					<label
						value="${c:l('relatorioDemandasController.lbTipoRelatorio.value')}">
					</label>
					<radiogroup id="tipoRelatorio">
						<radio id="detalhado" value="0"
							label="${c:l('relatorioDemandasController.lbTipoRelatorioDetalhado.value')}"
							checked="true" />
						<radio id="diario" value="1"
							label="${c:l('relatorioDemandasController.lbTipoRelatorioDiario.value')}" />
						<radio id="consolidado" value="2"
							label="${c:l('relatorioDemandasController.lbTipoRelatorioConsolidado.value')}" />
					</radiogroup>
				</row>
				<row>
					<label
						value="${c:l('relatorioDemandasController.lbFiltrarGratuidadeCrianca.value')}">
					</label>
					<checkbox id="ckFiltrarGratuidadeCrianca"  />
				</row>
				<row>
					<label
						value="${c:l('relatorioDemandasController.lbFiltrarVendaEmPe.value')}">
					</label>
					<checkbox id="ckFiltrarVendaEmPe"  />
				</row>
			</rows>
		</grid>
		<toolbar>
			<button id="btnExecutarRelatorio" image="/gui/img/find.png"
				label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />

			<button id="btnExecutarRelatorioNovoLayout"
				image="/gui/img/find.png" label="Novo Layout" />
		</toolbar>
	</window>
</zk>