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

<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winEditarParada" border="normal"
		apply="${editarCatalogoDeParadaController}" width="600px"
		height="550px" contentStyle="overflow:auto"
		title="${c:l('editarCatalogoDeParadaController.window.title')}" sizable="true">
		<toolbar>
			<hbox spacing="5px" style="padding:1px" align="right">
				<button id="btnApagar" height="20"
					image="/gui/img/remove.png" width="35px"
					tooltiptext="${c:l('editarCatalogoDeParadaController.btnApagar.tooltiptext')}" />
				<button id="btnSalvar" height="20"
					image="/gui/img/save.png" width="35px"
					tooltiptext="${c:l('editarCatalogoDeParadaController.btnSalvar.tooltiptext')}" />
				<button id="btnFechar" height="20"
					image="/gui/img/exit.png" width="35px"
					onClick="winEditarParada.detach()"
					tooltiptext="${c:l('editarCatalogoDeParadaController.btnFechar.tooltiptext')}" />
			</hbox>
		</toolbar>

		<grid fixedLayout="true">
			<columns>
				<column width="30%" />
				<column width="70%" />
			</columns>
			<rows>
				<row>
					<label
						value="${c:l('editarCatalogoDeParadaController.lbNome.value')}" />
					<textbox id="txtNome" constraint="no empty"
						width="80%" maxlength="60"
						value="@{winEditarParada$composer.parada.descparada}"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
				</row>
				<row>
					<label
						value="${c:l('editarCatalogoDeParadaController.lbCveParada.value')}" />
					<textbox id="cveparada" width="80%" maxlength="6"
						constraint="no empty"
						value="@{winEditarParada$composer.parada.cveparada}"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
				</row>
				<row>
					<label
						value="${c:l('editarCatalogoDeParadaController.lbCodAntt.value')}" />
					<intbox id="codAntt" width="80%" maxlength="5"
						value="@{winEditarParada$composer.parada.codantt}" />
				</row>
				<row>
				
					<hlayout>
						<label
							value="${c:l('editarCatalogoDeParadaController.lbCodSigma.value')}" />
						<image src="/gui/img/Question_mark_1.png" tooltiptext="${c:l('editarCatalogoDeParadaController.lbCodSigma.help')}"
			                        style="cursor: help" />							
					</hlayout>
					<textbox id="codSigma" width="80%" maxlength="7" 
						value="@{winEditarParada$composer.parada.codSigma}" 
						use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
				</row>
				<row>
					<label
						value="${c:l('editarCatalogoDeParadaController.lbCodAnttAux.value')}" />
					<intbox id="codAnttAux" width="80%" maxlength="5" 
						tooltiptext="${c:l('editarCatalogoDeParadaController.lbCodAnttAuxHint.value')}"
						value="@{winEditarParada$composer.parada.codanttaux}" />
				</row>
				<row>
					<label
						value="${c:l('editarCatalogoDeParadaController.lbCiudad.value')}" />
					<combobox id="cmbCiudad" autodrop="false"
						constraint="no empty"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxCiudad"
						selectedItem="@{winEditarParada$composer.parada.ciudad}"
						mold="rounded" buttonVisible="true" width="90%" />
				</row>
				<row>
					<label
						value="${c:l('editarCatalogoDeParadaController.lbTipoParada.value')}" />
					<combobox id="cmbTipoParada"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						constraint="no empty" mold="rounded" buttonVisible="true"
						width="90%" model="@{winEditarParada$composer.lsTipoParadas}"
						selectedItem="@{winEditarParada$composer.parada.tipoParada}" />
				</row>
				
				<row>
					<label
						value="${c:l('editarCatalogoDeParadaController.lbAgruparParada.value')}" />
					<combobox id="cmbAgruparParada"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						mold="rounded" buttonVisible="true"
						width="90%" model="@{winEditarParada$composer.lsAgrupamentoParada}"
						selectedItem="@{winEditarParada$composer.parada.agrupamentoParada}" />
				</row>
				
				<row>
					<label
						value="${c:l('editarCatalogoDeParadaController.lbTelProcon.value')}" />
					<textbox id="descProcon" width="80%" maxlength="120"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
						value="@{winEditarParada$composer.parada.descProcon}" />
				</row>

				<row>
					<label
						value="${c:l('editarCatalogoDeParadaController.chkVendeTotem.value')}" />
					<checkbox id="chkVendeTotem"
						value="@{winEditarEmpresa$composer.empresa.indVendeTotem}" />
				</row>

				<row>
					<label
						value="${c:l('editarCatalogoDeParadaController.chkVendeInternet.value')}" />
					<checkbox id="chkVendeInternet"
						value="@{winEditarEmpresa$composer.empresa.indVendeInternet}" />
				</row>
				
				<row>
					<label
						value="${c:l('editarCatalogoDeParadaController.chkIntegracaoW2i.value')}" />
					<checkbox id="chkIntegracaoW2i"
						value="@{winEditarEmpresa$composer.empresa.indIntegracaoW2i}" />
				</row>

			</rows>
		</grid>
		<separator />
		<grid fixedLayout="true">
			<columns>
				<column width="30%" />
				<column width="70%" />
			</columns>
			<rows>
				<row>
					<label
						value="${c:l('editarCatalogoDeParadaController.lbOrgaoConcedente.value')}" />
					<combobox id="cmbOrgaoConcedente"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						constraint="no empty" mold="rounded" buttonVisible="true"
						width="80%"
						model="@{winEditarParada$composer.lsOrgaosConcedentes}" />
				</row>
				<row>
					<label
						value="${c:l('editarCatalogoDeParadaController.lbCodOrgaoConcedente.value')}" />
					<textbox id="txtCodOrgaoConcedente" width="80%" maxlength="9"
						constraint="no empty"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
				</row>
			</rows>
		</grid>
		<toolbar>
			<hbox spacing="5px" style="padding:1px" align="right">
				<button id="btnAdicionarCodOrgaoConcedente" height="20"
					image="/gui/img/add.png" width="35px"
					tooltiptext="${c:l('editarCatalogoDeParadaController.btnAdicionarCodOrgaoConcedente.tooltiptext')}" />
				<button id="btnRemoverCodOrgaoConcedente" height="20"
					image="/gui/img/remove.png" width="35px"
					tooltiptext="${c:l('editarCatalogoDeParadaController.btnRemoverCodOrgaoConcedente.tooltiptext')}" />
			</hbox>
		</toolbar>
		<listbox id="codOrgaosConcedentesList"
			use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
			vflex="true" multiple="false">
			<listhead sizable="true">
				<listheader id="lhOrgaoConcedente"
					image="/gui/img/create_doc.gif"
					label="${c:l('editarCatalogoDeParadaController.lhOrgaoConcedente.value')}" />
				<listheader id="lhCodigo"
					image="/gui/img/create_doc.gif"
					label="${c:l('editarCatalogoDeParadaController.lhCodigo.value')}" />
			</listhead>
		</listbox>
	</window>
</zk>
