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

<zk>
	<window id="winIntegracaoTotvs" border="normal"
		apply="${integracaoTotvsController}" width="800px" height="500px"
		contentStyle="overflow:auto"
		title="${c:l('integracaoTotvsController.window.title')}"
		xmlns:h="http://www.w3.org/1999/xhtml">
		<toolbar>
			<hbox spacing="5px" style="padding:1px" align="right">
			<button id="btnRefresh" image="/gui/img/refresh.png"
				width="35px"
				tooltiptext="${c:l('integracaoTotvsController.btnRefresh.tooltiptext')}" />
			<separator orient="vertical" />
			<button id="btnFechar" height="20"
					image="/gui/img/exit.png" width="35px"
					onClick="winIntegracaoTotvs.detach()"
					tooltiptext="${c:l('integracaoTotvsController.btnFechar.tooltiptext')}" />
			</hbox>
		</toolbar>

		<tabbox id="tb">
			<tabs id="tabs">
				<tab id="A"
					label="${c:l('integracaoTotvsController.tabBilhetes.value')}" />
				<tab id="B"
					label="${c:l('integracaoTotvsController.tabServicos.value')}" />
				<tab id="C"
					label="${c:l('integracaoTotvsController.tabCorridas.value')}" />
			</tabs>
			<tabpanels >
				<tabpanel height="400px">
					<grid fixedLayout="true">
						<columns>
							<column width="20%" />
							<column width="80%" />
						</columns>
						<rows>
							<row>
								<label
									value="${c:l('integracaoTotvsController.cmbEmpresa.value')}" />
								<combobox id="cmbEmpresa"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" 
									mold="rounded" buttonVisible="true" width="60%"
									model="@{winIntegracaoTotvs$composer.lsEmpresas}"
									/>
							</row>
							<row>
								<label
									value="${c:l('integracaoTotvsController.lbPuntoVenta.value')}" />
								<combobox id="cmbPuntoVenta"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
									mold="rounded" buttonVisible="true" width="60%"/>
							</row>
							<row>
								<label
									value="${c:l('integracaoTotvsController.lblIntervalo.value')}" />
								<hbox>
									<h:table border="0">
										<h:tr>
											<h:td>
												<label
													value="${c:l('integracaoTotvsController.lbDe.value')}" />
											</h:td>
											<h:td>
												<datebox
													id="fecInicioIntervalo" width="120px"
													mold="rounded" 
													value="@{winIntegracaoTotvs$composer.dataDe}"/>
											</h:td>
											<h:td>
												<label
													value="${c:l('integracaoTotvsController.lbAte.value')}" />
											</h:td>
											<h:td>
												<datebox
													id="fecFinIntervalo" width="120px"
													mold="rounded" 
													value="@{winIntegracaoTotvs$composer.dataAte}" />
											</h:td>
										</h:tr>
									</h:table>
								</hbox>
							</row>
						</rows>
					</grid>
					<toolbar>
						<hbox spacing="5px" style="padding:1px" align="right">
						<button id="btnSolicitarIntegracao" image="/gui/img/save.png"
							label="${c:l('integracaoTotvsController.btnSolicitarIntegracao.label')}" />
						<separator orient="vertical" />
						<button id="btnPesquisa" image="/gui/img/find.png"
						label="${c:l('integracaoTotvsController.btnPesquisa.label ')}" />
						</hbox>
					</toolbar>
				<paging id="pagingCaja" pageSize="20"/>
				<listbox id="cajaList"
					use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
					vflex="true" multiple="false">
					<listhead sizable="true">
						<listheader id="lhId" width="70px"
							image="/gui/img/builder.gif"
							label="${c:l('integracaoTotvsController.lbNumBilhete.label')}"
							sort="auto(numfoliosistema)" />
						<listheader id="lhDesc" image="/gui/img/create_doc.gif"
							label="${c:l('integracaoTotvsController.lbPuntoVenta.label')}"
							sort="auto(puntoventaId)" />
						<listheader image="/gui/img/create_doc.gif"
							label="${c:l('integracaoTotvsController.lbFechaVenta.label')}"
							sort="auto(fechorventaH)" />
						<listheader image="/gui/img/create_doc.gif"
							label="${c:l('integracaoTotvsController.lbOperacao.label')}"
							sort="auto(indstatusboleto)" />
						<listheader image="/gui/img/create_doc.gif"
							label="${c:l('integracaoTotvsController.lbvalorBilhete.label')}"
							sort="auto(valorBilhete)" />
						<listheader image="/gui/img/create_doc.gif"
							label="${c:l('integracaoTotvsController.lbintegradoTotvs.label')}"
							sort="auto(integradoTotvs)" />
						<listheader image="/gui/img/create_doc.gif"
							label="${c:l('integracaoTotvsController.lbcontadorIntegradoTotvs.label')}"
							sort="auto(contadorIntegradoTotvs)" />
					</listhead>
				</listbox>
				</tabpanel>
				<tabpanel height="400px">
				<grid fixedLayout="true">
						<columns>
							<column width="20%" />
							<column width="80%" />
						</columns>
						<rows>
							<row>
								<label
									value="${c:l('integracaoTotvsController.cmbEmpresa.value')}" />
								<combobox id="cmbEmpresaServico"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" 
									mold="rounded" buttonVisible="true" width="40%"
									model="@{winIntegracaoTotvs$composer.lsEmpresas}"/>
							</row>
							<row>
							<label
							value="${c:l('integracaoTotvsController.lbNumServico.value')}" />
								<hbox>
									<h:table border="0">
										<h:tr>
											<h:td>
												<intbox
													id="txtNumServico" width="120px"  maxlength="7"
													/>
											</h:td>
										</h:tr>
									</h:table>
								</hbox>
							</row>
						</rows>
					</grid>
					<toolbar>
					<button id="btnSolicitarIntegracaoServico" image="/gui/img/save.png"
						label="${c:l('integracaoTotvsController.btnSolicitarIntegracao.label')}" />
				</toolbar>
				</tabpanel>
				<tabpanel height="400px">
				<grid fixedLayout="true">
						<columns>
							<column width="20%" />
							<column width="80%" />
						</columns>
						<rows>
							<row>
								<label
									value="${c:l('integracaoTotvsController.cmbEmpresa.value')}" />
								<combobox id="cmbEmpresaCorrida"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" 
									mold="rounded" buttonVisible="true" width="40%"
									model="@{winIntegracaoTotvs$composer.lsEmpresas}"/>
							</row>
							<row>
								<label
									value="${c:l('integracaoTotvsController.lblIntervalo.value')}" />
								<hbox>
									<h:table border="0">
										<h:tr>
											<h:td>
												<label
													value="${c:l('integracaoTotvsController.lbDe.value')}" />
											</h:td>
											<h:td>
												<datebox
													id="fecInicioCorrida" width="120px"
													mold="rounded" 
													value="@{winIntegracaoTotvs$composer.dataInicioCorrida}"/>
											</h:td>
											<h:td>
												<label
													value="${c:l('integracaoTotvsController.lbAte.value')}" />
											</h:td>
											<h:td>
												<datebox
													id="fecFinCorrida" width="120px"
													mold="rounded" 
													value="@{winIntegracaoTotvs$composer.dataFimCorrida}" />
											</h:td>
										</h:tr>
									</h:table>
								</hbox>
							</row>
							<row>
							<label
								value="${c:l('integracaoTotvsController.lbNumCorrida.value')}" />
								<hbox>
									<h:table border="0">
										<h:tr>
											<h:td>
												<intbox
													id="txtNumCorrida" width="120px"  maxlength="7"
													/>
											</h:td>
										</h:tr>
									</h:table>
								</hbox>
							</row>
						</rows>
					</grid>
					<toolbar>
					<button id="btnSolicitarIntegracaoCorrida" image="/gui/img/save.png"
						label="${c:l('integracaoTotvsController.btnSolicitarIntegracao.label')}" />
				</toolbar>
				</tabpanel>
			</tabpanels>
		</tabbox>
			<!--<toolbar>
			<button id="btnSolicitarIntegracao" image="/gui/img/save.png"
				label="${c:l('integracaoTotvsController.btnSolicitarIntegracao.label')}" />
		</toolbar>-->
	</window>
</zk>