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

<zk xmlns="http://www.zkoss.org/2005/zul">
    <window id="winBusquedaCustom" title="${c:l('customController.window.title')}"
            apply="${busquedaCustomController}" contentStyle="overflow:auto"
            height="500px" width="980px" border="normal" >
        <toolbar>
            <button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
                    tooltiptext="${c:l('customController.btnRefresh.tooltiptext')}" />
            <separator orient="vertical" />
            <button id="btnNovo" image="/gui/img/add.png" width="35px"
                    tooltiptext="${c:l('customController.btnNovo.tooltiptext')}" />
            <separator orient="vertical" visible="@{winBusquedaCustom$composer.exibirBtnUpload}"/>
                <button id="btnUpLoad" height="20"
                        image="/gui/img/upload.png" width="35px"
                        tooltiptext="${c:l('customController.uploadArquivo.titulo')}"
                        visible="@{winBusquedaCustom$composer.exibirBtnUpload}"/>
            <separator orient="vertical" />
            <button id="btnCerrar" onClick="winBusquedaCustom.detach()" image="/gui/img/exit.png" width="35px"
                    tooltiptext="${c:l('customController.btnCerrar.tooltiptext')}"/>
        </toolbar>

        <grid fixedLayout="true">
            <columns>
                <column width="20%" />
                <column width="80%" />
            </columns>
            <rows>
                <row>
                    <label value="${c:l('customController.chave.value')}"/>
                    <textbox id="txtChave" width="500px" />
                </row>
                 <row>
                    <label value="${c:l('customController.sistema.value')}"/>
                    <combobox id="cmbSistema"
						mold="rounded" buttonVisible="true" width="300px"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						model="@{winBusquedaCustom$composer.lsSistemaEnum}"
						 />
                </row>
            </rows>
        </grid>

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

        <paging id="pagingCustom" pageSize="20"/>
        <listbox id="customList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
                 vflex="true" multiple="false" height="85%">
            <listhead sizable="true">
                <listheader id="lhId" width="70px" image="/gui/img/builder.gif"
                    label="${c:l('customController.id.value')}"
                    sort="auto(customId)"/>
                 <listheader id="lhSistema" width="115px" image="/gui/img/builder.gif"
                    label="${c:l('customController.sistema.value')}"
                    sort="auto(sistema)" align="left"/>
                <listheader id="lhDesc"  image="/gui/img/create_doc.gif"
                    label="${c:l('customController.chave.value')}"
                    sort="auto(chave)"/>
                 <listheader id="lhValor" image="/gui/img/create_doc.gif"
                    label="${c:l('customController.valor.value')}"
                    sort="auto(valor)"/>
            </listhead>
        </listbox>
    </window>
</zk>
