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

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

        <grid fixedLayout="true" >
            <columns>
                <column width="30%" />
                <column width="70%" />
            </columns>
            <rows> 
                <row>
                    <label value="${c:l('busquedaTarifasMinimasController.lhImportetarifa.label')}"/>
                    <textbox id="txtImportancia"
                    value="@{winEditarTarifaMinima$composer.tarifaMinima.importetarifa,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}"
                   constraint="no zero, no negative, /([0-9]+(\,[0-9][0-9]?)?)?/ "
                    use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="9" scale="2" />
                </row>
                <row>
                    <label value="${c:l('busquedaTarifasMinimasController.lhMoneda.label')}"/>
                    <combobox id="cmbMoneda"  constraint="no empty, no negative"
                        mold="rounded" buttonVisible="true" width="90%"
                        model="@{winEditarTarifaMinima$composer.lsMoneda}"
                        use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
                        selectedItem="@{winEditarTarifaMinima$composer.tarifaMinima.moneda}"/>
                </row>
                <row>
                    <label value="${c:l('busquedaTarifasMinimasController.lhPlaza.label')}"/>
                    <combobox id="cmbPlaza" constraint="no empty"
                        mold="rounded" buttonVisible="true" width="90%"
                        model="@{winEditarTarifaMinima$composer.lsPlaza}"
                        use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
                        selectedItem="@{winEditarTarifaMinima$composer.tarifaMinima.plaza}"/>
                </row>
                <row>
                    <label value="${c:l('busquedaTarifasMinimasController.lhMarca.label')}"/>
                    <combobox id="cmbMarca" constraint="no empty"
                        mold="rounded" buttonVisible="true" width="90%" 
                        model="@{winEditarTarifaMinima$composer.lsMarcas}"
                        use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" 
                        selectedItem="@{winEditarTarifaMinima$composer.tarifaMinima.marca}"/>
                </row>
                
                 <row>
                    <label value="${c:l('busquedaTarifasMinimasController.lhClaseServicio.label')}"/>
                    <combobox id="cmbClaseServicio" constraint="no empty"
                        mold="rounded" buttonVisible="true" width="90%" 
                        model="@{winEditarTarifaMinima$composer.lsClaseServico}"
                        use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
                        selectedItem="@{winEditarTarifaMinima$composer.tarifaMinima.claseServicio}"/>
                        
                </row>
                
                <row>
                	<label
                		value="${c:l('modificacionMasivaTarifasController.orgaoConcedente.label')}" />
                	<combobox id="cmbOrgaoConcedente" mold="rounded"
                		buttonVisible="true" width="90%" constraint="no empty"
                		model="@{winEditarTarifaMinima$composer.lsOrgaoConcedente}"
                		use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" 
                		selectedItem="@{winEditarTarifaMinima$composer.tarifaMinima.orgaoConcedente}"/>
                </row>
                
                <row>
					<label
						value="${c:l('editarConfiguracionCorridaController.cmbRuta.value')}" />
					<combobox id="cmbRuta"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						mold="rounded" buttonVisible="true"
						width="90%"
						selectedItem="@{winEditarTarifaMinima$composer.tarifaMinima.ruta}" />
				</row>	
                
                
    			 <row>
            <label value="${c:l('busquedaTarifaController.lhFeciniciovigencia.label')}"/>
                <combobox id="cmbVigencia" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
                        disabled="false" constraint="no empty"
                        mold="rounded" buttonVisible="true" width="90%"
                        model="@{winEditarTarifaMinima$composer.lsVigenciaTarifa}"
                        selectedItem="@{winEditarTarifaMinima$composer.tarifaMinima.vigenciaTarifa}"/>
                </row>
                
				 <row>
				 <label
						value="${c:l('busquedaRegionMetropolitanaController.lhRegion.label')}" />
                <combobox id="cmbRegionMetropolitana" mold="rounded"
                		buttonVisible="true" width="90%" 
                		model="@{winEditarTarifaMinima$composer.lsRegionMetropolitana}"
                		use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" 
                		selectedItem="@{winEditarTarifaMinima$composer.tarifaMinima.regionMetropolitana}"/>
                		
                		</row>
                		
        		 <row>
            		 <label
						value="${c:l('editarCoeficienteTarifaController.window.title')}" />
                <combobox id="cmbCoeficienteTarifa" mold="rounded"
                		buttonVisible="true" width="90%"
                		model="@{winEditarTarifaMinima$composer.lsCoeficienteTarifa}"
                		use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" 
                		selectedItem="@{winEditarTarifaMinima$composer.tarifaMinima.coeficienteTarifa}"/>
                		
                		</row>	
				
				  <row>
                    <label value="${c:l('busquedaTarifasMinimasController.lhOrigem.label')}"/>
                    <combobox id="cmbOrigem" 
                        mold="rounded" buttonVisible="true" width="90%"
                        use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
                        initialValue="@{winEditarTarifaMinima$composer.tarifaMinima.origem}"
                        selectedItem="@{winEditarTarifaMinima$composer.tarifaMinima.origem}"/>
                </row>
                
                <row>
                    <label value="${c:l('busquedaTarifasMinimasController.lhDestino.label')}"/>
                    <combobox id="cmbDestino" 
                        mold="rounded" buttonVisible="true" width="90%"
                        use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" 
                        initialValue="@{winEditarTarifaMinima$composer.tarifaMinima.destino}"
                        selectedItem="@{winEditarTarifaMinima$composer.tarifaMinima.destino}"/>
                </row>
                
				<row>
					<label id="lblCategorias"
						value="${c:l('editarConfiguracionCategoriaController.lblCategorias.value')}" />
					<combobox id="cmbCategorias"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						mold="rounded" buttonVisible="true" width="50%"
						model="@{winEditarTarifaMinima$composer.lsCategorias}" />
				</row>
	
			</rows>
		</grid>
		
		<button id="btnAdicionarCategoria"
			height="20"
			 image="/gui/img/add.png"
			 width="35px"
	   tooltiptext="${c:l('editarTarifaMinimaController.btnAdicionarCategoria.tooltiptext')}"
	   	    />
		<button id="btnRemoverCategoria"
			height="20"
			 image="/gui/img/remove.png"
			 width="35px"
	   tooltiptext="${c:l('editarTarifaMinimaController.btnRemoverCategoria.tooltiptext')}"
	   	   />								
		
		<listbox id="tarifaMinimaCategoriaList"
				use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
			  vflex="true"
		   multiple="false"
		   	 height="150px"
		   	>
			<listhead sizable="true">
				<listheader image="/gui/img/create_doc.gif"
							label="${c:l('editarConfiguracionCategoriaController.lblCategorias.value')}" />
			</listhead>
		</listbox>

    </window>
</zk>
