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

<zk xmlns="http://www.zkoss.org/2005/zul">
    <window id="winEditarPracaPedagio" border="normal" apply="${editarCasetaPeajeController}" width="800px"  
    height="560px" xmlns:h="http://www.w3.org/1999/xhtml"
    contentStyle="overflow:auto" title="${c:l('editarPracaPedagioController.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('tooltiptext.btnEliminar')}"/>
                <button id="btnSalvar" height="20" image="/gui/img/save.png" width="35px" tooltiptext="${c:l('tooltiptext.btnGuardar')}"/>
                <button id="btnFechar" height="20" image="/gui/img/exit.png" width="35px" onClick="winEditarPracaPedagio.detach()" tooltiptext="${c:l('tooltiptext.btnFechar')}"/>
            </hbox>
        </toolbar>
        
        <grid fixedLayout="true">
            <columns>
                <column width="40%" />
                <column width="60%" />
            </columns>
            <rows>
                <row>
                    <label value="${c:l('busquedaPracaPedagioController.lbDescricaoPracaPedagio')}"/>
                    <textbox id="descricaoPracaPedagio" width="100%" mold="rounded" constraint="no empty"
                        value="@{winEditarPracaPedagio$composer.casetaPeaje.desccaseta}"
                        use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" maxlength="49"/>
                </row>
                <row>
                    <label value="${c:l('busquedaPracaPedagioController.lbQuantiaIda')}"/>
                    <textbox id="quantiaIda" width="100%" mold="rounded" constraint="no empty, no zero, no negative, /[0-9]+(\,[0-9][0-9]?)?/ "
                        use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="6" scale="2"/>
                </row>
                <row>
                    <label value="${c:l('busquedaPracaPedagioController.lbQuantiaVolta')}"/>
                    <textbox id="quantiaVolta" width="100%" mold="rounded" constraint="no empty, no zero, no negative, /[0-9]+(\,[0-9][0-9]?)?/ "
                        use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="6" scale="2"/>
                </row>
            </rows>
        </grid>
        <toolbar>
        <box style="background-color='gray'">
        <label value="Inserir Preço Fixo"/>
        </box>
        </toolbar>
         <grid fixedLayout="true">
            <columns>
                <column width="40%" />
                <column width="60%" />
            </columns>
            <rows>
                <row>
                    <label value="${c:l('busquedaPracaPedagioController.lbValorFixo')}"/>
                    <textbox id="valorFixo" width="90%" constraint=" no zero, no negative, /[0-9]+(\,[0-9][0-9]?)?/ "
                        use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="6" scale="2"/>
                </row>
                <row>
					 <label value="${c:l('busquedaPracaPedagioController.lbOrgaoConcedente')}"/>
					<combobox id="cmbOrgaoConcedente"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						mold="rounded" buttonVisible="true" width="90%"
						model="@{winEditarPracaPedagio$composer.lsOrgaoConcedente}" />
				</row>
				<row>
					 <label value="${c:l('busquedaPracaPedagioController.lbClasse')}"/>
					<combobox id="cmbClaseServicio"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						mold="rounded" buttonVisible="true" width="90%"
						model="@{winEditarPracaPedagio$composer.lsClaseServicio}" />
				</row>
            </rows>
             
        </grid>
        <toolbar>
			 <hbox spacing="5px" style="padding:1px" align="right">
		        <button id="btnSalvarPrecoFixo" height="20" image="/gui/img/add.png" width="35px" tooltiptext="${c:l('tooltiptext.btnGuardar')}"/> 
               <button id="btnRemoverPrecoFixo" height="20" image="/gui/img/remove.png" width="35px"
                            tooltiptext="${c:l('tooltiptext.btnRemover')}"/>
             </hbox>
        </toolbar>
		<paging id="pagingPrecoFixoPedagio" pageSize="10" />
		  <listbox id="lsPrecoFixoPedagio"
			  use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
		    	multiple="false" height="100%">
			<listhead sizable="true">
				<listheader id="headOrgaoConcedente" width="40%"
					image="/gui/img/builder.gif"
					label="${c:l('busquedaPracaPedagioController.lbOrgaoConcedente')}"
					sort="auto(desccaseta)" />
				<listheader id="headClasse" width="40%"
					image="/gui/img/builder.gif"
					label="${c:l('busquedaPracaPedagioController.lbClasse')}"
					sort="auto(importeIda)" />
				<listheader id="headPrecoFixo" width="20%"
					image="/gui/img/builder.gif"
					label="${c:l('busquedaPracaPedagioController.lbValorFixo')}"
					sort="auto(importeVuelta)" />
			</listhead>
		</listbox>
</window>
</zk>