<?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="winFiltroRelatorioDesempenhoPorLinha"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winFiltroRelatorioDesempenhoPorLinha"
		apply="${relatorioDesempenhoPorLinhaController}"
		contentStyle="overflow:auto" height="400px" width="700px"
		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('relatorioDesempenhoPorLinhaController.lbDatInicial.value')}" />
					<datebox id="datInicial" width="90%"
						format="dd/MM/yyyy" constraint="no empty" maxlength="10" />
					<label
						value="${c:l('relatorioDesempenhoPorLinhaController.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('relatorioDesempenhoPorLinhaController.lbEmpresa.value')}" />
					<combobox id="cmbEmpresa" buttonVisible="true"
						constraint="no empty"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						model="@{winFiltroRelatorioDesempenhoPorLinha$composer.lsEmpresa}"
						width="95%" />
				</row>
				<row spans="3">
					<radiogroup Id="rgLayout">
						<label
							value="${c:l('relatorioDesempenhoPorLinhaController.linha')}" />
						<radio value="EMISSAO_LINHA" checked="true">
							<attribute name="onCheck">
	rowTrecho.setVisible(false);
</attribute>
						</radio>
						<label
							value="${c:l('relatorioDesempenhoPorLinhaController.trecho')}" />
						<radio value="EMISSAO_TRECHO">
							<attribute name="onCheck">
	rowTrecho.setVisible(true);
</attribute>
						</radio>
					</radiogroup>
				</row>
				<row spans="1,3">
					<label
						value="${c:l('relatorioLinhasHorarioController.lbLinha.label')}" />
					<bandbox id="bbPesquisaLinha" width="100%"
						mold="rounded" readonly="true">
						<bandpopup>
							<vbox>
								<hbox>
									<textbox
										id="txtPalavraPesquisaLinha" />
									<button id="btnPesquisaLinha"
										image="/gui/img/find.png"
										label="${c:l('relatorioLinhasHorarioController.btnPesquisa.label')}" />
									<button id="btnLimparLinha"
										image="/gui/img/eraser.png"
										label="${c:l('relatorioLinhasHorarioController.btnLimpar.label')}" />
								</hbox>

								<listbox id="linhaList" mold="paging"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
									vflex="true" multiple="false" height="60%" width="410px">
									<listhead>
										<listheader
											label="${c:l('relatorioDesempenhoPorLinhaController.lbNumRuta.label')}"
											width="18%" sort="auto(numRuta)" />
										<listheader
											label="${c:l('relatorioLinhasHorarioController.lbPrefixo.label')}"
											width="20%" sort="auto(prefixo)" />
										<listheader
											label="${c:l('lb.dec')}" width="35%" sort="auto(descruta)" />
										<listheader
											label="${c:l('relatorioLinhasHorarioController.lbOrgao.label')}"
											width="27%" sort="auto(orgaoConcedente.descOrgao)" />
									</listhead>
								</listbox>
								<paging id="pagingLinha" pageSize="10" />
							</vbox>
						</bandpopup>
					</bandbox>
				</row>

				<row>
					<cell colspan="4">
						<borderlayout height="80px">

							<center border="0">
								<listbox id="linhaListSelList"
									mold="paging"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
									vflex="true" multiple="true" height="60%" width="97%">
									<listhead>
										<listheader
											label="${c:l('relatorioLinhasHorarioController.lbNumRuta.label')}"
											width="18%" />
										<listheader
											label="${c:l('relatorioLinhasHorarioController.lbPrefixo.label')}"
											width="20%" />
										<listheader
											label="${c:l('lb.dec')}" width="30%" />
										<listheader
											label="${c:l('relatorioLinhasHorarioController.lbOrgao.label')}"
											width="22%" />
										<listheader width="10%" />
									</listhead>
								</listbox>
							</center>
						</borderlayout>
					</cell>
				</row>

				<row id="rowTrecho" visible="false">
					<cell colspan="4">
						<borderlayout height="120px">
							<center border="0">
								<listbox id="trechoList" height="400px"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
									multiple="false" width="97%">
									<listhead>
										<listheader
											label="${c:l('relatorioAproveitamentoFinanceiroController.lbNumRuta.label')}"
											width="18%" />
										<listheader
											label="${c:l('relatorioAproveitamentoFinanceiroController.lbPrefixo.label')}"
											width="20%" />
										<listheader
											label="${c:l('lb.dec')}" width="30%" />
										<listheader
											label="${c:l('relatorioAproveitamentoFinanceiroController.lbOrigem.value')}"
											width="35%" />
										<listheader width="20%" />
									</listhead>
								</listbox>
							</center>
						</borderlayout>
					</cell>
				</row>
			</rows>
		</grid>

		<toolbar>
			<button id="btnExecutarRelatorio" image="/gui/img/find.png"
				label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
		</toolbar>

	</window>
</zk>