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

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

        <grid fixedLayout="true">
            <columns>
                <column width="40%" />
                <column width="60%" />
            </columns>
            <rows>
                <row>
                    <label id="lbCodigoContabil" value="${c:l('editarContaMDController.lbCodigoContabil.value')}"/>
                    <textbox id="txtCodigoContabil" constraint="no empty" width="50px" maxlength="7"
                             use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" scale="0"/>
                </row>
                <row>
                    <label id="lbNome" value="${c:l('editarContaMDController.lbNome.value')}"/>
                    <textbox id="txtNome" constraint="no empty" width="95%" maxlength="100"
                             use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxSimple"/>
                </row>
                <row>
                    <label id="lbTipo" value="${c:l('editarContaMDController.lbTipo.value')}"/>
					<radiogroup>
						<radio id="radioTipoC" label="Credito" />
						<radio id="radioTipoD" label="Debito" />
					</radiogroup>
                </row>
                <row>
                    <label id="lbCancelamento" value="${c:l('editarContaMDController.lbCancelamento.value')}"/>
					<radiogroup>
						<radio id="radioCancelamentoS" label="Sim" />
						<radio id="radioCancelamentoN" label="Nao" />
					</radiogroup>
                </row>
                <row>
                    <label id="lbStatus" value="${c:l('editarContaMDController.lbStatus.value')}"/>
					<radiogroup>
						<radio id="radioStatusA" label="Ativo" />
						<radio id="radioStatusI" label="Inativo" />
					</radiogroup>
                </row>
                <row>
                    <label id="lbOrigem" value="${c:l('editarContaMDController.lbOrigem.value')}"/>
                    <hlayout>
	                    <checkbox id="chkOrigemIN" label="${c:l('editarContaMDController.lbOrigemInterno.value')}"/>
	                    <checkbox id="chkOrigemEE" label="${c:l('editarContaMDController.lbOrigemEventoExtra.value')}"/>
	                    <checkbox id="chkOrigemFP" label="${c:l('editarContaMDController.lbOrigemFormaPagamento.value')}"/>
                    </hlayout>
                </row>
                <row>
                    <label id="lbReferencia" value="${c:l('editarContaMDController.lbReferencia.value')}"/>
                    <textbox id="txtReferencia" width="95%" maxlength="500"
                             use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
                </row>
            </rows>
        </grid>
    </window>
</zk>
