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

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

        <grid fixedLayout="true">
            <columns>
				<column width="20%" />
				<column />				
			</columns>
            <rows>
            	<row>
					<label
						value="${c:l('editarEmpresaTrocoSimples.empresa')}" />
					<combobox id="cmbEmpresa"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						width="100%" mold="rounded" buttonVisible="true" constraint="no empty"
						model="@{winEmpresaTrocoSimples$composer.lsEmpresas}"/>					
                </row>

            	<row>
            		<label value="${c:l('editarEmpresaTrocoSimples.razaoSocial')}" />
            		<textbox id="txtRazaoSocial" width="99%" />
            	</row>
            	
            	<row>
            		<label value="${c:l('editarEmpresaTrocoSimples.nomeFantasia')}" />
            		<textbox id="txtNomeFantasia" width="99%" />
            	</row>
            	
            	<row>
            		<label value="${c:l('editarEmpresaTrocoSimples.cnpj')}" />
            		<longbox id="txtCNPJ" width="99%" constraint="no empty" maxlength="14"/>
            	</row>
            	
            	<row>
            		<label value="${c:l('editarEmpresaTrocoSimples.telefone')}" />
            		<textbox id="txtTelefone" width="99%" />
            	</row>
            	
            	<row>
            		<label value="${c:l('editarEmpresaTrocoSimples.endereco')}" />
            		<textbox id="txtEndereco" width="99%" />
            	</row>
            	
            	<row>
            		<label value="${c:l('editarEmpresaTrocoSimples.valorSugerir')}" />
            		<textbox id="txtValorSugerido" width="99%" />
            	</row>
            	            	
            	<row>
            		<label value="${c:l('editarEmpresaTrocoSimples.token')}" />
            		<textbox id="txtToken" width="99%" constraint="no empty" />
            	</row>

            </rows>
        </grid>               

    </window>
</zk>
