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

<zk xmlns="http://www.zkoss.org/2005/zul">
    <window id="winEditarCompaniaBancaria" border="normal" apply="${editarCompaniaBancariaController}"
            width="800px" contentStyle="overflow:auto"
            title="${c:l('editarCompaniaBancariaController.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('editarCompaniaBancariaController.btnApagar.tooltiptext')}"/>
                <button id="btnSalvar" height="20"
                        image="/gui/img/save.png" width="35px"
                        tooltiptext="${c:l('editarCompaniaBancariaController.btnSalvar.tooltiptext')}"/>
                <button id="btnFechar" height="20"
                        image="/gui/img/exit.png" width="35px"
                        onClick="winEditarCompaniaBancaria.detach()"
                        tooltiptext="${c:l('editarCompaniaBancariaController.btnFechar.tooltiptext')}"/>
            </hbox>
        </toolbar>

        <grid fixedLayout="true">
            <columns>
                <column width="40%" />
                <column width="60%" />
            </columns>
            <rows>
                <row>
                    <label value="${c:l('busquedaCompaniaBancaria.lhcvecompania.label')}"/>
                    <textbox id="txtCVECompania" width="90%" constraint="no empty" maxlength="5"
                        value="@{winEditarCompaniaBancaria$composer.companiaBancaria.cvecompania}"
                        use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
                </row>
                <row>
                    <label value="${c:l('busquedaCompaniaBancaria.lhcvesucursal.label')}"/>
                    <textbox id="txtCVESucursal" width="90%" constraint="no empty" maxlength="5"
                        value="@{winEditarCompaniaBancaria$composer.companiaBancaria.cvesucursal}"
                        use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
                </row>
            </rows>
        </grid>
        
        <hbox height="200px">
            <vbox height="200px">
                <toolbar>
                    <label value="${c:l('editarUsuarioBancarioController.window.title')}"/>
                   
                    <button id="btnAdicionarUsuarioBancario" height="20"
                        image="/gui/img/add.png" width="35px"/>
                    <button id="btnRemoverUsuarioBancario" height="20"
                        image="/gui/img/remove.png" width="35px"/>
                </toolbar>
                <listbox id="usuarioBancarioList" multiple="false" height="60%" vflex="true"
                    use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox">
                    <listhead sizable="true">
                        <listheader image="/gui/img/create_doc.gif"
                            label="${c:l('editarUsuarioBancarioController.cveusuario.label')}"
                            sort="auto(cveusuario)"/>
                        <listheader image="/gui/img/create_doc.gif"
                            label="${c:l('editarUsuarioBancarioController.password.label')}"
                            sort="auto(password)"/>               
                    </listhead>
                </listbox>
            </vbox>
            <vbox height="200px">
                <toolbar>
                    <label value="${c:l('editarMerchantBancarioController.window.title')}"/>
                    <button id="btnAdicionarMerchantBancario" height="20"
                        image="/gui/img/add.png" width="35px"/>
                    <button id="btnRemoverMerchantBancario" height="20"
                        image="/gui/img/remove.png" width="35px"/>
                </toolbar>
                <listbox id="merchantBancarioList" multiple="false" height="60%" vflex="true"
                    use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox">
                    <listhead sizable="true">
                        <listheader image="/gui/img/create_doc.gif"
                            label="${c:l('editarMerchantBancarioController.cvemerchant.label')}"
                            sort="auto(cvemerchant)"/>
                        <listheader image="/gui/img/create_doc.gif"
                            label="${c:l('editarMerchantBancarioController.descmerchant.label')}"
                            sort="auto(descmerchant)"/>               
                    </listhead>
                </listbox>
            </vbox>
        </hbox>
    </window>
</zk>
