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

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

        <grid fixedLayout="true">
            <columns>
                <column width="40%" />
                <column width="60%" />
            </columns>
            <rows>
                <row>
                    <label value="${c:l('editarBancoController.punto.label')}"/>
                    <combobox id="cmbPuntoVenta" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta" constraint="no empty"
                                    mold="rounded" buttonVisible="true" width="80%"
                                    model="@{winEditarBanco$composer.lsPuntoVenta}"
                                    selectedItem="@{winEditarBanco$composer.banco.puntoVenta}" />
                </row>
                <row>
                    <label value="${c:l('editarBancoController.empresa.label')}"/>
                    <combobox id="cmbEmpresa" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
                                    mold="rounded" buttonVisible="true" width="80%"
                                    model="@{winEditarBanco$composer.lsEmpresa}"
                                    selectedItem="@{winEditarBanco$composer.banco.empresa}" />

                </row>
                <row>
                    <label value="${c:l('editarBancoController.moneda.label')}"/>
                    <combobox id="cmbMoneda" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
                                    mold="rounded" buttonVisible="true" width="80%"
                                    model="@{winEditarBanco$composer.lsMoneda}"
                                    selectedItem="@{winEditarBanco$composer.banco.moneda}" />

                </row>
                <row>
                    <label id="lbNome" value="${c:l('editarBancoController.lbNome.value')}"/>
                    <textbox id="txtNome" constraint="no empty" width="80%" maxlength="30"
                             value="@{winEditarBanco$composer.banco.nombbanco}"
                             use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
                </row>
                <row>
                    <label value="${c:l('editarBancoController.dem.label')}"/>
                    <textbox id="refContrato" constraint="no empty" width="80%" maxlength="20"
                             value="@{winEditarBanco$composer.banco.refcontrato}"
                             use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
                </row>
                <!--RETIRADO A PEDIDO DE PAULO MARCIO
                row>
                    <label value="${c:l('editarBancoController.cuentaDinero.label')}"/>
                    <textbox id="concepto" constraint="no empty" width="80%" maxlength="30"
                             value="@{winEditarBanco$composer.banco.concepto}"
                             use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
                </row-->
                <row>
                    <label value="${c:l('editarBancoController.numCuenta.label')}"/>
                    <doublebox id="numcuenta" format="###########" constraint="no empty" width="80%" maxlength="11"
                              />
                </row>
                <row>
                    <label value="${c:l('editarBancoController.algRef.label')}"/>
                    <textbox id="algoritmoref" constraint="no empty" width="80%" maxlength="100" rows="4"
                             value="@{winEditarBanco$composer.banco.algoritmoref}"
                             use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
                </row>
               
            </rows>
        </grid>
    </window>
</zk>
