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

<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winRelatorioExportacaoSGTI"
		apply="${relatorioExportacaoSGTIController}"
		contentStyle="overflow:auto" height="392px" width="728px"
		border="normal">

		<grid fixedLayout="true">
			<columns>
				<column width="40%" />
				<column width="60%" />
				<column width="40%" />
				<column width="60%" />
			</columns>
			<rows>
				<row>
					<label value="${c:l('relatorioExportacaoSGTIController.lbDataIni.value')}" />
					<datebox id="dataInicial"
						format="dd/MM/yyyy" constraint="no empty"
						maxlength="10" width="90%" mold="rounded"/>
					<label value="${c:l('relatorioExportacaoSGTIController.lbDataFin.value')}" />
					<datebox id="dataFinal" 
						format="dd/MM/yyyy" constraint="no empty"
						maxlength="10" width="90%" mold="rounded"/>
				</row>
				<row spans="1, 3">
					<label
						value="${c:l('relatorioExportacaoSGTIController.lbEmpresa.value')}" />
					<combobox id="cbEmpresa"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEmpresa"
						mold="rounded" buttonVisible="true" width="70%" />
				</row>
				<row spans="1,3">
					<label value="${c:l('relatorioExportacaoSGTIController.lbLinha.label')}" />
					<bandbox id="bbPesquisaLinha" width="100%" 
						mold="rounded" readonly="true">
						<bandpopup>
							<vbox>
								<hbox>
									<label value="${c:l('relatorioExportacaoSGTIController.lbLinha.label')}" />
									<textbox id="txtPalavraPesquisaLinha"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
										width="300px" mold="rounded" />
									<button id="btnPesquisaLinha"
										image="/gui/img/find.png"
										label="${c:l('relatorioExportacaoSGTIController.btnPesquisa.label')}" />
									<button id="btnLimparLinha"
										image="/gui/img/eraser.png"
										label="${c:l('relatorioExportacaoSGTIController.btnLimpar.label')}" />
								</hbox>

								<listbox id="linhaList" mold="paging"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
									vflex="true" height="100%" width="700px">
									<listhead>
										<listheader
											label="${c:l('relatorioExportacaoSGTIController.lbNumLinha.label')}"
											width="18%" />
										<listheader
											label="${c:l('relatorioHistoricoComprasController.lbPrefixo.label')}"
											width="20%" />
										<listheader
											label="${c:l('lb.dec')}" width="35%" />
										<listheader
											label="${c:l('relatorioHistoricoComprasController.lbOrgao.label')}"
											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="linhaSelList"
									mold="paging"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
									vflex="true" height="100%" width="700px">
									<listhead>
										<listheader
											label="${c:l('relatorioExportacaoSGTIController.lbNumLinha.label')}"
											width="18%" />
										<listheader
											label="${c:l('relatorioHistoricoComprasController.lbPrefixo.label')}"
											width="20%" />
										<listheader
											label="${c:l('lb.dec')}" width="30%" />
										<listheader
											label="${c:l('relatorioHistoricoComprasController.lbOrgao.label')}"
											width="22%" />
										<listheader width="10%" />
									</listhead>
								</listbox>
							</center>
						</borderlayout>
					</cell>
				</row>
				<row spans="1,3">
					<label value="${c:l('relatorioExportacaoSGTIController.lbObservacao.value')}" />
					<textbox id="txtObservacao"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
						rows="8" width="90%;" tabindex="11" />
				</row>
			</rows>
		</grid>
		<toolbar>
			<button id="btnExecutarExportacao" image="/gui/img/find.png"
				label="${c:l('relatorioExportacaoSGTIController.btnExecutarExportacao')}" />
		</toolbar>
	</window>
</zk>