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

<zk xmlns="http://www.zkoss.org/2005/zul">
    <window id="winEditarProdMarcaController" border="normal"
            apply="${editarProdMarcaController}"
            width="500px"  height="457px" contentStyle="overflow:auto"
            title="${c:l('editarProdMarcaController.winEditarProdMarca.title')}">
        <toolbar>
            <hbox spacing="5px" style="padding:1px" align="right">
                <button id="btnAdicionar" height="20"
                        image="/gui/img/save.png" width="35px"
                        tooltiptext="${c:l('editarProdMarcaController.btnSalvar.tooltiptext')}"/>
                <button height="20"
                        image="/gui/img/exit.png" width="35px"
                        onClick="winEditarProdMarcaController.detach()"
                        tooltiptext="${c:l('editarProdMarcaController.btnFechar.tooltiptext')}"/>
            </hbox>
        </toolbar>

        <grid fixedLayout="true">
            <columns>
                <column width="40%" />
                <column width="60%" />
            </columns>
            <rows>
                <row>
                    <label value="${c:l('editarProdMarcaController.ProdMarca.value')}"/>
                    <combobox id="cmbProdMarca" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
                                    mold="rounded" width="90%" constraint="no empty"
                                    model="@{winEditarProdMarcaController$composer.lsMarca}"
                                    selectedItem="@{winEditarProdMarcaController$composer.prodMarca.marca}" />
                </row>
                <row>
                    <label value="${c:l('editarProdPrecioController.bolIni.value')}"/>
                    <textbox id="txtImporteInicial" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="7" scale="2" maxlength="9"/>
                </row>
                <row>
                    <label value="${c:l('editarProdPrecioController.bolFim.value')}" />
                    <textbox id="txtImporteFinal" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="7" scale="2" maxlength="9" />
                </row>
                <row>
                    <label value="${c:l('editarProdPrecioController.tarifa.value')}"/>
                    <textbox id="tarifa"  use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="7" scale="2" maxlength="9" />
                </row>
            </rows>
            
        </grid>
        <toolbar>
            <hbox spacing="5px" style="padding:1px" align="right">
                <button id="btnNovoProdPrecio" image="/gui/img/add.png" width="35px"
                                            tooltiptext="${c:l('editarProdMarcaController.btnNovoProdPrecio.tooltiptext')}" />
                <button id="btnApagarProdPrecio" height="6"
                                            image="/gui/img/remove.png" width="35px"
                                            tooltiptext="${c:l('editarProdMarcaController.btnApagarProdPrecio.tooltiptext')}"/>
            </hbox>
        </toolbar>
        <paging id="pagingProdPrecio" pageSize="5"  />
        <listbox id="prodPrecioList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
                 multiple="false" height="100px"  >
            <listhead sizable="true">
                <listheader width="40%" image="/gui/img/builder.gif"
                    label="${c:l('editarProdPrecioController.marca.value')}"
                    sort="auto(claseServicio.descclase)"/>
                <listheader width="20%" image="/gui/img/builder.gif" align="right"
                    label="${c:l('editarProdMarcaController.importeInicial.label')}"
                     sort="auto(importeinicial)"/>
                <listheader width="20%" image="/gui/img/builder.gif" align="right"
                    label="${c:l('editarProdMarcaController.importeFinal.label')}"
                    sort="auto(importefinal)"/>
                <listheader width="20%" image="/gui/img/builder.gif" align="right"
                    label="${c:l('editarProdPrecioController.tarifa.value')}"
                    sort="auto(precio)"/>
            </listhead>
        </listbox>

    </window>
</zk>
