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

<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winFiltroRelatorioVendaEmbarcada"
		apply="${relatorioVendaEmbarcadaController}" contentStyle="overflow:auto"
		width="600px" border="normal">
		<grid fixedLayout="true">
			<columns>
				<column width="25%" />
				<column width="30%" />
				<column width="15%" />
				<column width="30%" />
			</columns>
			<rows>
				<row>
					<label
						value="${c:l('relatorioVendaEmbarcadaController.lbDePeriodoViagem.value')}" />
					<datebox id="datInicial" format="dd/MM/yyyy"
						mold="rounded" width="95%"  constraint="no empty"
						maxlength="10" />

					<label
						value="${c:l('relatorioVendaEmbarcadaController.lbAtePeriodoViagem.value')}" />
					<datebox id="datFinal" format="dd/MM/yyyy"
						mold="rounded" width="95%" constraint="no empty"
						maxlength="10" />
				</row>
				
				<row spans="1,3">
					<label
						value="${c:l('relatorioVendaEmbarcadaController.lbEmpresa.value')}" />
					<combobox id="cmbEmpresa"
							use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEmpresa"
							mold="rounded" buttonVisible="true" width="65%" />
				</row>
				<row spans="1,3">
					<label
						value="${c:l('relatorioVendaEmbarcadaController.lbPontoVenda.value')}" />
					<combobox id="cmbPuntoVenta"
						autodrop="false"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
						mold="rounded" buttonVisible="true" width="65%" />
				</row>
				
				<row spans="1,3">
					<label
						value="${c:l('relatorioVendaEmbarcadaController.lbUf.value')}" />
					<combobox id="cmbEstado" width="65%" mold="rounded"
						buttonVisible="true"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						model="@{winFiltroRelatorioVendaEmbarcada$composer.lsEstados}" />
				</row>
				
				<row spans="1,3">
					<label
						value="${c:l('relatorioVendaEmbarcadaController.lbOrgao.value')}" />
					<combobox id="cmbOrgaoConcedente" width="65%"
						maxlength="60" mold="rounded" buttonVisible="true"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						model="@{winFiltroRelatorioVendaEmbarcada$composer.lsOrgaosConcedentes}" />
				</row>
				
				<row spans="1,3">
					<label
						value="${c:l('relatorioCaixaOrgaoConcedenteController.lb.nomeBilheteiro.value')}" />
					<combobox id="cmbUsuario"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxUsuario"
						mold="rounded" buttonVisible="true" width="65%" />
				</row>
				
				<row spans="1,3">
					<label
						value="${c:l('relatorioVendaEmbarcadaController.lbSerie.value')}" />
					<textbox id="txtSerie" width="65%"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
				</row>
				
				<row spans="1,3">
					<label
						value="${c:l('relatorioVendaEmbarcadaController.lbNumBpe.value')}" />
					<textbox id="txtNumBpe" width="65%"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
				</row>
				
				<row spans="1,3">						
					<label
						value="${c:l('relatorioVendaEmbarcadaController.lbEnvioSefaz.value')}" />
					<radiogroup Id="radEnvioSefaz">
						<radio id="radEnvioSim"
							label="${c:l('relatorioVendaEmbarcadaController.label.enviosefaz.sim')}" />
						<radio id="radEnvioNao"
							label="${c:l('relatorioVendaEmbarcadaController.label.enviosefaz.nao')}" />
						<radio id="radEnvioAmbos" checked="true"
							label="${c:l('relatorioVendaEmbarcadaController.label.enviosefaz.ambos')}" />
					</radiogroup>
				</row>
				
				<row spans="1,3">					
					<label
						value="${c:l('relatorioVendaEmbarcadaController.lbVendaEmbarcada.value')}" />
					<radiogroup Id="radVendaEmbarcada">
						<radio id="radVendaEmbarcadaSim"
							label="${c:l('relatorioVendaEmbarcadaController.label.VendaEmbarcada.sim')}" />
						<radio id="radVendaEmbarcadaNao"
							label="${c:l('relatorioVendaEmbarcadaController.label.VendaEmbarcada.nao')}" />
						<radio id="radVendaEmbarcadaAmbos" checked="true"
							label="${c:l('relatorioVendaEmbarcadaController.label.VendaEmbarcada.ambos')}" />
					</radiogroup>
				</row>
				
				<row spans="4">
					<grid >
						<columns>
							<column width="33%" />
							<column width="33%" />					
							<column width="33%" />
						</columns>
						<rows>
							<row>
								<checkbox id="chkUltimoBpe" label="${c:l('relatorioVendaEmbarcadaController.lbUltimoBpe.value')}" visible="true" />					
								<checkbox id="chkQuebraSequencia" label="${c:l('relatorioVendaEmbarcadaController.lbQuebraSequencia.value')}" visible="true" />
								<checkbox id="chkBloqueado" label="${c:l('relatorioVendaEmbarcadaController.lbBloqueado.value')}" visible="true" />
							</row>
						</rows>
					</grid>	
				</row>
				
				<row spans="1,3">
					<label value="${c:l('relatorioVendaEmbarcadaController.lbLinha.value')}" />

					<bandbox id="bbPesquisaLinha" width="65%" mold="rounded" readonly="true">
						<bandpopup>
							<vbox>
								<hbox>
									<textbox id="txtLinha" />
									<button id="btnPesquisaLinha"
										image="/gui/img/find.png"
										label="${c:l('lb.btnPesquisa.label')}" />
									<button id="btnLimparLinha"
										image="/gui/img/eraser.png"
										label="${c:l('lb.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('relatorioVendaEmbarcadaController.lbNumRuta.value')}"
											width="18%" />
										<listheader
											label="${c:l('relatorioVendaEmbarcadaController.lbPrefixo.value')}"
											width="20%" />
										<listheader
											label="${c:l('lb.dec')}" width="35%" />
										<listheader
											label="${c:l('relatorioVendaEmbarcadaController.lbOrgao.value')}"
											width="27%" />
									</listhead>
								</listbox>
								<paging id="pagingLinha" pageSize="10" />
							</vbox>
						</bandpopup>
					</bandbox>
				</row>
				
				<row>
					<cell colspan="4">
						<borderlayout height="100px">
							<center border="0">
								<listbox id="linhaListSelList"
									mold="paging"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
									vflex="true" multiple="true" height="60%" width="100%">
									<listhead>
										<listheader
											label="${c:l('relatorioPassagensAGERController.lbNumRuta.value')}"
											width="18%" />
										<listheader
											label="${c:l('relatorioPassagensAGERController.lbPrefixo.value')}"
											width="20%" />
										<listheader
											label="${c:l('lb.dec')}" width="42%" />
										<listheader
											label="${c:l('relatorioPassagensAGERController.lbOrgao.value')}"
											width="20%" />
										<listheader width="7%" />
									</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>

