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

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

        <grid fixedLayout="true">
            <columns>
                <column width="40%" />
                <column width="60%" />
            </columns>
            <rows>
                <row>
                    <label id="lbNome" value="${c:l('editarSegVKmController.serie')}"/>
                    <textbox id="txtSerie" constraint="no empty" maxlength="3"
                             value="@{winEditarSegVKM$composer.segVKM.serie}"
                             use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
                </row>                       
                <row>
                     <label value="${c:l('editarSegVKmController.km')}"/>
                      <textbox id="txtKm"
                        constraint="no empty, no zero, no negative"
                        value="@{winEditarSegVKM$composer.segVKM.km}"
                        use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="7" scale="2"/>
                </row>                
                <row>
                    <label value="${c:l('editarSegVKmController.valor')}"/>
                      <textbox id="txtValor"
                        constraint="no empty, no zero, no negative"
                         value="@{winEditarSegVKM$composer.segVKM.valor}"
                        use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="7" scale="2"/>
                </row>  
                <row>
					<label
						value="${c:l('editarSegVKmController.orgao')}" />
					<combobox id="cmbOrgaoConcedente" width="90%" mold="rounded"
						buttonVisible="true"
						model="@{winEditarSegVKM$composer.lsOrgaoConcedente}"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						initialValue="@{winEditarSegVKM$composer.segVKM.orgaoConcedente}"
						selectedItem="@{winEditarSegVKM$composer.segVKM.orgaoConcedente}" />
				</row>              
            </rows>
        </grid>
    </window>
</zk>

