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

<zk xmlns="http://www.zkoss.org/2005/zul">
    <window id="winEditarGP_PricingCorrida" border="normal"
            apply="${editarGP_PricingCorridaController}"
            width="850px" height="460px" contentStyle="overflow:auto"
            title="${c:l('editarPricingController.windowCorrida.title')}">
        <toolbar>
            <hbox spacing="5px" style="padding:1px" align="right">
                <button id="btnAdicionarCorrida" disabled="${arg.isReadOnly}" height="20"
                        image="/gui/img/add.png" width="35px"
                        tooltiptext="${c:l('editarPricingCorridaController.btnSalvar.tooltiptext')}"/>
                <button height="20"
                        image="/gui/img/exit.png" width="35px"
                        onClick="winEditarGP_PricingCorrida.detach()"
                        tooltiptext="${c:l('editarPricingCorridaController.btnFechar.tooltiptext')}"/>
            </hbox>
        </toolbar>

        <grid fixedLayout="true">
            <columns>
                <column width="15%"/>
                <column width="30%"/>
                <column width="15%"/>
                <column width="30%"/>
            </columns>
            <rows>
                <row>
                    <label value="${c:l('editarPricingController.corridaId.value')}"/>
                    <intbox id="idCorrida" maxlength="7"/>
                    <label value="${c:l('editarPricingController.windowTipoServicio.title')}"/>
                    <combobox id="cmbTipoServicio" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
                              mold="rounded" buttonVisible="true" width="95%"
                              model="@{winEditarGP_PricingCorrida$composer.lsClaseServicio}"/>                
                </row>
                <row>
                    <label value="${c:l('editarPricingCorridaController.labelOrigen.value')}"/>
                    <combobox id="cmbParadaOrigem" autodrop="false" mold="rounded"
                        buttonVisible="true" width="95%"
                        use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"/>
                    <label value="${c:l('editarPricingCorridaController.labelDestino.value')}"/>
                    <combobox id="cmbParadaDestino" autodrop="false" mold="rounded"
                        buttonVisible="true" width="95%"
                        use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"/>
                </row>
                <row>
                    <label value="${c:l('editarPricingCorridaController.lblInicio.value')}"/>
                    <timebox id="timeInicio" format="HH:mm" mold="rounded"/> 
                    <label value="${c:l('editarPricingCorridaController.lblFin.value')}"/>
                    <timebox id="timeFin" format="HH:mm" mold="rounded"/> 
                </row>                
            </rows>
        </grid>

        <toolbar>
            <button id="btnPesquisa" image="/gui/img/find.png"
                label="${c:l('editarPricingCorridaController.btnPesquisa.label')}"/>
        </toolbar>

        <listbox id="corridaList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" mold="paging" pageSize="15"
                 multiple="true" height="60%" checkmark="true">
            <listhead sizable="true">
                <listheader width="80px" image="/gui/img/builder.gif"
                    label="${c:l('editarPricingCorridaController.lhId.label')}"
                    sort="auto(id.corridaId)"/>
                <listheader image="/gui/img/builder.gif"
                    label="${c:l('editarPricingCorridaController.fechorsalida.label')}"
                    sort="auto(fechorsalida)"/>
                <listheader image="/gui/img/builder.gif"
                    label="${c:l('editarPricingCorridaController.labelOrigen.value')}"
                    sort="auto(origem.descparada)"/>
                <listheader image="/gui/img/builder.gif"
                    label="${c:l('editarPricingCorridaController.labelDestino.value')}"
                    sort="auto(destino.descparada)"/>
                <listheader image="/gui/img/builder.gif"
                    label="${c:l('editarPricingCorridaController.claseServicio.label')}"
                    sort="auto(claseServicio.descclase)"/>
                <listheader image="/gui/img/builder.gif"
                    label="${c:l('editarPricingCorridaController.marca.label')}"
                    sort="auto(marca.descmarca)"/>
            </listhead>
        </listbox>
        
    </window>
</zk>
