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

<zk>
	<window id="winEditarCorridaFlexBus" border="normal"
		apply="${editarCorridaFlexBusController}" width="700px" sizable="true"
		contentStyle="overflow:auto"
		title="${c:l('editarConfiguracionCorridaController.window.title')}"
		xmlns:h="http://www.w3.org/1999/xhtml">
		<toolbar>
			<hbox spacing="5px" style="padding:1px" align="right">
				<button id="btnSalvar" height="20"
					image="/gui/img/save.png" label="Salvar Alterações"
					tooltiptext="${c:l('editarConfiguracionCorridaController.btnSalvar.tooltiptext')}"
					autodisable="self" />
				<separator orient="vertical" />
				<button id="btnCancelarServico" height="20"
					image="/gui/img/remove.png"  label="Cancelar Serviço"
					tooltiptext="${c:l('editarConfiguracionCorridaController.btnApagar.tooltiptext')}" />
				<button id="btnConfirmarServico" height="20"
					image="/gui/img/confirmar_chegada.png"
					label="Confirmar Serviço"
					tooltiptext="${c:l('editarConfiguracionCorridaController.cmbAsiento.tooltiptext')}" />
				<separator orient="vertical" />
				<button id="btnFechar" height="20"
					image="/gui/img/exit.png" width="35px"
					onClick="winEditarCorridaFlexBus.detach()"
					tooltiptext="${c:l('editarConfiguracionCorridaController.btnFechar.tooltiptext')}" />
			</hbox>
		</toolbar>

		<grid fixedLayout="true">
			<columns>
				<column width="40%" />
				<column width="60%" />
			</columns>
			<rows>
				<row>
					<label value="${c:l('editarCatalogoDeRutaController.lhInfoCorrda')}" />
					<textbox id="txtInfoCorrida" maxlength="40" width="90%" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" 
						value="@{winEditarCorridaFlexBus$composer.corrida.esquemaCorrida.infoCorrida}" disabled="true" />
				</row>
	
				<row>
					<label value="${c:l('editarConfiguracionCorridaController.lbDataCorrida.value')}" />
					<datebox id="feccorrida" constraint="no empty" width="25%" mold="rounded" disabled="true"
							value="@{winEditarCorridaFlexBus$composer.corrida.id.feccorrida}" />
				</row>
				
				<row>
					<label id="lbNumCorrida" value="${c:l('editarConfiguracionCorridaController.lbNumCorrida.value')}" />
					<intbox id="txtNumCorrida" maxlength="7" constraint="no empty" width="25%" disabled="true"
						value="@{winEditarCorridaFlexBus$composer.corrida.id.corridaId}" />
				</row>
	
				<row>
					<label value="${c:l('editarConfiguracionCorridaController.cmbClase.value')}" />
					<combobox id="cmbClase" disabled="true" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						constraint="no empty" mold="rounded" buttonVisible="true" width="90%" 
						model="@{winEditarCorridaFlexBus$composer.lsClase}"
						selectedItem="@{winEditarCorridaFlexBus$composer.corrida.claseServicio}" />
				</row>
				
				<row>
					<label value="${c:l('editarConfiguracionCorridaController.cmbEmpresaCorrida.value')}" />
					<combobox id="cmbEmpresaCorrida"  disabled="true"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty" mold="rounded" width="90%"
						model="@{winEditarCorridaFlexBus$composer.lsEmpresa}" 
						selectedItem="@{winEditarCorridaFlexBus$composer.corrida.empresa}" />
				</row>
	
				<row>
					<label value="${c:l('editarConfiguracionCorridaController.cmbRuta.value')}" />
					<combobox id="cmbRuta" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						constraint="no empty" mold="rounded" buttonVisible="true" width="90%"
						model="@{winEditarCorridaFlexBus$composer.lsRuta}" disabled="true"
						selectedItem="@{winEditarCorridaFlexBus$composer.corrida.ruta}" />
				</row>
				
				<row>
					<label value="${c:l('editarConfiguracionCorridaController.cmbStatusCorrida.value')}" />
					<combobox id="cmbStatusCorrida" disabled="true"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						mold="rounded" buttonVisible="true" width="90%" 
						model="@{winBusqueCorridaFlexBus$composer.lsStatusCorrida}"
						selectedItem="@{winEditarCorridaFlexBus$composer.statusCorrida}" />
				</row>
	
				<row>
					<label value="${c:l('editarConfiguracionCorridaController.cmbStatusFlexBus.value')}" />
					<combobox id="cmbStatus" disabled="true"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						mold="rounded" buttonVisible="true" width="90%" 
						model="@{winBusqueCorridaFlexBus$composer.lsStatus}"
						selectedItem="@{winEditarCorridaFlexBus$composer.statusAtual}" />
				</row>
				
				<row id="rowUsuario">
					<label value="${c:l('editarConfiguracionCorridaController.alteradoPor.value')}" />
					<textbox id="txtUsuarioAlteracao" maxlength="40" width="90%" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" disabled="true" />
				</row>
				
				<row>
					<label value="${c:l('editarConfiguracionCorridaController.lbOcupacaoAtual.value')}" />
					<intbox id="txtOcupacaoAtual" width="40%" maxlength="60" disabled="true"/>
				</row>
	
				<row>
					<label value="${c:l('editarConfiguracionCorridaController.lbOcupacaoMinima.value')}" />
					<intbox id="txtOcupacaoMinima" width="40%" maxlength="60" />
				</row>
	
				<row>
					<label value="${c:l('editarConfiguracionCorridaController.tiempoConfirmacao.label')}" />
					<hbox>
						<spinner id="txtHorasParaConfirmacao" value="00" width="50px" maxlength="4" constraint="max 9999,no negative" />
						<label value=":" />
						<spinner id="txtMinutosParaConfirmacao" value="00" width="50px" maxlength="2" constraint="max 59,no negative" />
	
						<image src="/gui/img/Question_mark_1.png" tooltiptext="${c:l('editarConfiguracionCorridaController.ajudaTempoLimiteAposSaida')}"
							style="cursor: help" />
					</hbox>
				</row>
			</rows>
		</grid>
	</window>
</zk>